From 20379a560da3cbc49178537f3eecbfc8b21581d3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 19 Jan 2014 21:53:21 +0000 Subject: biblatex-source-division (19jan14) git-svn-id: svn://tug.org/texlive/trunk@32718 c570f23f-e606-0410-a88d-b1316a301751 --- .../biblatex-source-division.sty | 30 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-source-division') 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 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 -- cgit v1.2.3