summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-09-02 03:03:14 +0000
committerNorbert Preining <norbert@preining.info>2021-09-02 03:03:14 +0000
commita16eced7ce206f6c49ce7fe3cb15235d019f7a4a (patch)
tree7822ae742dbb329508a8cbc1a60882acd66a9607 /macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx
parent692575a36c0469a733dc7a6f68e945db811fb0c6 (diff)
CTAN sync 202109020303
Diffstat (limited to 'macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx')
-rw-r--r--macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx71
1 files changed, 48 insertions, 23 deletions
diff --git a/macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx b/macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx
index c88d648c0c..0862f1f1f4 100644
--- a/macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx
+++ b/macros/latex/contrib/univie-ling/biblatex-univie-ling/univie-ling.bbx
@@ -36,7 +36,7 @@
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ProvidesFile{univie-ling.bbx}[2020/11/11 v1.13 biblatex bibliography style]
+\ProvidesFile{univie-ling.bbx}[2021/09/01 v1.14 biblatex bibliography style]
% Load base style (authoryear)
\RequireBibliographyStyle{authoryear}
@@ -67,8 +67,11 @@
This is a fatal error. I'm aborting now}%
\endinput}
-% Option "issueeditor": Output journal issue editor
-% (false by default)
+%
+% OPTIONS
+%
+
+% Option "issueeditor": Output journal issue editor (false by default)
\newtoggle{issueeditor}
\DeclareBibliographyOption{issueeditor}[false]{%
\settoggle{issueeditor}{#1}}
@@ -143,6 +146,23 @@
{}
{\printdate}}%
+\renewbibmacro*{issue}{%
+ \ifboolexpr{
+ test {\iffieldundef{issuetitle}}
+ and
+ test {\iffieldundef{issuesubtitle}}
+ }
+ {}
+ {\printtext{%
+ \printfield[issuetitle]{issuetitle}%
+ \iffieldundef{issuesubtitle}{}{
+ \setunit{\subtitlepunct}%
+ \printfield[issuetitle]{issuesubtitle}%
+ }%
+ }%
+ }%
+}
+
\renewbibmacro*{issue+date}{%
\ifboolexpr{
test {\iffieldundef{issue}}
@@ -202,10 +222,10 @@
\usebibmacro{#1}%
}%
\clearname{editor}%
- \newunit}% period instead of space
+ \newunit}% period instead of space
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
- \newunit}% period instead of space
+ \newunit}% period instead of space
\usebibmacro{date+extradate}}
\renewbibmacro*{translator}{%
@@ -225,10 +245,10 @@
\usebibmacro{bbx:savehash}}%
\usebibmacro{translator+othersstrg}%
\clearname{translator}%
- \newunit}% period instead of space
+ \newunit}% period instead of space
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
- \newunit}% period instead of space
+ \newunit}% period instead of space
\usebibmacro{date+extradate}}
@@ -238,7 +258,7 @@
\renewbibmacro*{journal}{%
\iffieldundef{journaltitle}
{}
- {\printtext{%
+ {\printtext[issuetitle]{%
\printfield{journaltitle}%
\setunit{\subtitlepunct}%
\printfield{journalsubtitle}}}}
@@ -256,10 +276,7 @@
\usebibmacro{issue+date}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
- % The following three lines were originally not included inside of
- % the journal+issuetitle bibmacro. They have been moved inside of
- % this macro in order to allow them to be controlled by the toggle
- % `issueeditor` that is defined at the top of this style file.
+ % Output journal issue editors only if requested by 'issueeditor' option
\iftoggle{issueeditor}
{%
\newunit
@@ -414,7 +431,8 @@
\iffieldundef{urlyear}%
{}%
{\setunit*{\addspace}%
- \printtext[parens]{\bibstring{urlseen} \mkbibdateunified{urlyear}{urlmonth}{urlday}}}%
+ \printtext[parens]{\bibstring{urlseen}
+ \mkbibdateunified{urlyear}{urlmonth}{urlday}}}%
}
\renewbibmacro*{series+number}{%
@@ -431,7 +449,7 @@
{}
{\printnames[byeditor]{editor}%
\setunit{\addspace}%
- \printtext[parens]{\usebibmacro{editor+othersstrg}}% putting (ed.) or (eds.) after editors of books
+ \printtext[parens]{\usebibmacro{editor+othersstrg}}%
\clearname{editor}%
\newunit}%
\usebibmacro{byeditorx}}
@@ -579,13 +597,24 @@
% FIELD FORMATS
%
-\DeclareFieldFormat[article,book,mvbook,inbook,collection,mvcollection,incollection,inproceedings,thesis,unpublished]{titlecase}{\MakeSentenceCase*{#1}}%
+% Sentence-case all variable (non-serial) English titles
+\DeclareFieldFormat[article,book,mvbook,collection,mvcollection,
+ inbook,incollection,inproceedings,
+ thesis,unpublished,online]{titlecase}{\MakeSentenceCase*{#1}}%
+
+% Thematic issue title is non-serial as well
+\DeclareFieldFormat[periodical]{issuetitle}{\MakeSentenceCase*{#1}}
-\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1}
+% Plain (recte) shape for these
+\DeclareFieldFormat[article,inbook,incollection,inproceedings,
+ patent,thesis,unpublished]{title}{#1}
+% Emphasize thesis title
\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}}
-\DeclareFieldFormat{pages}{#1} % no pp. prefix, took \mkpageprefix out [kvf]
+% no pp. prefix
+\DeclareFieldFormat{pages}{#1}
+
\DeclareFieldFormat{doi}{%
\ifhyperref
{\href{https://doi.org/#1}{\nolinkurl{https://doi.org/#1}}}
@@ -594,9 +623,6 @@
\DeclareFieldFormat{volume:unified:proc-as-article}{#1}
-\DeclareFieldFormat[periodical]{issuetitle}{#1}
-
-
%
% DRIVERS
%
@@ -615,9 +641,8 @@
\newunit\newblock
\printfield{version}%
\newunit\newblock
-% \usebibmacro{in:}% We don't use "In: " before journal titles
\usebibmacro{journal+issuetitle+editor}%
- \newblock% \newblock ensures period before pages
+ \newblock%
\usebibmacro{note+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
@@ -659,7 +684,7 @@
{}%
\newunit
\printfield{volumes}%
- \setunit{\addspace}% crucial difference from standard.bbx: space and then (Series + number)
+ \setunit{\addspace}%
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%