summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-footnpp.html
blob: ed513725555a714fd8cd67634f6506c8ebfcd60c (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<head>
<title>UK TeX FAQ -- question label footnpp</title>
</head><body>
<h3>Footnotes numbered &ldquo;per page&rdquo;</h3>
<p/>The obvious solution is to make the footnote number reset whenever the
page number is stepped, using the 
<a href="FAQ-addtoreset.html">LaTeX internal mechanism</a>.  Sadly, the place
in the document where the page number is stepped is unpredictable, not
(&ldquo;tidily&rdquo;) at the end of the printed page; so changing the footnote
number only ever works by &lsquo;luck&rsquo;.
<p/>As a result, resetting footnotes is inevitably a complicated process,
using labels of some sort.  It&rsquo;s nevertheless important, given the
common requirement for footnotes marked by symbols (with painfully
small symbol sets).  There are four packages that manage it, one way
or another.
<p/>The <i>perpage</i> package provides a general mechanism for
resetting counters per page, so can obviously be used for this task.
The interface is pretty simple: <code>\</code><code>MakePerPage{footnote}</code> will
do the job.  If you want to restart the counter at something other
than 1 (for example to avoid something in the LaTeX footnote symbol
list), you can use: <code>\</code><code>MakePerPage[2]{footnote}</code>.  It&rsquo;s a
first-rate package, small and efficient.
<p/>The <i>zref</i> package provides the same facilities with its
<code>perpage</code> module, which defines a command <code>\</code><code>zmakeperpage</code>
whose syntax is identical to that of <i>perpage</i>, above.  You can
load the module by <code>\</code><code>usepackage[perpage]{zref}</code> (or as
<code>\</code><code>usepackage{zref-perpage}</code>, if your needs so require &mdash;
look at <i>zref</i>&rsquo;s documentation for details).
<p/>The <i>footmisc</i> package provides a variety of means of
controlling footnote appearance, among them a package option
<code>perpage</code> that adjusts the numbering per page; if you&rsquo;re
doing something else odd about footnotes, it means you may only need
the one package to achieve your ends.
<p/>The <i>footnpag</i> package also does per-page footnotes (and
nothing else).  With the competition from <i>perpage</i>, it&rsquo;s
probably not particularly useful any more.  (Documentation is
<i>footnpag-user.pdf</i> in the distribution.)
<dl>
<dt><tt><i>footmisc.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/footmisc.zip">macros/latex/contrib/footmisc</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/footmisc/">browse the directory</a>)
<dt><tt><i>footnpag.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/footnpag.zip">macros/latex/contrib/footnpag</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/footnpag/">browse the directory</a>)
<dt><tt><i>perpage.sty</i></tt><dd>Distributed as part <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/bigfoot.zip">macros/latex/contrib/bigfoot</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/bigfoot/">browse the directory</a>)
<dt><tt><i>zref.sty</i></tt><dd>Distributed as a collection member in <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>)
<dt><tt><i>zref-perpage.sty</i></tt><dd>Distributed as a collection member in
  <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk  tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footnpp">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=footnpp</a>
</body>