Johan Sandblom wrote:
While documenting some Matlab code for barely computer literates I wish to use the positional graphics described in the MetaFun manual. Not sure if this is possible of course. I am not at all successful so far since I cannot get the escaping mechanism to accept my code. It appears that the /hpos works just fine but the {} generate problems. I have tried using <<>> in all ways I could think of but haven't been lucky yet. Is this possible?
Minimal example:
\setuppapersize[S6][S6] \setuptyping[option=commands] \starttext \starttyping test /hpos{word}{test} test \stoptyping \stoptext
\setuppapersize[S6][S6] \setuptyping[option=commands] \starttext \def\naturaltextext#1\relax {\bgroup \prettynaturalfont \def\ascii{#1}% \setnormalcatcodes \restorecatcodes \scantokens\expandafter{\ascii}\ifhmode\unskip\fi \egroup} \let\texy\naturaltextext \starttyping test /naturaltextext\hpos{word}{test}/relax test test /texy \rm is the word/relax test \stoptyping \MPxy{word} \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------