File: FAQ-reuseq.html

package info (click to toggle)
tetex-base 3.0.dfsg.3-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 239,540 kB
  • ctags: 10,610
  • sloc: xml: 103,461; perl: 9,398; ruby: 2,850; python: 1,551; php: 1,067; sh: 981; lisp: 494; makefile: 371; awk: 88
file content (37 lines) | stat: -rw-r--r-- 1,775 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<head>
<title>UK TeX FAQ -- question label reuseq</title>
</head><body>
<h3>Re-using an equation</h3>
<p>To repeat an existing equation, one wants not only to have the same
mathematics in it, one also wants to re-use the original label it had.
The <i>amsmath</i> package comes to our help, here:
<blockquote>
<pre>
\usepackage{amsmath}
...
\begin{equation}
  a=b
  \label{eq1}
\end{equation}
...
Remember that
\begin{equation}
  a=b
  \tag{\ref{eq1}}
\end{equation}
</pre>
</blockquote>
Here, the second instance of a=b will be
typeset with a copy, made by the <code>\</code><code>tag</code> command, of the label of the
first instance.
<p>Comprehensive documentation of AMSLaTeX is to be found in
<i>amsldoc</i>, in the distribution; it is also available on the web
at <a href="ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf">ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf</a>
<dl>
<dt><tt><i>amsldoc.tex</i></tt><dd>Distributed as part of AMSLaTeX
  <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.tar.gz">macros/latex/required/amslatex</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/amslatex/">browse</a>)
<dt><tt><i>amsmath.sty</i></tt><dd>Distributed as part of AMSLaTeX
  <a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.tar.gz">macros/latex/required/amslatex</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/amslatex.zip">zip</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/amslatex/">browse</a>)
</dl>
<p><p><p><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=reuseq">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=reuseq</a>
</body>