diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/splitbib')
-rw-r--r-- | Master/texmf-dist/tex/latex/splitbib/splitbib.sty | 42 |
1 files changed, 16 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/splitbib/splitbib.sty b/Master/texmf-dist/tex/latex/splitbib/splitbib.sty index fd926d11b57..4ee8d9dbdd2 100644 --- a/Master/texmf-dist/tex/latex/splitbib/splitbib.sty +++ b/Master/texmf-dist/tex/latex/splitbib/splitbib.sty @@ -24,7 +24,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{splitbib} - [2005/02/25 v1.12 Splits bibliography into categories] + [2005/12/22 v1.17 Splits bibliography into categories] \newif\ifNMSB@strict\NMSB@strictfalse \DeclareOption{strict}{\NMSB@stricttrue} \DeclareOption{nonstrict}{\NMSB@strictfalse} @@ -78,49 +78,49 @@ \def\NMSB@penalty{5000} \def\NMSB@halfpenalty{500} \def\NMSB@warnnocateg#1,\end{% - \message{---- SortBib warning ----^^J% + \message{---- Splitbib warning ----^^J% -- The following bib entries have no category: #1^^J}} \def\NMSB@warndblcateg#1,\end{% - \message{---- SortBib warning ----^^J% + \message{---- Splitbib warning ----^^J% -- The following bib entries have several categories: #1^^J% -- The first one will be used.^^J}} \def\NMSB@warnwronglongest{% \expandafter\NMSB@tok\expandafter{\NMSB@reallylongestlabel} - \message{---- SortBib warning ----^^J% + \message{---- Splitbib warning ----^^J% -- The longest label appears to be [\the\NMSB@tok] instead of} \@ifundefined{SBlongestlabel}{}{\message{(forced)}} \expandafter\NMSB@tok\expandafter{\NMSB@longestlabel} \message{[\the\NMSB@tok]^^J}} \def\NMSB@errtoomanycat#1{% - \message{---- SortBib error ----^^J% + \message{---- Splitbib error ----^^J% -- You defined too many level-#1 categories (max = 89).^^J}} \def\NMSB@errtoomanyent{% \setcounter{NMSB@maxent}{\NMSB@initent0} \addtocounter{NMSB@maxent}{-\NMSB@initent} - \message{---- SortBib error ----^^J% + \message{---- Splitbib error ----^^J% -- You defined too many entries in one category % (max = \theNMSB@maxent)^^J}} \def\NMSB@errcattoodeep{% - \message{---- Sortbib error ----^^J + \message{---- Splitbib error ----^^J -- Only two category depth allowed.^^J}} \def\NMSB@errentriesoutsidecat{% - \message{---- Sortbib error ----^^J + \message{---- Splitbib error ----^^J -- \string\SBentries outside category environment.^^J}} \def\NMSB@errentrieswithoptinsidecat{% - \message{----Sortbib error ----^^J + \message{----Splitbib error ----^^J -- \string\SBentries with optional argument inside category env.^^J}} \def\NMSB@erraliasoutsidecat{% - \message{----Sortbib error ----^^J + \message{----Splitbib error ----^^J -- \string\SBalias used outside category environment.^^J}} \def\NMSB@erraliasalreadydef#1{% - \message{----Sortbib error ----^^J + \message{----Splitbib error ----^^J -- Alias #1 multiply defined.^^J}} \def\NMSB@erraliasundefined#1{% - \message{----Sortbib error ----^^J + \message{----Splitbib error ----^^J -- Alias #1 undefined.^^J}} \def\NMSB@errcommentoutsidecat{% - \message{----Sortbib error ----^^J + \message{----Splitbib error ----^^J -- \string\SBcomment used outside category environment.^^J}} \def\SBtitlestyle#1{\gdef\NMSB@titlestyle{#1}} \def\SBsubtitlestyle#1{\gdef\NMSB@subtitlestyle{#1}} @@ -163,7 +163,7 @@ \def\NMSB@stylesimple#1#2{\hskip-\leftmargin% \csname SB\NMSB@level font\endcsname{#1#2} } -\def\category{\@ifnextchar[{\@lNMSBcategory}{\@NMSBcategory}} +\def\category{\@ifnextchar[{\@lNMSBcategory}{\@lNMSBcategory[]}} \def\@lNMSBcategory[#1]#2{% \stepcounter{NMSB@catlevel}% \ifnum\theNMSB@catlevel>2\relax @@ -360,10 +360,6 @@ \expandafter\ifx\csname NMSBcateg@#2\endcsname\relax \expandafter\gdef\csname NMSBcateg@#2\endcsname{9999}% \edef\NMSB@missingcat{\NMSB@missingcat #2,}% - \ifNMSB@ownorder - \expandafter\xdef\csname NMSBcateg@\@citeb\endcsname{% - \csname NMSBcateg@\@citeb\endcsname\theNMSB@maxent}% - \fi \fi \let\@tempa\relax \ifNMSB@ownorder @@ -423,10 +419,6 @@ \def\@bibitem#1#2\par{% \expandafter\ifx\csname NMSBcateg@#1\endcsname\relax \expandafter\gdef\csname NMSBcateg@#1\endcsname{9999}% - \ifNMSB@ownorder - \expandafter\xdef\csname NMSBcateg@\@citeb\endcsname{% - \csname NMSBcateg@\@citeb\endcsname\theNMSB@maxent}% - \fi \edef\NMSB@missingcat{\NMSB@missingcat #1,}% \fi \def\@tempa{}% @@ -654,17 +646,15 @@ \immediate\write\NMSB@catbib{% \string\bibitem}% \expandafter\ifx\expandafter\relax\the\NMSB@currprefixtok - \expandafter\def\expandafter\NMSB@tempentry - \expandafter{\the\value{\@listctr}}% \else \expandafter\expandafter\expandafter\def \expandafter\expandafter\expandafter\NMSB@tempentry \expandafter\expandafter\expandafter{% \expandafter\the\expandafter\NMSB@currprefixtok \the\value{\@listctr}}% + \expandafter\NMSB@writecatbib\expandafter{% + \expandafter[\NMSB@tempentry]}% \fi - \expandafter\NMSB@writecatbib\expandafter{% - \expandafter[\NMSB@tempentry]}% \immediate\write\NMSB@catbib{% {\csname NMSBkey@#5\endcsname}} \expandafter\let\expandafter\NMSB@tempentry |