summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-22 23:51:44 +0000
committerKarl Berry <karl@freefriends.org>2009-05-22 23:51:44 +0000
commit566f5207d7e3cafb0633d31277067336ccd9cca7 (patch)
tree7af53e7ac405185168bc1dc38c4e820f442b78d0 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-crossref.html
parentb0beea26ffffd915bb6d9b82f2d65a0a05b7e23b (diff)
move generic english documents out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13396 c570f23f-e606-0410-a88d-b1316a301751
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.html38
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>