[dev-context] how to \obeyMPlines?

Mojca Miklavec mojca.miklavec.lists at gmail.com
Thu Feb 15 21:00:53 CET 2007


On 2/15/07, Taco Hoekwater wrote:
> Mojca Miklavec wrote:
> > If I leave the \obeyMPlines there, I get spurious characters (probably
> > because TeX adds some character codes which correspond to \r or \n).
>
> Yes. The ^M in the file is \catcode 13, and gets turned into
> \obeyedline. \obeyedline, it seems, contains a carriage return with
> \catcode 12.
>
> > If I comment out the \obeyMPlines it works OK, but longer graphics
> > fail.
>
> \def\processMYfile[#1][#2]{%
>     \def\startMYgraphic
>        {\obeyMPlines % <- no longer a problem
>         \def\obeyedline{}% <- thanks to this

Thanks a lot. This works OK, now I only need to figure out where the
additional space comes from.

>         \dosingleargument\dostartMYgraphic}
>     \long\def\dostartMYgraphic[##1]##2\stopMYgraphic
>        {\startreusableMPgraphic{#1 ##1}##2\stopreusableMPgraphic}
>     \readlocfile{#2}{}{}}

Mojca


More information about the dev-context mailing list