diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html')
-rw-r--r-- | Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html new file mode 100644 index 00000000000..c4b0763ff22 --- /dev/null +++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html @@ -0,0 +1,38 @@ +<head> +<title>UK TeX FAQ -- question label crossref</title> +</head><body> +<h3>LaTeX gets cross-references wrong</h3> +<p/>Sometimes, however many times you run LaTeX, the cross-references +are just wrong. Remember that +the <code>\</code><code>label</code> command must come <em>after</em> the <code>\</code><code>caption</code> command, or +be part of it. For example, + +<pre> + \begin{figure} \begin{figure} + \caption{A Figure} or \caption{A Figure% + \label{fig} \label{fig}} + \end{figure} \end{figure} +</pre> +<p/>You can, just as effectively, shield the <code>\</code><code>caption</code> command from its +associated <code>\</code><code>label</code> command, by enclosing the caption in an +environment of its own. For example, people commonly seek help after: +<blockquote> +<pre> +\begin{center} + \caption{A Figure} +\end{center} +\label{fig} +</pre> +</blockquote><p> +has failed to label correctly. If you really need this centring (and +those in the know commonly reject it), code it as: +<blockquote> +<pre> +\begin{center} + \caption{A Figure} + \label{fig} +\end{center} +</pre> +</blockquote><p> +<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=crossref">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=crossref</a> +</body> |