diff options
author | Karl Berry <karl@freefriends.org> | 2016-09-21 20:54:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-09-21 20:54:56 +0000 |
commit | d51aef2e53d00408e3bfee144cc2dc253dac50a9 (patch) | |
tree | 6d65f7fde6c48eeccc35d257932622f72d7994bf /Master/texmf-dist/tex/latex/biblatex-true-citepages-omit | |
parent | 9c4fa47b311d2690f57696da79330a7448685d87 (diff) |
biblatex-true-citepages-omit (21sep16)
git-svn-id: svn://tug.org/texlive/trunk@42120 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-true-citepages-omit')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty b/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty index 3e152b0a3ef..7f61e75d1a0 100644 --- a/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty +++ b/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty @@ -15,7 +15,7 @@ % This work consists of the file biblatex-real-citepages-omit.sty \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{biblatex-true-citepages-omit}[2015/12/01 v1.2.0a real run of citepages=omit for biblatex] +\ProvidesPackage{biblatex-true-citepages-omit}[2016/09/21 v1.3.0 real run of citepages=omit for biblatex]% \RequirePackage{xstring} \AtEveryCitekey{% @@ -24,11 +24,24 @@ \newbibmacro{true-citepages-omit}{% \iffieldundef{postnote}{}{% - \IfBeginWith{\noexpand\csfield{postnote}}{\pno}{\clearfield{pages}}{% - \IfBeginWith{\noexpand\csfield{postnote}}{\ppno}{\clearfield{pages}}{}}% + \IfBeginWith{\noexpand\csfield{postnote}}{\pno}% + {% + \usebibmacro{true-citepages-omit:clear}% + }{% + \IfBeginWith{\noexpand\csfield{postnote}}{\ppno}% + {% + \usebibmacro{true-citepages-omit:clear}% + }% + {% + }% + }% }% }% +\newbibmacro{true-citepages-omit:clear}{% + \clearfield{pages}% + \clearfield{pagetotal}% +}% %%% Kept for backward compatibility. No more needed. \newcommand{\realcitepagesomitcmd}[1]{\ifcsdef{#1}{\expandafter\robustify\csname#1\endcsname}{}} |