Debian Codegraph @

texmf-dist/doc/latex/fn2end/fn2end.tex

raw
1 \documentclass{article}
2 \newcommand{\cs}[1]{\mbox{\tt\bs#1}}% for control sequences
3 \newcommand{\bs}{\char '134 } % A backslash character for \tt font
4 \newcommand{\file}[1]{\mbox{\tt #1}}
5
6 \title{The {\tt fn2end.sty} style}
7 \author{KC Border}
8 \date{May 31, 1995}
9
10 \begin{document}
11 \maketitle
12
13 The \file{fn2end.sty} package converts footnotes into
14 end notes, where a lot of publishers want them. It
15 does so by redefining the action of the \cs{footnote}
16 command. Instead of putting footnotes at the bottom
17 of the page, the notes are written to a file with
18 extension \file{end}, whence they may be retrieved
19 when desired. To handle footnotes on the title page
20 flexibly, \cs{footnote} is not redefined until the
21 \cs{makeendnotes} command is issued. Place the
22 command \cs{theendnotes} where you want the notes
23 to appear: after the last footnote, usually right
24 before the bibliography. The \cs{theendotes} command
25 merely \cs{inputs} the \file{end} file, it does {\em
26 not} create a new section or a new page. If you do
27 create a notes section with the \cs{section} command,
28 you should follow it with an \cs{indent} command.
29 Otherwise, the first note will be the only note that
30 does not start with an indented paragraph.
31
32 There are now user renewable commands. The length
33 \cs{noteskip} is the space between the note number
34 and the start of the note text. By default it is 1
35 em. Change its value with the \cs{setlength} command.
36 You can use \cs{renewcommand} to change
37 \cs{notenumberformat}, which formats the note number.
38 By default it is defined as
39 \begin{verbatim}
40 \newcommand{\notenumberformat}[1]{$#1$}
41 \end{verbatim}
42 If you want the end note numbers to appear as
43 superscripts with periods, you could
44 \begin{verbatim}
45 \renewcommand{\notenumberformat}[1]{${}^{#1.}$}
46 \end{verbatim}
47
48 Successive \cs{makeendnotes} commands overwrite the
49 notes file. This is a feature, not a bug. For
50 example:
51 \begin{verbatim}
52 \makeendnotes
53
54 \chapter{One}
55 blah
56 \section*{Notes}\indent
57 \theendnotes
58
59 \makeendnotes
60
61 \chapter{Two}
62 blah
63 \section*{Notes}\indent
64 \theendnotes
65 \end{verbatim}
66 etc, can be used to put notes at the end of each
67 chapter. (This is perverse because it makes the
68 notes nearly impossible to find, but some publishers
69 like it.)
70
71 Additionally, \cs{restorefootnotes} restores the
72 normal behavior of footnotes, so that if you really
73 wanted to, you could have a title page for each
74 chapter with acknowledgment footnotes on the bottom,
75 and thereafter have end notes for the rest of the
76 material in the chapter.
77
78
79 {\em Bug}: Since \verb#\# is catcoded to 12 for
80 verbatim copying, if your footnote's text contains
81 an unequal number of \verb#\{#'s and \verb#\}#'s,
82 for instance, if you have a \verb#\left\{# balanced
83 by a \verb#\right.#, then \TeX\ believes you have
84 unmatched braces and does not figure out where the
85 argument of the \cs{footnote} command ends. (Believe
86 it or not, this happened to me the first time I
87 tried to use the style.)
88 {\em Workaround}: Use \verb#\lbrace# and \verb#\rbrace#
89 in your footnotes instead of \verb#\{# and \verb#\}#.
90
91 \end{document}