summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-06-04 20:52:21 +0000
committerKarl Berry <karl@freefriends.org>2018-06-04 20:52:21 +0000
commite0bd44e5ad91047ec422c1467e256bac2589e498 (patch)
treef438c2f48c549146865fa2ad027e0a0e214d5abb /Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
parent03809020ed7271e95639d31cf0ec90f30db4e64e (diff)
biblatex-ext (4jun18)
git-svn-id: svn://tug.org/texlive/trunk@47922 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx169
1 files changed, 164 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx b/Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
index a88f2291017..d9e51313603 100644
--- a/Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-ext/ext-standard.bbx
@@ -1,5 +1,9 @@
+% biblatex-ext v0.3 (2018-06-04)
+% Maintainer: Moritz Wemheuer
+% Licence: LaTeX Project Public License v1.3c or later
+%
\ProvidesFile{ext-standard.bbx}
- [2018/03/28 v0.2 extended biblatex standard style (MW)]
+ [2018/06/04 v0.3 extended biblatex standard style (MW)]
\blx@inputonce{ext-biblatex-aux.def}{auxiliary code for ext-biblatex}{}{}{}{}
@@ -12,6 +16,7 @@
\newtoggle{bbx:innameidem}
\newtoggle{bbx:articlein}
\newtoggle{bbx:maintitleaftertitle}
+\newtoggle{bbx:introcite:plain:keeprelated}
\DeclareBibliographyOption[boolean]{citeinxref}[true]{%
\settoggle{bbx:citeinxref}{#1}}
@@ -84,10 +89,14 @@
\newbibmacro{introcite:typeset}{%
\begingroup
+ \iftoggle{blx@citation}
+ {}
+ {\togglefalse{blx@bibliography}%
+ \toggletrue{blx@citation}}%
\delimcontext{bbx:introcite}%
- \DeclareFieldFormat{bibhyperref}{##1}%
\csuse{blx@hook@cite}%
\csuse{blx@hook@citekey}%
+ \DeclareFieldFormat{bibhyperref}{##1}%
\undef\cbx@lasthash
\undef\cbx@lastyear
\citetrackerfalse\pagetrackerfalse\backtrackerfalse
@@ -804,6 +813,89 @@
{}%
\usebibmacro{finentry}}
+\DeclareFieldAlias{titlecase:title}{titlecase}
+\renewbibmacro*{title}{%
+ \ifboolexpr{
+ test {\iffieldundef{title}}
+ and
+ test {\iffieldundef{subtitle}}
+ }
+ {}
+ {\printtext[title]{%
+ \printfield[titlecase:title]{title}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:title]{subtitle}}%
+ \newunit}%
+ \printfield{titleaddon}}
+
+\DeclareFieldAlias{titlecase:booktitle}{titlecase}
+\renewbibmacro*{booktitle}{%
+ \ifboolexpr{
+ test {\iffieldundef{booktitle}}
+ and
+ test {\iffieldundef{booksubtitle}}
+ }
+ {}
+ {\printtext[booktitle]{%
+ \printfield[titlecase:booktitle]{booktitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:booktitle]{booksubtitle}}%
+ \newunit}%
+ \printfield{booktitleaddon}}
+
+\DeclareFieldAlias{titlecase:maintitle}{titlecase}
+\renewbibmacro*{maintitle}{%
+ \ifboolexpr{
+ test {\iffieldundef{maintitle}}
+ and
+ test {\iffieldundef{mainsubtitle}}
+ }
+ {}
+ {\printtext[maintitle]{%
+ \printfield[titlecase:maintitle]{maintitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:maintitle]{mainsubtitle}}%
+ \newunit}%
+ \printfield{maintitleaddon}}
+
+\DeclareFieldAlias{titlecase:journaltitle}{titlecase}
+\renewbibmacro*{journal}{%
+ \ifboolexpr{
+ test {\iffieldundef{journaltitle}}
+ and
+ test {\iffieldundef{journalsubtitle}}
+ }
+ {}
+ {\printtext[journaltitle]{%
+ \printfield[titlecase:journaltitle]{journaltitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:journaltitle]{journalsubtitle}}}}
+
+\renewbibmacro*{periodical}{%
+ \ifboolexpr{
+ test {\iffieldundef{title}}
+ and
+ test {\iffieldundef{subtitle}}
+ }
+ {}
+ {\printtext[title]{%
+ \printfield[titlecase:title]{title}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:title]{subtitle}}}}
+
+\DeclareFieldAlias{titlecase:issuetitle}{titlecase}
+\renewbibmacro*{issue}{%
+ \ifboolexpr{
+ test {\iffieldundef{issuetitle}}
+ and
+ test {\iffieldundef{issuesubtitle}}
+ }
+ {}
+ {\printtext[issuetitle]{%
+ \printfield[titlecase:issuetitle]{issuetitle}%
+ \setunit{\subtitlepunct}%
+ \printfield[titlecase:issuetitle]{issuesubtitle}}}}
+
\DeclareFieldFormat{volumeof}{\bibstring{volume}~#1}
\newcommand*{\titlemaintitledelim}{\newunitpunct}
\newcommand*{\maintitletitledelim}{\newunitpunct}
@@ -914,16 +1006,19 @@
\newbibmacro*{edition}{\printfield{edition}}
+\newcommand*{\jourvoldelim}{\addspace}
+\newcommand*{\jourserdelim}{\newunitpunct}
+\newcommand*{\servoldelim}{\addspace}
\newcommand*{\volnumdatedelim}{\addspace}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
- \setunit*{\addspace}%
+ \setunit*{\jourvoldelim}%
\iffieldundef{series}
{}
- {\setunit*{\addcomma\space}%
+ {\setunit*{\jourserdelim}%
\printfield{series}%
- \setunit{\addspace}}%
+ \setunit{\servoldelim}}%
\usebibmacro{volume+number+eid}%
\setunit{\volnumdatedelim}%
\usebibmacro{issue+date}%
@@ -1048,6 +1143,12 @@
{}
{\printfield{pubstate}}}
+\renewbibmacro*{related:init}{%
+ \csundef{bbx:relatedloop}%
+ \iftoggle{bbx:introcite:plain:keeprelated}
+ {}
+ {\renewbibmacro{introcite:plain}{}}}
+
\renewbibmacro*{related:bytranslator}[1]{%
\entrydata{#1}{%
\renewbibmacro*{name:hook}[1]{%
@@ -1071,3 +1172,61 @@
\printdate}}}
\endinput
+
+% Copyright 2017-2018 Moritz Wemheuer
+%
+% This work consists of the `.bbx`, `.cbx` and `.def` files
+% ext-standard.bbx
+% ext-biblatex-aux.def
+% ext-dashed-common.bbx
+% ext-authortitle-common.bbx
+% ext-authoryear-common.bbx
+% ext-alphabetic.bbx ext-alphabetic.cbx
+% ext-alphabetic-verb.bbx ext-alphabetic-verb.cbx
+% ext-authortitle.bbx ext-authortitle.cbx
+% ext-authortitle-comp.bbx ext-authortitle-comp.cbx
+% ext-authortitle-ibid.bbx ext-authortitle-ibid.cbx
+% ext-authortitle-icomp.bbx ext-authortitle-icomp.cbx
+% ext-authortitle-terse.bbx ext-authortitle-terse.cbx
+% ext-authortitle-tcomp.bbx ext-authortitle-tcomp.cbx
+% ext-authortitle-ticomp.bbx ext-authortitle-ticomp.cbx
+% ext-authoryear.bbx ext-authoryear.cbx
+% ext-authoryear-comp.bbx ext-authoryear-comp.cbx
+% ext-authoryear-ibid.bbx ext-authoryear-ibid.cbx
+% ext-authoryear-icomp.bbx ext-authoryear-icomp.cbx
+% ext-authoryear-terse.bbx ext-authoryear-terse.cbx
+% ext-authoryear-tcomp.bbx ext-authoryear-tcomp.cbx
+% ext-authoryear-ticomp.bbx ext-authoryear-ticomp.cbx
+% ext-numeric.bbx ext-numeric.cbx
+% ext-numeric-comp.bbx ext-numeric-comp.cbx
+% ext-numeric-verb.bbx ext-numeric-verb.cbx
+% ext-verbose.bbx ext-verbose.cbx
+% ext-verbose-ibid.bbx ext-verbose-ibid.cbx
+% ext-verbose-note.bbx ext-verbose-note.cbx
+% ext-verbose-inote.bbx ext-verbose-inote.cbx
+% ext-verbose-trad1.bbx ext-verbose-trad1.cbx
+% ext-verbose-trad2.bbx ext-verbose-trad2.cbx
+% ext-verbose-trad3.bbx ext-verbose-trad3.cbx
+%
+% Refer also to README.md.
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License (LPPL), either
+% version 1.3c of this license or (at your option) any later
+% version. The latest version of this license is at
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status 'maintained'.
+%
+% The Current Maintainer of the work is Moritz Wemheuer <mwemheu@gmail.com>.
+%
+% Please report bugs at https://github.com/moewew/biblatex-ext or via email.
+% Suggestions for improvements and feature request are also very welcome.
+%
+% The bundle is available on CTAN
+% https://www.ctan.org/pkg/biblatex-ext
+% and is included in MikTeX and TeX live 2018 or later.
+% The development version can be found on GitHub
+% https://github.com/moewew/biblatex-ext