From d70474eb8e129637f5919424e4802bd2f52f5ef7 Mon Sep 17 00:00:00 2001 From: Bastian Rieck Date: Fri, 12 Apr 2019 18:46:28 +0200 Subject: [PATCH] Added template-specific bibliography strings --- english-mimosis.lbx | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 english-mimosis.lbx diff --git a/english-mimosis.lbx b/english-mimosis.lbx new file mode 100644 index 0000000..7c891c7 --- /dev/null +++ b/english-mimosis.lbx @@ -0,0 +1,26 @@ +\ProvidesFile{english-mimosis.lbx} +\InheritBibliographyExtras{english} + +% Do not abbreviate "technical report". +\DeclareBibliographyStrings{% + inherit = {english}, + techreport = {{technical report}{technical report}}, +} + +% Use superscripts whenever appropriate and possible +\DeclareBibliographyExtras{% + \protected\def\mkbibordinal#1{% + \begingroup% + \@tempcnta0#1\relax\number\@tempcnta% + \@whilenum\@tempcnta>100\do{\advance\@tempcnta-100\relax}% + \ifnum\@tempcnta>20% + \@whilenum\@tempcnta>9\do{\advance\@tempcnta-10\relax}% + \fi% + \mkbibsuperscript{\ifcase\@tempcnta th\or st\or nd\or rd\else th\fi}% + \endgroup}% + \protected\def\mkbibmascord{\mkbibordinal}% + \protected\def\mkbibfemord{\mkbibordinal}% + \protected\def\mkbibneutord{\mkbibordinal}% +} + +\endinput