diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-20 21:59:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-20 21:59:43 +0000 |
commit | 0572809ff2da349a70f53551dba2ec7bb2b0e930 (patch) | |
tree | 26d328156e3ad15b044f400759fe610019f892f7 /Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def | |
parent | 88e44c506b22f502671d4b4c84d29a5f517fd4d1 (diff) |
biblatex-ext (20mar18)
git-svn-id: svn://tug.org/texlive/trunk@47046 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def b/Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def index d7c970daa43..97f51add42c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def +++ b/Master/texmf-dist/tex/latex/biblatex-ext/ext-biblatex-aux.def @@ -1,5 +1,5 @@ \ProvidesFile{ext-biblatex-aux.def} - [2018/03/18 v0.1 auxiliaries for extended biblatex citation style (MW)] + [2018/03/20 v0.1a auxiliaries for extended biblatex citation style (MW)] \def\extblx@requiredbiblatexversion{3.11} \def\extblx@requiredbiblatexdate{2018/02/20} @@ -52,7 +52,7 @@ \csletcs{extblx@citedelim@#2@#1@open}{extblx@citedelim@#3@#1@open}% \csletcs{extblx@citedelim@#2@#1@close}{extblx@citedelim@#3@#1@close}} -% declare \mkpaired...delim commands +% declare \mk...delim commands \newrobustcmd*{\extblx@create@mkcitedelim}[2]{% \protected\csdef{mk#1#2delim}##1{% \begingroup @@ -73,4 +73,20 @@ \extblx@create@mkcitedelim{inner}{textcite} \extblx@create@mkcitedelim{inner}{footcite} +% smartcite is special +% According to the docs it is like \parencite in a footnote and \footcite in +% the body. +% To mirror that as closely as possible, we need to change the delimiter +% context. The delimcontext is set in the pre-code, it is too late to detect +% a footnote at that point (since we will have started the footnote ourselves +% with \mkbibfootnote from the body), so we need to do it earlier. +\newrobustcmd*{\mksmartcite}[1]{% + \iffootnote + {\mkouterparencitedelim{% + \def\extblx@thisdelimcontext{parencite}% + #1}} + {\mkbibfootnote{% + \def\extblx@thisdelimcontext{footcite}% + #1}}} + \endinput |