texlive[55376] Master/texmf-dist: biblatex-software (1jun20)

commits+karl at tug.org commits+karl at tug.org
Mon Jun 1 23:08:28 CEST 2020


Revision: 55376
          http://tug.org/svn/texlive?view=revision&revision=55376
Author:   karl
Date:     2020-06-01 23:08:28 +0200 (Mon, 01 Jun 2020)
Log Message:
-----------
biblatex-software (1jun20)

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-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/source/latex/biblatex-software/Makefile
    trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx

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	2020-06-01 21:08:28 UTC (rev 55376)
@@ -0,0 +1,13 @@
+\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	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/biblio.bib	2020-06-01 21:08:28 UTC (rev 55376)
@@ -11,7 +11,7 @@
   hal_id = {hal-02090402},
   hal_version = {v1},
   swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a;
-           origin=https://hal.inria.fr/hal-02090402},
+	   origin=https://hal.archives-ouvertes.fr/hal-02090402},
   version = {1.1},
   note = {First Scilab version. It was distributed by anonymous ftp.},
   repository= {https://github.com/scilab/scilab},
@@ -37,7 +37,7 @@
   month = jan,
   file = {https://hal.inria.fr/hal-02090402/file/scilab-1.1.tar.gz},
   swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a;
-           origin=https://hal.inria.fr/hal-02090402},
+	   origin=https://hal.archives-ouvertes.fr/hal-02090402},
   note = {First Scilab version. It was distributed by anonymous ftp.},
   crossref = {delebecque:hal-02090402}
 }

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/history.tex	2020-06-01 21:08:28 UTC (rev 55376)
@@ -1,3 +1,5 @@
+\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}
@@ -9,4 +11,3 @@
 \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}
-\begin{release}{bltx-1.2}{2020-05-27} \item Add swhid stylemap to support multiline SWHIDs \end{release}

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	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/software-biblatex.tex	2020-06-01 21:08:28 UTC (rev 55376)
@@ -14,7 +14,7 @@
   url={http://mirror.ctan.org/macros/latex/exptl/biblatex-contrib/biblatex-software/},
   author={Roberto Di Cosmo},
   email={roberto at dicosmo.org},
-  revision={1.2},
+  revision={1.2-1},
   date={\today}}
 
 \hypersetup{%
@@ -203,29 +203,32 @@
 
 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

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-software/swentries.tex	2020-06-01 21:08:28 UTC (rev 55376)
@@ -126,7 +126,7 @@
   hal_id = {hal-02090402},
   hal_version = {v1},
   swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a;
-	   origin=https://hal.inria.fr/hal-02090402},
+	   origin=https://hal.archives-ouvertes.fr/hal-02090402},
   version = {1.1},
   note = {First Scilab version. It was distributed by anonymous ftp.},
   repository= {https://github.com/scilab/scilab},
@@ -159,7 +159,7 @@
   month = jan,
   file = {https://hal.inria.fr/hal-02090402/file/scilab-1.1.tar.gz},
   swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a;
-	   origin=https://hal.inria.fr/hal-02090402},
+	   origin=https://hal.archives-ouvertes.fr/hal-02090402},
   note = {First Scilab version. It was distributed by anonymous ftp.},
   crossref = {delebecque:hal-02090402}
 }

Modified: trunk/Master/texmf-dist/source/latex/biblatex-software/Makefile
===================================================================
--- trunk/Master/texmf-dist/source/latex/biblatex-software/Makefile	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/source/latex/biblatex-software/Makefile	2020-06-01 21:08:28 UTC (rev 55376)
@@ -1,8 +1,11 @@
 TEXS = $(wildcard *.tex)
 MAIN = sample-use-sty
 
-all: $(MAIN).pdf 
+.SILENT: distrib all
 
+
+all: $(MAIN).pdf software-biblatex.pdf
+
 biblatex-styles: stublist mkbiblatexstubs.sh
 	bash mkbiblatexstubs.sh < stublist
 
@@ -36,7 +39,11 @@
 	rubber -m pdftex $<
 endif
 
+
 distrib:
+	# remind maintainer to update version number in the documentation
+	echo -n "Did you update the version number in software-biblatex.tex? [y/N]"
+	read ans; if [ ".$ans" != ".y" ]; then echo "Please update it and run make distrib again"; exit 0; fi
 	# update history
 	rm history.tex
 	make software-biblatex.pdf

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx	2020-06-01 21:05:49 UTC (rev 55375)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-software/software.bbx	2020-06-01 21:08:28 UTC (rev 55376)
@@ -44,11 +44,14 @@
 % Macros
 %
 
+%
+% Notice the use of \edef to force expansion of the macro parameters before calling \nolinkurl
+%
 \newbibmacro*{swurl+urldate}{%
   \mkbibacro{URL}\addcolon\addspace%
      \ifhyperref%
         {\href{\strfield{url}}{\nolinkurl{\strfield{url}}}}%
-        {\nolinkurl{\strfield{url}}}%
+        {\edef\temp{\noexpand\nolinkurl{\strfield{url}}}\temp}%
   \iffieldundef{urlyear}%
     {}%
     {\setunit*{\addspace}%
@@ -80,7 +83,7 @@
            {\mkbibacro{HAL}\addcolon\addspace%
              \ifhyperref%
                  {\href{https://hal.archives-ouvertes.fr/#1\thefield{hal_version}}{\(\langle\)\nolinkurl{#1\thefield{hal_version}}\(\rangle\)}}%
-                 {\(\langle\)\nolinkurl{#1\thefield{hal_version}}\(\rangle\)}%
+                 {\(\langle\)\nolinkurl{#1}\thefield{hal_version}\(\rangle\)}%
            }%
            {}%
 }
@@ -111,17 +114,18 @@
 % Add here special eprint formats
 %
 \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}}}}}
+}
 
 %
 % Macros to format output



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