summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-mathonlyref.html
blob: 317eb2cd79808fc9ed45110be76e1c3408698d26 (plain)
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
<head>
<title>UK TeX FAQ -- question label mathonlyref</title>
</head><body>
<h3>Numbers for referenced equations only</h3>
<p/>There are those who consider that papers look untidy with numbers on
every equation; there is also a school of thought that claims that
there should be numbers everywhere, in case some reader wants to make
reference an equation to which the author made no cross-reference.
<p/>If you hold to the &ldquo;only cross-referenced&rdquo; school of thought, you
can (using the <code>\</code><code>nonumber</code> command on the relevant equations, or by
using the AMSLaTeX unnumbered environments such as
<code>equation*</code>) mark those of your equations to which you
make no reference.  In a long or complex paper, this procedure could
well become deeply tedious.
<p/>Fortunately, help is at hand: the <i>mh</i> bundle&rsquo;s
<i>mathtools</i> package offers a &lsquo;<code>showonlyrefs</code>&rsquo;
switch through its <code>\</code><code>mathtoolsset</code> command; when that&rsquo;s in
operation, only those equations to which you make reference will be
numbered in the final output.  See the package&rsquo;s documentation for
details of how to make references when the switch is in effect.
<dl>
<dt><tt><i>mathtools.sty</i></tt><dd>Distributed as part of <a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mh.zip">macros/latex/contrib/mh</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/contrib/mh.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/mh/">browse</a>)
</dl>
<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=mathonlyref">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=mathonlyref</a>
</body>