texlive[62371] Master/texmf-dist: biblatex-software (3mar22)

commits+karl at tug.org commits+karl at tug.org
Thu Mar 3 22:07:24 CET 2022


Revision: 62371
          http://tug.org/svn/texlive?view=revision&revision=62371
Author:   karl
Date:     2022-03-03 22:07:24 +0100 (Thu, 03 Mar 2022)
Log Message:
-----------
biblatex-software (3mar22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-software/biblio.bib
    trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex
    trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-content.tex
    trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-use-sty.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.tex
    trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-software/software.dbx

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/biblatex-software/Changes

Added: trunk/Master/texmf-dist/doc/latex/biblatex-software/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/Changes	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/Changes	2022-03-03 21:07:24 UTC (rev 62371)
@@ -0,0 +1,16 @@
+\begin{release}{bltx-v1.2-4}{2022-03-03} \item Add support for displaying short SWHID \end{release}
+\begin{release}{bltx-v1.2-3}{2021-08-20} \item Support backrefs. \end{release}
+\begin{release}{bltx-v1.2-2}{2020-06-27} \item Fix handling of related field; use date instead of year/month in examples; add swMATH definition \end{release}
+\begin{release}{bltx-v1.2-1}{2020-06-01} \item Fix mishandling of SWHIDs and HALids when hyperref is not loaded. Fix wrong origins in some SWHIDs in the examples. Improve ASCL example. \end{release}
+\begin{release}{bltx-v1.2}{2020-05-29} \item Bump version to 1.2 with clean support of multiline SWHIDs \end{release}
+\begin{release}{bltx-v1.1}{2020-04-29} \item Add support for the institution, organization, eprint, eprinttype and eprintclass fields Force urls output when they are the only reference available Updates to the documentation \end{release}
+\begin{release}{bltx-v1.0}{2020-04-25} \item First public release \end{release}
+\begin{release}{bltx-v0.9}{2020-04-25} \item Preparing for public release: Licence, Readme, update documentation, handle suggestions from the Working Group \end{release}
+\begin{release}{bltx-v0.8}{2020-04-09} \item Make the style usable as an extension, and keep possibility of generating extended styles \end{release}
+\begin{release}{bltx-v0.7}{2020-04-09} \item Move to diff model approach to be more portable \end{release}
+\begin{release}{bltx-v0.6}{2020-04-08} \item Standardise file names, make softwarebib.tex self contained, separate out sample.tex, update Makefile, use printdate macro \end{release}
+\begin{release}{bltx-v0.5}{2020-04-08} \item Added standard list format for licenses \end{release}
+\begin{release}{bltx-v0.4}{2020-04-07} \item Added repository and licence field \end{release}
+\begin{release}{bltx-v0.3}{2020-04-05} \item Biblatex style with first complete example \end{release}
+\begin{release}{bltx-v0.2}{2020-04-02} \item Biblatex style sent for review \end{release}
+\begin{release}{bltx-v0.1}{2020-04-02} \item First version of the biblatex style \end{release}

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/biblio.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/biblio.bib	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/biblio.bib	2022-03-03 21:07:24 UTC (rev 62371)
@@ -80,8 +80,7 @@
 @software {parmap,
   title = {The Parmap library},
   author = {Di Cosmo, Roberto and Marco Danelutto},
-  date = {2020},
-  version = {1.1.1},
+  date = {2012},
   institution = {{Inria} and {University of Paris} and {University of Pisa}},
   license = {LGPL-2.0},
   url = {https://rdicosmo.github.io/parmap/},
@@ -88,10 +87,39 @@
   repository= {https://github.com/rdicosmo/parmap},
 }
 
+ at softwareversion {parmap-1.1.1,
+  crossref = {parmap},
+  date = {2020},
+  version = {1.1.1},
+  swhid = {swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615},
+}
+
 @codefragment {simplemapper,
   subtitle = {Core mapping routine},
   swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5;
-      lines=192-228;
-      origin=https://github.com/rdicosmo/parmap},
-  crossref = {parmap}
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
+     anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     path=/src/parmap.ml;
+     lines=192-228},
+  crossref = {parmap-1.1.1}
 }
+ at codefragment {simplemapper-condensed,
+  title = {The Parmap library},
+  author = {Di Cosmo, Roberto and Marco Danelutto},
+  date = {2020},
+  institution = {{Inria} and {University of Paris} and {University of Pisa}},
+  license = {LGPL-2.0},
+  url = {https://rdicosmo.github.io/parmap/},
+  repository= {https://github.com/rdicosmo/parmap},
+  version = {1.1.1},
+  subtitle = {Core mapping routine},
+  swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5;
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
+     anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     path=/src/parmap.ml;
+     lines=192-228}
+}

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex	2022-03-03 21:07:24 UTC (rev 62371)
@@ -1,4 +1,5 @@
-\begin{release}{bltx-v1.2-3}{2021-01-09} \item Add support for backrefs. \end{release}
+\begin{release}{bltx-v1.2-4}{2022-03-03} \item Add support for displaying short SWHID \end{release}
+\begin{release}{bltx-v1.2-3}{2021-08-20} \item Support backrefs. \end{release}
 \begin{release}{bltx-v1.2-2}{2020-06-27} \item Fix handling of related field; use date instead of year/month in examples; add swMATH definition \end{release}
 \begin{release}{bltx-v1.2-1}{2020-06-01} \item Fix mishandling of SWHIDs and HALids when hyperref is not loaded. Fix wrong origins in some SWHIDs in the examples. Improve ASCL example. \end{release}
 \begin{release}{bltx-v1.2}{2020-05-29} \item Bump version to 1.2 with clean support of multiline SWHIDs \end{release}

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-content.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-content.tex	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-content.tex	2022-03-03 21:07:24 UTC (rev 62371)
@@ -45,7 +45,7 @@
 \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)
 \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)
 \item software entry Parmap \cite{parmap}
-\item codefragment entry simplemapper \cite{simplemapper}
+\item codefragment entry simplemapper: from the chain of crossrefs \cite{simplemapper}, and from the condensed bibitem \cite{simplemapper-condensed} (they should be identical)
 \item software entry from the Astrophysics Source Code Library, using the eprint field \cite{2013ascl.soft05002P}
 \item software entry from the swMATH catalog, using the eprint field \cite{sw01091}
 \item documentation in a software entry \cite{scilabdoc}

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/sample-use-sty.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.tex	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.tex	2022-03-03 21:07:24 UTC (rev 62371)
@@ -11,10 +11,10 @@
 \titlepage{%
   title={Bib\LaTeX\ style extension for Software},
   subtitle={Citation and References macros for Bib\LaTeX},
-  url={http://mirror.ctan.org/macros/latex/exptl/biblatex-contrib/biblatex-software/},
+  url={https://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-software},
   author={Roberto Di Cosmo},
   email={roberto at dicosmo.org},
-  revision={1.2-3},
+  revision={1.2-4},
   date={\today}}
 
 \hypersetup{%
@@ -114,6 +114,7 @@
    \ExecuteBibliographyOptions{
      halid=true,
      swhid=true,
+     shortswhid=false,
      swlabels=true,
      vcs=true,
      license=true}
@@ -190,9 +191,17 @@
 \end{ltxcode}
 
 \noindent This option controls the inclusion of the identifier on the Software Heritage archive
-of the source code of the software described in the entry. The default is |true|.
+(SWHID) of the source code of the software described in the entry. The default is |true|.
 
 \begin{ltxcode}
+  shortswhid=true|false
+\end{ltxcode}
+
+\noindent This option controls the way the SWHID is displayed. Setting it to true will include
+only the core part of the SWHID in the printed version, and keep the full SWHID, with all contextual
+information, in the hyperlink. The default is |false|.
+
+\begin{ltxcode}
   vcs=true|false
 \end{ltxcode}
 

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex	2022-03-03 21:07:24 UTC (rev 62371)
@@ -229,8 +229,7 @@
 @software {parmap,
   title = {The Parmap library},
   author = {Di Cosmo, Roberto and Marco Danelutto},
-  date = {2020},
-  version = {1.1.1},
+  date = {2012},
   institution = {{Inria} and {University of Paris} and {University of Pisa}},
   license = {LGPL-2.0},
   url = {https://rdicosmo.github.io/parmap/},
@@ -237,11 +236,47 @@
   repository= {https://github.com/rdicosmo/parmap},
 }
 
+ at softwareversion {parmap-1.1.1,
+  crossref = {parmap},
+  date = {2020},
+  version = {1.1.1},
+  swhid = {swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615},
+}
+
 @codefragment {simplemapper,
   subtitle = {Core mapping routine},
   swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5;
-      lines=192-228;
-      origin=https://github.com/rdicosmo/parmap},
-  crossref = {parmap}
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
+     anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     path=/src/parmap.ml;
+     lines=192-228},
+  crossref = {parmap-1.1.1}
 }
 \end{verbatim}
+
+Of course, it is always be possible to use only one entry to get an equivalent
+result; here one would use just \texttt{@codefragment} with all the needed data
+fields as follows:
+
+\begin{verbatim}
+ at codefragment {simplemapper-condensed,
+  title = {The Parmap library},
+  author = {Di Cosmo, Roberto and Marco Danelutto},
+  date = {2020},
+  institution = {{Inria} and {University of Paris} and {University of Pisa}},
+  license = {LGPL-2.0},
+  url = {https://rdicosmo.github.io/parmap/},
+  repository= {https://github.com/rdicosmo/parmap},
+  version = {1.1.1},
+  subtitle = {Core mapping routine},
+  swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5;
+     origin=https://github.com/rdicosmo/parmap;
+     visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
+     anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
+     path=/src/parmap.ml;
+     lines=192-228}
+}
+\end{verbatim}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx	2022-03-03 21:07:24 UTC (rev 62371)
@@ -1,3 +1,4 @@
+\ProvidesFile{software.bbx}[2020/04/02 bibliography driver extension for software entries, Roberto Di Cosmo]
 %
 % Reference implementation of a BibLaTeX style for the software family of bibliographic entries
 %
@@ -10,6 +11,7 @@
 %
 \newtoggle{bbx:halid}
 \newtoggle{bbx:swhid}
+\newtoggle{bbx:shortswhid}
 \newtoggle{bbx:vcs}
 \newtoggle{bbx:swlabels}
 \newtoggle{bbx:license}
@@ -18,6 +20,8 @@
   \settoggle{bbx:halid}{#1}}
 \DeclareBibliographyOption[boolean]{swhid}[true]{%
   \settoggle{bbx:swhid}{#1}}
+\DeclareBibliographyOption[boolean]{shortswhid}[false]{%
+  \settoggle{bbx:shortswhid}{#1}}
 \DeclareBibliographyOption[boolean]{swlabels}[true]{%
   \settoggle{bbx:swlabels}{#1}}
 \DeclareBibliographyOption[boolean]{vcs}[true]{%
@@ -25,7 +29,7 @@
 \DeclareBibliographyOption[boolean]{license}[true]{%
   \settoggle{bbx:license}{#1}}
 
-\ExecuteBibliographyOptions{halid,swhid,swlabels,vcs,license}
+\ExecuteBibliographyOptions{halid,swhid,shortswhid,swlabels,vcs,license}
 
 %
 % Declare inheritance rules (valid only in LaTeX preamble!)
@@ -58,7 +62,7 @@
      \usebibmacro{urldate}}}
 
 %
-% Support multiline SWHIDs
+% Support multiline SWHIDs and create swhidcore field from swhid if missing
 %
 \DeclareStyleSourcemap{
   \maps[datatype=bibtex,overwrite=true]{
@@ -65,6 +69,11 @@
     \map{
       \step[fieldsource=swhid, match=\regexp{\s}, replace={}]
     }
+    \map{
+      \step[fieldsource=swhid]
+      \step[fieldset=swhidcore, origfieldval]
+      \step[fieldsource=swhidcore, match=\regexp{;.*}, replace={}]
+    }
   }
 }
 
@@ -91,8 +100,12 @@
   \iftoggle{bbx:swhid}%
            {\mkbibacro{SWHID}\addcolon\addspace%
              \ifhyperref%
-                 {\href{http://archive.softwareheritage.org/#1}{\(\langle\)\nolinkurl{#1}\(\rangle\)}}%
-                 {\(\langle\)\nolinkurl{#1}\(\rangle\)}%
+                 {\href{http://archive.softwareheritage.org/#1}{\(\langle\)\nolinkurl{%
+  		    \iftoggle{bbx:shortswhid}{\thefield{swhidcore}}{#1}%
+		    }\(\rangle\)}}%
+                 {\(\langle\)\nolinkurl{%
+  		    \iftoggle{bbx:shortswhid}{\thefield{swhidcore}}{#1}%
+		    }\(\rangle\)}%
            }%
            {}%
 }

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-software/software.dbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-software/software.dbx	2022-03-03 21:07:01 UTC (rev 62370)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-software/software.dbx	2022-03-03 21:07:24 UTC (rev 62371)
@@ -17,6 +17,7 @@
   hal_id,
   hal_version,
   swhid,
+  swhidcore,
 }
 
 %



More information about the tex-live-commits mailing list.