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

Reinhard Kotucha reinhard.kotucha at web.de
Tue Apr 6 23:58:31 CEST 2010


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.  LaTeX is doing this deliberately in order to avoid an
unnecessary nesting level which probably loads the save stack.

\begin{document} looks like an ordinary environment but it isn't.

Please consult the LaTeX sources.  In latex.ltx you'll find a line 

   \def\document{\endgroup

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the tex-live mailing list