summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty')
-rw-r--r--Master/texmf-dist/tex/latex/notes2bib/notes2bib.sty20
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