[texhax] Alignment in a \newwrite file?
Rodolfo Medina
romeomedina at libero.it
Fri Aug 20 22:49:13 CEST 2004
Hi, all.
In plain TeX format:
I want to output stuff into a file, let's call it `bluefile.tex'.
In `myfile.tex' I say:
%%%%%%%%%%%%%%%%%%%%begin of myfile.tex%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newwrite\blue
\immediate\openout\blue=bluefile
\outer\def\putstuffoverthere#1#2{\immediate\write\blue{#1, #2!}}
\putstuffoverthere{Hallo}{folks}
\immediate\closeout\blue
{\catcode`@=11 \input bluefile }
\bye
%%%%%%%%%%%%%%%%%%%end of myfile.tex%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
and got
Hallo, folks!
in the ouput file.
Now, I would like all the stuff that gets into bluefile.tex to be aligned
according, e.g., to the template
\halign{#&#\cr}
, i.e. all the bluefile.tex to be structured according to that alignment
template.
Is it possible to achieve this, and how?
Thanks,
Rodolfo
More information about the texhax
mailing list