placeformula with active colon
Hello, Making the colon active results in errors when using colons in formula labels. Example: \useencoding[ffr] \mainlanguage [fr] \starttext \placeformula[eq:foo] \startformula a = 0 \stopformula \stoptext Log: TeXExec 5.0 - ConTeXt / PRAGMA ADE 1997-2004 [...] ConTeXt ver: 2004.10.19 fmt: 2004.10.23 int: english mes: english [...] ! Undefined control sequence. <argument> \discretionarytoken \convertargument #1\to #2->\dodoglobal \edef #2 {\detokenize {#1}} \directdiscretionary ...#1\to \discretionarytoken \let \textmodediscretionar... <argument> eq: foo \doifelse #1#2->\edef \!!stringa {#1 }\edef \!!stringb {#2}\ifx \!! stringa \!... \dodoplaceformula [#1]#2->\doifelse {#1}{-} {\setfalse \handleformulanumber ... ... l.5 \startformula Thanks for any help, David Munger
David Munger wrote:
Hello,
Making the colon active results in errors when using colons in formula labels. Example:
\useencoding[ffr] \mainlanguage [fr] \starttext \placeformula[eq:foo] \startformula a = 0 \stopformula \stoptext
In your cont-new.tex, add: \unprotect \unexpanded\def\directdiscretionary#1% {\convertargument#1\to\discretionarytoken \let\textmodediscretionary\compoundhyphen \expandafter\ifx\csname\@tmd@\string#1\endcsname\relax \prewordbreak \discretionary{\hbox{#1}}{}{\hbox{#1}}% \allowbreak\postwordbreak \else \csname\@tmd@\string#1\endcsname \fi} \protect (or in supp-lan.tex, add the \unexpanded and recompile a format) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
David Munger
-
Hans Hagen