diff options
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html')
-rw-r--r-- | Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html index 97e41672260..1a2720a3b15 100644 --- a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-endingroup.html @@ -2,10 +2,10 @@ <title>UK TeX FAQ -- question label endingroup</title> </head><body> <h3><code>\</code><code>end</code> occurred inside a group</h3> -<p>The actual error we observe is: -<p> +<p/>The actual error we observe is: +<p/> <code>(\end occurred inside a group at level <</code><code><em>n</em></code><code>>)</code> -<p> +<p/> and it tells us that something we started in the document never got finished before we ended the document itself. The things involved (‘groups’) are what TeX uses for restricting the scope of things: @@ -13,14 +13,14 @@ you see them, for example, in the “traditional” font selection commands: <code>{\it stuff\/}</code> — if the closing brace is left off such a construct, the effect of <code>\</code><code>it</code> will last to the end of the document, and you’ll get the diagnostic. -<p>TeX itself doesn’t tell you where your problem is, but you can +<p/>TeX itself doesn’t tell you where your problem is, but you can often spot it by looking at the typeset output in a previewer. Otherwise, you can usually find mismatched braces using an intelligent editor (at least <code>emacs</code> and <i>winedt</i> offer this facility). However, groups are not <em>only</em> created by matching <code>{</code> with <code>}</code>: other grouping commands are discussed elsewhere in these FAQs, and are also a potential source of unclosed group. -<p><code>\</code><code>begin{<<i>environment</i>>}</code> encloses the environment’s body +<p/><code>\</code><code>begin{<<i>environment</i>>}</code> encloses the environment’s body in a group, and establishes its own diagnostic mechanism. If you end the document before closing some other environment, you get the ‘usual’ LaTeX diagnostic @@ -37,7 +37,7 @@ recognises other unclosed <code>\</code><code>begin{blob}</code> commands, and generates an “ended by” error message for each one, rather than producing the “occurred inside a group” message, which is sometimes useful (if you remember to load the package). -<p>In the absence of such information from LaTeX, you need to use +<p/>In the absence of such information from LaTeX, you need to use “traditional” binary search to find the offending group. Separate the preamble from the body of your file, and process each half on its own with the preamble; this tells you which half of the file is at @@ -45,7 +45,7 @@ fault. Divide again and repeat. The process needs to be conducted with care (it’s obviously possible to split a correctly-written group by chopping in the wrong place), but it will usually find the problem fairly quickly. -<p>e-TeX (and e-LaTeX — LaTeX run on e-TeX) gives you +<p/>e-TeX (and e-LaTeX — LaTeX run on e-TeX) gives you further diagnostics after the traditional infuriating TeX one — it actually keeps the information in a similar way to LaTeX: @@ -64,5 +64,5 @@ level). <dl> <dt><tt><i>checkend.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/bezos.zip">macros/latex/contrib/bezos</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/bezos.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/bezos/">browse</a>) </dl> -<p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=endingroup">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=endingroup</a> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=endingroup">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=endingroup</a> </body> |