summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fnbreak
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:55:57 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:55:57 +0000
commitf6a91258fbf82d74e99e47f825006dba58215297 (patch)
treeafb65c0db7f713b1412ac2c4bf3912f9c37b8433 /Master/texmf-dist/tex/latex/fnbreak
parent6c7621f5f97859c7bec9827d2756a9da8195fd04 (diff)
fnbreak
git-svn-id: svn://tug.org/texlive/trunk@927 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fnbreak')
-rw-r--r--Master/texmf-dist/tex/latex/fnbreak/fnbreak.sty97
1 files changed, 97 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/fnbreak/fnbreak.sty b/Master/texmf-dist/tex/latex/fnbreak/fnbreak.sty
new file mode 100644
index 00000000000..59b1171980c
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/fnbreak/fnbreak.sty
@@ -0,0 +1,97 @@
+%%
+%% This is file `fnbreak.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fnbreak.dtx (with options: `package')
+%%
+%% fnbreak package
+%%
+%% Copyright 2003, 2004 Harald Harders
+%%
+%% This program can be redistributed and/or modified under the terms
+%% of the LaTeX Project Public License Distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt; either
+%% version 1.3 of the License, or any later version.
+%%
+%% h.harders@tu-bs.de
+%%
+\ProvidesPackage{fnbreak}
+ [2004/04/06 v1.10 Warning for pagebreak in footnote (HH)]
+\newif\iffnb@showlabel
+\fnb@showlabeltrue
+\newif\iffnb@verbose
+\DeclareOption{nolabel}{\fnb@showlabelfalse}
+\DeclareOption{verbose}{\fnb@verbosetrue}
+\ProcessOptions\relax
+\xdef\fnb@@footnotestartnum{0}
+\xdef\fnb@@footnotestartpage{0}
+\def\fnb@footnotestart#1#2#3{}
+\def\fnb@footnoteend#1#2#3{}
+\AtBeginDocument{%
+ \def\fnb@footnotestart#1#2#3{%
+ \xdef\fnb@@footnotestartnum{#1}%
+ \xdef\fnb@@footnotestartpage{#3}%
+ }%
+ \def\fnb@footnoteend#1#2#3{%
+ \xdef\fnb@@footnoteendnum{#1}%
+ \xdef\fnb@@footnoteendpage{#3}%
+ \ifx\fnb@@footnotestartnum\fnb@@footnoteendnum
+ \ifx\fnb@@footnotestartpage\fnb@@footnoteendpage
+ \iffnb@verbose
+ \message{Package fnbreak: Footnote number #1
+ \iffnb@showlabel(label `#2') \fi^^J%
+ \space\space\space\space\space\space
+ \space\space\space\space\space\space
+ \space\space\space\space\space
+ completely on page #3.}%
+ \fi
+ \else
+ \PackageWarningNoLine{fnbreak}{Footnote number #1
+ \iffnb@showlabel(label `#2')\fi
+ \MessageBreak
+ has been split over different pages:\MessageBreak
+ page \fnb@@footnotestartpage\space to page #3}%
+ \def\fnb@globalwarning{%
+ \PackageWarningNoLine{fnbreak}{There are footnotes with a
+ pagebreak.\MessageBreak
+ Check if they are acceptable}%
+ }%
+ \fi
+ \else
+ \PackageError{fnbreak}{Internal problem:\MessageBreak
+ Start and stop marker of footnote do not fit:\MessageBreak
+ start: \fnb@@footnotestartnum, page \fnb@@footnotestartpage,
+ end: #1, page #3}{%
+ This error may not happen.
+ Please try to make a short example which shows this behaviour
+ and send a bug report to h.harders@tu-bs.de.}%
+ \fi
+ }%
+ }
+ \def\fnb@fnstart{\@bsphack
+ \protected@write\@auxout{}{%
+ \string\fnb@footnotestart{\the\c@footnote}{\thefootnote}{\thepage}%
+ }%
+ \@esphack
+ }
+ \def\fnb@fnend{\@bsphack
+ \protected@write\@auxout{}{%
+ \string\fnb@footnoteend{\the\c@footnote}{\thefootnote}{\thepage}%
+ }%
+ \@esphack
+ }
+\AtBeginDocument{%
+ \newcommand\fnb@orig@footnotetext{}%
+ \let\fnb@orig@footnotetext\@footnotetext
+ \long\def\@footnotetext#1{\fnb@orig@footnotetext{\fnb@fnstart#1\fnb@fnend}}%
+ \newcommand\fnb@dofilelist{}%
+ \let\fnb@dofilelist\@dofilelist
+ \def\@dofilelist{\fnb@dofilelist\fnb@globalwarning}%
+}
+\newcommand\fnb@globalwarning{}%
+\let\fnb@globalwarning\relax
+\endinput
+%%
+%% End of file `fnbreak.sty'.