* Use of | doesn't match its definition.
@ 2006-02-19 8:43 Peter Münster
2006-02-21 0:10 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2006-02-19 8:43 UTC (permalink / raw)
Hello,
the following test-file produces the error
"Use of | doesn't match its definition."
\setupoutput[pdf]
\setupinteraction[state=start]
\placebookmarks[section]
\starttext
\section{bla|-|bla}
\stoptext
My workaround:
\setupoutput[pdf]
\setupinteraction[state=start]
\def\myHyphen{|-|}
\appendtoks \def\myHyphen{-} \to \simplifiedcommands
\placebookmarks[section]
\starttext
\section{bla\myHyphen bla}
\stoptext
Cheers, Peter
--
http://pmrb.free.fr/contact/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Use of | doesn't match its definition.
2006-02-19 8:43 Use of | doesn't match its definition Peter Münster
@ 2006-02-21 0:10 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-02-21 0:10 UTC (permalink / raw)
� wrote:
> Hello,
> the following test-file produces the error
> "Use of | doesn't match its definition."
>
> \setupoutput[pdf]
> \setupinteraction[state=start]
> \placebookmarks[section]
> \starttext
> \section{bla|-|bla}
> \stoptext
>
> My workaround:
>
> \setupoutput[pdf]
> \setupinteraction[state=start]
> \def\myHyphen{|-|}
> \appendtoks \def\myHyphen{-} \to \simplifiedcommands
> \placebookmarks[section]
> \starttext
> \section{bla\myHyphen bla}
> \stoptext
>
\appendtoks
\def|#1|{\ifx#1\empty\empty-\else#1\fi}%
\to \simplifiedcommands
(a bit tricky since it needs to be fully expandable)
-----------------------------------------------------------------
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
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-21 0:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-19 8:43 Use of | doesn't match its definition Peter Münster
2006-02-21 0:10 ` 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).