Download TEXsis
Transcript
98
Miscellaneous Macros
hunconditional texti
\Ignore
Having obtained these eigenvalues we would like to
know their degeneracies. For a given $l$ the ...
...
It is relatively easy to show that the number of
independent components of such a tensor is ${N+l \choose l}$.
\endIgnore
hmore unconditional texti
then even if the block of text to be ignored spans many pages it can be restored simply
by changing the “\Ignore” to “%\Ignore.” Then the \Ignore is itself ignored, and when
TEX reaches the \endIgnore this also does nothing. The effect is the same as if these two
commands were completely removed from the manuscript file, but it is easily reversed.
Why are there two ways to ignore blocks of text? \comment was created first, and some
programmer-types may prefer it because of the similarity it bears to comments in the C
programming language. \Ignore is newer and probably a little more useful, but \comment
will remain for those who want to use it.
12.3. Checkpoint/Restart
The checkpoint/restart feature allows long documents to be printed in pieces. You can,
for example, process and print the first chapter of a thesis (or a book) and then later
do the same for following chapters. Saying \checkpoint{NAME} saves the settings of important counters like the current page number and the last equation number in a file
called NAME.chk. Saying \restart{NAME} reads in this file and resets the counters to their
previous values.
As an example consider a document with two major chapters. Using a Master File you
would first process the first chapters with the following:
\thesis
\input chap1
\checkpoint{chap1}
\bye
With this printed you could resume at the next page number with the correct subsequent
numbers for equations, figures and tables by saying:
\thesis
\restart{chap1}
\input chap2
\bye
Normally \checkpoint and \restart are silent, but you can say \endstat to see the
values of the counters saved by \checkpoint. The output looks like this: