summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx70
1 files changed, 70 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx b/Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx
new file mode 100644
index 00000000000..be169705d50
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-ext/ext-alphabetic-verb.cbx
@@ -0,0 +1,70 @@
+\ProvidesFile{ext-alphabetic-verb.cbx}
+ [2018/03/18 v0.1 extended biblatex alphabetic-verb citation style (MW)]
+
+\blx@inputonce{ext-biblatex-aux.def}{auxiliary code for ext-biblatex}{}{}{}{}
+
+\RequireCitationStyle{alphabetic-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@textcite@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