From e92f643b99a97c1ce1e3c1424f9d27a4155e6b0e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 31 Dec 2008 18:45:12 +0000 Subject: new separated latex package fn2end (29dec08) git-svn-id: svn://tug.org/texlive/trunk@11769 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/fn2end/fn2end.pdf | Bin 0 -> 28659 bytes Master/texmf-dist/doc/latex/fn2end/fn2end.tex | 91 ++++++++++++ Master/texmf-dist/tex/latex/fn2end/fn2end.sty | 80 +++++++++++ Master/texmf-dist/tex/latex/ltxmisc/fn2end.sty | 173 ----------------------- Master/tlpkg/bin/ctan2tds | 4 + Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 + Master/tlpkg/tlpsrc/fn2end.tlpsrc | 2 + 8 files changed, 179 insertions(+), 174 deletions(-) create mode 100755 Master/texmf-dist/doc/latex/fn2end/fn2end.pdf create mode 100644 Master/texmf-dist/doc/latex/fn2end/fn2end.tex create mode 100644 Master/texmf-dist/tex/latex/fn2end/fn2end.sty delete mode 100644 Master/texmf-dist/tex/latex/ltxmisc/fn2end.sty create mode 100644 Master/tlpkg/tlpsrc/fn2end.tlpsrc diff --git a/Master/texmf-dist/doc/latex/fn2end/fn2end.pdf b/Master/texmf-dist/doc/latex/fn2end/fn2end.pdf new file mode 100755 index 00000000000..a3479cf15c2 Binary files /dev/null and b/Master/texmf-dist/doc/latex/fn2end/fn2end.pdf differ diff --git a/Master/texmf-dist/doc/latex/fn2end/fn2end.tex b/Master/texmf-dist/doc/latex/fn2end/fn2end.tex new file mode 100644 index 00000000000..4c6619aadfb --- /dev/null +++ b/Master/texmf-dist/doc/latex/fn2end/fn2end.tex @@ -0,0 +1,91 @@ +\documentclass{article} +\newcommand{\cs}[1]{\mbox{\tt\bs#1}}% for control sequences +\newcommand{\bs}{\char '134 } % A backslash character for \tt font +\newcommand{\file}[1]{\mbox{\tt #1}} + +\title{The {\tt fn2end.sty} style} +\author{KC Border} +\date{May 31, 1995} + +\begin{document} +\maketitle + +The \file{fn2end.sty} package converts footnotes into +end notes, where a lot of publishers want them. It +does so by redefining the action of the \cs{footnote} +command. Instead of putting footnotes at the bottom +of the page, the notes are written to a file with +extension \file{end}, whence they may be retrieved +when desired. To handle footnotes on the title page +flexibly, \cs{footnote} is not redefined until the +\cs{makeendnotes} command is issued. Place the +command \cs{theendnotes} where you want the notes +to appear: after the last footnote, usually right +before the bibliography. The \cs{theendotes} command +merely \cs{inputs} the \file{end} file, it does {\em +not} create a new section or a new page. If you do +create a notes section with the \cs{section} command, +you should follow it with an \cs{indent} command. +Otherwise, the first note will be the only note that +does not start with an indented paragraph. + +There are now user renewable commands. The length +\cs{noteskip} is the space between the note number +and the start of the note text. By default it is 1 +em. Change its value with the \cs{setlength} command. +You can use \cs{renewcommand} to change +\cs{notenumberformat}, which formats the note number. +By default it is defined as +\begin{verbatim} + \newcommand{\notenumberformat}[1]{$#1$} +\end{verbatim} +If you want the end note numbers to appear as +superscripts with periods, you could +\begin{verbatim} + \renewcommand{\notenumberformat}[1]{${}^{#1.}$} +\end{verbatim} + +Successive \cs{makeendnotes} commands overwrite the +notes file. This is a feature, not a bug. For +example: +\begin{verbatim} + \makeendnotes + + \chapter{One} + blah + \section*{Notes}\indent + \theendnotes + + \makeendnotes + + \chapter{Two} + blah + \section*{Notes}\indent + \theendnotes +\end{verbatim} +etc, can be used to put notes at the end of each +chapter. (This is perverse because it makes the +notes nearly impossible to find, but some publishers +like it.) + +Additionally, \cs{restorefootnotes} restores the +normal behavior of footnotes, so that if you really +wanted to, you could have a title page for each +chapter with acknowledgment footnotes on the bottom, +and thereafter have end notes for the rest of the +material in the chapter. + + +{\em Bug}: Since \verb#\# is catcoded to 12 for +verbatim copying, if your footnote's text contains +an unequal number of \verb#\{#'s and \verb#\}#'s, +for instance, if you have a \verb#\left\{# balanced +by a \verb#\right.#, then \TeX\ believes you have +unmatched braces and does not figure out where the +argument of the \cs{footnote} command ends. (Believe +it or not, this happened to me the first time I +tried to use the style.) +{\em Workaround}: Use \verb#\lbrace# and \verb#\rbrace# +in your footnotes instead of \verb#\{# and \verb#\}#. + +\end{document} diff --git a/Master/texmf-dist/tex/latex/fn2end/fn2end.sty b/Master/texmf-dist/tex/latex/fn2end/fn2end.sty new file mode 100644 index 00000000000..c8ed8478ac7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fn2end/fn2end.sty @@ -0,0 +1,80 @@ +% fn2end.sty Convert footnotes into end notes. +% LaTeXable documentation at end (after \endinput) +% LaTeX 2.09 users, should comment out this line: +\ProvidesPackage{fn2end}[1995/05/31 Convert footnotes into end notes.] + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% This file may be freely copied, and distributed. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Author: +% Kim C. Border, +% Division of the Humanities and Social Sciences, +% Caltech, Pasadena, CA 91125 USA +% e-mail: kcb@hss.caltech.edu + +% I gratefully acknowledge the help of J. E. Burke +% at Johns Hopkins, who fixed +% the handling of long footnotes. +% The main idea is from Knuth's \answer macro in the TeXbook. + +% version 1.1, May 31, 1995 +% Changed \endnoteshere to \theendnotes, since you +% shouldn't use commands that begin with \end +% Also added user renewable parameters + +% Based on my old endnotes.sty, version 3 +% (Sep 4, 1990, rev. Jul 28, 1994), which was never posted. +% It appears to work with both LaTeX2e and LaTeX2.09 + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% User redefinable parameters +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newlength{\noteskip} +\setlength{\noteskip}{1em} +\newcommand{\notenumberformat}[1]{$#1$} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Save the original definition of \@footnotetext +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\let\original@footnotetext\@footnotetext + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Define \makeendnotes to open a new file +% for the endnotes and to redefine \@footnotetext +% (\newlinechar courtesy of J E Burke) +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\makeendnotes}{\newwrite\n@tefile + \immediate\openout\n@tefile=\jobname.end + \immediate\write\n@tefile{\relax} + \long\gdef\@footnotetext{\immediate\write\n@tefile{} + \begingroup\newlinechar=`\^^M + \catcode`\^^M=12\@setupcopy\@copynote}} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% The verbatim copying definitions +% based on the TeXbook's \answer macro +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\@setupcopy}{\@sanitize} +\newcommand{\@copynote}{} +\long\gdef\@copynote#1{% + \immediate\write\n@tefile{\notenumberformat{\@thefnmark}% + \hskip\noteskip}% + \immediate\write\n@tefile{#1}\endgroup} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Define \theendnotes to retrieve them +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\theendnotes}{\immediate\closeout\n@tefile + \input\jobname.end\relax} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Define \restorefootnotes +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\newcommand{\restorefootnotes}{\long\gdef\@footnotetext{\original@footnotetext}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\endinput diff --git a/Master/texmf-dist/tex/latex/ltxmisc/fn2end.sty b/Master/texmf-dist/tex/latex/ltxmisc/fn2end.sty deleted file mode 100644 index 1e3378238dc..00000000000 --- a/Master/texmf-dist/tex/latex/ltxmisc/fn2end.sty +++ /dev/null @@ -1,173 +0,0 @@ -% fn2end.sty Convert footnotes into end notes. -% LaTeXable documentation at end (after \endinput) -% LaTeX 2.09 users, should comment out this line: -\ProvidesPackage{fn2end}[1995/05/31 Convert footnotes into end notes.] - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% This file may be freely copied, and distributed. -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -% Author: -% Kim C. Border, -% Division of the Humanities and Social Sciences, -% Caltech, Pasadena, CA 91125 USA -% e-mail: kcb@hss.caltech.edu - -% I gratefully acknowledge the help of J. E. Burke -% at Johns Hopkins, who fixed -% the handling of long footnotes. -% The main idea is from Knuth's \answer macro in the TeXbook. - -% version 1.1, May 31, 1995 -% Changed \endnoteshere to \theendnotes, since you -% shouldn't use commands that begin with \end -% Also added user renewable parameters - -% Based on my old endnotes.sty, version 3 -% (Sep 4, 1990, rev. Jul 28, 1994), which was never posted. -% It appears to work with both LaTeX2e and LaTeX2.09 - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% User redefinable parameters -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newlength{\noteskip} -\setlength{\noteskip}{1em} -\newcommand{\notenumberformat}[1]{$#1$} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Save the original definition of \@footnotetext -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\let\original@footnotetext\@footnotetext - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Define \makeendnotes to open a new file -% for the endnotes and to redefine \@footnotetext -% (\newlinechar courtesy of J E Burke) -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newcommand{\makeendnotes}{\newwrite\n@tefile - \immediate\openout\n@tefile=\jobname.end - \immediate\write\n@tefile{\relax} - \long\gdef\@footnotetext{\immediate\write\n@tefile{} - \begingroup\newlinechar=`\^^M - \catcode`\^^M=12\@setupcopy\@copynote}} - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% The verbatim copying definitions -% based on the TeXbook's \answer macro -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newcommand{\@setupcopy}{\@sanitize} -\newcommand{\@copynote}{} -\long\gdef\@copynote#1{% - \immediate\write\n@tefile{\notenumberformat{\@thefnmark}% - \hskip\noteskip}% - \immediate\write\n@tefile{#1}\endgroup} - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Define \theendnotes to retrieve them -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newcommand{\theendnotes}{\immediate\closeout\n@tefile - \input\jobname.end\relax} - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Define \restorefootnotes -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\newcommand{\restorefootnotes}{\long\gdef\@footnotetext{\original@footnotetext}} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\endinput - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\documentstyle{article} -\newcommand{\cs}[1]{\mbox{\tt\bs#1}}% for control sequences -\newcommand{\bs}{\char '134 } % A backslash character for \tt font -\newcommand{\file}[1]{\mbox{\tt #1}} - -\title{The {\tt fn2end.sty} style} -\author{KC Border} -\date{May 31, 1995} - -\begin{document} -\maketitle - -The \file{fn2end.sty} package converts footnotes into -end notes, where a lot of publishers want them. It -does so by redefining the action of the \cs{footnote} -command. Instead of putting footnotes at the bottom -of the page, the notes are written to a file with -extension \file{end}, whence they may be retrieved -when desired. To handle footnotes on the title page -flexibly, \cs{footnote} is not redefined until the -\cs{makeendnotes} command is issued. Place the -command \cs{theendnotes} where you want the notes -to appear: after the last footnote, usually right -before the bibliography. The \cs{theendotes} command -merely \cs{inputs} the \file{end} file, it does {\em -not} create a new section or a new page. If you do -create a notes section with the \cs{section} command, -you should follow it with an \cs{indent} command. -Otherwise, the first note will be the only note that -does not start with an indented paragraph. - -There are now user renewable commands. The length -\cs{noteskip} is the space between the note number -and the start of the note text. By default it is 1 -em. Change its value with the \cs{setlength} command. -You can use \cs{renewcommand} to change -\cs{notenumberformat}, which formats the note number. -By default it is defined as -\begin{verbatim} - \newcommand{\notenumberformat}[1]{$#1$} -\end{verbatim} -If you want the end note numbers to appear as -superscripts with periods, you could -\begin{verbatim} - \renewcommand{\notenumberformat}[1]{${}^{#1.}$} -\end{verbatim} - -Successive \cs{makeendnotes} commands overwrite the -notes file. This is a feature, not a bug. For -example: -\begin{verbatim} - \makeendnotes - - \chapter{One} - blah - \section*{Notes}\indent - \theendnotes - - \makeendnotes - - \chapter{Two} - blah - \section*{Notes}\indent - \theendnotes -\end{verbatim} -etc, can be used to put notes at the end of each -chapter. (This is perverse because it makes the -notes nearly impossible to find, but some publishers -like it.) - -Additionally, \cs{restorefootnotes} restores the -normal behavior of footnotes, so that if you really -wanted to, you could have a title page for each -chapter with acknowledgment footnotes on the bottom, -and thereafter have end notes for the rest of the -material in the chapter. - - -{\em Bug}: Since \verb#\# is catcoded to 12 for -verbatim copying, if your footnote's text contains -an unequal number of \verb#\{#'s and \verb#\}#'s, -for instance, if you have a \verb#\left\{# balanced -by a \verb#\right.#, then \TeX\ believes you have -unmatched braces and does not figure out where the -argument of the \cs{footnote} command ends. (Believe -it or not, this happened to me the first time I -tried to use the style.) -{\em Workaround}: Use \verb#\lbrace# and \verb#\rbrace# -in your footnotes instead of \verb#\{# and \verb#\}#. - -\end{document} diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index d5beb7e82f3..7fb6c36401f 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -146,6 +146,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'cweb', "die 'skipping, programs'", 'cyklop', "&MAKEcopy", 'deleq', "die 'skipping, nosell license'", + 'deproc', "die 'skipping, for latex 2.09'", 'devanagr', "&MAKEdevanagr", 'diagnose', "&MAKEflatten", 'dictsym', "&MAKEunzipandflatten", @@ -231,6 +232,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'ibygrk', "&MAKEflatten", 'ifacmtg', "die 'skipping, nonfree license'", 'indxcite', "die 'skipping, too old, license suboptimal'", + 'induni-om', "die 'skipping, for omega, use of pua?'", 'invoice', "&MAKEflatten", 'ipa', "die 'skipping, part of wsuipa'", 'iwona', "&MAKEcopy", @@ -246,8 +248,10 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw 'l2a', "die 'skipping, another old detex, requires compilation'", 'latex-veryshortguide', "die 'skipping, nosell license'", 'latexmp', "&MAKEflatten", + 'lcircuit', "die 'skipping, license unknown, too old to investigate'", 'leawood', "&MAKEflatten", 'lettre', "&MAKEflatten", + 'levy', "die 'skipping, levy not ready, sorry'", 'lexitex', "die 'skipping, camel has replaced'", 'lfb', "&MAKElfb", 'lh', "&MAKEcopy", diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index a0f5eabffb9..6a3576c6a16 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -95,7 +95,7 @@ my @WorkingTLP = qw( FAQ-en fbs featpost feyn feynmf fge filecontents fink fixme flagderiv flippdf float floatrow flowfram fltpoint - fmtcount fnbreak + fmtcount fn2end fnbreak fncychap foekfont fontch fontinst fontspec fonttable fontwrap footbib footmisc footnpag forarray forloop formular fouridx fourier fouriernc diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 181c256a93e..f922070b238 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -191,6 +191,7 @@ depend floatrow depend flowfram depend fmp depend fmtcount +depend fn2end depend fnbreak depend fncychap depend foilhtml diff --git a/Master/tlpkg/tlpsrc/fn2end.tlpsrc b/Master/tlpkg/tlpsrc/fn2end.tlpsrc new file mode 100644 index 00000000000..99e19a788b6 --- /dev/null +++ b/Master/tlpkg/tlpsrc/fn2end.tlpsrc @@ -0,0 +1,2 @@ +name fn2end +category Package -- cgit v1.2.3