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

Heiko Oberdiek heiko.oberdiek at googlemail.com
Wed Apr 7 00:31:11 CEST 2010


On Tue, Apr 06, 2010 at 11:58:31PM +0200, Reinhard Kotucha wrote:

> On 6 April 2010 Heiko Oberdiek wrote:
> 
>  > % \begin{document} opens a group via \begingroup
> 
> No, it doesn't.  The opposite is the case.
> 
> \begin opens a new group with \begingroup and \document closes it with
> \endgroup.

The point is that the redefined \document does *not* close
the group opened by \begin. Therefore I have provided a fix
for this:
  \def\document{\endgroup\endinput}

Yours sincerely
  Heiko Oberdiek


More information about the tex-live mailing list