28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.10. Footnotes <strong>and</strong> marginal notes 115<br />

If there are a number of \footnotemark comm<strong>and</strong>s without optional<br />

arguments appearing before the next \footnotetext comm<strong>and</strong>, it is<br />

necessary <strong>to</strong> adjust the counter with the comm<strong>and</strong><br />

\add<strong>to</strong>counter{footnote}{dif }<br />

where dif is a negative number saying how many times the counter must<br />

be set back. Then before every \footnotetext comm<strong>and</strong>, the counter<br />

must be incremented by one. This can be done either with the comm<strong>and</strong><br />

\add<strong>to</strong>counter, with dif =1, or with the comm<strong>and</strong><br />

\stepcounter{footnote}<br />

which adds 1 <strong>to</strong> the given counter.<br />

For example: mosqui<strong>to</strong>es 3 <strong>and</strong> elephants 4<br />

For example: \fbox{mosqui<strong>to</strong>es\footnotemark\ <strong>and</strong><br />

elephants\footnotemark}<br />

generates the footnote markers 3 <strong>and</strong> 4 . Now the counter has the value 4.<br />

In order for the first \footnotetext outside the framed box <strong>to</strong> operate<br />

with the correct counter value, it must first be decremented by one. The<br />

two footnote texts are made with<br />

\add<strong>to</strong>counter{footnote}{-1}\footnotetext{Small insects}<br />

\stepcounter{footnote}\footnotetext{Large mammals}<br />

immediately following the \fbox{} comm<strong>and</strong>. The footnote counter now<br />

has the same value as it did on leaving the \fbox.<br />

4.10.4 Footnotes in minipages<br />

As mentioned in Section 4.10.1, footnote comm<strong>and</strong>s are allowed inside<br />

the minipage environment. However, the footnote appears underneath<br />

the minipage, not below the main page.<br />

Footnote comm<strong>and</strong>s within a minipage<br />

a have a different marker style.<br />

The footnote comes after the next<br />

\end{minipage} comm<strong>and</strong>. b Minipage<br />

footnotes have a counter separate from<br />

that of the main page, called mpfootnote,<br />

counting independently of footnote.<br />

a The marker is a raised lower-case letter.<br />

b Watch out for nested minipages.<br />

\begin{minipage}{6cm}<br />

Footnote comm<strong>and</strong>s within<br />

a minipage\footnote{The<br />

marker is a raised<br />

lower-case letter.} have<br />

a different...<br />

\end{minipage}<br />

Footnotes within a tabular environment can normally only be generated<br />

! with the comm<strong>and</strong>s described above: \footnotemark within the table <strong>and</strong><br />

3 Small insects<br />

4 Large mammals

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!