diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex')
-rw-r--r-- | macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex b/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex index 71aeac1350..5e04310ba8 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex +++ b/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex @@ -14,7 +14,7 @@ url={http://mirror.ctan.org/macros/latex/exptl/biblatex-contrib/biblatex-software/}, author={Roberto Di Cosmo}, email={roberto@dicosmo.org}, - revision={1.0}, + revision={1.1}, date={\today}} \hypersetup{% @@ -199,6 +199,33 @@ of the source code of the software described in the entry. The default is |true| \noindent This option controls the inclusion of the url of the code hosting platform where the software described in the enttry is developed. The default is |true|. +\subsection{Adding support for additional software identifiers} + +It would not be reasonable to have a dedicated field for each of the many software releated identifiers that exist. +If you want to create bibliographic records that use identifiers not natively supported by this package, you +can use the standard Bib\LaTeX\ mechanism that uses the ~eprint~, ~eprinttype~ and ~eprintclass~ fields.\\ + +The default formatting of these fields may be what you want, but if it's not the case, you can define +your own format, as explained in the official Bib\LaTeX\ documentation.\\ + +As an example, this style already contains a specific formatting definition for the Astrophysics Source Code Library (ASCL) software records, +via the following declaration in the ~software.bbx~ file: + +\begin{verbatim} +\DeclareFieldFormat{eprint:ascl}{% + ascl\addcolon\space + \ifhyperref + {\href{https://ascl.net/#1}{% + \nolinkurl{#1}% + \iffieldundef{eprintclass} + {} + {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}} + {\nolinkurl{#1}% + \iffieldundef{eprintclass} + {} + {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}} +\end{verbatim} + \section{Details} The detailed information for this style is contained in the example document and |