diff options
author | Karl Berry <karl@freefriends.org> | 2008-10-26 15:40:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-10-26 15:40:51 +0000 |
commit | 70da966888998bdc516ca75b91435d29746adb7d (patch) | |
tree | 303f086dbc391d25149652ad6b67d246e00d7fcc /Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty | |
parent | d8e34c095c3416f709b61aeec497806cf99813e6 (diff) |
notes2bib 1.6 (22oct08)
git-svn-id: svn://tug.org/texlive/trunk@11061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty b/Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty index ba97c93410a..6c2275b4e9b 100644 --- a/Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty +++ b/Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty @@ -15,7 +15,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{notes2bib} - [2008/09/24 v1.5b Integrating notes into the bibliography] + [2008/10/22 v1.6 Integrating notes into the bibliography] \RequirePackage{xkeyval}[2005/05/07] \newcommand*{\niib@tempa}{} \newcommand*{\niib@tempb}{} @@ -113,6 +113,7 @@ head or sort=head option} \fi \fi]{tail} +\niib@opt@boolkey{writekey} \niib@opt@cmdkeys{% cite, name, @@ -124,7 +125,8 @@ presorttail, keyhead, keynone, - keytail} + keytail, + keyword} \niibsetup{ cite=cite, name=Bibnote, @@ -136,7 +138,9 @@ presorttail=mn, keyhead=aaa, keynone={}, - keytail=zzz} + keytail=zzz, + keyword=bibnote, + writekey=true} \niib@opt@boolkey{etex} \begingroup \@ifundefined{eTeXversion} @@ -363,7 +367,12 @@ {}% \if@filesw \expandafter\niib@write + \else + \expandafter\niib@tidy \fi} +\newcommand*{\niib@tidy}[2]{% + \@esphack + \niib@next[#1]} \ifniib@etex \newcommand*{\niib@write}[2]{% \niib@log@debug{Writing bibnote #1 contents @@ -372,7 +381,10 @@ \immediate\write\niib@out{% @\niib@record\string{#1,^^J% presort = \string{\niib@presort\string},^^J% - \niib@keyname\space= \string{\niib@key#1\string},^^J% + \ifniib@writekey + \niib@keyname\space= \string{\niib@key#1\string},^^J% + \fi + keywords = \string{\niib@keyword\string},^^J% \niib@field\space= \string{\unexpanded{#2}\string}^^J% \string}^^J}% \@esphack |