summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-contrib/biblatex-software/software-biblatex.tex
diff options
context:
space:
mode:
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.tex17
1 files changed, 10 insertions, 7 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 72de0c520e..b2f1e6e8d2 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.2},
+ revision={1.2-1},
date={\today}}
\hypersetup{%
@@ -203,29 +203,32 @@ platform where the software described in the enttry is developed. The default is
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.\\
+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:
+via the following declaration in the \verb|software.bbx| file:
\begin{verbatim}
\DeclareFieldFormat{eprint:ascl}{%
- ascl\addcolon\space
+ \mkbibacro{ASCL}\addcolon\addspace%
\ifhyperref
{\href{https://ascl.net/#1}{%
- \nolinkurl{#1}%
+ \(\langle\)ascl\addcolon\nolinkurl{#1}\(\rangle\)%
\iffieldundef{eprintclass}
{}
{\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}
- {\nolinkurl{#1}%
+ {\(\langle\)ascl\addcolon\nolinkurl{#1}\(\rangle\)%
\iffieldundef{eprintclass}
{}
- {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}}
+ {\addspace\texttt{\mkbibbrackets{\thefield{eprintclass}}}}}
+}
\end{verbatim}
+If you want to adapt this very example to an identifier |foo| with resolver prefix |https://myfoo.org/|, just replace in the \LaTeX{} code above |https://ascl.net/| with |https://myfoo.org/|, |ascl| with |foo| and |ASCL| with |FOO|.
+
\section{Details}
The detailed information for this style is contained in the example document and