[latexrefman-commits] r397 - in /trunk: ChangeLog latex2e.texi
jhefferon at domain.hid
jhefferon at domain.hid
Tue Aug 11 23:48:28 CEST 2015
Author: jhefferon
Date: Tue Aug 11 23:48:27 2015
New Revision: 397
URL: http://svn.gna.org/viewcvs/latexrefman?rev=397&view=rev
Log:
document environment
Modified:
trunk/ChangeLog
trunk/latex2e.texi
Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=397&r1=396&r2=397&view=diff
==============================================================================
--- trunk/ChangeLog (original)
+++ trunk/ChangeLog Tue Aug 11 23:48:27 2015
@@ -1,3 +1,8 @@
+2015-08-11 Jim Hefferon <jhefferon at domain.hid>
+
+ * latex2e.texi (document): Add nodes for \AtBeginDocument and
+ \AtEndDocument.
+
2015-08-11 Jim Hefferon <jhefferon at domain.hid>
* latex2e.texi (displaymath): Add detail and an example. Include
Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=397&r1=396&r2=397&view=diff
==============================================================================
--- trunk/latex2e.texi (original)
+++ trunk/latex2e.texi Tue Aug 11 23:48:27 2015
@@ -230,12 +230,12 @@
@section Starting and ending
@anchor{Starting & ending}@c old name
- at domain.hid starting & ending
- at domain.hid ending & starting
+ at cindex starting and ending
+ at cindex ending and starting
@cindex hello, world
- at domain.hid{} files have a simple global structure, with a standard
-starting and ending. Here is a ``hello, world'' example:
+ at LaTeX{} files have a simple global structure, with a standard start and
+end. Here is a ``hello, world'' example:
@example
\documentclass at domain.hid@}
@@ -258,7 +258,7 @@
The @code{\begin at domain.hid@} ... \end at domain.hid@}} is a so-called
@dfn{environment}; the @samp{document} environment (and no others) is
-required in all @LaTeX{} documents. @LaTeX{} provides many
+required in all @LaTeX{} documents (@pxref{document}). @LaTeX{} provides many
environments itself, and many more are defined separately.
@xref{Environments}.
@@ -1990,8 +1990,56 @@
@findex document @r{environment}
-The @code{document} environment encloses the body of a document.
+The @code{document} environment encloses the entire body of a document.
It is required in every @LaTeX{} document. @xref{Starting and ending}.
+
+ at menu
+* \AtBeginDocument:: Hook for commands at the start of the document.
+* \AtEndDocument:: Hook for commands at the end of the document.
+ at end menu
+
+
+ at node \AtBeginDocument
+
+ at findex \AtBeginDocument
+ at cindex beginning of document hook
+
+Synopsis:
+
+ at example
+\AtBeginDocument at domain.hid}@}
+ at end example
+
+Save @var{code} and execute it when @code{\begin at domain.hid@}} is
+executed, at the very end of the preamble. The code is executed after
+the font selection tables have been set up so the normal font for the
+document is the current font. However, the code is executed as part of
+the preamble so you cannot do any typesetting with the code.
+
+You can issue the command more than once; the successive code lines will
+be executed in the order that you gave them.
+
+
+ at node \AtEndDocument
+
+ at findex \AtEndDocument
+ at cindex end of document hook
+
+Synopsis:
+
+ at example
+\AtEndDocument at domain.hid}@}
+ at end example
+
+Save @var{code} and execute it near the end of the document.
+Specifically, it is executed when @code{\end at domain.hid@}} is executed,
+before the final page is finished and before any leftover floating
+environments are processed. If you want some of the code to be executed
+after these two processes then include a @code{\clearpage} at the
+appropriate point in @var{code}.
+
+You can issue the command more than once; the successive code lines will
+be executed in the order that you gave them.
@node enumerate
More information about the latexrefman-commits
mailing list