[texhax] dual-use input/output macro
Uwe Lück
uwe.lueck at web.de
Wed Nov 1 23:47:55 CET 2006
More precisely and interesting about Peter Szabo's examplep package:
> >Karl Berry :
> >>Suppose I want to show both the TeX input and its corresponding output
> >>as an example. Not big files, but just small fragments. As in:
> >>
> >> \showme{hello, \relax there}
> >>
> >>and the typeset output could be, say, two lines:
> >>
> >> hello, \relax there % in typewriter
> >> hello, there % in roman
> >>
> >>I cannot think of any easy way to do this. About all I can imagine is
> >>changing all the catcodes to other before reading the argument, printing
> >>the arg in tt, then writing the arg to an external file, and
> >>reading it back with normal catcodes to get the normal output.
>
>At 21:54 17.11.05, Lars Madsen wrote:
>[snipping]
> >Peter Sabo gave a talk about it at EuroTeX 2005.
At 21:37 17.10.06, Uwe Lück wrote:
>Indeed, Peter Szabo,
>
> CTAN: /macros/latex/contrib/examplep/[eurotex_2005_examplep.pdf]
In googling for something different, I found what Karl may
find mostly interesting: the previous .pdf contains, right before section 3.1:
simple side-by-side display emulation without temporary files
Cheers,
Uwe.
More information about the texhax
mailing list