[tex-live] Ignoring portion of LaTeX code; the \par problem.

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Apr 6 20:49:14 CEST 2010


On Tue, Apr 06, 2010 at 11:00:19AM -0500, Dan Luecking wrote:

> One possibility:
> 
> % appendix.tex
> \let\originaldocument\document
> \let\document\endinput

\def\document{\endgroup\endinput}
% \begin{document} opens a group via \begingroup

>   \input document.tex

\input{document}
% LaTeX provides better error handling.

> \let\document\originaldocument
> \begin{document}
>   Other text.
> \end{document}

Yours sincerely
  Heiko Oberdiek


More information about the tex-live mailing list