diff options
author | Karl Berry <karl@freefriends.org> | 2015-05-15 21:48:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-05-15 21:48:43 +0000 |
commit | 2c7a6785c0a4df0f309e8266036fdd503ace4c29 (patch) | |
tree | 3d613f1367ccdfcd4f0dfe09c93c2047d348b0c3 | |
parent | 4d401c525d61b9b3c1523cfc58d9f6b5e94f6cfa (diff) |
biblatex-source-division (15may15)
git-svn-id: svn://tug.org/texlive/trunk@37414 c570f23f-e606-0410-a88d-b1316a301751
3 files changed, 28 insertions, 6 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 Binary files differindex d3e86155cea..5e8cbec7232 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 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 26bea3197f5..47ddf7864cf 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={2.2.2}, - date={12/05/2015}, + revision={2.3.0}, + date={15/05/2015}, url={https://github.com/maieul/biblatex-source-division}} % Hyphen \hyphenation{Ma-de-lei-ne} @@ -89,13 +89,25 @@ And we called them with : \cite[(II, \textsc{viii}, 13)39-40]{Augustin_DeDoctChr_CCSL} \end{minted} +\subsection{Option} + +\label{after}If a \bibfield{maintitle} field is defined for an entry, the source division will be print after it. However, you can load the package with \verb+after=title+ option to print the source division after the \bibfield{title} field. + \subsection{Styling} -The division of source is put on the \bibfield{titleaddon} field. So you can stylize it with all the tools of biblatex. +The division of source is put on the \bibfield{titleaddon} field. +However, if a \bibfield{maintitle} field is used and if the \verb+after+ option is not set to \verb+title+, the division source is put on the \bibfield{maintitleaddon} field. + +So you can stylize it with all the tools of biblatex. + + \section{Revision History} \begin{changelog} +\begin{release}{2.3.0}{2015-05-15} +\item Add \verb+after+ package option. \see{after} +\end{release} \begin{release}{2.2.2}{2015-05-12} \item Fix spurious field separator when source division is used without page number. @@ -114,7 +126,7 @@ The division of source is put on the \bibfield{titleaddon} field. So you can sty \end{release} \begin{release}{2.1.0}{2014-03-17} -\item Compatibiliy with \cs{<x>volcites} commands. +\item Compatibility with \cs{<x>volcites} commands. \item Add the source division after \emph{maintitle} when using a multi-volume book. \item Use \cmd{AtEveryCitekey} instead of patching \verb+prenote+ macro. \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 ad8b728c4c1..aa4a6e7bc25 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,9 +15,17 @@ % This work consists of the file biblatex-source-division.sty \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-source-division}[2015/05/12 v2.2.2 source division for biblatex] +\ProvidesPackage{biblatex-source-division}[2015/05/15 v2.3.0 source division for biblatex] \RequirePackage{xpatch} +% The options +\RequirePackage{kvoptions} +\SetupKeyvalOptions{family=@biblatexsourcedivision@,prefix=biblatexsourcedivision@} +\DeclareStringOption[maintitle]{after} +\ProcessKeyvalOptions* +% + + % Test if the package biblatex-true-citepages-omit is loaded \@ifpackageloaded{biblatex-true-citepages-omit}{\PackageError{biblatex-true-citepages-omit}{You must load biblatex-true-citepages-omit AFTER biblatex-source-division}{}}{} % Prepare in the case of <x>volcite commands @@ -35,7 +43,9 @@ \iffieldundef{postnote}{}{% \global\undef\volpostnote% \usefield{\getsourcedivision@}{postnote}% - \iffieldundef{maintitle}{\restorefield{titleaddon}{\titleaddon}}{\restorefield{maintitleaddon}{\titleaddon}}% + \ifboolexpr{test {\iffieldundef{maintitle}} or test{\ifdefstring{\biblatexsourcedivision@after}{title}}}% + {\restorefield{titleaddon}{\titleaddon}} + {\restorefield{maintitleaddon}{\titleaddon}}% \ifdefempty{\postnote}% {\clearfield{postnote}}% {\restorefield{postnote}{\postnote}}% |