diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/inrstex/inrstex/footnote.tex |
Initial commit
Diffstat (limited to 'macros/inrstex/inrstex/footnote.tex')
-rw-r--r-- | macros/inrstex/inrstex/footnote.tex | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/inrstex/inrstex/footnote.tex b/macros/inrstex/inrstex/footnote.tex new file mode 100644 index 0000000000..1f5afd4538 --- /dev/null +++ b/macros/inrstex/inrstex/footnote.tex @@ -0,0 +1,22 @@ +%-*-tex-*- +% Copyright Michael J. Ferguson, INRS-Telecommunications +% All rights reserved. + +%=========== Footnotes ---- similar to that in the texbook ====== + +%\newinsert\footins +\newtoks\everyfootnote % token list inserted before every footnote + % but after the parameters -- cannot affect \footins +\def\up#1{\nobreak$^{#1}\relax$} +\def\footnote#1{\let\@sf\empty + \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\fi + \up{#1}\@sf\sfootnote{#1}} +\def\sfootnote#1{\insert\footins\bgroup\footnotefont + \interlinepenalty100 \let\par=\endgraf + \leftskip=\z@skip \rightskip=\z@skip + \splittopskip=3ex plus 1pt minus 1pt \floatingpenalty=20000 + \smallskip\the\everyfootnote\relax + \item{\up{#1}}\bgroup\strut\aftergroup\@foot\let\next} +\skip\footins=3ex plus 2pt minus 4pt % space added when footnote is present +%\count\footins=1000 % footnote magnification factor (1 to 1) +\dimen\footins=10in % maximum footnotes per page |