[NTG-context] \ReadFile in MkII vs MkIV

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Oct 17 20:06:36 CEST 2010


Am 17.10.2010 um 19:58 schrieb Aditya Mahajan:

> I wanted something that will work consistently in MkII and MkIV. I can do:
> 
> \doifmodeelse{\s!mkii}
>  {\let\ReadFilter\ReadFile}
>  {\def\ReadFilter#1{\doreadfile{any}\empty{#1}\donothing\donothing}}
> 
> but, I wanted to avoid such things if possible :-/

Does this work:

\def\ReadFilter#1%
  {\readsetfile{/tmp/}{#1}\donothing\donothing}

> (BTW, why is system mode *mkii not set in MkII?)

Maybe Hans forgot it for mkii but it doesn’t matter whether mkii/mkiv is a normal mode or a system mode.

Wolfgang



More information about the ntg-context mailing list