diff options
author | Karl Berry <karl@freefriends.org> | 2013-10-02 21:57:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-10-02 21:57:47 +0000 |
commit | 3bf8ee8a87097403ef040c9a3c4ee0f3866eb2cd (patch) | |
tree | 8a04cc889fe0607b74a90ea8dd5ccd286f2226b7 /Master/texmf-dist/tex/latex/mbenotes | |
parent | a843ec8baff47ff25421fb1580786c86e192c516 (diff) |
mbenotes (2oct13)
git-svn-id: svn://tug.org/texlive/trunk@31813 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mbenotes')
-rw-r--r-- | Master/texmf-dist/tex/latex/mbenotes/mbenotes.sty | 283 |
1 files changed, 8 insertions, 275 deletions
diff --git a/Master/texmf-dist/tex/latex/mbenotes/mbenotes.sty b/Master/texmf-dist/tex/latex/mbenotes/mbenotes.sty index faceddc9896..8f0c8bbc232 100644 --- a/Master/texmf-dist/tex/latex/mbenotes/mbenotes.sty +++ b/Master/texmf-dist/tex/latex/mbenotes/mbenotes.sty @@ -1,10 +1,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % **************************************** % * mbeNOTES % **************************************** % -% Date of this version: 2013-06-1 +% Date of this version: 2012-9-21 % Matthias Borck-Elsner % %% Based on endnotes.sty Copyright 2002 John Lavagnino @@ -104,7 +103,7 @@ %% **************************************** %% %% -\ProvidesPackage{mbenotes}[2013/06/01 (Version 3) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor,amsmath}\@definecounter{mbenote} +\ProvidesPackage{mbenotes}[2012/09/21 (Version 2) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor}\@definecounter{mbenote} \def\thembenote{\@arabic\c@mbenote} \def\@makembemark{\hbox{\@textsuperscript{{\tiny\@thembemark}}}} @@ -262,12 +261,11 @@ \endgroup} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % **************************************** % * tabNOTES % **************************************** % -% Date of this version: 2013-06-1 +% Date of this version: 2012-9-21 % Matthias Borck-Elsner % %% Based on endnotes.sty Copyright 2002 John Lavagnino @@ -367,7 +365,7 @@ %% **************************************** %% %% -\ProvidesPackage{mbenotes}[2013/06/01 (Version 3) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor,amsmath}\@definecounter{tabnote} +\ProvidesPackage{mbenotes}[2012/09/21 (Version 2) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor}\@definecounter{tabnote} \def\thetabnote{\@arabic\c@tabnote} \def\@maketabmark{\hbox{\@textsuperscript{{\tiny\@thetabmark}}}} @@ -525,12 +523,11 @@ \endgroup} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % **************************************** % * imgNOTES % **************************************** % -% Date of this version: 2013-06-1 +% Date of this version: 2012-9-21 % Matthias Borck-Elsner % %% Based on endnotes.sty Copyright 2002 John Lavagnino @@ -630,7 +627,7 @@ %% **************************************** %% %% -\ProvidesPackage{mbenotes}[2013/06/01 (Version 3) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor,amsmath}\@definecounter{imgnote} +\ProvidesPackage{mbenotes}[2012/09/21 (Version 2) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor}\@definecounter{imgnote} \def\theimgnote{\@arabic\c@imgnote} \def\@makeimgmark{\hbox{\@textsuperscript{{\tiny\@theimgmark}}}} @@ -815,12 +812,11 @@ \end{tiny} \end{picture}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % **************************************** % * mathNOTES % **************************************** % -% Date of this version: 2013-06-1 +% Date of this version: 2012-9-21 % Matthias Borck-Elsner % %% Based on endnotes.sty Copyright 2002 John Lavagnino @@ -920,7 +916,7 @@ %% **************************************** %% %% -\ProvidesPackage{mbenotes}[2013/06/01 (Version 3) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor,amsmath}\@definecounter{mathnote} +\ProvidesPackage{mbenotes}[2012/09/21 (Version 2) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor}\@definecounter{mathnote} \def\themathnote{\@arabic\c@mathnote} \def\@makemathmark{\hbox{\@textsuperscript{ \textcolor{red}{\tiny(\@themathmark)}}}} @@ -1075,266 +1071,3 @@ \setcounter{mathnote}{0} \vspace{1.8em} \endgroup} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% -% **************************************** -% * bibNOTES -% **************************************** -% -% Date of this version: 2013-06-1 -% Matthias Borck-Elsner -% -%% Based on endnotes.sty Copyright 2002 John Lavagnino -%% -%% This file may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.2 -%% of this license or (at your option) any later version. -%% The lambe version of this license is in -%% http://www.latex-project.org/lppl.txt -%% and version 1.2 or later is part of all distributions of LaTeX -%% version 1999/12/01 or later. -%% -%% Uses an extra external file, with .bib extension, to hold the -%% text of the bibnotes. This may be deleted after the run; a new -%% version is generated each time--it doesn't require information -%% collected from the previous run. -%% -%% This code does not obey \nofiles. Perhaps it should. -%% -%% -%% To turn all the footnotes in your documents into bibnotes, say -%% -%% \let\footnote=\bibnote -%% -%% in your preamble, and then add something like -%% -%% \newpage -%% \begingroup -%% \parindent 0pt -%% \parskip 2ex -%% \def\bibnotesize{\normalsize} -%% \thebibnotes -%% \endgroup -%% -%% as the last thing in your document. (But \thebibnotes all -%% by itself will work.) -%% -%% **************************************** -%% * bibNOTE COMMANDS * -%% **************************************** -%% -%% -%% \bibnote{NOTE} : User command to insert a bibnote. -%% -%% \bibnote[NUM]{NOTE} : User command to insert a bibnote numbered -%% NUM, where NUM is a number -- 1, 2, -%% etc. For example, if bibnotes are numbered -%% *, **, etc. within pages, then \bibnote[2]{...} -%% produces bibnote '**'. This command does not -%% step the bibnote counter. -%% -%% \bibnotemark[NUM] : Command to produce just the bibnote mark in -%% the text, but no bibnote. With no argument, -%% it steps the bibnote counter before generating -%% the mark. -%% -%% \bibnotetext[NUM]{TEXT} : Command to produce the bibnote but no -%% mark. \bibnote is equivalent to -%% \bibnotemark \bibnotetext . -%% -%% \addtobibnotes{TEXT} : Command to add text or commands to current -%% bibnotes file: for inserting headings, -%% pagebreaks, and the like into bibnotes -%% sections. TEXT a moving argument: -%% \protect required for fragile commands. -%% -%% **************************************** -%% * bibNOTE USER COMMANDS * -%% **************************************** -%% -%% bibnotes use the following parameters, similar to those relating -%% to footnotes: -%% -%% \bibnotesize : Size-changing command for bibnotes. -%% -%% \thebibnote : In usual LaTeX style, produces the bibnote number. -%% -%% \thebibmark : Holds the current bibnote's mark--e.g., \dag or '1' or 'a'. -%% (You don't want to set this yourself, as it comes -%% either from the autonumbering of notes or from -%% the optional argument to \bibnote. But you'll need -%% to use it if you define your own \makebibmark.) -%% -%% \makebibmark : A macro to generate the bibnote marker from \thebibmark -%% The default definition is \hbox{$^\thebibmark$}. -%% -%% \@makebibtext{NOTE} : -%% Must produce the actual bibnote, using \thebibmark as the mark -%% of the bibnote and NOTE as the text. It is called when effectively -%% inside a \parbox, with \hsize = \columnwidth. For example, it might -%% be as simple as -%% $^{\thebibmark}$ NOTE -%% -%% -%% **************************************** -%% * bibNOTE MACROS * -%% **************************************** -%% -%% -\ProvidesPackage{mbenotes}[2013/06/01 (Version 3) Notes for Text,tables,images and equations ]\RequirePackage{graphicx,xcolor,amsmath}\@definecounter{bibnote} -\def\thebibnote{\@arabic\c@bibnote} - -\def\@makebibmark{\hbox{\@textsuperscript{{\tiny\@thebibmark}}}} -\def\makebibmark{\@makebibmark} - -\def\thebibmark{\@thebibmark} - -\newdimen\bibnotesep - -\def\bibnote{\@ifnextchar[\@xbibnote{\stepcounter{bibnote}% - \protected@xdef\@thebibmark{\thebibnote}% - \@bibnotemark\@bibnotetext}} - -\def\@xbibnote[#1]{ - \begingroup - \c@bibnote=#1\relax - \unrestored@protected@xdef\@thebibmark{\thebibnote}% - \endgroup - \@bibnotemark\@bibnotetext } - -%% Here begins a section of bibnote code that's really different from -%% the footnote code of LaTeX. - -\let\@doanbibnote=0 -\let\@endanbibnote=0 - -\newwrite\@bibnotes -\newif\if@bibnotesopen \global\@bibnotesopenfalse - -\def\@openbibnotes{\immediate\openout\@bibnotes=\jobname.bib\relax - \global\@bibnotesopentrue} - -%% The stuff with \next and \meaning is a trick from the TeXbook, 382, -%% there intended for setting verbatim text, but here used to avoid -%% macro expansion when the footnote text is written. \next will have -%% the entire text of the footnote as one long line, which might well -%% overflow limits on output line length; the business with \newlinechar -%% makes every space become a newline in the \@bibnotes file, so that all -%% of the lines wind up being quite short. -%% -\long\def\@bibnotetext#1{% - \if@bibnotesopen \else \@openbibnotes \fi - \immediate\write\@bibnotes{\@doanbibnote{\@thebibmark}}% - \begingroup - \def\next{#1}% - \newlinechar='40 - \immediate\write\@bibnotes{\meaning\next}% - \endgroup - \immediate\write\@bibnotes{\@endanbibnote}} - -%% \addtobibnotes works the way the other bibnote macros probably should -%% have, requiring the use of \protect for fragile commands. - -\long\def\addtobibnotes#1{% - \if@bibnotesopen \else \@openbibnotes \fi - \begingroup - \newlinechar='40 - \let\protect\string - \immediate\write\@bibnotes{#1}% - \endgroup} - -%% End of unique bibnote code -%% -\def\bibnotemark{% - \@ifnextchar[\@xbibnotemark - {\stepcounter{bibnote}% - \protected@xdef\@thebibmark{\thebibnote}% - \@bibnotemark}} - -\def\@xbibnotemark[#1]{% - \begingroup - \c@bibnote #1\relax - \unrestored@protected@xdef\@thebibmark{\thebibnote}% - \endgroup - \@bibnotemark} - -\def\@bibnotemark{% - \leavevmode - \ifhmode\edef\@x@sf{\the\spacefactor}\nobreak\fi - \makebibmark - \ifhmode\spacefactor\@x@sf\fi - \relax} - -\def\bibnotetext{ - \@ifnextchar [\@xbibnotenext - {\protected@xdef\@thebibmark{\thebibnote}% - \@bibnotetext}} - -\def\@xbibnotenext[#1]{\begingroup \c@bibnote=#1\relax - \xdef\@thebibmark{\thebibnote}\endgroup \@bibnotetext} - -\def\@xbibnotenext[#1]{% - \begingroup - \c@bibnote=#1\relax - \unrestored@protected@xdef\@thebibmark{\thebibnote}% - \endgroup - \@bibnotetext} - - -%% \thebibnotes actually prints out the bibnotes. - -%% The user may want separate bibnotes for each chapter, or a big -%% block of them at the end of the whole document. As it stands, -%% either will work; you just say \thebibnotes wherever you want the -%% bibnotes so far to be inserted. The counter is always set to 0 %% -%% \bibnoteformat is provided so user can specify some special formatting -%% for the bibnotes. It needs to set up the paragraph parameters, start -%% the paragraph, and print the label. The \mbox stuff in \bibnoteheading -%% is to make and undo a dummbe paragraph, to get around the games \section* -%% plays with paragraph indenting and instead give us uniform -%% indenting for all notes. - -\def\bibnotesname{bibnotes} -\def\bibnoteheading{\subsubsection*{\footnotesize{\bibnotesname} \@mkboth{\MakeUppercase{\bibnotesname}}{\MakeUppercase{\bibnotesname}}} - \mbox{ }\par\vskip-\baselineskip} - -\def\bibnoteformat{\rightskip\z@ \leftskip\z@ \parindent=1.8em - \leavevmode\llap{\makebibmark}} - -\def\bibnotesize{\footnotesize} - -\def\thebibnotes[#1]{\def\bibnotesname{#1}\immediate\closeout\@bibnotes \global\@bibnotesopenfalse - \begingroup - \makeatletter - %% - %% The machinery with \@ResetGT and > here ensures that - %% \@doanbibnote works properly even if > is an active character - %% at the point where \thebibnotes is invoked. > needs to have - %% catcode 12 when the arguments of \@doanbibnote are scanned, so - %% that the > in the string "macro:->" is matched. The actual - %% footnote text is not an argument to \@doanbibnote, but just - %% follows it in the .bib file; so \@ResetGT can reset the - %% category code for > that should be used when processing - %% that text. That resetting takes place within a - %% \begingroup-\endgroup block set up by \@doanbibnote and - %% \@endanbibnote, so the catcode for > is back to 12 for the - %% next note. - % - \edef\@tempa{`\string >}% - \ifnum\catcode\@tempa=12% - \let\@ResetGT\relax - \else - \edef\@ResetGT{\noexpand\catcode\@tempa=\the\catcode\@tempa}% - \@makeother\>% - \fi - \def\@doanbibnote##1##2>{\def\@thebibmark{##1}\par\begingroup - \@ResetGT - \edef\@currentlabel{\csname p@bibnote\endcsname\@thebibmark}% - \bibnoteformat} - \def\@endanbibnote{\par\endgroup}% - \bibnoteheading - \bibnotesize - \input{\jobname.bib}% - \setcounter{bibnote}{0} \vspace{1.8em} - \endgroup} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |