summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-source-division
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-19 21:53:21 +0000
committerKarl Berry <karl@freefriends.org>2014-01-19 21:53:21 +0000
commit20379a560da3cbc49178537f3eecbfc8b21581d3 (patch)
tree6832e4b11f25ccf4a1276c916ddd7db0ca45c8bf /Master/texmf-dist/tex/latex/biblatex-source-division
parent698b257c2c99429f699030254c3f546889f8364f (diff)
biblatex-source-division (19jan14)
git-svn-id: svn://tug.org/texlive/trunk@32718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-source-division')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty30
1 files changed, 27 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty b/Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty
index e92c25f3ca0..c120b79bb84 100644
--- a/Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty
+++ b/Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty
@@ -15,7 +15,12 @@
% This work consists of the file biblatex-source-division.sty
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{biblatex-source-division}[2014/01/16 v1.0.3 source division for eledpar]
+\ProvidesPackage{biblatex-source-division}[2014/01/19 v1.1.0 source division for eledpar]
+
+% Prepare in the case of <x>volcite commands
+
+\newtoggle{volcite}{}
+\apptocmd{\volcitecmd}{\global\toggletrue{volcite}}{}{}
% Call the source division getting
\renewbibmacro*{prenote}{%
@@ -28,6 +33,7 @@
% Get source division, put in in titladdon field, and delete source division from the postnote field
\newbibmacro{getsourcedivision}{%
\iffieldundef{postnote}{}{%
+ \global\undef\volpostnote%
\usefield{\getsourcedivision@}{postnote}%
\restorefield{titleaddon}{\titleaddon}%
\restorefield{postnote}{\postnote}%
@@ -47,8 +53,26 @@
% Put the source division and "true" postnote in macro
\def\getsourcedivision@ii(#1)#2++{%
- \gdef\titleaddon{#1}%
- \gdef\postnote{#2}%
+ \ifdefmacro{\volpostnote}{%
+ \gdef\titleaddon{#1}%
+ \gdef\postnote{{\volvol}{#2}}%
+ }{%
+ \iftoggle{volcite}{%
+ \volgetsourcedivision@#2%
+ \global\togglefalse{volcite}%
+ }%
+ {%
+ \gdef\titleaddon{#1}%
+ \gdef\postnote{#2}%
+ }%
+ }%
}
+\newrobustcmd*{\volgetsourcedivision@}[2]{%
+ \gdef\volpostnote{#2}%
+ \gdef\volvol{#1}%
+ \restorefield{volpostnote}{\volpostnote}%
+ \usefield{\getsourcedivision@}{volpostnote}%
+}
+
\endinput \ No newline at end of file