summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html84
1 files changed, 84 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html
new file mode 100644
index 00000000000..cd7e610c6c2
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-noline.html
@@ -0,0 +1,84 @@
+<head>
+<title>UK TeX FAQ -- question label noline</title>
+</head><body>
+<h3>No line here to end</h3>
+<p/>The error
+<blockquote>
+<pre>
+! LaTeX Error: There's no line here to end.
+
+See the LaTeX manual or LaTeX Companion for explanation.
+</pre>
+
+</blockquote><p>
+comes in reaction to you giving LaTeX a <code>\</code><code>\</code> command at a time
+when it&rsquo;s not expecting it. The commonest case is where you&rsquo;ve
+decided you want the label of a list item to be on a line of its own,
+so you&rsquo;ve written (for example):
+<blockquote>
+<pre>
+\begin{description}
+\item[Very long label] \\
+ Text...
+\end{description}
+</pre>
+</blockquote><p>
+<code>\</code><code>\</code> is actually a rather bad command to use in this case (even if
+it worked), since it would force the &lsquo;paragraph&rsquo; that&rsquo;s made up of the
+text of the item to terminate a line which has nothing on it but the
+label. This would lead to an &ldquo;<code>Underfull \hbox</code>&rdquo; warning message
+(usually with &lsquo;infinite&rsquo; badness of 10000); while this message doesn&rsquo;t
+do any actual harm other than slowing down your LaTeX run, any
+message that doesn&rsquo;t convey any information distracts for no useful
+purpose.
+<p/>The proper solution to the problem is to write a new sort of
+<code>description</code> environment, that does just what you&rsquo;re after. (The
+
+<a href="FAQ-books.html"><em>LaTeX Companion</em></a> offers a
+rather wide selection of variants of these things.)
+<p/>The quick-and-easy solution, which avoids the warning, is to write:
+<blockquote>
+<pre>
+\begin{description}
+\item[Very long label] \hspace*{\fill} \\
+ Text...
+\end{description}
+</pre>
+</blockquote><p>
+which fills out the under-full line before forcing its closure. The
+<i>expdlist</i> package provides the same functionality with its
+<code>\</code><code>breaklabel</code> command, and <i>mdwlist</i> provides it via its
+<code>\</code><code>desclabelstyle</code> command.
+<p/>The other common occasion for the message is when you&rsquo;re using the
+<code>center</code> (or <code>flushleft</code> or <code>flushright</code>)
+environment, and have decided you need extra separation between lines
+in the environment:
+<blockquote>
+<pre>
+\begin{center}
+ First (heading) line\\
+ \\
+ body of the centred text...
+\end{center}
+</pre>
+</blockquote><p>
+The solution here is plain: use the <code>\\</code> command in the way it&rsquo;s
+supposed to be used, to provide more than just a single line break
+space. <code>\\</code> takes an optional argument, which specifies
+how much extra space to add; the required effect in the text above can
+be had by saying:
+<blockquote>
+<pre>
+\begin{center}
+ First (heading) line\\[\baselineskip]
+ body of the centred text...
+\end{center}
+</pre>
+</blockquote><p>
+<dl>
+<dt><tt><i>expdlist.sty</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/expdlist.zip">macros/latex/contrib/expdlist</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/expdlist.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/expdlist/">browse</a>)
+<dt><tt><i>mdwlist.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.zip">macros/latex/contrib/mdwtools</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mdwtools.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mdwtools/">browse</a>)
+</dl>
+<p/>
+<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=noline">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=noline</a>
+</body>