� 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