summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-footnpp.html
blob: 01d3bf92125ac5d24dd01cf2993c7a9d81fab8d6 (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
48
<head>
<title>UK TeX FAQ -- question label footnpp</title>
</head><body>
<h3>Footnotes numbered &#8220;per page&#8221;</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
(&#8220;tidily&#8221;) at the end of the printed page; so changing the footnote
number only ever works by &#8216;luck&#8217;.
<p/>As a result, resetting footnotes is inevitably a complicated process,
using labels of some sort.  It&#8217;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> and <i>zref-perpage</i> packages provide 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> (in <i>perpage</i>) or
<code>\</code><code>zmakeperpage{footnote}</code> (in <i>zref-perpage</i>).  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> (in <i>perpage</i>) or
<code>\</code><code>zmakeperpage[2]{footnote}</code> (in <i>zref-perpage</i>).
Note that you can also load <i>zref-perpage</i> 
<p/><i>Perpage</i> is a compact and efficient package;
<i>zref-perpage</i>, being a <i>zref</i> &#8220;module&#8221;, comes with
<i>zref</i>&#8217;s general mechanism for extending the the
<code>\</code><code>label</code>&#8212;<code>\</code><code>[page]ref</code> of LaTeX, which can offer many other
useful facilities.
<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&#8217;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&#8217;s
probably not particularly useful any more.
<dl>
<dt><tt><i>footmisc.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/footmisc.zip">macros/latex/contrib/footmisc</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/footmisc/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/footmisc.html">catalogue entry</a>
<dt><tt><i>footnpag.sty</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/contrib/footnpag.zip">macros/latex/contrib/footnpag</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/footnpag/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/footnpag.html">catalogue entry</a>
<dt><tt><i>perpage.sty</i></tt><dd>Distributed as part <a href="http://mirror.ctan.org/macros/latex/contrib/bigfoot.zip">macros/latex/contrib/bigfoot</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/bigfoot/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/perpage.html">catalogue entry</a>

<dt><tt><i>zref-perpage.sty</i></tt><dd>Distributed as part of <i>zref</i> in
  <a href="http://mirror.ctan.org/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://mirror.ctan.org/macros/latex/contrib/oberdiek/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/zref.html">catalogue entry</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>