summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-03-05 03:00:59 +0000
committerNorbert Preining <norbert@preining.info>2020-03-05 03:00:59 +0000
commit898048513951b471a492afa23e46112d14bcb236 (patch)
tree8596afc705f55d2d07b324a756f7283ac0e2d21b /macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx
parent19d25b8009801aa98ea2f46b45c37c257f990491 (diff)
CTAN sync 202003050300
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx')
-rw-r--r--macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx73
1 files changed, 73 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx
new file mode 100644
index 0000000000..7b52892aae
--- /dev/null
+++ b/macros/latex/contrib/biblatex-contrib/biblatex-ajc2020unofficial/ajc2020unofficial.bbx
@@ -0,0 +1,73 @@
+\ProvidesFile{ajc2020unofficial.bbx}[2020/03/03 v0.0.1 unofficial biblatex bibliography style for Australasian Journal of Combinatorics]
+
+\RequireBibliographyStyle{numeric}
+\RequireCitationStyle{numeric}
+
+\ExecuteBibliographyOptions{labelnumber,firstinits=true,sorting=nyt}
+
+
+\RequireBibliographyStyle{standard}
+\newbibmacro*{bbx:savehash}{%
+ \savefield{fullhash}{\bbx@lasthash}}
+\DeclareBibliographyOption[boolean]{dashed}[false]{%
+ \ifstrequal{#1}{true}{
+ \ExecuteBibliographyOptions{pagetracker}%
+ \renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}
+ }{
+ \renewbibmacro*{bbx:savehash}{}
+ }
+}
+\DeclareBibliographyOption[boolean]{sentencetitle}[false]{%
+ \ifstrequal{#1}{true}{%
+ \DeclareFieldFormat{titlecase}{\MakeSentenceCase*{##1}}%
+ }{
+ \DeclareFieldFormat{titlecase}{{##1}}%
+ }%
+}
+\ExecuteBibliographyOptions{sentencetitle,dashed}
+
+\renewcommand*{\bibfont}{\footnotesize}
+\renewcommand*{\subtitlepunct}{\textup{\addcolon}\space}
+\renewcommand*{\newunitpunct}{\addcomma\space}
+\renewcommand*{\mkbibquote}[1]{\mkbibemph{#1}}
+\renewcommand*{\labelnamepunct}{\addcomma\space}
+\renewbibmacro*{in:}{}
+\renewbibmacro*{author}{%
+ \ifboolexpr{
+ test \ifuseauthor
+ and
+ not test {\ifnameundef{author}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {\bibnamedash}
+ {\printnames{author}%
+ \setunit{\addcomma\space}%
+ \usebibmacro{bbx:savehash}}%
+ \usebibmacro{authorstrg}}
+ {\global\undef\bbx@lasthash}}
+
+\DeclareFieldFormat{journaltitle}{\textup{#1}}
+\DeclareFieldFormat{booktitle}{\textup{#1}}
+\DeclareFieldFormat[article]{number}{\mkbibbold{#1}}
+\DeclareFieldFormat[book]{number}{\mkbibbold{#1}}
+\DeclareFieldFormat
+ [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
+ {title}{\mkbibemph{#1\isdot}}
+
+\newbibmacro*{bbx:dashcheck}[2]{%
+ \ifboolexpr{
+ test {\iffieldequals{fullhash}{\bbx@lasthash}}
+ and
+ not test \iffirstonpage
+ }
+ {#1}
+ {#2}}
+\renewcommand*{\bibnamedash}{\rule{3em}{0.4pt}\hspace*{.16667em}\addcomma\addspace}
+
+
+\DeclareFieldFormat{pages}{#1}
+\DeclareFieldFormat{journaltitle}{\mkbibemph{#1}\isdot}
+\DeclareFieldFormat*{title}{#1}
+
+
+\endinput