From 7d96356a06f918159b63abc56e7a4f14988e6504 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 28 Jun 2020 21:23:03 +0000 Subject: biblatex-software (28jun20) git-svn-id: svn://tug.org/texlive/trunk@55690 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/biblatex-software/software.bbx | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex/latex/biblatex-software') 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 @@ -127,6 +131,23 @@ {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}} } +% +% 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 % @@ -236,7 +257,12 @@ \newbibmacro*{swrelated}{% \iffieldundef{related}% {}% - {\usebibmacro{related}}% + {\iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related} + } + {}% + }% } % -- cgit v1.2.3