summaryrefslogtreecommitdiff
path: root/Master
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
parent698b257c2c99429f699030254c3f546889f8364f (diff)
biblatex-source-division (19jan14)
git-svn-id: svn://tug.org/texlive/trunk@32718 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.pdfbin67009 -> 67177 bytes
-rw-r--r--Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex7
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-source-division/biblatex-source-division.sty30
3 files changed, 32 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.pdf b/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.pdf
index 451118c4f47..d707a19a2e9 100644
--- a/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.pdf
+++ b/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex b/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex
index e314ccdea9d..561ac1ba158 100644
--- a/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex
+++ b/Master/texmf-dist/doc/latex/biblatex-source-division/biblatex-source-division.tex
@@ -24,8 +24,8 @@
email={maieul <at> maieul <dot> net},
author={Maïeul Rouquette},
subtitle={},
- revision={1.0.3},
- date={16/01/2014},
+ revision={1.1.0},
+ date={19/01/2014},
url={https://github.com/maieul/biblatex-source-division}}
% Hyphen
\hyphenation{Ma-de-lei-ne}
@@ -106,6 +106,9 @@ This package redefines the standard bibmacro \verb+prenote+. If you want to rede
\section{Revision History}
\begin{changelog}
+\begin{release}{1.1.0}{2014-01-19}
+\item Compatibility with \cs{<x>volcite} commands.
+\end{release}
\begin{release}{1.0.3}{2014-01-16}
\item Fixes bug when no postnote arg is used.
\end{release}
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