summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-software
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-06-28 21:23:03 +0000
committerKarl Berry <karl@freefriends.org>2020-06-28 21:23:03 +0000
commit7d96356a06f918159b63abc56e7a4f14988e6504 (patch)
tree50060c89ab15673f14fba4ba6b7241ae353624ac /Master/texmf-dist/tex/latex/biblatex-software
parent21f8a3530660641c307c0c118032eaa58df340f6 (diff)
biblatex-software (28jun20)
git-svn-id: svn://tug.org/texlive/trunk@55690 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-software')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-software/software.bbx28
1 files changed, 27 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-software/software.bbx b/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
index 48f58eb736b..7ef6d84771a 100644
--- a/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
@@ -113,6 +113,10 @@
%
% Add here special eprint formats
%
+
+%
+% ASCL
+%
\DeclareFieldFormat{eprint:ascl}{%
\mkbibacro{ASCL}\addcolon\addspace%
\ifhyperref
@@ -128,6 +132,23 @@
}
%
+% swMATH
+%
+\DeclareFieldFormat{eprint:swmath}{%
+ \mkbibacro{SWMATH}\addcolon\addspace%
+ \ifhyperref
+ {\href{https://www.swmath.org/software/#1}{%
+ \(\langle\)swmath\addcolon\nolinkurl{#1}\(\rangle\)%
+ \iffieldundef{eprintclass}
+ {}
+ {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}
+ {\(\langle\)swmath\addcolon\nolinkurl{#1}\(\rangle\)%
+ \iffieldundef{eprintclass}
+ {}
+ {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}
+}
+
+%
% Macros to format output
%
\newbibmacro*{swtitleauthoreditoryear}{%
@@ -236,7 +257,12 @@
\newbibmacro*{swrelated}{%
\iffieldundef{related}%
{}%
- {\usebibmacro{related}}%
+ {\iftoggle{bbx:related}
+ {\usebibmacro{related:init}%
+ \usebibmacro{related}
+ }
+ {}%
+ }%
}
%