diff options
author | Karl Berry <karl@freefriends.org> | 2018-03-19 21:49:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-03-19 21:49:24 +0000 |
commit | a198254d24ccfd63859b7ec9480d95775b087c4e (patch) | |
tree | 49bd922d8362e6398130515ef91e95c3550e3823 /Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx | |
parent | d1c302ed5a53246283181ec1ab9a537ec5a6959e (diff) |
biblatex-ext (19mar18)
git-svn-id: svn://tug.org/texlive/trunk@47029 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx b/Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx new file mode 100644 index 00000000000..e50f4a44794 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-ext/ext-numeric-verb.cbx @@ -0,0 +1,68 @@ +\ProvidesFile{ext-numeric-verb.cbx} + [2018/03/18 v0.1 extended biblatex numeric-verb citation style (MW)] + +\blx@inputonce{ext-biblatex-aux.def}{auxiliary code for ext-biblatex}{}{}{}{} + +\RequireCitationStyle{numeric-verb} + +\DeclareOuterCiteDelim{cite}{\bibopenbracket}{\bibclosebracket} +\DeclareOuterCiteDelimAlias{parencite}{cite} +\DeclareOuterCiteDelim{textcite}{}{} + +\DeclareInnerCiteDelim{textcite}{\bibopenbracket}{\bibclosebracket} + +\renewbibmacro*{textcite}{% + \ifnameundef{labelname} + {\printfield[citetitle]{labeltitle}} + {\printnames{labelname}}% + \printdelim{namelabeldelim}\csuse{extblx@citedelim@\blx@delimcontext @inner@open}% + \ifnumequal{\value{citecount}}{1} + {\usebibmacro{prenote}} + {}% + \usebibmacro{cite}} + +\DeclareCiteCommand{\cite} + {\csuse{extblx@citedelim@cite@outer@open}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \ifnumgreater{\value{citecount}}{1} + {\csuse{extblx@citedelim@cite@outer@open}} + {}% + \usebibmacro{cite}} + {\csuse{extblx@citedelim@cite@outer@close}% + \multicitedelim} + {\usebibmacro{postnote}% + \csuse{extblx@citedelim@cite@outer@close}} + +\DeclareCiteCommand{\parencite}[\mkouterparencitedelim] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\smartcite}[\iffootnote\mkouterparencitedelim\mkbibfootnote] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\textcite}[\mkoutertextcitedelim] + {} + {\usebibmacro{citeindex}% + \iffirstcitekey + {\setcounter{textcitetotal}{1}} + {\stepcounter{textcitetotal}% + \textcitedelim}% + \usebibmacro{textcite}} + {\csuse{extblx@citedelim@textcite@inner@close}} + {\usebibmacro{postnote}% + \csuse{extblx@citedelim@textcite@inner@close}} + +\DeclareMultiCiteCommand{\parencites}[\mkouterparencitedelim]{\parencite}{\multicitedelim} +\DeclareMultiCiteCommand{\smartcites}[\iffootnote\mkouterparencitedelim\mkbibfootnote] + {\smartcite}{\multicitedelim} +\DeclareMultiCiteCommand{\textcites}[\mkoutertextcitedelim]{\textcite}{} + +\endinput |