LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Hans Aberg <[log in to unmask]>
Fri, 7 Mar 1997 13:47:37 +0100
text/plain (45 lines)
  This relates to stuff discussed earlier in this group, on how to make TeX
backtrack, in order to enable LaTeX to do certain things, like typesetting
certain music scores, producing helpfiles and reading those in one run,

  One way to do this backracking, is having TeX inputing the file needed to
be worked several times, but I want to point out that it is possible having
the file itself doing that input:

  With the code (put in the file named "thisfile.tex", typeset in PlainTeX)

\def\inputonce#1 {%
  \expandafter\ifx\csname #1/read\endcsname\relax%
    \expandafter\def\csname #1/read\endcsname{true}%
    \input #1 %

\inputonce thisfile.tex

Test Text.



More stuff.


The "Test Text" is typeset exactly twice, whereas the "More stuff" is
typeset once.

-- It looks as though that one might fiddle around with this idea, to
produce more controlled forms of back-tracking.

  Hans Aberg