texlive[48634] Master: doi (9sep18)
commits+karl at tug.org
commits+karl at tug.org
Sun Sep 9 23:24:32 CEST 2018
Revision: 48634
http://tug.org/svn/texlive?view=revision&revision=48634
Author: karl
Date: 2018-09-09 23:24:32 +0200 (Sun, 09 Sep 2018)
Log Message:
-----------
doi (9sep18)
Modified Paths:
--------------
trunk/Master/texmf-dist/tex/latex/doi/doi.sty
trunk/Master/tlpkg/tlpsrc/eplain.tlpsrc
trunk/Master/tlpkg/tlpsrc/jadetex.tlpsrc
trunk/Master/tlpkg/tlpsrc/latex-bin.tlpsrc
trunk/Master/tlpkg/tlpsrc/mltex.tlpsrc
trunk/Master/tlpkg/tlpsrc/pdftex.tlpsrc
trunk/Master/tlpkg/tlpsrc/xmltex.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/doi/README.md
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/doi/README
Deleted: trunk/Master/texmf-dist/doc/latex/doi/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/doi/README 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/texmf-dist/doc/latex/doi/README 2018-09-09 21:24:32 UTC (rev 48634)
@@ -1,22 +0,0 @@
-You can hyperlink DOI numbers to dx.doi.org. Some publishers have elected to
-use some nasty characters in their doi numbering scheme (<, >, ; have all
-been spotted). This will either upset (La)TeX, or your pdf reader. This style
-file contains a user-level command \doi{}, which takes a doi number,
-and creates a hyperlink from it. The format of the doi can be controlled by
-redefining the \doitext command, which does not take an argument (unlike the
-command with the same name in the doipubmed package).
-
-Note: the \doi{} command connot be used within other macros.
-
-This style file is based original code written by Heiko Oberdiek
-and published on comp.text.tex. It was packaged with permission
-as a style file by Maarten Sneep, with some minor changes suggested
-by Bruno Voisin to accomodate the Apple pdf framework
-Michael Orlov noticed that underscores were not handled appropriately
-and sends in a patch.
-
-This code is placed under the LPPL.
-
-Original discussion on Google under:
-http://groups.google.com/group/comp.text.tex/msg/922919daa207d613
-
Added: trunk/Master/texmf-dist/doc/latex/doi/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/doi/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/doi/README.md 2018-09-09 21:24:32 UTC (rev 48634)
@@ -0,0 +1,26 @@
+You can hyperlink DOI numbers to dx.doi.org. Some publishers have elected to
+use some nasty characters in their doi numbering scheme (<, >, ; have all
+been spotted). This will either upset (La)TeX, or your pdf reader. This style
+file contains a user-level command \doi{}, which takes a doi number,
+and creates a hyperlink from it. The format of the doi can be controlled by
+redefining the \doitext command, which does not take an argument (unlike the
+command with the same name in the doipubmed package).
+
+Note: the \doi{} command connot be used within other macros.
+
+This style file is based original code written by Heiko Oberdiek
+and published on comp.text.tex. It was packaged with permission
+as a style file by Maarten Sneep, with some minor changes suggested
+by Bruno Voisin to accomodate the Apple pdf framework
+Michael Orlov noticed that underscores were not handled appropriately
+and sends in a patch.
+Now supported by the "Oberdiek Package Support Group" at GitHub.
+
+This code is placed under the LPPL.
+
+Original discussion on Google under:
+http://groups.google.com/group/comp.text.tex/msg/922919daa207d613
+
+Comments and bug reports to
+https://github.com/ho-tex/doi/issues
+
Property changes on: trunk/Master/texmf-dist/doc/latex/doi/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/doi/doi.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/doi/doi.sty 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/texmf-dist/tex/latex/doi/doi.sty 2018-09-09 21:24:32 UTC (rev 48634)
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{doi}[2007/07/24 handle doi numbers]
+\ProvidesPackage{doi}[2018/09/09 handle doi numbers]
%% This style file is based original code written by Heiko Oberdiek
%% and published on comp.text.tex. It was packaged with permission
@@ -11,6 +11,9 @@
%% Original discussion on Google under:
%% http://groups.google.com/group/comp.text.tex/msg/922919daa207d613
%%
+%% Comments and bug reports may be submitted via
+%% https://github.com/ho-tex/doi/issues
+%%
%% You can hyperlink DOI numbers to dx.doi.org. Some publishers have elected to
%% use some nasty characters in their doi numbering scheme (<, >, ; have all
%% been spotted). This will either upset (La)TeX, or your pdf reader. This style
@@ -30,17 +33,29 @@
%% A \doitext command is added, following the example from doipubmed.
%% Some comments are added to make the code a little more readable.
%% July 2007: Michael Orlov sends in a patch to correctly handle underscores.
+%% September 2018: David Carlisle for "Oberdiek Package Support Group"
+%% Move to github https://github.com/ho-tex/doi/issues
+%% Add macro defaulting to new
+%% https://doi.org/ URL but may be set to old http://dx.doi.org/
+%%
+
%% We need hyperref, but you probably want to load hyperref
%% beforehand, or set some options later on.
\RequirePackage{hyperref}
-%% to change the default prefix, redefine this command within your own code.
+%% To change the default prefix, redefine this command within your own code.
%% It takes no argument, which is different from the doipubmed package.
\newcommand{\doitext}{doi:}
-%% the meat of the code
-%% the first command opens a group, and changes a few catcodes.
+%% To change the default DOI URL resoloution URL, redefine this command
+%% within your own code.
+%% Previous versions of this package always used http://dx.doi.org/ but
+%% The preferred address is now as given here, https://doi.org/
+\newcommand{\doiurl}{https://doi.org/}
+
+%% The meat of the code.
+%% The first command opens a group, and changes a few catcodes.
\newcommand*{\doi}{%
\begingroup
\lccode`\~=`\#\relax
@@ -59,7 +74,7 @@
\@doi
}
-%% this is the actual command which processes the argument, with the catcodes
+%% This is the actual command which processes the argument, with the catcodes
%% set in the previous command
%% it closes the group, and spits out the url.
\def\@doi#1{%
@@ -73,11 +88,11 @@
\edef\_{_}%
\edef\textless{\@percentchar3C}% instead of {\string<} for Apple
\edef\textgreater{\@percentchar3E}% instead of {\sting>} for Apple
- \edef\x{\toks1={\noexpand\href{http://dx.doi.org/#1}}}%
+ \edef\x{\toks2={\noexpand\href{\doiurl#1}}}%
\x
- \edef\x{\endgroup\doitext\the\toks1 \the\toks0}%
+ \edef\x{\endgroup\doitext\the\toks2 \the\toks0}%
\x
}
-%% that's all folks.
+%% That's all folks.
\endinput
Modified: trunk/Master/tlpkg/tlpsrc/eplain.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/eplain.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/eplain.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -1,7 +1,7 @@
depend pdftex
execute AddFormat name=eplain engine=pdftex patterns=language.dat \
options="-translate-file=cp227.tcx *eplain.ini" \
- fmttriggers=babel,cm,hyphen-base,knuth-lib,latex-fonts,plain
+ fmttriggers=babel,cm,dehyph,hyphen-base,knuth-lib,latex-fonts,plain
docpattern +f texmf-dist/doc/info/eplain.info
docpattern +f texmf-dist/doc/man/man1/eplain.*
binpattern f bin/${ARCH}/eplain
Modified: trunk/Master/tlpkg/tlpsrc/jadetex.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/jadetex.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/jadetex.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -3,8 +3,9 @@
depend pdftex
depend tex
-tlpsetvar fmtcomm amsfonts,babel,cm,colortbl,cyrillic,ec,fancyhdr,graphics,\
-graphics-cfg,graphics-def,hyperref,hyphen-base,ifxetex,latex,\
+tlpsetvar fmtcomm amsfonts,babel,cm,colortbl,cyrillic,dehyph,\
+ec,fancyhdr,graphics,graphics-cfg,graphics-def,hyperref,\
+hyphen-base,ifxetex,latex,\
latex-fonts,latexconfig,marvosym,oberdiek,passivetex,psnfss,stmaryrd,\
symbol,tex-ini-files,tipa,tools,ulem,url,wasysym,zapfding
#
Modified: trunk/Master/tlpkg/tlpsrc/latex-bin.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/latex-bin.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/latex-bin.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -11,13 +11,13 @@
execute AddFormat name=latex engine=pdftex \
patterns=language.dat \
options="-translate-file=cp227.tcx *latex.ini" \
- fmttriggers=${fmtcomm},latexconfig
+ fmttriggers=${fmtcomm},dehyph,latexconfig
#
binpattern f bin/${ARCH}/pdflatex
execute AddFormat name=pdflatex engine=pdftex \
patterns=language.dat \
options="-translate-file=cp227.tcx *pdflatex.ini" \
- fmttriggers=${fmtcomm},latexconfig
+ fmttriggers=${fmtcomm},dehyph,latexconfig
#
binpattern f bin/${ARCH}/dvilualatex
execute AddFormat name=dvilualatex engine=luatex \
Modified: trunk/Master/tlpkg/tlpsrc/mltex.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/mltex.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/mltex.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -4,7 +4,7 @@
#
execute AddFormat name=mllatex engine=pdftex patterns=language.dat \
options="-translate-file=cp227.tcx -mltex *mllatex.ini" \
- fmttriggers=${fmtdeps},babel,latex,latexconfig,latex-fonts
+ fmttriggers=${fmtdeps},babel,dehyph,latex,latexconfig,latex-fonts
#
execute AddFormat name=mltex engine=pdftex \
options="-translate-file=cp227.tcx -mltex mltex.ini" \
Modified: trunk/Master/tlpkg/tlpsrc/pdftex.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/pdftex.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/pdftex.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -1,7 +1,7 @@
category TLCore
depend kpathsea
-tlpsetvar fmtcomm cm,etex,hyphen-base,knuth-lib,plain
+tlpsetvar fmtcomm cm,dehyph,etex,hyphen-base,knuth-lib,plain
#
execute AddFormat name=pdftex engine=pdftex patterns=language.def \
options="-translate-file=cp227.tcx *pdfetex.ini" \
Modified: trunk/Master/tlpkg/tlpsrc/xmltex.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/xmltex.tlpsrc 2018-09-09 17:56:55 UTC (rev 48633)
+++ trunk/Master/tlpkg/tlpsrc/xmltex.tlpsrc 2018-09-09 21:24:32 UTC (rev 48634)
@@ -3,7 +3,7 @@
depend tex
depend xmltexconfig
-tlpsetvar fmtcomm babel,cm,hyphen-base,latex,latex-fonts,latexconfig,\
+tlpsetvar fmtcomm babel,cm,dehyph,hyphen-base,latex,latex-fonts,latexconfig,\
tex-ini-files,xmltexconfig
#
execute AddFormat name=xmltex engine=pdftex patterns=language.dat \
More information about the tex-live-commits
mailing list