diff options
author | Karl Berry <karl@freefriends.org> | 2024-02-22 21:00:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-02-22 21:00:30 +0000 |
commit | 1a2ae2bafed7d0fe1501ae0721681b6988db3b30 (patch) | |
tree | a80b393a199c8f09e4bff83bd2a27e952e6abb69 /Master/texmf-dist/tex | |
parent | a5b6acf365090253238a08b881e1a6298fca3576 (diff) |
lwarp (22feb24)
git-svn-id: svn://tug.org/texlive/trunk@70067 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-doipubmed.sty | 45 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp.sty | 67 |
2 files changed, 89 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-doipubmed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-doipubmed.sty new file mode 100644 index 00000000000..e8f29a7e8c2 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-doipubmed.sty @@ -0,0 +1,45 @@ +%% +%% This is file `lwarp-doipubmed.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `doipubmed') +%% This is a generated file. +%% Copyright 2016-2022 Brian Dunn +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. +\LWR@ProvidesPackagePass{doipubmed}[2007/08/20] +\VerifyCommand[lwarp][doipubmed]{\doi}{13FFCBAF4F1414B838B6C3AD344117A8} + +\renewcommand*{\doi}[1]{% +\def\@doi@code{}% +\@doi@linksubs#1\#\@@\@doi@code +\@onelevel@sanitize{\@doi@code}% +\def\@doi@text{}% +\@doi@textsubs#1\@nil\@@\@doi@text% +\xpretocmd{\@doi@code}{http://dx.doi.org/}{}{}% +\expandafter\href\expandafter{\@doi@code}{\doitext{\@doi@text}}} +\DeclareDocumentCommand{\LWR@citeurlb}{m}{% + \LWR@ensuredoingapar% + \textless% + \LWR@href@sanitized{#1}{#1}% + \textgreater% + \endgroup% +} + +\renewrobustcmd*{\citeurl}{% + \begingroup% + \LWR@linkcatcodes% + \LWR@citeurlb% +} + +\endinput +%% +%% End of file `lwarp-doipubmed.sty'. diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty index a16a5e017bc..3aa12bd1b4d 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty @@ -17,10 +17,11 @@ %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{lwarp} - [2024/02/05 v0.915 Allows LaTeX to directly produce HTML5 output.] + [2024/02/22 v0.916 Allows LaTeX to directly produce HTML5 output.] +%% @@ -1680,9 +1681,18 @@ {}% no brace \IfValueTF{#1}% {% options given + \edef\LWR@packageoptions{#1}% \IfValueTF{#3}% version given? - {\LWR@origRequirePackage[#1]{\LWR@parsedrequirepackagenames}[#3]}% - {\LWR@origRequirePackage[#1]{\LWR@parsedrequirepackagenames}}% + {% + \expandafter\LWR@origRequirePackage% + \expandafter[\LWR@packageoptions]% + {\LWR@parsedrequirepackagenames}[#3]% + }% + {% + \expandafter\LWR@origRequirePackage% + \expandafter[\LWR@packageoptions]% + {\LWR@parsedrequirepackagenames}% + }% }% {% no options given \IfValueTF{#3}% version given? @@ -4885,7 +4895,7 @@ MathJax = { -- Copyright 2016-2024 Brian Dunn -printversion = "v0.915" +printversion = "v0.916" requiredconfversion = "2" -- also at *lwarpmk.conf function printhelp () @@ -7440,11 +7450,15 @@ end -- not --version \newbool{LWR@MathJax@silentquotes} \boolfalse{LWR@MathJax@silentquotes} +\expandafter\def\expandafter\LWR@eolspace\expandafter{\detokenize{\ +}}% there is a trailing space in the previous line + \catcode`\&=12 \newcommand*{\LWR@HTMLsanitize@tmpb}{% \ifbool{LWR@HTMLsanitize@tmpb@enable}% {% - \LWR@replacestrings{&}{&}% must be first because & is used for lt, gt, etc. + \expandafter\LWR@replacestrings\expandafter{\LWR@eolspace}{\ }% + \LWR@replacestrings{&}{&}% Must be before the following: \LWR@replacestrings{<}{<}% \LWR@replacestrings{>}{>}% \LWR@replacestrings{'}{'}% @@ -7722,23 +7736,31 @@ end -- not --version \ifcsundef{LWR@filename\LWR@hashedname}{% \csdef{LWR@filename\LWR@hashedname}{}% }{% - \PackageError{lwarp}% - {% - The section name:\MessageBreak - ``#1'',\MessageBreak - at the line number listed below,\MessageBreak - generates the filename\MessageBreak - ``\LWR@thisfilename'',\MessageBreak - which appears to be a duplicate. There is a\MessageBreak - previous section with an identical or similar name.\MessageBreak - While generating file names, Lwarp sanitizes math,\MessageBreak - most symbols, and a few common short words,\MessageBreak - and this may cause a conflict.\MessageBreak - Enter 'H' for possible solutions% - }% - {% - \LWR@avoiddupfilenames% - }% + \ifcsempty{LWR@filename\LWR@hashedname}% + {% first instance + \PackageWarning{lwarp} + {% + The section name:\MessageBreak + ``#1'',\MessageBreak + at the line number listed below,\MessageBreak + generates the filename\MessageBreak + ``\LWR@thisfilename'',\MessageBreak + which appears to be a duplicate. There is a\MessageBreak + previous section with an identical or similar name.\MessageBreak + A unique file number has been appended to the file name\MessageBreak + of this and any further similar files.\MessageBreak + This number may change as sections are added/removed,\MessageBreak + and obsolete HTML files may result.\MessageBreak + To remove these files, use lwarpmk cleanall.\MessageBreak + (While generating file names, Lwarp sanitizes math,\MessageBreak + most symbols, and a few common short words,\MessageBreak + and this may cause a conflict.)\MessageBreak + \LWR@avoiddupfilenames% + }% + \csdef{LWR@filename\LWR@hashedname}{1}% + }% first instance + {}% repeated instances + \edef\LWR@thisfilename{\LWR@thisfilename-\arabic{LWR@htmlseqfilenumber}}% }% }% {\renewcommand*{\LWR@thisfilename}{\arabic{LWR@htmlfilenumber}}} @@ -11797,7 +11819,6 @@ end -- not --version \LWR@htmlelementclass{nav}{sidetoc} \setcounter{tocdepth}{\value{SideTOCDepth}} - \begin{BlockClass}{sidetoctitle} \ifcsvoid{thetitle}{}{\InlineClass{sidetocthetitle}{\thetitle}\par} \sidetocname |