summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx72
1 files changed, 68 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx b/Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx
index b9f79ba5e4e..d237fba1534 100644
--- a/Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex/bbx/standard.bbx
@@ -1,12 +1,11 @@
-% $Id: standard.bbx,v 1.7 2011/11/13 19:09:07 lehman stable $
-
\ProvidesFile{standard.bbx}
-[\abx@bbxid $Id: standard.bbx,v 1.7 2011/11/13 19:09:07 lehman stable $]
+[\abx@bbxid]
\newtoggle{bbx:isbn}
\newtoggle{bbx:url}
\newtoggle{bbx:doi}
\newtoggle{bbx:eprint}
+\newtoggle{bbx:related}
\DeclareBibliographyOption{isbn}[true]{%
\settoggle{bbx:isbn}{#1}}
@@ -16,8 +15,10 @@
\settoggle{bbx:doi}{#1}}
\DeclareBibliographyOption{eprint}[true]{%
\settoggle{bbx:eprint}{#1}}
+\DeclareBibliographyOption{related}[true]{%
+ \settoggle{bbx:related}{#1}}
-\ExecuteBibliographyOptions{isbn,url,doi,eprint}
+\ExecuteBibliographyOptions{isbn,url,doi,eprint,related}
\newbibmacro*{begentry}{}
\newbibmacro*{finentry}{\finentry}
@@ -53,6 +54,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{book}{%
@@ -96,6 +99,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{booklet}{%
@@ -128,6 +133,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{collection}{%
@@ -169,6 +176,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{inbook}{%
@@ -215,6 +224,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{incollection}{%
@@ -259,6 +270,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{inproceedings}{%
@@ -305,6 +318,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{manual}{%
@@ -347,6 +362,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{misc}{%
@@ -377,6 +394,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{online}{%
@@ -409,6 +428,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{patent}{%
@@ -442,6 +463,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{periodical}{%
@@ -466,6 +489,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{proceedings}{%
@@ -509,6 +534,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{report}{%
@@ -545,6 +572,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{thesis}{%
@@ -577,6 +606,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{unpublished}{%
@@ -603,6 +634,8 @@
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
+ \newunit\newblock
+ \usebibmacro{related}%
\usebibmacro{finentry}}
\DeclareBibliographyDriver{shorthands}{%
@@ -797,4 +830,35 @@
\newunit\newblock
\printfield{pubstate}}
+\newcounter{bbx:relatedcount}
+
+\newbibmacro*{related}{%
+ \ifboolexpr{
+ not test {\iftoggle{bbx:related}}
+ or
+ test {\iffieldundef{related}}
+ }
+ {}
+ {\setcounter{bbx:relatedcount}{0}%
+ \def\do{%
+ \stepcounter{bbx:relatedcount}%
+ \ifnumgreater{\value{bbx:relatedcount}}{1}
+ {\printtext{\relateddelim}}
+ {}}%
+ \ifcsundef{abx@macro@related:\strfield{relatedtype}}
+ {\appto{\do}{\csuse{abx@macro@related:default}}}
+ {\appto{\do}{\csuse{abx@macro@related:\strfield{relatedtype}}}}%
+ \ifcsundef{abx@ffd@*@related:\strfield{relatedtype}}
+ {\def\abx@tempa{related}}
+ {\def\abx@tempa{related:\strfield{relatedtype}}}%
+ \printtext[\abx@tempa]{%
+ \iffieldundef{relatedstring}
+ {\iffieldbibstring{relatedtype}
+ {\printtext{\bibstring{\thefield{relatedtype}}\relatedpunct}}
+ {}}
+ {\iffieldbibstring{relatedstring}
+ {\printtext{\bibstring{\thefield{relatedstring}}\relatedpunct}}
+ {\printtext{\printfield{relatedstring}\relatedpunct}}}%
+ \docsvfield{related}}}}
+
\endinput