summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html129
1 files changed, 0 insertions, 129 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html
deleted file mode 100644
index 66464aa1fe3..00000000000
--- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-errmissitem.html
+++ /dev/null
@@ -1,129 +0,0 @@
-<head>
-<title>UK TeX FAQ -- question label errmissitem</title>
-</head><body>
-<h3>Perhaps a missing <code>\</code><code>item</code>?</h3>
-<p/>Sometimes, the error
-<blockquote>
-<pre>
-Something's wrong--perhaps a missing \item
-</pre>
-</blockquote><p>
-actually means what it says:
-<blockquote>
-<pre>
-\begin{itemize}
- boo!
-\end{itemize}
-</pre>
-</blockquote><p>
-produces the error, and is plainly in need of an <code>\</code><code>item</code> command.
-<p/>You can also have the error appear when at first sight things are
-correct:
-<blockquote>
-<pre>
-\begin{tabular}{l}
- \begin{enumerate}
- \item foo\\
- \item bar
- \end{enumerate}
-\end{tabular}
-</pre>
-</blockquote><p>
-produces the error at the <code>\\</code>. This usage is just wrong; if you
-want to number the cells in a table, you have to do it &#8220;by hand&#8221;:
-<blockquote>
-<pre>
-\newcounter{tablecell}
-...
-\begin{tabular}{l}
- \stepcounter{tablecell}
- \thetablecell. foo\\
- \stepcounter{tablecell}
- \thetablecell. bar
-\end{tabular}
-</pre>
-</blockquote><p>
-This is obviously untidy; a command <code>\</code><code>numbercell</code> defined as:
-<blockquote>
-<pre>
-\newcounter{tablecell}
-...
-\newcommand*{\numbercell}{%
- \stepcounter{tablecell}%
- \thetablecell. % **
-}
-</pre>
-</blockquote><p>
-could make life easier:
-<blockquote>
-<pre>
-\begin{tabular}{l}
- \numbercell foo\\
- \numbercell bar
-\end{tabular}
-</pre>
-</blockquote><p>
-Note the deliberate introduction of a space as part of the command,
-marked with asterisks. Omitted above, the code needs to set the
-counter <code>tablecell</code> to zero
-(<code>\</code><code>setcounter{tablecell}{0}</code>) before each tabular that uses it.
-<p/>The error also regularly appears when you would never have thought
-that a <code>\</code><code>item</code> command might be appropriate. For example, the
-seemingly innocent:
-<blockquote>
-<pre>
-\fbox{%
- \begin{alltt}
- boo!
- \end{alltt}%
-}
-</pre>
-</blockquote><p>
-produces the error (the same happens with <code>\</code><code>mbox</code> in place of
-<code>\</code><code>fbox</code>, or with either of their &#8220;big brothers&#8221;, <code>\</code><code>framebox</code> and
-<code>\</code><code>makebox</code>). This is because the <code>alltt</code> environment
-uses a &#8220;trivial&#8221; list, hidden inside their definition. (The
-<code>itemize</code> environment also has this construct inside
-itself, in fact, so <code>\</code><code>begin{itemize}</code> won&#8217;t work inside an
-<code>\</code><code>fbox</code>, either.) The list construct wants to happen between
-paragraphs, so it makes a new paragraph of its own. Inside the
-<code>\</code><code>fbox</code> command, that doesn&#8217;t work, and subsequent macros convince
-themselves that there&#8217;s a missing <code>\</code><code>item</code> command.
-<p/>To solve this rather cryptic error, one must put the
-<code>alltt</code> inside a paragraph-style box. The following
-modification of the above <em>does</em> work:
-<blockquote>
-<pre>
-\fbox{%
- \begin{minipage}{0.75\textwidth}
- \begin{alltt}
- hi, there!
- \end{alltt}
- \end{minipage}
-}
-</pre>
-</blockquote><p>
-The code above produces a box that&#8217;s far too wide for the text. One
-may want to use something that allows
-<a href="FAQ-varwidth.html">variable size boxes</a> in place of the
-<code>minipage</code> environment.
-<p/>Oddly, although the <code>verbatim</code> environment wouldn&#8217;t work
-inside a <code>\</code><code>fbox</code> command argument (see
-<a href="FAQ-verbwithin.html">verbatim in command arguments</a>), you
-get an error that complains about <code>\</code><code>item</code>: the environment&#8217;s
-internal list bites you before <code>verbatim</code> has even had a
-chance to create its own sort of chaos.
-<p/>Another (seemingly) obvious use of <code>\</code><code>fbox</code> also falls foul of this
-error:
-<blockquote>
-<pre>
-\fbox{\section{Boxy section}}
-</pre>
-</blockquote><p>
-This is a case where you&#8217;ve simply got to be more subtle; you should
-either write your own macros to replace the insides of LaTeX&#8217;s
-sectioning macros, or look for some alternative in the packages
-discussed in
-&#8220;<a href="FAQ-secthead.html">The style of section headings</a>&#8221;.
-<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=errmissitem">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=errmissitem</a>
-</body>