diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-29 20:25:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-29 20:25:11 +0000 |
commit | a8029f11221860bf15a745fbc04869def0221f4d (patch) | |
tree | 612b469ef1211e1f4351fbb4639aa3ea7a512b10 /Master/texmf-dist/source | |
parent | 70af71c72e5d0a76f8adf71fb52c6e16261e77c6 (diff) |
lwarp (29may21)
git-svn-id: svn://tug.org/texlive/trunk@59390 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/lwarp/lwarp.dtx | 118 |
1 files changed, 97 insertions, 21 deletions
diff --git a/Master/texmf-dist/source/latex/lwarp/lwarp.dtx b/Master/texmf-dist/source/latex/lwarp/lwarp.dtx index b326554a47f..0692faa1a39 100644 --- a/Master/texmf-dist/source/latex/lwarp/lwarp.dtx +++ b/Master/texmf-dist/source/latex/lwarp/lwarp.dtx @@ -16,7 +16,7 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{lwarp} -%<package> [2021/05/24 v0.897 Allows LaTeX to directly produce HTML5 output.] +%<package> [2021/05/24 v0.898 Allows LaTeX to directly produce HTML5 output.] % %<*driver> \documentclass{ltxdoc} @@ -3098,7 +3098,7 @@ This boolean may be tested by the user for later use. %<*package> % \fi % -% \CheckSum{54242} +% \CheckSum{54272} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -3237,6 +3237,7 @@ This boolean may be tested by the user for later use. % \changes{v0.895}{2021/02/18}{\ 2021/02/18} % \changes{v0.896}{2021/04/08}{\ 2021/04/08} % \changes{v0.897}{2021/05/24}{\ 2021/05/24} +% \changes{v0.898}{2021/05/29}{\ 2021/05/29} @@ -3460,6 +3461,11 @@ This boolean may be tested by the user for later use. % % \begin{description} % \needspace{2\baselineskip} +% \item[v0.898:] Minor updates. +% \begin{itemize} +% \item Fewer underfull \cs{hbox} warnings. +% \item \pkg{wrapfig}: Improved integration with \pkg{keyfloat}. +% \end{itemize} % \item[v0.897:] \pkg{siunitx} rollback. % \begin{itemize} % \item Added a table of file extensions to use with \cs{includegraphics}. @@ -20514,7 +20520,7 @@ MathJax = { -- Copyright 2016-2021 Brian Dunn -printversion = "v0.897" +printversion = "v0.898" requiredconfversion = "2" -- also at *lwarpmk.conf function printhelp () @@ -28453,6 +28459,13 @@ end -- not --version \setlength{\topsep}{0pt}% \setlength{\partopsep}{0pt}% % \end{macrocode} +% +% Inside the verbatim, temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% % Create a new |pre| of the given class. % The tags may temporarily be turned off for internal use, such % as loading the \brand{MathJax} script. @@ -34579,6 +34592,15 @@ end -- not --version }{% \BlockClass{figurecaption}% }% +% \end{macrocode} +% +% Inside the caption, temporarily prevent underfull \cs{hbox} warnings, +% such as when the caption contains a math \SVG\ image. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% \begin{macrocode} }% {\endBlockClass} % \end{macrocode} @@ -37548,6 +37570,13 @@ end -- not --version \LWR@restoreorigformatting \booltrue{LWR@insidemathcomment} % \end{macrocode} +% +% Temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% % ^^A When a label is encountered, the \HTML\ comment is closed, % ^^A the label is generated in an \HTML-output context, % ^^A then the \HTML\ comment is opened again. @@ -37943,6 +37972,14 @@ end -- not --version \begingroup \LWR@restoreorigformatting +% \end{macrocode} +% +% Temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% \begin{macrocode} \booltrue{LWR@insidemathcomment} } % \end{macrocode} @@ -38550,6 +38587,13 @@ end -- not --version % \begin{macrocode} \LWR@ensuredoingapar% % \end{macrocode} +% +% Inside the \env{lateximage}, temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% % Next file: % \begin{macrocode} \addtocounter{LWR@externalfilecnt}{1}% @@ -58940,6 +58984,13 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space % \begin{macrocode} \large% % \end{macrocode} +% +% Temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% % Reset some defaults, possibly will be changed below if options were given: % \begin{macrocode} \setlength{\LWR@igwidth}{0pt}% @@ -63535,6 +63586,14 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak} \lstframe@\lst@frameround ffff\relax% lwarp \lst@multicols\@empty% lwarp \begingroup% +% \end{macrocode} +% +% Inside the listing, temporarily prevent underfull \cs{hbox} warnings. +% \changes{v0.898}{2021/05/24}{\pkg{listings}: Reduced underfull \cs{hbox} warnings.} +% \begin{macrocode} + \hbadness=10000\relax% +% \end{macrocode} +% \begin{macrocode} \ifx\lst@float\relax\else% \edef\@tempa{\noexpand\lst@beginfloat{lstlisting}[\lst@float]}% \expandafter\@tempa% @@ -87328,31 +87387,48 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf', % add explicit \HTML\ style.} % \changes{v0.75}{2019/09/22}{\pkg{wrapfig}: Fix for width.} % \changes{v0.896}{2021/03/05}{\pkg{wrapfig}: Added \ARIA\ role.} +% \changes{v0.898}{2021/05/26}{\pkg{wrapfig}: Improved integration with \pkg{keyfloat}.} % \begin{macrocode} \newcommand*{\LWR@wrapposition}{} +\newcommand{\LWR@wrapfig@printHTMLwidth}{width:\LWR@printlength{\LWR@templengthone}} + +\AtBeginDocument{ + \@ifpackageloaded{keyfloat}{ + \renewcommand{\LWR@wrapfig@printHTMLwidth}{% + \ifboolexpr{ + test {\ifnumgreater{\value{KFLT@keyfloatdepth}}{0}} or + bool {KFLT@inkeysubfloats} + }% + {\LWR@printpercentlength{\LWR@templengthone}{\linewidth}\%; }% + {\LWR@printlength{\LWR@templengthone}}% + }% + }{} +} + \newcommand*{\LWR@subwrapfigure}[2]{% -\renewcommand*{\LWR@wrapposition}{}% -\ifthenelse{% - \equal{#1}{r}\OR\equal{#1}{R}\OR% - \equal{#1}{o}\OR\equal{#1}{O}% -}% - {\renewcommand*{\LWR@wrapposition}{float:right}}% - {\renewcommand*{\LWR@wrapposition}{float:left}}% -\setlength{\LWR@templengthone}{#2}% -\LWR@BlockClassWP{% - width:\LWR@printlength{\LWR@templengthone}; \LWR@wrapposition; % - margin:10pt% -}% -{% - width:\LWR@printlength{\LWR@templengthone}; \LWR@wrapposition; % -}% -(note)% -{marginblock}% + \renewcommand*{\LWR@wrapposition}{}% + \ifthenelse{% + \equal{#1}{r}\OR\equal{#1}{R}\OR% + \equal{#1}{o}\OR\equal{#1}{O}% + }% + {\renewcommand*{\LWR@wrapposition}{float:right}}% + {\renewcommand*{\LWR@wrapposition}{float:left}}% + \setlength{\LWR@templengthone}{#2}% + \LWR@BlockClassWP{% + width:\LWR@printlength{\LWR@templengthone}; \LWR@wrapposition; % + margin:10pt% + }% + {% + width:\LWR@wrapfig@printHTMLwidth; % + \LWR@wrapposition; % + }% + (note)% + {marginblock}% % \end{macrocode} % \changes{v0.75}{2019/09/17}{\pkg{wrapfig}: Fix for \cs{linewidth}.} % \begin{macrocode} -\setlength{\linewidth}{\LWR@templengthone}% + \setlength{\linewidth}{\LWR@templengthone}% } |