* placeformula with active colon
@ 2004-10-25 20:53 David Munger
2004-10-26 10:54 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: David Munger @ 2004-10-25 20:53 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: placeformula with active colon
2004-10-25 20:53 placeformula with active colon David Munger
@ 2004-10-26 10:54 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-10-26 10:54 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-26 10:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 20:53 placeformula with active colon David Munger
2004-10-26 10:54 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).