From a55a0c408532e7d4dbeb629215c40b9a29b1f98d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Jul 2015 22:10:51 +0000 Subject: biblatex-opcit-booktitle (2jul15) git-svn-id: svn://tug.org/texlive/trunk@37733 c570f23f-e606-0410-a88d-b1316a301751 --- .../biblatex-opcit-booktitle.sty | 33 +++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty b/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty index 6e4e60fdec9..0a1f524a728 100644 --- a/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty +++ b/Master/texmf-dist/tex/latex/biblatex-opcit-booktitle/biblatex-opcit-booktitle.sty @@ -15,17 +15,17 @@ % % The Current Maintainer of this work is Maïeul Rouquette \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-opcit-booktitle}[2015/06/18 v1.1.0 Manage op. cit. when using subentry] +\ProvidesPackage{biblatex-opcit-booktitle}[2015/07/02 v1.1.1 Manage op. cit. when using subentry] \RequirePackage{xpatch} \newbibmacro*{cite:seen:related}{% - {\xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection} - {} + {\xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection}% + {}% {\listcsxadd{blx@bsee@\the\c@refsection}{\thefield{crossref}}}}} \newcommand{\ifrelatedunseen}[2]{% - \xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection} - {#2} + \xifinlistcs{\thefield{crossref}}{blx@bsee@\the\c@refsection}% + {#2}% {#1}} \xpatchbibmacro{cite}% @@ -37,34 +37,33 @@ \newbibmacro*{cite:test:ifrelated}% - {\ifboolexpr { - test {\iffieldundef{crossref}} - or not ( test {\ifentrytype{inbook}} - or test {\ifentrytype{incollection}} - or test {\ifentrytype{inproceedings}} - or test {\ifentrytype{bookinbook}} ) } + {\ifboolexpr {% + test {\iffieldundef{crossref}}% + or not (test {\ifentrytype{inbook}}% + or test {\ifentrytype{incollection}}% + or test {\ifentrytype{inproceedings}}% + or test {\ifentrytype{bookinbook}})}% {\usebibmacro{cite:full}% - \usebibmacro{cite:save}} - {\ifrelatedunseen + \usebibmacro{cite:save}}% + {\ifrelatedunseen% {\usebibmacro{cite:seen:related}% \usebibmacro{cite:full}% - \usebibmacro{cite:save}} + \usebibmacro{cite:save}}% {\usebibmacro{related:info}}}} \newbibmacro*{related:info}{% % Here an hack to use the short form of the booktitle without recurring to a .dbx file in order to define new fields (because recurring to a .dbx file for such feature is complex for a little feature) - \entrydata{\thefield{crossref}}{\savefield{shorttitle}{\shortbooktitle}} + \entrydata{\thefield{crossref}}{\savefield{shorttitle}{\shortbooktitle}}% \ifdef{\shortbooktitle}% {% \restorefield{booktitle}{\shortbooktitle}% \clearfield{booksubtitle}% }% {}% - % And of the hack \usebibmacro{cite:full:citepages}% \usedriver% {\DeclareNameAlias{sortname}{default}}% - {inbook:rel} + {inbook:rel}% } \DeclareBibliographyDriver{inbook:rel}{% -- cgit v1.2.3