| 1 |
% |
| 2 |
% Make title an hyperlink to the DOI or URL to make the result leaner (suggested by N. Rougier 4/4/2020) |
| 3 |
% |
| 4 |
|
| 5 |
\newcommand{\doiorurl}{% |
| 6 |
\iffieldundef{doi} |
| 7 |
{\iffieldundef{url} |
| 8 |
{} |
| 9 |
{\strfield{url}}} |
| 10 |
{http://dx.doi.org/\strfield{doi}}% |
| 11 |
} |
| 12 |
\newcommand{\myhref}[1]{% |
| 13 |
\ifboolexpr{% |
| 14 |
test {\ifhyperref} |
| 15 |
and |
| 16 |
not test {\iftoggle{bbx:url}} |
| 17 |
and |
| 18 |
not test {\iftoggle{bbx:doi}} |
| 19 |
} |
| 20 |
{\href{\doiorurl}{#1}} |
| 21 |
{#1}% |
| 22 |
} |
| 23 |
\DeclareFieldFormat{title}{\myhref{\mkbibemph{#1}}} |
| 24 |
\DeclareFieldFormat |
| 25 |
[article,inbook,incollection,inproceedings,patent,thesis,unpublished] |
| 26 |
{title}{\myhref{\mkbibquote{#1\isdot}}} |
| 27 |
|
| 28 |
|
| 29 |
\addbibresource{biblio.bib} |
| 30 |
\addbibresource{manual.bib} |
| 31 |
\author{Inria Software Citation Working Group} |
| 32 |
\date{\today} |
| 33 |
\title{Test document for software entries} |
| 34 |
\begin{document} |
| 35 |
|
| 36 |
\maketitle |
| 37 |
|
| 38 |
This is a test document that showcases the possibilities for rendering the |
| 39 |
various software-releated bibliographic entries with the standard BibLaTeX style |
| 40 |
extended with the \texttt{software} module. |
| 41 |
|
| 42 |
\begin{itemize} |
| 43 |
\item software entry CGAL \cite{cgal} and Scilab \cite{delebecque:hal-02090402} |
| 44 |
\item softwareversion entry CGAL 5.0.2 \cite{cgal:5-0-2} |
| 45 |
\item softwareversion Scilab 1.1.1 : from the chain of crossrefs \cite{delebecque:hal-02090402v1}, and from the condensed bibtem \cite{delebecque:hal-02090402-condensed} (they should be identical) |
| 46 |
\item softwaremodule entry Voronoi: from the chain of crossrefs \cite{cgal:lp-gi-20a}, and the from the condensed bibtem \cite{cgal:lp-gi-20a-condensed} (they should be identical) |
| 47 |
\item software entry Parmap \cite{parmap} |
| 48 |
\item codefragment entry simplemapper: from the chain of crossrefs \cite{simplemapper}, and from the condensed bibitem \cite{simplemapper-condensed} (they should be identical) |
| 49 |
\item software entry from the Astrophysics Source Code Library, using the eprint field \cite{2013ascl.soft05002P} |
| 50 |
\item software entry from the swMATH catalog, using the eprint field \cite{sw01091} |
| 51 |
\item documentation in a software entry \cite{scilabdoc} |
| 52 |
\item software entry \cite{sw-ipol.2020.300} and related article \cite{ipol.2020.300} from the IPOL journal |
| 53 |
\item software entry with addendum field \cite{parmap-addendum} |
| 54 |
\end{itemize} |
| 55 |
|
| 56 |
\ifbacktracker |
| 57 |
\printbibheading[title=References \emph{(with backref enabled)}] |
| 58 |
\else |
| 59 |
\printbibheading[title=References \emph{(default style)}] |
| 60 |
\fi |
| 61 |
\printbibliography[heading=subbibliography,type=software,title={Software Projects}] |
| 62 |
\printbibliography[heading=subbibliography,nottype=software,title={Software versions, modules, excerpts and manuals}] |
| 63 |
|
| 64 |
|
| 65 |
|