From 0f4a34d1fe6262bc72205b50adb2ae5ab576d427 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Aug 2017 21:15:43 +0000 Subject: lwarp (17aug17) git-svn-id: svn://tug.org/texlive/trunk@45054 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/lwarp/lwarp-abstract.sty | 2 +- Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty | 10 +- .../texmf-dist/tex/latex/lwarp/lwarp-endnotes.sty | 2 +- .../texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty | 6 +- .../texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty | 26 +- .../texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty | 54 +- .../texmf-dist/tex/latex/lwarp/lwarp-footnote.sty | 8 +- Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty | 16 +- .../texmf-dist/tex/latex/lwarp/lwarp-mdframed.sty | 55 +- .../texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty | 264 +-- .../texmf-dist/tex/latex/lwarp/lwarp-rotfloat.sty | 6 +- .../texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty | 4 +- Master/texmf-dist/tex/latex/lwarp/lwarp-subfig.sty | 46 +- .../texmf-dist/tex/latex/lwarp/lwarp-theorem.sty | 106 +- .../tex/latex/lwarp/lwarp-threeparttable.sty | 2 +- .../tex/latex/lwarp/lwarp-transparent.sty | 29 + Master/texmf-dist/tex/latex/lwarp/lwarp-upref.sty | 21 + .../texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty | 13 +- Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty | 170 +- Master/texmf-dist/tex/latex/lwarp/lwarp.sty | 1952 +++++++++++--------- 20 files changed, 1626 insertions(+), 1166 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/lwarp/lwarp-transparent.sty create mode 100644 Master/texmf-dist/tex/latex/lwarp/lwarp-upref.sty (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty index 4d572b925b6..d5f78b8c505 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-abstract.sty @@ -56,7 +56,7 @@ \put@bsintoc% \begin{@bstr@ctlist}\if@bsrunin\@bsrunintitle\fi\abstracttextfont}% {\par\end{@bstr@ctlist}\vfil\null%\endtitlepage -} + } \else \renewenvironment{abstract}{% \if@bsrunin diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty index d4ee185135f..6d2b70ba793 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-amsthm.sty @@ -25,10 +25,10 @@ \@ifundefined{th@#1}{% \PackageWarning{amsthm}{Unknown theoremstyle `#1'}% \thm@style{plain}% -\renewcommand{\LWR@newtheoremstyle}{plain}% new + \renewcommand{\LWR@newtheoremstyle}{plain}% new }{% \thm@style{#1}% -\renewcommand{\LWR@newtheoremstyle}{#1}% new + \renewcommand{\LWR@newtheoremstyle}{#1}% new }% } @@ -45,7 +45,7 @@ \else % numbered theorem, need to check for optional arg \def\@tempa{\@oparg{\@ynthm{#2}}[]}% \fi -\AtBeginEnvironment{#2}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#2}}}% new + \AtBeginEnvironment{#2}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#2}}}% new }% \@tempa } @@ -69,7 +69,7 @@ \LWR@forcenewpage% new \BlockClass{amsthmbody\LWR@thisthmstyle}% new \deferred@thm@head{ -\the\thm@headfont \thm@indent + \the\thm@headfont \thm@indent \@ifempty{#1}{\let\thmname\@gobble}{\LWR@haveamsthmname}% new \@ifempty{#2}{\let\thmnumber\@gobble}{\LWR@haveamsthmnumber}% new \@ifempty{#3}{\let\thmnote\@gobble}{\LWR@haveamsthmnote}% new @@ -87,7 +87,7 @@ } \renewenvironment{proof}[1][\proofname]{\par \LWR@forcenewpage% new -\BlockClass{amsthmproof}% new + \BlockClass{amsthmproof}% new \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-endnotes.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-endnotes.sty index 7f087b4e5d0..ab261f9beef 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-endnotes.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-endnotes.sty @@ -22,7 +22,7 @@ \makeenmark } -\def\@makeenmark{\hbox{\textsuperscript{\normalfont\theenmark}}} +\def\@makeenmark{\hbox{\LWR@htmlspan{sup}{\normalfont\theenmark}}} \def\makeenmark{\@makeenmark} \endinput %% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty index 58524bb0e56..e5cd7e01ed8 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancybox.sty @@ -73,7 +73,7 @@ \def\endLandscape{} \let\LWRFB@UseVerbatim\UseVerbatim \renewcommand*{\UseVerbatim}[1]{% -\LWR@atbeginverbatim{Verbatim}\unskip\LWR@origvspace*{-\baselineskip}%% +\LWR@atbeginverbatim{Verbatim}\unskip\LWR@origvspace*{-.5\baselineskip}%% \LWRFB@UseVerbatim{#1}% \LWR@afterendverbatim% } @@ -81,13 +81,13 @@ \let\LWRFB@LUseVerbatim\LUseVerbatim \renewcommand*{\LUseVerbatim}[1]{% -\LWR@atbeginverbatim{LVerbatim}\unskip\LWR@origvspace*{-\baselineskip}%% +\LWR@atbeginverbatim{LVerbatim}%\unskip\LWR@origvspace*{-\baselineskip}%% \LWRFB@LUseVerbatim{#1}% \LWR@afterendverbatim% } \def\@BUseVerbatim[#1]#2{% -\LWR@atbeginverbatim{BVerbatim}\unskip\LWR@origvspace*{-\baselineskip}%% +\LWR@atbeginverbatim{BVerbatim}\unskip\LWR@origvspace*{-.5\baselineskip}%% \LWRFB@UseVerbatim{#2}% \LWR@afterendverbatim% } diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty index 20c759d80ad..80de985e585 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fancyvrb.sty @@ -157,35 +157,35 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor \else \ifnum#1=\z@ \ifx\FV@LabelPositionTopLine\relax -\else -\LWR@FVfindbordercolor + \else + \LWR@FVfindbordercolor \LWR@htmltagc{div class="fancyvrblabel" style="color: \#\LWR@tempcolor"} -\LWR@origtextrm{\FV@LabelBegin}% \textrm preserves emdash -\LWR@htmltagc{/div} -\fi + \LWR@origtextrm{\FV@LabelBegin}% \textrm preserves emdash + \LWR@htmltagc{/div} + \fi \else \ifx\FV@LabelPositionBottomLine\relax -\else -\LWR@FVfindbordercolor + \else + \LWR@FVfindbordercolor \LWR@htmltagc{div class="fancyvrblabel" style="color: \#\LWR@tempcolor"} -\LWR@origtextrm{\FV@LabelEnd} -\LWR@htmltagc{/div} -\fi + \LWR@origtextrm{\FV@LabelEnd} + \LWR@htmltagc{/div} + \fi \fi \fi \hss -} + } } \def\FV@ListProcessLine#1{% \hbox to \hsize{% \hbox to \VerbatimHTMLWidth {% \ifcsvoid{FV@LeftListNumber}{}{\kern 2.5em}% -\FV@LeftListNumber% + \FV@LeftListNumber% \FancyVerbFormatLine{#1}% \hss% \FV@RightListNumber% -}% + }% \hss% required to avoid underfull hboxes } } diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty index 90bab9c3c0d..efdf831f078 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty @@ -33,29 +33,29 @@ \NewDocumentCommand{\floatbox}{o m o o o +m +m}{% \ifbool{LWR@subcaptionloaded}% {% subcaption -\ifbool{LWR@insubfloatrow}% -{% subcaption in a subfloatrow -\IfValueTF{#3}% -{\@nameuse{sub#2}{#3}}% -{\@nameuse{sub#2}{\linewidth}}% -}% subcaption in a subfloatrow -{% subcaption not in subfloatrow -\@nameuse{#2}% -}% subcaption not in subfloatrow -#6 - -#7 -\ifbool{LWR@insubfloatrow}% -{\@nameuse{endsub#2}}% -{\@nameuse{end#2}}% + \ifbool{LWR@insubfloatrow}% + {% subcaption in a subfloatrow + \IfValueTF{#3}% + {\@nameuse{sub#2}{#3}}% + {\@nameuse{sub#2}{\linewidth}}% + }% subcaption in a subfloatrow + {% subcaption not in subfloatrow + \@nameuse{#2}% + }% subcaption not in subfloatrow + #6 + + #7 + \ifbool{LWR@insubfloatrow}% + {\@nameuse{endsub#2}}% + {\@nameuse{end#2}}% }% subcaption {% assume subfig \ifbool{LWR@insubfloatrow}% {% subfig in a subfloatrow -\begingroup -\let\caption\@firstofone -\subfloat[#6]{#7} -\endgroup + \begingroup + \let\caption\@firstofone + \subfloat[#6]{#7} + \endgroup }% subfig in a subfloatrow {% subfig package, but not a subfig \@nameuse{#2} @@ -130,16 +130,16 @@ \LWR@traceinfo{finished setkeys frowkeys}% \ifthenelse{\equal{\LWR@frowkeywithin}{}} { -\LWR@traceinfo{about to newfloat #1 \LWR@frowkeyplacement\ -\LWR@frowkeyfileext}% -\newfloat{#1}{\LWR@frowkeyplacement}{\LWR@frowkeyfileext} + \LWR@traceinfo{about to newfloat #1 \LWR@frowkeyplacement\ + \LWR@frowkeyfileext}% + \newfloat{#1}{\LWR@frowkeyplacement}{\LWR@frowkeyfileext} }% {% -\LWR@traceinfo{about to newfloat #1\ \LWR@frowkeyplacement\ -\LWR@frowkeyfileext\ \LWR@frowkeywithin}% -\newfloat{#1}{\LWR@frowkeyplacement}% -{\LWR@frowkeyfileext}[\LWR@frowkeywithin]% -\LWR@traceinfo{finished newfloat #1} + \LWR@traceinfo{about to newfloat #1\ \LWR@frowkeyplacement\ + \LWR@frowkeyfileext\ \LWR@frowkeywithin}% + \newfloat{#1}{\LWR@frowkeyplacement}% + {\LWR@frowkeyfileext}[\LWR@frowkeywithin]% + \LWR@traceinfo{finished newfloat #1} }% \ifthenelse{\equal{\LWR@frowkeyname}{}} {} diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-footnote.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-footnote.sty index a55df951b3b..9da839dd532 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-footnote.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-footnote.sty @@ -20,7 +20,10 @@ \protected@edef\@currentlabel{\csname p@\@mpfn\endcsname\@thefnmark}% } -\newcommand*{\fn@endnote}{\LWR@htmltagc{/\LWR@tagregularparagraph}} +\newcommand*{\fn@endnote}{% +\LWR@htmltagc{/\LWR@tagregularparagraph}% +\LWR@orignewline% +} \def\fn@startfntext{% \setbox\z@\vbox\bgroup% \fn@startnote% @@ -28,7 +31,8 @@ \ignorespaces% } \def\fn@endfntext{% -\LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@orignewline% \fn@postfntext% \egroup% \begingroup% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty index b78bd31188b..50218d3d4ae 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-framed.sty @@ -48,7 +48,7 @@ \renewenvironment{leftbar}{% \LWR@forcenewpage -\BlockClass{framedleftbar} + \BlockClass{framedleftbar} \def\FrameCommand{}% \MakeFramed {} }% @@ -80,18 +80,18 @@ \LWR@forcenewpage \begin{BlockClass}[border: 3px solid \#\LWR@tempcolor]{framed}% \ifthenelse{\isempty{#1}}{}{% not empty -\begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}% -\textcolor{TFTitleColor}{\textbf{#1}}% -\end{BlockClass} + \begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}% + \textcolor{TFTitleColor}{\textbf{#1}}% + \end{BlockClass} }% not empty #7 \ifthenelse{\isempty{#2}}{}{% not empty -\convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor% -\begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}% -\textcolor{TFTitleColor}{\textbf{#2}}% -\end{BlockClass} + \convertcolorspec{named}{TFFrameColor}{HTML}\LWR@tempcolor% + \begin{BlockClass}[background: \#\LWR@tempcolor]{framedtitle}% + \textcolor{TFTitleColor}{\textbf{#2}}% + \end{BlockClass} }% not empty \end{BlockClass} } diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-mdframed.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-mdframed.sty index 7be342757ea..f463c037efa 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-mdframed.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-mdframed.sty @@ -47,17 +47,18 @@ border: \LWR@mdfprintlength{linewidth} solid \LWR@mdfprintcolor{linecolor} ; \LWR@orignewline border-radius: \LWR@mdfprintlength{roundcorner} ; \LWR@orignewline \ifbool{mdf@shadow}{% -box-shadow: -\LWR@mdfprintlength{shadowsize} -\LWR@mdfprintlength{shadowsize} -\LWR@mdfprintlength{shadowsize} -\LWR@mdfprintcolor{shadowcolor} ; + box-shadow: + \LWR@mdfprintlength{shadowsize} + \LWR@mdfprintlength{shadowsize} + \LWR@mdfprintlength{shadowsize} + \LWR@mdfprintcolor{shadowcolor} ; } {box-shadow: none ;} \LWR@orignewline "} \LetLtxMacro{\hspace}{\LWR@orighspace}% \LetLtxMacro\rule\LWR@origrule% +\LetLtxMacro\makebox\LWR@origmakebox% } \newcommand*{\LWR@mdframedend}{ \LWR@htmldivclassend{\LWR@mdthisenv} @@ -77,19 +78,19 @@ background: \LWR@mdfprintcolor{frametitlebackgroundcolor} ; \LWR@orignewline \ifbool{mdf@frametitlerule}{% -border-bottom: -\LWR@mdfprintlength{frametitlerulewidth} -solid -\LWR@mdfprintcolor{frametitlerulecolor} -; \LWR@orignewline + border-bottom: + \LWR@mdfprintlength{frametitlerulewidth} + solid + \LWR@mdfprintcolor{frametitlerulecolor} + ; \LWR@orignewline }{}% border-radius: \setlength{\LWR@titleroundcorner} -{\maxof{\mdf@roundcorner@length-\mdf@linewidth@length}{0pt}} -\rndprintlength{\LWR@titleroundcorner} -\rndprintlength{\LWR@titleroundcorner} -0pt 0pt -\LWR@orignewline + {\maxof{\mdf@roundcorner@length-\mdf@linewidth@length}{0pt}} + \rndprintlength{\LWR@titleroundcorner} + \rndprintlength{\LWR@titleroundcorner} + 0pt 0pt + \LWR@orignewline " \LWR@orignewline }% span \begin{LWR@nestspan}% @@ -108,18 +109,18 @@ background: \LWR@mdfprintcolor{#1titlebackgroundcolor} ; \LWR@orignewline \ifbool{mdf@#1titleaboveline}{% -border-top: -\LWR@mdfprintlength{#1titleabovelinewidth} -solid -\LWR@mdfprintcolor{#1titleabovelinecolor} -; \LWR@orignewline + border-top: + \LWR@mdfprintlength{#1titleabovelinewidth} + solid + \LWR@mdfprintcolor{#1titleabovelinecolor} + ; \LWR@orignewline }{}% \ifbool{mdf@#1titlebelowline}{% -border-bottom: -\LWR@mdfprintlength{#1titlebelowlinewidth} -solid -\LWR@mdfprintcolor{#1titlebelowlinecolor} -; \LWR@orignewline + border-bottom: + \LWR@mdfprintlength{#1titlebelowlinewidth} + solid + \LWR@mdfprintcolor{#1titlebelowlinecolor} + ; \LWR@orignewline }{}% "}% span \begin{LWR@nestspan}% @@ -242,8 +243,8 @@ solid \begin{mdframed}[#1,frametitle={\strut#4\@temptitle}]}% {\end{mdframed}}% }% -\BeforeBeginEnvironment{#2}{\renewcommand*{\LWR@mdthisenv}{md#2}}% new -\BeforeBeginEnvironment{#2*}{\renewcommand*{\LWR@mdthisenv}{md#2}}% new + \BeforeBeginEnvironment{#2}{\renewcommand*{\LWR@mdthisenv}{md#2}}% new + \BeforeBeginEnvironment{#2*}{\renewcommand*{\LWR@mdthisenv}{md#2}}% new }% } \DeclareDocumentCommand\newmdtheoremenv{O{} m o m o }{% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty index bbf6f36c34c..63d3fc41746 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty @@ -41,11 +41,11 @@ {Unknown theoremstyle `#1'. Using `plain'}% \theorem@style{plain} \renewcommand{\LWR@newtheoremstyle}{plain}% new -}% + }% { -\theorem@style{#1} + \theorem@style{#1} \renewcommand{\LWR@newtheoremstyle}{#1}% new -} + } } @@ -61,7 +61,7 @@ \expandafter\gdef\csname mkheader@#1\endcsname {\csname setparms@#1\endcsname \@thm{#1}{#1}{#2} -}% + }% \global\@namedef{end#1}{\@endtheorem} \AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#1}}}% new \fi @@ -77,7 +77,7 @@ \expandafter\gdef\csname mkheader@#1\endcsname {\csname setparms@#1\endcsname \@thm{#1}{#1}{#2} -}% + }% \global\@namedef{end#1}{\@endtheorem} \AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#1}}}% new \fi @@ -98,7 +98,7 @@ \expandafter\gdef\csname mkheader@#1\endcsname {\csname setparms@#1\endcsname \@thm{#1}{#2}{#3} -}% + }% \global\@namedef{end#1}{\@endtheorem} \AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#1}}}% new \fi} @@ -129,116 +129,116 @@ \renewtheoremstyle{plain}% {\item[\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderplain}{##1\ ##2\theorem@separator}]}% + \InlineClass{theoremheaderplain}{##1\ ##2\theorem@separator}]}% {\item[\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderplain}{##1\ ##2\ (##3)\theorem@separator}]} + \InlineClass{theoremheaderplain}{##1\ ##2\ (##3)\theorem@separator}]} \renewtheoremstyle{break}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderbreak}{##1\ ##2\theorem@separator}\newline -]}% + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderbreak}{##1\ ##2\theorem@separator}\newline + ]}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderbreak}{##1\ ##2\ (##3)\theorem@separator}\newline -]} + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderbreak}{##1\ ##2\ (##3)\theorem@separator}\newline + ]} \renewtheoremstyle{change}% {\item[\hskip\labelsep -\theorem@headerfont -\InlineClass{theoremheaderchange}{##2\ ##1\theorem@separator}]}% + \theorem@headerfont + \InlineClass{theoremheaderchange}{##2\ ##1\theorem@separator}]}% {\item[\hskip\labelsep -\theorem@headerfont -\InlineClass{theoremheaderchange}{##2\ ##1\ (##3)\theorem@separator}]} + \theorem@headerfont + \InlineClass{theoremheaderchange}{##2\ ##1\ (##3)\theorem@separator}]} \renewtheoremstyle{changebreak}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderchangebreak}{##2\ ##1\theorem@separator}\newline -]}% + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderchangebreak}{##2\ ##1\theorem@separator}\newline + ]}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderchangebreak}{##2\ ##1\ (##3)\theorem@separator}\newline -]} + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderchangebreak}{##2\ ##1\ (##3)\theorem@separator}\newline + ]} \renewtheoremstyle{margin}% {\item[\hskip\labelsep\theorem@headerfont -\InlineClass{theoremheadermargin}{##2 \qquad ##1\theorem@separator} -]}% + \InlineClass{theoremheadermargin}{##2 \qquad ##1\theorem@separator} + ]}% {\item[\hskip\labelsep\theorem@headerfont -\InlineClass{theoremheadermargin}{##2 \qquad ##1\ (##3)\theorem@separator} -]} + \InlineClass{theoremheadermargin}{##2 \qquad ##1\ (##3)\theorem@separator} + ]} \renewtheoremstyle{marginbreak}% {\item[\hskip\labelsep\theorem@headerfont -\InlineClass{theoremheadermarginbreak}{##2 \qquad ##1\theorem@separator}\newline -]}% + \InlineClass{theoremheadermarginbreak}{##2 \qquad ##1\theorem@separator}\newline + ]}% {\item[\hskip\labelsep\theorem@headerfont -\InlineClass{theoremheadermarginbreak}{##2 \qquad ##1\ (##3)\theorem@separator}\newline -]} + \InlineClass{theoremheadermarginbreak}{##2 \qquad ##1\ (##3)\theorem@separator}\newline + ]} \renewtheoremstyle{nonumberplain}% {\item[\theorem@headerfont\hskip\labelsep -\InlineClass{theoremheaderplain}{##1\theorem@separator}]}% + \InlineClass{theoremheaderplain}{##1\theorem@separator}]}% {\item[\theorem@headerfont\hskip \labelsep -\InlineClass{theoremheaderplain}{##1\ (##3)\theorem@separator}]} + \InlineClass{theoremheaderplain}{##1\ (##3)\theorem@separator}]} \renewtheoremstyle{nonumberbreak}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderbreak}{##1\theorem@separator}\newline -]}% + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderbreak}{##1\theorem@separator}\newline + ]}% {\item[ -\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderbreak}{##1\ (##3)\theorem@separator}\newline -]} + \hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderbreak}{##1\ (##3)\theorem@separator}\newline + ]} \renewtheoremstyle{empty}% {\item[]}% {\item[\theorem@headerfont \hskip\labelsep\relax -\InlineClass{theoremheaderplain}{##3}]} + \InlineClass{theoremheaderplain}{##3}]} \renewtheoremstyle{emptybreak}% {\item[]}% {\item[\theorem@headerfont \hskip\labelsep\relax -\InlineClass{theoremheaderplain}{##3}] \ \newline} -\ifbool{LWR@ntheoremamsthm}{}{ -\newtheoremstyle{plainupright}% - {\item[\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderplain}{##1\ ##2\theorem@separator}]}% - {\item[\hskip\labelsep \theorem@headerfont -\InlineClass{theoremheaderplain}{##1\ ##2\ (##3)\theorem@separator}]} - -\newtheoremstyle{nonumberplainuprightsc}% - {\item[\theorem@headerfont\hskip\labelsep -\InlineClass{theoremheadersc}{##1\theorem@separator}]}% - {\item[\theorem@headerfont\hskip \labelsep -\InlineClass{theoremheadersc}{##1\ (##3)\theorem@separator}]} -\theoremstyle{plainupright} -\theorembodyfont{\upshape} -\theoremsymbol{\HTMLunicode{25A1}}% UTF-8 white box -\renewtheorem{Example}{Example} -\renewtheorem{example}{Example} -\renewtheorem{Beispiel}{Beispiel} -\renewtheorem{beispiel}{Beispiel} -\renewtheorem{Bemerkung}{Bemerkung} -\renewtheorem{bemerkung}{Bemerkung} -\renewtheorem{Anmerkung}{Anmerkung} -\renewtheorem{anmerkung}{Anmerkung} -\renewtheorem{Remark}{Remark} -\renewtheorem{remark}{Remark} -\renewtheorem{Definition}{Definition} -\renewtheorem{definition}{Definition} - -\theoremstyle{nonumberplainuprightsc} -\theoremsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof -\renewtheorem{Proof}{Proof} -\renewtheorem{proof}{Proof} -\renewtheorem{Beweis}{Beweis} -\renewtheorem{beweis}{Beweis} -\qedsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof - -\theoremsymbol{} + \InlineClass{theoremheaderplain}{##3}] \ \newline} +\ifbool{LWR@ntheoremamsthm}{}{% + \newtheoremstyle{plainupright}% + {\item[\hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderplain}{##1\ ##2\theorem@separator}]}% + {\item[\hskip\labelsep \theorem@headerfont + \InlineClass{theoremheaderplain}{##1\ ##2\ (##3)\theorem@separator}]} + + \newtheoremstyle{nonumberplainuprightsc}% + {\item[\theorem@headerfont\hskip\labelsep + \InlineClass{theoremheadersc}{##1\theorem@separator}]}% + {\item[\theorem@headerfont\hskip \labelsep + \InlineClass{theoremheadersc}{##1\ (##3)\theorem@separator}]} + \theoremstyle{plainupright} + \theorembodyfont{\upshape} + \theoremsymbol{\HTMLunicode{25A1}}% UTF-8 white box + \renewtheorem{Example}{Example} + \renewtheorem{example}{Example} + \renewtheorem{Beispiel}{Beispiel} + \renewtheorem{beispiel}{Beispiel} + \renewtheorem{Bemerkung}{Bemerkung} + \renewtheorem{bemerkung}{Bemerkung} + \renewtheorem{Anmerkung}{Anmerkung} + \renewtheorem{anmerkung}{Anmerkung} + \renewtheorem{Remark}{Remark} + \renewtheorem{remark}{Remark} + \renewtheorem{Definition}{Definition} + \renewtheorem{definition}{Definition} + + \theoremstyle{nonumberplainuprightsc} + \theoremsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof + \renewtheorem{Proof}{Proof} + \renewtheorem{proof}{Proof} + \renewtheorem{Beweis}{Beweis} + \renewtheorem{beweis}{Beweis} + \qedsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof + + \theoremsymbol{} }% not amsthm \ifbool{LWR@ntheoremamsthm}{ @@ -246,125 +246,125 @@ \def\theorem@headerfont{\normalfont\bfseries}\itshape% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodyplain}% new -\LWR@inctheorem% new + \BlockClass{theorembodyplain}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderplain}{##1\ ##2.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodyplain}% new -\LWR@inctheorem% new + \BlockClass{theorembodyplain}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderplain}{##1\ ##2\ (##3).} -]}} + ]}} \gdef\th@nonumberplain{% \def\theorem@headerfont{\normalfont\bfseries}\itshape% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodyplain}% new -\LWR@inctheorem% new + \BlockClass{theorembodyplain}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderplain}{##1.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodyplain}% new -\LWR@inctheorem% new + \BlockClass{theorembodyplain}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderplain}{##1\ (##3).} -]}} + ]}} \gdef\th@definition{% \def\theorem@headerfont{\normalfont\bfseries}\normalfont% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodydefinition}% new -\LWR@inctheorem% new + \BlockClass{theorembodydefinition}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderdefinition}{##1\ ##2.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodydefinition}% new -\LWR@inctheorem% new + \BlockClass{theorembodydefinition}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderdefinition}{##1\ ##2\ (##3).} -]}} + ]}} \gdef\th@nonumberdefinition{% \def\theorem@headerfont{\normalfont\bfseries}\normalfont% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodydefinition}% new -\LWR@inctheorem% new + \BlockClass{theorembodydefinition}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderdefinition}{##1.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodydefinition}% new -\LWR@inctheorem% new + \BlockClass{theorembodydefinition}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderdefinition}{##1\ (##3).} -]}} + ]}} \gdef\th@remark{% \def\theorem@headerfont{\itshape}\normalfont% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodyremark}% new -\LWR@inctheorem% new + \BlockClass{theorembodyremark}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderremark}{##1\ ##2.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodyremark}% new -\LWR@inctheorem% new + \BlockClass{theorembodyremark}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderremark}{##1\ ##2\ (##3).} -]}} + ]}} \gdef\th@nonumberremark{% \def\theorem@headerfont{\itshape}\normalfont% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodyremark}% new -\LWR@inctheorem% new + \BlockClass{theorembodyremark}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderremark}{##1.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodyremark}% new -\LWR@inctheorem% new + \BlockClass{theorembodyremark}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderremark}{##1\ (##3).} -]}} + ]}} \gdef\th@proof{% \def\theorem@headerfont{\normalfont\bfseries}\itshape% \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembodyproof}% new -\LWR@inctheorem% new + \BlockClass{theorembodyproof}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderproof}{##1.} -]}% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembodyroof}% new -\LWR@inctheorem% new + \BlockClass{theorembodyroof}% new + \LWR@inctheorem% new \item[\hskip\labelsep \InlineClass{theoremheaderproof}{##1\ (##3).} -]}} + ]}} \newcounter{proof}% \if@thmmarks -\newcounter{currproofctr}% -\newcounter{endproofctr}% + \newcounter{currproofctr}% + \newcounter{endproofctr}% \fi \gdef\proofSymbol{\openbox} @@ -372,11 +372,11 @@ \newcommand{\proofname}{Proof} \newenvironment{proof}[1][\proofname]{ -\th@proof -\def\theorem@headerfont{\itshape}% -\normalfont -\theoremsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof -\@thm{proof}{proof}{#1} + \th@proof + \def\theorem@headerfont{\itshape}% + \normalfont + \theoremsymbol{\HTMLunicode{220E}}% UTF-8 end-of-proof + \@thm{proof}{proof}{#1} }% {\@endtheorem} @@ -384,10 +384,10 @@ \let\LWR@origendtheorem\@endtheorem \renewcommand{\@endtheorem}{% \ifbool{LWR@ntheoremmarks}{% -\ifsetendmark% -\InlineClass{theoremendmark}{\csname\InTheoType Symbol\endcsname}% -\setendmarkfalse% -\fi% + \ifsetendmark% + \InlineClass{theoremendmark}{\csname\InTheoType Symbol\endcsname}% + \setendmarkfalse% + \fi% }{}% \LWR@origendtheorem% \ifbool{LWR@ntheoremmarks}{\global\setendmarktrue}{}% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-rotfloat.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-rotfloat.sty index b0f5b711d84..011ab6d59a3 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-rotfloat.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-rotfloat.sty @@ -23,11 +23,11 @@ \RenewDocumentCommand{\newfloat}{m m m o}{% \IfValueTF{#4} { -\DeclareFloatingEnvironment[fileext=#3,within=#4]{#1} + \DeclareFloatingEnvironment[fileext=#3,within=#4]{#1} } { -\DeclareFloatingEnvironment[fileext=#3]{#1} -\DeclareFloatingEnvironment[fileext=#3]{sideways#1} + \DeclareFloatingEnvironment[fileext=#3]{#1} + \DeclareFloatingEnvironment[fileext=#3]{sideways#1} } \csletcs{sideways#1}{#1} \csletcs{endsideways#1}{end#1} diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty index 64696f9f855..42b5c1e5339 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty @@ -18,7 +18,7 @@ \LWR@ProvidesPackagePass{sidenotes} \RenewDocumentCommand \sidecaption {s o o m} { -\LWR@stoppars + \LWR@stoppars \captionsetup{style=sidecaption} \IfBooleanTF{#1} { % starred @@ -34,7 +34,7 @@ {\marginnote{\caption[\@sidenotes@sidecaption@tof]{#4}}} {\marginnote{\caption[\@sidenotes@sidecaption@tof]{#4}}[#3]} } -\LWR@startpars + \LWR@startpars } \NewDocumentEnvironment{KFLTsidenotes@marginfloat}{O{-1.2ex} m} {% start diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-subfig.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-subfig.sty index 4d28d79a5e4..e5e1ab4fcd7 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-subfig.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-subfig.sty @@ -37,7 +37,7 @@ \sf@bottom=\sf@nearskip \fi \leavevmode -\setbox\@tempboxa \hbox{#4}% + \setbox\@tempboxa \hbox{#4}% \@tempdima=\wd\@tempboxa \@ifundefined{FBsc@max}{}% {\global\advance\Xhsize-\wd\@tempboxa @@ -64,21 +64,21 @@ \vskip\sf@captopadj \fi\egroup \hrule width0pt height0pt depth0pt -\LWR@startpars% new -#4 -\LWR@stoppars% new + \LWR@startpars% new + #4 + \LWR@stoppars% new }{% -\LWR@startpars% new + \LWR@startpars% new \@ifundefined{FBsc@max}% { -#4 -}% + #4 + }% {\ifx\FBsuboheight\relax -#4 + #4 \else -#4 + #4 \fi}% -\LWR@stoppars% new + \LWR@stoppars% new \egroup \ifx \@empty#3\relax \else \vskip\sf@capskip @@ -117,16 +117,16 @@ \let\captionlabelsep=\relax \fi \@ifundefined{FBsc@max}% -{ + { \LWR@traceinfo{sfsubcap B1}% new -\LWR@htmlblocktag{figcaption}% new -\caption@make -{\@nameuse{sub\@captype name}}% -{\@nameuse{thesub\@captype}}% -{#3} -\LWR@htmlblocktag{/figcaption}% new + \LWR@htmlblocktag{figcaption}% new + \caption@make + {\@nameuse{sub\@captype name}}% + {\@nameuse{thesub\@captype}}% + {#3} + \LWR@htmlblocktag{/figcaption}% new \LWR@traceinfo{sfsubcap B2}% new -}% + }% {\dimen@\ht0% \advance\dimen@\dp0% \ifdim\dimen@>\FBsc@max @@ -135,10 +135,10 @@ \FB@readaux{\let\FBsubcheight\relax}% \ifx\FBsubcheight\relax \def\next{ -}% + }% \else \def\next{ -}% + }% \fi \vbox{% @@ -149,8 +149,8 @@ {#3} \LWR@traceinfo{sfsubcap C1}% new - } -}% + } + }% \egroup \LWR@startpars% new } @@ -186,7 +186,7 @@ {}% \nobreak\hskip\z@skip % enable hyphenation \caption@tfmt{#2} -\LWR@ensuredoingapar% new + \LWR@ensuredoingapar% new \caption@ifstrut {\ifhmode\@finalstrut\strutbox\fi}% {}% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-theorem.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-theorem.sty index 2bc608f1a3e..2a597dada71 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-theorem.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-theorem.sty @@ -52,10 +52,10 @@ }} \gdef\@ynthm#1#2{% -\expandafter\@ifdefinable\csname #1\endcsname + \expandafter\@ifdefinable\csname #1\endcsname { -\csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% new -\@definecounter{#1}% + \csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% new + \@definecounter{#1}% \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}% \def\@tempa{\global\@namedef{#1}}\expandafter \@tempa \expandafter{\csname th@\the \theorem@style \expandafter @@ -70,106 +70,106 @@ \else \expandafter\@ifdefinable\csname #1\endcsname { -\csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% new -\expandafter \xdef \csname the#1\endcsname + \csedef{LWR@thmstyle#1}{\LWR@newtheoremstyle}% new + \expandafter \xdef \csname the#1\endcsname {\expandafter \noexpand \csname the#2\endcsname}% \def\@tempa{\global\@namedef{#1}}\expandafter \@tempa \expandafter{\csname th@\the \theorem@style \expandafter \endcsname \the\theorem@bodyfont \@thm{#2}{#3}}% \global \expandafter \let \csname end#1\endcsname \@endtheorem \AtBeginEnvironment{#1}{\edef\LWR@thisthmstyle{\csuse{LWR@thmstyle#1}}}% new -}% + }% \fi} \gdef\th@plain{%\normalfont\itshape \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new + \BlockClass{theorembody\LWR@thisthmstyle}% new \item[\hskip\labelsep -\InlineClass{theoremheader}{##1\ ##2} -]}% + \InlineClass{theoremheader}{##1\ ##2} + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new + \BlockClass{theorembody\LWR@thisthmstyle}% new \item[\hskip\labelsep -\InlineClass{theoremheader}{##1\ ##2\ (##3)} -]} + \InlineClass{theoremheader}{##1\ ##2\ (##3)} + ]} } \gdef\th@break{%\normalfont\slshape \def\@begintheorem##1##2{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip \labelsep -\InlineClass{theoremheader}{##1\ ##2}\newline% -]}% + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip \labelsep + \InlineClass{theoremheader}{##1\ ##2}\newline% + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new + \BlockClass{theorembody\LWR@thisthmstyle}% new \item[\hskip \labelsep -\InlineClass{theoremheader}{##1\ ##2\ (##3)}\newline -]} + \InlineClass{theoremheader}{##1\ ##2\ (##3)}\newline + ]} } \gdef\th@marginbreak{%\normalfont\slshape \def\@begintheorem##1##2{ \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep % -\InlineClass{theoremheader}{##2 \qquad ##1}\newline -]}% + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep % + \InlineClass{theoremheader}{##2 \qquad ##1}\newline + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep % -\InlineClass{theoremheader}{##2 \qquad ##1\ % -(##3)}\newline -]} + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep % + \InlineClass{theoremheader}{##2 \qquad ##1\ % + (##3)}\newline + ]} } \gdef\th@changebreak{%\normalfont\slshape \def\@begintheorem##1##2{ \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{##2\ ##1}\newline -]}% + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{##2\ ##1}\newline + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{ ##2\ ##1\ % -(##3)}\newline -]} + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{ ##2\ ##1\ % + (##3)}\newline + ]} } \gdef\th@change{%\normalfont\slshape \def\@begintheorem##1##2{ \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{##2\ ##1} -]}% + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{##2\ ##1} + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{##2\ ##1\ (##3)} -]} + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{##2\ ##1\ (##3)} + ]} } \gdef\th@margin{%\normalfont\slshape \def\@begintheorem##1##2{ \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{##2 \qquad ##1} -]}% + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{##2 \qquad ##1} + ]}% \def\@opargbegintheorem##1##2##3{% \LWR@forcenewpage% new -\BlockClass{theorembody\LWR@thisthmstyle}% new -\item[\hskip\labelsep -\InlineClass{theoremheader}{##2 \qquad ##1\ (##3)} -]} + \BlockClass{theorembody\LWR@thisthmstyle}% new + \item[\hskip\labelsep + \InlineClass{theoremheader}{##2 \qquad ##1\ (##3)} + ]} } \gdef\@endtheorem{\endBlockClass\endtrivlist} \endinput diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-threeparttable.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-threeparttable.sty index 9871f1a300b..d56adf85638 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-threeparttable.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-threeparttable.sty @@ -37,7 +37,7 @@ \enddescription% \endBlockClass% } -\newcommand{\tnote}[1]{\textsuperscript{#1}} +\newcommand{\tnote}[1]{\LWR@htmlspan{sup}{#1}} \endinput %% diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-transparent.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-transparent.sty new file mode 100644 index 00000000000..221759527b4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-transparent.sty @@ -0,0 +1,29 @@ +%% +%% This is file `lwarp-transparent.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `transparent') +%% This is a generated file. +%% Copyright 2016-2017 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@ProvidesPackageDrop{transparent} +\newcommand*{\transparent}[1]{\edef\LWR@opacity{#1}} + +\newcommand*{\texttransparent}[2]{% +\begingroup% +\transparent{#1}% +\InlineClass[opacity: #1]{transparent}{#2}% +\endgroup% +} +\endinput +%% +%% End of file `lwarp-transparent.sty'. diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-upref.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-upref.sty new file mode 100644 index 00000000000..81cfd6fa7f8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-upref.sty @@ -0,0 +1,21 @@ +%% +%% This is file `lwarp-upref.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% lwarp.dtx (with options: `upref') +%% This is a generated file. +%% Copyright 2016-2017 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@ProvidesPackageDrop{upref} +\endinput +%% +%% End of file `lwarp-upref.sty'. diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty index c74ce7ea01f..4eb11999622 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty @@ -22,15 +22,14 @@ \newlength{\LWR@wrapwidth} - \newcommand*{\LWR@wrapposition}{} \newcommand*{\LWR@subwrapfigure}[2]{% \LWR@maybeincthisfloat% \renewcommand*{\LWR@wrapposition}{}% \ifthenelse{% -\equal{#1}{r}\OR\equal{#1}{R}\OR% -\equal{#1}{o}\OR\equal{#1}{O}% + \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}}% @@ -42,7 +41,7 @@ \LWR@htmltag{div class="marginblock" id="autofloat-\arabic{LWR@thisfloat}" style="width:\rndprintlength{\LWR@wrapwidth} ; % \LWR@wrapposition"% -} +}% \LWR@startpars } @@ -51,7 +50,7 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; % \LWR@subwrapfigure{#2}{#4}% \captionsetup{type=figure}% } -{ +{% \LWR@htmldivclassend{div} } @@ -60,7 +59,7 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; % \LWR@subwrapfigure{#2}{#4}% \captionsetup{type=table}% } -{ +{% \LWR@htmldivclassend{div} } @@ -69,7 +68,7 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; % \LWR@subwrapfigure{#3}{#5}% \captionsetup{type=#1}% } -{ +{% \LWR@htmldivclassend{div} } diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty index 835bdd0c813..f0b2c04f212 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-xcolor.sty @@ -17,56 +17,168 @@ %% version 2005/12/01 or later. - \LWR@ProvidesPackagePass{xcolor} -\newcommand*{\LWR@tempcolor}{} - -\newcommand*{\LWR@currenttextcolor}{black} +\begin{warpHTML} -\NewDocumentCommand{\LWR@colorstyle}{m m m m}{% -\convertcolorspec{#2}{#3}{HTML}\LWR@tempcolor% -\ifthenelse{\equal{#1}{color:}}% -{\renewcommand*{\LWR@currenttextcolor}{\#\LWR@tempcolor}}{}% -\LWR@htmltagc{span style="#1\#\LWR@tempcolor"{}}% -\begin{LWR@nestspan}% -#4% -\LWR@htmltagc{/span}% -\end{LWR@nestspan}% -\LWR@ensuredoingapar% +\LetLtxMacro\LWRprint@textcolor\textcolor +\LetLtxMacro\LWRprint@pagecolor\pagecolor +\LetLtxMacro\LWRprint@nopagecolor\nopagecolor +\LetLtxMacro\LWRprint@colorbox\colorbox +\LetLtxMacro\LWRprint@colorboxBlock\colorbox +\LetLtxMacro\LWRorigprint@fcolorbox\fcolorbox +\LetLtxMacro\LWRorigprint@fcolorboxBlock\fcolorbox +\LetLtxMacro\LWRorigprint@boxframe\boxframe +\renewcommand*{\LWR@restoreorigxcolor}{% +\LWR@traceinfo{LWR@restoreorigxcolorformatting}% +\LetLtxMacro\textcolor\LWRprint@textcolor% +\LetLtxMacro\pagecolor\LWRprint@pagecolor% +\LetLtxMacro\nopagecolor\LWRprint@nopagecolor% +\LetLtxMacro\colorbox\LWRprint@colorbox% +\LetLtxMacro\fcolorbox\LWRprint@fcolorbox% +\LetLtxMacro\boxframe\LWRorigprint@boxframe% +} +\newcommand*{\LWR@tempcolor}{} +\newcommand*{\LWR@tempcolortwo}{} +\NewDocumentCommand{\LWR@colorstyle}{m m}{% +\begingroup% +\LWR@FBcancel% +\convertcolorspec{#1}{#2}{HTML}\LWR@tempcolor% +\#\LWR@tempcolor% +\endgroup% +} +\newcommand*{\LWR@borderpadding}[2]{% +\uselengthunit{PT}% +border:\rndprintlength{\LWR@atleastonept} solid \LWR@colorstyle{#1}{#2} ; % +padding:\rndprintlength{\fboxsep}% +} +\RenewDocumentCommand{\textcolor}{O{named} m m}{% +\begingroup% +\LWR@FBcancel% +\convertcolorspec{#1}{#2}{HTML}\LWR@tempcolor% +\InlineClass[color:\LWR@colorstyle{#1}{#2}]{textcolor}{% +\renewcommand*{\LWR@currenttextcolor}{\#\LWR@tempcolor}% +#3% +}% +\endgroup% } +\renewcommand*{\pagecolor}[2][named]{} +\let\nopagecolor\relax -\NewDocumentCommand{\LWR@textcolor}{O{named} m m}{% +\RenewDocumentCommand{\colorbox}{O{named} m +m}{% \begingroup% -\LWR@colorstyle{color:}{#1}{#2}{#3}% +\LWR@FBcancel% +\uselengthunit{PT}% +\InlineClass[% +background:\LWR@colorstyle{#1}{#2} ; % +padding:\rndprintlength{\fboxsep}% +]{colorbox}{#3}% \endgroup% } -\newcommand*{\LWR@pagecolor}[2][named]{} +\NewDocumentCommand{\colorboxBlock}{O{named} m +m}{% +\begingroup% +\LWR@FBcancel% +\uselengthunit{PT}% +\begin{BlockClass}[% +background:\LWR@colorstyle{#1}{#2} ; % +padding:\rndprintlength{\fboxsep}% +]{colorboxBlock} +#3 +\end{BlockClass}% +\endgroup% +} -\NewDocumentCommand{\LWR@colorbox}{O{named} m m}{% +\RenewDocumentCommand{\fcolorbox}{O{named} m O{named} m +m}{% +\LWR@traceinfo{HTML fcolorbox #2 #4}% \begingroup% -\LWR@colorstyle{background:}{#1}{#2}{#3}% +\LWR@FBcancel% +\uselengthunit{PT}% +\LWR@forceminwidth{\fboxrule}% +\ifthenelse{\equal{#4}{none}}% +{% no background color + \InlineClass[% + \LWR@borderpadding{#1}{#2}% + ]{fcolorbox}{#5}% +}% +{% yes background color + \InlineClass[% + \LWR@borderpadding{#1}{#2} ; % + background:\LWR@colorstyle{#3}{#4}% + ]{fcolorbox}{#5}% +}% \endgroup% } -\NewDocumentCommand{\LWR@fcolorbox}{O{named} m O{named} m m}{% +\NewDocumentCommand{\fcolorboxBlock}{O{named} m O{named} m +m}{% +\LWR@traceinfo{HTML fcolorboxBlock #2 #4}% \begingroup% -\ifthenelse{\equal{#4}{none}}{% no background color -\LWR@colorstyle{border:1px solid }{#1}{#2}{#5}% -}{% yes background color -\LWR@colorstyle{border:1px solid }{#1}{#2}% -{\LWR@colorstyle{background:}{#3}{#4}{#5}}% +\LWR@FBcancel% +\uselengthunit{PT}% +\LWR@forceminwidth{\fboxrule}% +\ifthenelse{\equal{#4}{none}}% +{% no background color + \begin{BlockClass}[% + \LWR@borderpadding{#1}{#2}% + ]{fcolorboxBlock} + #5 + \end{BlockClass}% +}% +{% yes background color + \convertcolorspec{#3}{#4}{HTML}\LWR@tempcolortwo% + \begin{BlockClass}[% + background:\#\LWR@tempcolortwo; % + \LWR@borderpadding{#1}{#2}% + ]{fcolorboxBlock} + #5 + \end{BlockClass}% }% \endgroup% +\LWR@traceinfo{HTML fcolorboxBlock done}% } -\let\textcolor\LWR@textcolor -\let\pagecolor\LWR@pagecolor -\LetLtxMacro\colorbox\LWR@colorbox -\LetLtxMacro\fcolorbox\LWR@fcolorbox +\NewDocumentCommand{\LWR@subfcolorminipage}{m m m m}{% +\begin{BlockClass}[% +#3% +\LWR@borderpadding{#1}{#2} ; % +\IfValueTF{#4}{height:\rndprintlength{\LWR@tempheight} ; }{}% +width:\rndprintlength{\LWR@tempwidth}% +]{fcolorminipage}% +} +\NewDocumentEnvironment{fcolorminipage}{O{named} m O{named} m O{c} o o m} +{% +\LWR@FBcancel% +\setlength{\LWR@tempwidth}{#8}% +\IfValueTF{#6}{\setlength{\LWR@tempheight}{#6}}{}% +\uselengthunit{PT}% +\LWR@forceminwidth{\fboxrule}% +\convertcolorspec{#1}{#2}{HTML}\LWR@tempcolor% +\ifthenelse{\equal{#4}{none}}% +{\LWR@subfcolorminipage{#1}{#2}{}{#6}}% +{% + \convertcolorspec{#3}{#4}{HTML}\LWR@tempcolortwo% + \LWR@subfcolorminipage{#1}{#2}{background:\#\LWR@tempcolortwo\ ; }{#6}% +}% +} +{\end{BlockClass}} +\renewcommand*{\boxframe}[3]{% +{% +\setlength{\LWR@tempwidth}{#1}% +\setlength{\LWR@tempheight}{#2}% +\addtolength{\LWR@tempheight}{#3}% +\uselengthunit{PT}% +\LWR@forceminwidth{\fboxrule}% +\InlineClass[% +display:inline-block ; % +border:\rndprintlength{\LWR@atleastonept} solid \LWR@currenttextcolor{} ; % +width:\rndprintlength{\LWR@tempwidth} ; % +height:\rndprintlength{\LWR@tempheight}% +]{boxframe}{}% +}% +} +\end{warpHTML} \endinput %% %% End of file `lwarp-xcolor.sty'. diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty index c9116434ff9..83c2d6e275a 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty @@ -17,7 +17,7 @@ %% version 2005/12/01 or later. \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{lwarp} - [2017/08/08 v0.35 Allows LaTeX to directly produce HTML5 output.] + [2017/08/17 v0.36 Allows LaTeX to directly produce HTML5 output.] @@ -277,8 +277,10 @@ For a possible alternative, see package(s) #2.} \LWR@loadafter{titlesec} \LWR@loadafter{titletoc} \LWR@loadafter{tocloft} +\LWR@loadafter{transparent} \LWR@loadafter{trivfloat} \LWR@loadafter{ulem} +\LWR@loadafter{upref} \LWR@loadafter{varioref} \LWR@loadafter{verse} \LWR@loadafter{wallpaper} @@ -317,11 +319,11 @@ For a possible alternative, see package(s) #2.} \RequirePackage {microtype} \microtypesetup{ -protrusion=false, -expansion=false, -tracking=false, -kerning=false, -spacing=false} + protrusion=false, + expansion=false, + tracking=false, + kerning=false, + spacing=false} \DisableLigatures[f,q,t,T,Q]{encoding = *,family = *} \fi @@ -428,10 +430,10 @@ top=1in,bottom=1in,% {% yes filename \IfFileExists{lwarp-\LWR@strresulttwo.sty}% {% lwarp-* file found -\StrSubstitute% -{\LWR@requirepackagenames}% -{\LWR@strresult}% -{lwarp-\LWR@strresulttwo}[\LWR@requirepackagenames]% + \StrSubstitute% + {\LWR@requirepackagenames}% + {\LWR@strresult}% + {lwarp-\LWR@strresulttwo}[\LWR@requirepackagenames]% }% {}% no lwarp-* file }% yes filename @@ -449,14 +451,14 @@ top=1in,bottom=1in,% \LWR@lookforpackagename{9} \IfValueTF{#1} {% options given -\IfValueTF{#3}% version given? -{\LWR@origRequirePackage[#1]{\LWR@requirepackagenames}[#3]} -{\LWR@origRequirePackage[#1]{\LWR@requirepackagenames}} + \IfValueTF{#3}% version given? + {\LWR@origRequirePackage[#1]{\LWR@requirepackagenames}[#3]} + {\LWR@origRequirePackage[#1]{\LWR@requirepackagenames}} } {% no options given -\IfValueTF{#3}% version given? -{\LWR@origRequirePackage{\LWR@requirepackagenames}[#3]} -{\LWR@origRequirePackage{\LWR@requirepackagenames}} + \IfValueTF{#3}% version given? + {\LWR@origRequirePackage{\LWR@requirepackagenames}[#3]} + {\LWR@origRequirePackage{\LWR@requirepackagenames}} } } \LetLtxMacro{\usepackage}{\RequirePackage} @@ -513,7 +515,8 @@ top=1in,bottom=1in,% \newcommand{\LWR@traceinfo}[1]{% \ifbool{LWR@tracinglwarp}% {% -\typeout{*** lwarp: #1}% + \typeout{*** lwarp: #1}% + % \PackageInfo{lwarp}{#1 : }% }% {}% } @@ -568,6 +571,8 @@ top=1in,bottom=1in,% \let\LWR@origraggedright\raggedright \let\LWR@origonecolumn\onecolumn +\let\LWR@origsp\sp +\let\LWR@origsb\sb \let\LWR@origtextsuperscript\textsuperscript \let\LWR@origtextsubscript\textsubscript @@ -607,6 +612,50 @@ top=1in,bottom=1in,% + +\begin{warpHTML} + +\AtBeginDocument{% in case textcomp was not loaded + +\providecommand*{\textdegree}{DEG} +\providecommand*{\textcelsius}{DEGC} +\providecommand*{\textohm}{OHM} +\providecommand*{\textmu}{MU} + +\let\LWR@origtextdegree\textdegree +\let\LWR@origtextcelsius\textcelsius +\let\LWR@origtextohm\textohm +\let\LWR@origtextmu\textmu + +\ifPDFTeX +\renewcommand*{\textdegree}{\HTMLentity{deg}} +\renewcommand*{\textcelsius}{\HTMLentity{deg}\,C} +\renewcommand*{\textohm}{\HTMLunicode{2126}} +\renewcommand*{\textmu}{\HTMLunicode{00B5}} +\else +\renewcommand*{\textdegree}{°} +\renewcommand*{\textcelsius}{°C} +\renewcommand*{\textohm}{Ω} +\renewcommand*{\textmu}{μ} +\fi + +\@ifpackageloaded{siunitx} +{ +\DeclareSIUnit\bohr{\textit{a}\textsubscript{0}} +\DeclareSIUnit\clight{\textit{c}\textsubscript{0}} +\DeclareSIUnit\elementarycharge{\textit{e}} +\DeclareSIUnit\electronmass{\textit{m}\textsubscript{e}} +\DeclareSIUnit\hartree{\textit{E}\textsubscript{h}} +\DeclareSIUnit\planckbar{\HTMLunicode{210F}} +}% siunitx loaded +{} + +}% AtBeginDocument + +\end{warpHTML} + + + \begin{warpprint} \typeout{lwarp: generating configuration files} \end{warpprint} @@ -783,8 +832,8 @@ span.poemtitle { } blockquote { -margin-left: 0px ; -margin-right: 0px ; + margin-left: 0px ; + margin-right: 0px ; } blockquote p { @@ -792,12 +841,12 @@ blockquote p { text-align: left ; font-size: .85em ; margin-left: 3em ; -margin-right: 3em ; + margin-right: 3em ; } blockquotation { -margin-left: 0px ; -margin-right: 0px ; + margin-left: 0px ; + margin-right: 0px ; } blockquotation p { @@ -805,7 +854,7 @@ blockquotation p { text-align: left ; font-size: .85em ; margin-left: 3em ; -margin-right: 3em ; + margin-right: 3em ; } div.epigraph { @@ -963,7 +1012,7 @@ div.titlepage { font-size: .85em ; margin: 3ex 1em 0ex 1em ; padding-bottom: 1ex ; -border-top: 1px solid silver ; + border-top: 1px solid silver ; } .marginpar { @@ -1137,7 +1186,7 @@ div.onehalfspace { line-height: 1.5 ; } div.doublespace { line-height: 2 ; } /* Minipage environments, vertically aligned to top, center, bottom: */ -.minipage { +.minipage, .fminipage, .fcolorminipage { /* display: inline-block ; */ /* Mini pages which follow each other will be tiled. */ margin: .25em .25em .25em .25em; @@ -1151,6 +1200,16 @@ div.doublespace { line-height: 2 ; } /* Have not yet researched this. */ .minipage p {margin: .75ex 0em .75ex 0em ;} +.fboxBlock .minipage, .colorbox .minipage, .colorboxBlock .minipage, +.fcolorbox .minipage, .fcolorboxBlock .minipage + {border: none ; background: none;} + +.fbox, .fboxBlock { border: 1px solid black ; } + +.fbox, .fboxBlock, .fcolorbox, .fcolorboxBlock, .colorbox, .colorboxBlock, +.fminipage, .fcolorminipage + {display: inline-block} + .shadowbox, .shabox { border: 1px solid black; box-shadow: 3px 3px 3px #808080 ; @@ -1223,7 +1282,7 @@ div.doublespace { line-height: 2 ; } } /* framed package */ -.framed, pre.boxedverbatim { +.framed, pre.boxedverbatim, fcolorbox { margin: 3ex 0em 3ex 0em ; border: 1px solid black; border-radius: 0px ; @@ -1247,8 +1306,8 @@ div.doublespace { line-height: 2 ; } } .framedtitle { -margin: 0em ; -padding: 0em ; + margin: 0em ; + padding: 0em ; font-size: 130% } @@ -1260,8 +1319,8 @@ dl { } dl dt { -margin-top: 1ex; -margin-left: 1em ; + margin-top: 1ex; + margin-left: 1em ; font-weight: bold; } @@ -1367,8 +1426,8 @@ figcaption , .lstlistingtitle { font-size: .85em ; text-align: center ; font-weight: bold ; -margin-top: 1ex ; -margin-bottom: 1ex ; + margin-top: 1ex ; + margin-bottom: 1ex ; } figure.subfigure figcaption, figure.subtable figcaption { @@ -1384,8 +1443,8 @@ div.nonfloatcaption { /* For a \RawCaption inside a minipage inside a figure's floatrow: */ figure div.floatrow div.minipage figcaption { -border: none ; -background: none ; + border: none ; + background: none ; } table { @@ -1483,13 +1542,13 @@ span.callout { background-color:black; color:white; padding:0px .25em 0px .25em; -margin: 0 ; + margin: 0 ; font-weight: bold; font-size:.72em ; } div.programlisting pre.verbatim span.callout{ -font-size: .85em ; + font-size: .85em ; } div.published @@ -1650,7 +1709,7 @@ span.theoremheaderchangebreak, span.theoremheaderchange, span.theoremheadermargin { -font-style:normal ; font-weight: bold ; margin-right: 1em ; + font-style:normal ; font-weight: bold ; margin-right: 1em ; } span.amsthmnameplain, @@ -1658,7 +1717,7 @@ span.amsthmnamedefinition, span.amsthmnumberplain, span.amsthmnumberdefinition { -font-style:normal ; font-weight: bold ; + font-style:normal ; font-weight: bold ; } span.amsthmnameremark, @@ -1676,10 +1735,10 @@ span.amsthmproofname span.theoremheadersc { -font-style:normal ; -font-variant: small-caps ; -font-weight: normal ; -margin-right: 1em ; + font-style:normal ; + font-variant: small-caps ; + font-weight: normal ; + margin-right: 1em ; } .theoremendmark {float:right} @@ -1691,8 +1750,8 @@ div.theorembodychangebreak, div.theorembodychange, div.theorembodymargin { -font-style:italic; -margin-top: 3ex ; margin-bottom: 3ex ; + font-style:italic; + margin-top: 3ex ; margin-bottom: 3ex ; } div.theorembodydefinition, div.theorembodyremark, div.theorembodyproof, @@ -1700,8 +1759,8 @@ div.theorembodyplainupright, nonumberplainuprightsc, div.amsthmbodydefinition, div.amsthmbodyremark, div.amsthmproof { -font-style: normal ; -margin-top: 3ex ; margin-bottom: 3ex ; + font-style: normal ; + margin-top: 3ex ; margin-bottom: 3ex ; } span.amsthmnoteremark {} @@ -1781,7 +1840,7 @@ http://nitens.org/taraborelli/texlogo .lyxlogo { font-family: "URW Classico", Optima, "Linux Biolinum O", "DejaVu Sans", "Bitstream Vera Sans", Geneva, -Verdana, sans-serif ; + Verdana, sans-serif ; } /* Only display top and bottom navigation if a small screen: */ @@ -1854,7 +1913,7 @@ h1, h2, h3, h4, h5, h6, span.paragraph, span.subparagraph "Nimbus Roman No 9 L", "FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; font-variant: small-caps ; -font-weight: normal ; + font-weight: normal ; color: #304070 ; text-shadow: 2px 2px 3px #808080; } @@ -1961,7 +2020,7 @@ div.sidebartitle{ "FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; font-weight:bold; font-variant: small-caps ; -font-size: 1.5em ; + font-size: 1.5em ; color: #304070 ; text-align: center ; text-shadow: 1px 1px 2px #808080; @@ -1970,14 +2029,14 @@ font-size: 1.5em ; .minipage { background-color: #eeeee7 ; border: 1px solid silver ; -border-radius: 1ex ; + border-radius: 1ex ; } .framed .minipage , .framedleftbar .minipage { -border: none ; -background: none ; -padding: 0ex ; -margin: 0ex ; + border: none ; + background: none ; + padding: 0ex ; + margin: 0ex ; } figure.figure .minipage, figcaption .minipage { border: none; } @@ -1994,7 +2053,7 @@ figure , div.marginblock { figure figure { border: 1px solid silver ; margin: 0em ; -box-shadow: none ; + box-shadow: none ; } /* @@ -2397,7 +2456,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX- -- Print the usage of the lwarpmk command: -printversion = "v0.35" +printversion = "v0.36" function printhelp () print ("lwarpmk: Use lwarpmk -h or lwarpmk --help for help.") ; @@ -2583,8 +2642,8 @@ function reruntoget (filesource) local fsource = io.open(filesource) for line in fsource:lines() do if ( string.find(line,"Rerun to get") ~= nil ) then -io.close(fsource) -return true + io.close(fsource) + return true end end io.close(fsource) @@ -3072,30 +3131,30 @@ end -- not --version \edef\LWR@tempone{#1}% \LWR@traceinfo{about to compare with ??}% \ifthenelse{\equal{\LWR@tempone}{??}}% -{% -\LWR@traceinfo{found ??}% -}{% -\LWR@traceinfo{not found ??}% -}% +{\LWR@traceinfo{found ??}}% +{\LWR@traceinfo{not found ??}}% \LWR@traceinfo{about to compare with zero or empty}% \ifthenelse{% -\equal{\LWR@tempone}{0}% -\OR \equal{\LWR@tempone}{}% -\OR \equal{\LWR@tempone}{??}% + \equal{\LWR@tempone}{0}% + \OR \equal{\LWR@tempone}{}% + \OR \equal{\LWR@tempone}{??}% }% {% -\LWR@traceinfo{LWR@htmlsectionfilename B \HomeHTMLFilename.html}% -\HomeHTMLFilename.html% + \LWR@traceinfo{LWR@htmlsectionfilename B \HomeHTMLFilename.html}% + \HomeHTMLFilename.html% }% {% -\LWR@traceinfo{LWR@htmlsectionfilename C \LWR@tempone}% -\ifthenelse{% -\equal{\HTMLFilename}{} \AND \equal{\LWR@tempone}{Index} \OR \equal{\LWR@tempone}{index}% -}% -{% -\LWR@traceinfo{prefixing the index name with an underscore.}% -\_#1.html}% -{\HTMLFilename#1.html}% + \LWR@traceinfo{LWR@htmlsectionfilename C \LWR@tempone}% + \ifthenelse{% + \equal{\HTMLFilename}{} \AND + \equal{\LWR@tempone}{Index} \OR + \equal{\LWR@tempone}{index}% + }% + {% + \LWR@traceinfo{prefixing the index name with an underscore.}% + \_#1.html% + }% + {\HTMLFilename#1.html}% }% \LWR@traceinfo{LWR@htmlsectionfilename Z}% } @@ -3193,20 +3252,53 @@ end -- not --version \newcommand*{\LWR@tagregularparagraph}{p} -\@ifpackagewith{babel}{french}{ -\renewcommand*{\FBcolonspace}{~} -\renewcommand*{\FBthinspace}{\,} -}{} +\providecommand*{\LWR@FBcancel}{} -\@ifpackagewith{babel}{french}{% -\newcommand{\LWR@FBcancel}{% -\csdef{FBcolonspace}{}% -\csdef{FBthinspace}{}% +\AtBeginDocument{ +\@ifundefined{frenchbsetup} +{} +{ + \frenchbsetup{FrenchFootnotes=false} + % OR: redefine \insertfootnotemarkFB? + \LetLtxMacro\LWR@FBcancel\NoAutoSpacing + \renewcommand*{\FBcolonspace}{% + \begingroup% + \LWR@FBcancel% + \LWR@origampersand{}nbsp;% + \endgroup% + } + \renewcommand*{\FBthinspace}{% + \begingroup% + \LWR@FBcancel% + \LWR@origampersand\#x202f;% \, + \endgroup% + } + \renewcommand*{\FBguillspace}{% + \begingroup% + \LWR@FBcancel% + \LWR@origampersand{}nbsp;% ~, for \og xyz \fg{} + \endgroup% + } + \DeclareDocumentCommand{\FBmedkern}{}{% + \begingroup% + \LWR@FBcancel% + \LWR@origampersand\#x202f;% \, + \endgroup% + } + \DeclareDocumentCommand{\FBthickkern}{}{% + \begingroup% + \LWR@FBcancel% + \LWR@origampersand{}nbsp;% ~ + \endgroup% + } + \ifFBunicode + \else + \DeclareTextSymbol{\FBtextellipsis}{LY1}{133} + \DeclareTextCommandDefault{\FBtextellipsis}{\textellipsis\xspace} + \fi } } -{% not french: -\newcommand{\LWR@FBcancel}{} -}% + \newcommand*{\LWR@htmltagc}[1]{% {% @@ -3228,27 +3320,27 @@ end -- not --version \LWR@traceinfo{LWR@nestspan}% \ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}% {% -\LWR@traceinfo{LWR@nestspan: inside a lateximage}% + \LWR@traceinfo{LWR@nestspan: inside a lateximage}% }% {% not in a lateximage -\LWR@traceinfo{LWR@nestspan: NOT inside a lateximage}% -\addtocounter{LWR@spandepth}{1}% -\RenewDocumentEnvironment{minipage}{O{t} o O{t} m}{}{}% -\RenewDocumentEnvironment{BlockClass}{o m}{}{}% -\renewcommand{\BlockClassSingle}[2]{##2}% -\renewcommand{\LWR@forcenewpage}{}% -\renewcommand{\LWR@itemizestart}{% -\let\item\LWR@nestspanitem% -}% -\renewcommand{\LWR@itemizeend}{}% -\renewcommand{\LWR@enumeratestart}{% -\let\item\LWR@nestspanitem% -}% -\renewcommand{\LWR@enumerateend}{}% -\renewcommand{\LWR@descriptionstart}{% -\let\item\LWR@nestspanitem% -}% -\renewcommand{\LWR@descriptionend}{}% + \LWR@traceinfo{LWR@nestspan: NOT inside a lateximage}% + \addtocounter{LWR@spandepth}{1}% + \RenewDocumentEnvironment{minipage}{O{t} o O{t} m}{}{}% + \RenewDocumentEnvironment{BlockClass}{o m}{}{}% + \renewcommand{\BlockClassSingle}[2]{##2}% + \renewcommand{\LWR@forcenewpage}{}% + \renewcommand{\LWR@itemizestart}{% + \let\item\LWR@nestspanitem% + }% + \renewcommand{\LWR@itemizeend}{}% + \renewcommand{\LWR@enumeratestart}{% + \let\item\LWR@nestspanitem% + }% + \renewcommand{\LWR@enumerateend}{}% + \renewcommand{\LWR@descriptionstart}{% + \let\item\LWR@nestspanitem% + }% + \renewcommand{\LWR@descriptionend}{}% }% not in a lateximage }% {% @@ -3336,11 +3428,11 @@ end -- not --version \NewDocumentCommand{\LWR@subhtmlelementclass}{m o m}{% \IfValueTF{#2}% {% option -\ifthenelse{\equal{#2}{}}% -{\LWR@htmltag{#1 class="#3"}}% empty option -{\LWR@htmltag{#1 class="#3" style="#2"}}% non-empty option + \ifthenelse{\equal{#2}{}}% + {\LWR@htmltag{#1 class="#3" }}% empty option + {\LWR@htmltag{#1 class="#3" style="#2" }}% non-empty option }% option -{\LWR@htmltag{#1 class="#3"}}% no option +{\LWR@htmltag{#1 class="#3" }}% no option } \NewDocumentCommand{\LWR@htmlelementclass}{m o m}{% @@ -3353,7 +3445,7 @@ end -- not --version \LWR@stoppars% \LWR@htmltag{/#1}% \ifbool{HTMLDebugComments}{% -\LWR@htmlcomment{End of #1 ``#2''}% + \LWR@htmlcomment{End of #1 ``#2''}% }{}% \LWR@startpars% } @@ -3475,20 +3567,21 @@ end -- not --version {% \ifbool{LWR@doingstartpars}% {% handling pars -\ifthenelse{% -\cnttest{\value{LWR@lateximagedepth}}{>}{0} \OR% -\cnttest{\value{LWR@spandepth}}{>}{0}% -}% nested par tags? -{}% no nested par tags -{% yes nest par tags -\LWR@htmltagc{\LWR@tagregularparagraph}% -\ifnumcomp{\@listdepth}{>}{0}% -{% -\LWR@orighspace{1in}% -}{}% -\global\booltrue{LWR@doingapar}% -\let\par\LWR@closeparagraph% -}% end of yes nest par tags + \ifthenelse{% + \cnttest{\value{LWR@lateximagedepth}}{>}{0} \OR% + \cnttest{\value{LWR@spandepth}}{>}{0}% + }% nested par tags? + {}% no nested par tags + {% yes nest par tags + \LWR@htmltagc{\LWR@tagregularparagraph}% + \ifnumcomp{\@listdepth}{>}{0}% + {% + \LWR@orighspace{1in}% + }% + {}% + \global\booltrue{LWR@doingapar}% + \let\par\LWR@closeparagraph% + }% end of yes nest par tags }% end of handling pars {}% not handling pars } @@ -3497,32 +3590,31 @@ end -- not --version {% \ifbool{LWR@doingapar}% {% handling pars -\ifthenelse{% -\cnttest{\value{LWR@lateximagedepth}}{>}{0} \OR% -\cnttest{\value{LWR@spandepth}}{>}{0}% -}% -{% no nested par tags -\ifthenelse{% -\cnttest{\value{LWR@spandepth}}{>}{0}% -\AND% -\cnttest{\value{LWR@lateximagedepth}}{=}{0}% -}% -{% -\ifbool{LWR@intabularmetadata}{}{\unskip\LWR@htmltagc{br /}}% -}% -{}% -}% no nested par tags -{% yes nest par tags -\unskip% -\LWR@htmltagc{/\LWR@tagregularparagraph}% -\global\boolfalse{LWR@doingapar}% -\global\boolfalse{LWR@minipagethispar}% -}% end of yes nest par tags + \ifthenelse{% + \cnttest{\value{LWR@lateximagedepth}}{>}{0} \OR% + \cnttest{\value{LWR@spandepth}}{>}{0}% + }% + {% no nested par tags + \ifthenelse{% + \cnttest{\value{LWR@spandepth}}{>}{0}% + \AND% + \cnttest{\value{LWR@lateximagedepth}}{=}{0}% + }% + {\ifbool{LWR@intabularmetadata}{}{\unskip\LWR@htmltagc{br /}}}% + {}% + }% no nested par tags + {% yes nest par tags + \unskip% + \LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@orignewline% + \global\boolfalse{LWR@doingapar}% + \global\boolfalse{LWR@minipagethispar}% + }% end of yes nest par tags }% end of handling pars {% not handling pars -\ifthenelse{\cnttest{\value{LWR@spandepth}}{>}{0}}% -{\ifbool{LWR@intabularmetadata}{}{\unskip\LWR@htmltagc{br /}}}% -{}% + \ifthenelse{\cnttest{\value{LWR@spandepth}}{>}{0}}% + {\ifbool{LWR@intabularmetadata}{}{\unskip\LWR@htmltagc{br /}}}% + {}% }% not handling pars \LWR@origpar% } @@ -3537,15 +3629,15 @@ end -- not --version \ifthenelse{\cnttest{\value{LWR@spandepth}}{>}{0}}% {}% {% -\ifbool{LWR@doingstartpars}% -{}% -{% -\PushPreHook{par}{\LWR@openparagraph}% -\let\par\LWR@closeparagraph - -}% an intentionally blank line -\global\setbool{LWR@doingstartpars}{true}% -\global\boolfalse{LWR@doingapar}% + \ifbool{LWR@doingstartpars}% + {}% + {% + \PushPreHook{par}{\LWR@openparagraph}% + \let\par\LWR@closeparagraph + + }% an intentionally blank line + \global\setbool{LWR@doingstartpars}{true}% + \global\boolfalse{LWR@doingapar}% }% nestspan } @@ -3554,22 +3646,21 @@ end -- not --version \ifthenelse{\cnttest{\value{LWR@spandepth}}{>}{0}}% {}% {% -\ifbool{LWR@doingapar}% -{% -\unskip% -\LWR@htmltagc{/\LWR@tagregularparagraph}% -\global\boolfalse{LWR@doingapar}% -\global\boolfalse{LWR@minipagethispar} - -}% an intentionally blank line -{}% -\ifbool{LWR@doingstartpars}% -{% -\ClearPreHook{par}% -}% -{}% -\global\setbool{LWR@doingstartpars}{false}% -\global\boolfalse{LWR@doingapar}% + \ifbool{LWR@doingapar}% + {% + \unskip% + \LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@orignewline% + \global\boolfalse{LWR@doingapar}% + \global\boolfalse{LWR@minipagethispar} + + }% an intentionally blank line + {}% + \ifbool{LWR@doingstartpars}% + {\ClearPreHook{par}}% + {}% + \global\setbool{LWR@doingstartpars}{false}% + \global\boolfalse{LWR@doingapar}% }% nestspan } @@ -3654,46 +3745,65 @@ end -- not --version \newbox\LWR@footnotes \long\def\@makefntext#1{\textsuperscript{\@thefnmark} #1} - \def\@makefnmark{\hbox{\textsuperscript{\@thefnmark}}} -\long\def\@footnotetext#1{% -\global\setbox\LWR@footnotes=\vbox{\unvbox\LWR@footnotes% -\protected@edef\@currentlabel{% -\csname p@footnote\endcsname\@thefnmark% -}% @currentlabel -\color@begingroup% -\ifbool{LWR@doingstartpars}{}{\LWR@htmltagc{\LWR@tagregularparagraph}}% -\@makefntext{#1}% -\ifbool{LWR@doingstartpars}{\par}{\LWR@htmltagc{/\LWR@tagregularparagraph}}% -\color@endgroup% +\long\def\LWR@footnotetext#1{% +\global\setbox\LWR@footnotes=\vbox{% + \unvbox\LWR@footnotes% + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark% + }% @currentlabel + \color@begingroup% + \renewcommand{\textsuperscript}[1]{\LWR@htmlspan{sup}{##1}}% + \ifthenelse{% + \boolean{LWR@doingstartpars} \AND% + \cnttest{\value{LWR@lateximagedepth}}{=}{0}% + }% + {}% + {\LWR@htmltagc{\LWR@tagregularparagraph}}% + \@makefntext{#1}% + \ifthenelse{% + \boolean{LWR@doingstartpars} \AND% + \cnttest{\value{LWR@lateximagedepth}}{=}{0}% + }% + {\par}% + {% + \LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@orignewline% + }% + \color@endgroup% }% vbox }% +\let\@footnotetext\LWR@footnotetext \long\def\@mpfootnotetext#1{% \global\setbox\@mpfootins\vbox{% -\unvbox\@mpfootins -\reset@font\footnotesize -\hsize\columnwidth -\@parboxrestore -\protected@edef\@currentlabel -{\csname p@mpfootnote\endcsname\@thefnmark}% -\color@begingroup -\@makefntext{% -\ignorespaces#1% -}% -\ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}% -{}% -{\LWR@htmltagc{/\LWR@tagregularparagraph}}% -\color@endgroup}% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \ignorespaces#1% + }% + \ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}% + {}% + {% + \LWR@htmltagc{/\LWR@tagregularparagraph}% + \LWR@orignewline% + }% + \color@endgroup% +}% vbox } \newcommand*{\LWR@printpendingfootnotes}{% \ifvoid\LWR@footnotes\else -\LWR@forcenewpage -\begin{BlockClass}{footnotes} -\LWR@origmedskip -\unvbox\LWR@footnotes -\setbox\LWR@footnotes=\vbox{} -\end{BlockClass} + \LWR@forcenewpage + \begin{BlockClass}{footnotes} + \LWR@origmedskip + \unvbox\LWR@footnotes + \setbox\LWR@footnotes=\vbox{} + \end{BlockClass} \fi } \newcommand*{\LWR@epubprintpendingfootnotes}{% @@ -3804,11 +3914,11 @@ end -- not --version \ifbool{FormatEPUB} {} { -\LWR@htmlelement{footer} + \LWR@htmlelement{footer} -\LWR@pagebottom + \LWR@pagebottom -\LWR@htmlelementend{footer} + \LWR@htmlelementend{footer} } \ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWordProcessor}} {} @@ -3841,11 +3951,11 @@ end -- not --version \ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWordProcessor}} {} { -\LWR@htmlelement{header} + \LWR@htmlelement{header} -\LWR@pagetop + \LWR@pagetop -\LWR@htmlelementend{header} + \LWR@htmlelementend{header} } \ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWordProcessor}} @@ -3880,7 +3990,7 @@ end -- not --version \boolfalse{LWR@mainmatter} } \newcommand*{\LWR@sectionnumber}[1]{% -\InlineClass{sectionnumber}{#1} % +\InlineClass{sectionnumber}{#1}% } \newcommand*{\LWR@createautosec}[1]{% @@ -3901,94 +4011,97 @@ end -- not --version \global\boolfalse{LWR@minipagethispar}% \LWR@traceinfo{LWR@section: testing whether to start a new HTML file}% \IfBooleanTF{#1}{% starred -\LWR@orignewpage% + \LWR@orignewpage% }{% not starred -\ifthenelse{% -\cnttest{\csuse{LWR@depth#4}}{<=}{\value{FileDepth}}% -\AND% -\(% -\NOT\boolean{CombineHigherDepths}\OR% -\cnttest{\csuse{LWR@depth#4}}{<=}{\value{LWR@prevFileDepth}}% -\)% -}% -{% new file -\LWR@traceinfo{LWR@section: new HTML file}% -\IfNoValueTF{#2}% -{\LWR@newhtmlfile{#3}}% -{\LWR@newhtmlfile{#2}}% -}% new file -{% not new file -\LWR@orignewpage% - -}% not new file + \ifthenelse{% + \cnttest{\csuse{LWR@depth#4}}{<=}{\value{FileDepth}}% + \AND% + \(% + \NOT\boolean{CombineHigherDepths}\OR% + \cnttest{\csuse{LWR@depth#4}}{<=}{\value{LWR@prevFileDepth}}% + \)% + }% + {% new file + \LWR@traceinfo{LWR@section: new HTML file}% + \IfNoValueTF{#2}% + {\LWR@newhtmlfile{#3}}% + {\LWR@newhtmlfile{#2}}% + }% new file + {% not new file + \LWR@orignewpage% + + }% not new file }% not starred \LWR@traceinfo{LWR@section: about to LWR@setlatestname}% \IfValueTF{#2}{\LWR@setlatestname{#2}}{\LWR@setlatestname{#3}}% \ifbool{HTMLDebugComments}{% -\LWR@htmlcomment{Opening #4 ``#3''{}} -}{} + \LWR@htmlcomment{Opening #4 ``#3''{}}% +}{}% \ifthenelse{% -\cnttest{\csuse{LWR@depth#4}}{>=}{\LWR@depthparagraph}% + \cnttest{\csuse{LWR@depth#4}}{>=}{\LWR@depthparagraph}% }% -{\LWR@startpars} -{} +{\LWR@startpars}% +{}% \LWR@createautosec{\csuse{LWR@tag#4}}% \IfBooleanTF{#1}% {}% starred {% not starred -\ifthenelse{% -\cnttest{\csuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% -}% -{% if secnumdepth -\LWR@traceinfo{LWR@section: about to test main matter}% -\ifbool{LWR@mainmatter}% -{% -\LWR@traceinfo{LWR@section: yes mainmatter}% -\refstepcounter{#4}% -\LWR@traceinfo{LWR@section: about to addcontentsline}% -\addcontentsline{toc}{#4}% -{\protect\LWR@sectionnumber{\csuse{the#4}}% -\IfValueTF{#2}{#2}{#3}}% -\LWR@traceinfo{LWR@section: finished addcontentsline}% -}% end of if main matter -{% not main matter -\LWR@traceinfo{LWR@section: no main matter}% -\addcontentsline{toc}{#4}{\IfValueTF{#2}{#2}{#3}}% -}% end of not main matter -}% end of secnumdepth -{% -\addcontentsline{toc}{#4}{\IfValueTF{#2}{#2}{#3}}% -}% -\ifbool{LWR@mainmatter}% -{% -\ifthenelse{% -\(\cnttest{\csuse{LWR@depth#4}}{<=}% -{\value{secnumdepth}}\) \AND -\(\cnttest{\csuse{LWR@depth#4}}{<=}{\LWR@depthpart}\) -}% -{\csuse{#4name}~{}}% -{}% -\LWR@traceinfo{LWR@section: about to print section number}% -\ifthenelse{% -\cnttest{\csuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% -}% -{\protect\LWR@sectionnumber{\csuse{the#4}}}% -{}% -\LWR@traceinfo{LWR@section: finished print section number}% -}{}% + \ifthenelse{% + \cnttest{\csuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% + }% + {% if secnumdepth + \LWR@traceinfo{LWR@section: about to test main matter}% + \ifbool{LWR@mainmatter}% + {% + \LWR@traceinfo{LWR@section: yes mainmatter}% + \refstepcounter{#4}% + \LWR@traceinfo{LWR@section: about to addcontentsline}% + \addcontentsline{toc}{#4}% + {\protect\LWR@sectionnumber{\csuse{the#4}}% + \IfValueTF{#2}{ #2}{ #3}}% + \LWR@traceinfo{LWR@section: finished addcontentsline}% + }% end of if main matter + {% not main matter + \LWR@traceinfo{LWR@section: no main matter}% + \addcontentsline{toc}{#4}{\IfValueTF{#2}{ #2}{ #3}}% + }% end of not main matter + }% end of secnumdepth + {% + \addcontentsline{toc}{#4}{\IfValueTF{#2}{ #2}{ #3}}% + }% + \ifbool{LWR@mainmatter}% + {% + \ifthenelse{% + \(\cnttest{\csuse{LWR@depth#4}}{<=}% + {\value{secnumdepth}}\) \AND% + \(\cnttest{\csuse{LWR@depth#4}}{<=}{\LWR@depthpart}\)% + }% + {\csuse{#4name}~{}}% + {}% + \LWR@traceinfo{LWR@section: about to print section number}% + \ifthenelse{% + \cnttest{\csuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% + }% + {\protect\LWR@sectionnumber{\csuse{the#4}}~}% + {}% + \LWR@traceinfo{LWR@section: finished print section number}% + }{}% }% end of not starred -#3 +#3% \LWR@htmltag{\csuse{LWR@tag#4end}}% \label{autopage-\thepage}% \ifthenelse{% -\cnttest{\csuse{LWR@depth#4}}{<}{\LWR@depthparagraph}}% + \cnttest{\csuse{LWR@depth#4}}{<}{\LWR@depthparagraph}% +}% {\LWR@startpars}% {}% -\IfBooleanTF{#1}{}{% not starred -\setcounter{LWR@prevFileDepth}{\csuse{LWR@depth#4}}% +\IfBooleanTF{#1}% +{}% +{% not starred + \setcounter{LWR@prevFileDepth}{\csuse{LWR@depth#4}}% }% not starred \LWR@traceinfo{LWR@section: done}% } @@ -4122,10 +4235,10 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \LWR@orignewline \ifbool{mathjax}% {% -\boolfalse{LWR@verbtags} -\verbatiminput{lwarp_mathjax.txt}% -\booltrue{LWR@verbtags} -\LWR@stoppars + \boolfalse{LWR@verbtags} + \verbatiminput{lwarp_mathjax.txt}% + \booltrue{LWR@verbtags} + \LWR@stoppars }% end of mathjax {}% \LWR@htmltag{/head}\LWR@orignewline @@ -4144,8 +4257,8 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% {% \LWR@traceinfo{LWR@lwarpStart} \ifbool{FormatWordProcessor}{% -\setcounter{FileDepth}{-5}% -\boolfalse{HTMLDebugComments}% + \setcounter{FileDepth}{-5}% + \boolfalse{HTMLDebugComments}% }{} \edef\LWR@strresult{\HomeHTMLFilename} \edef\HomeHTMLFilename{\detokenize\expandafter{\LWR@strresult}} @@ -4218,8 +4331,8 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \newcommand*{\LWR@requesttoc}[2]{% \ifbool{#1} { -\expandafter\newwrite\csuse{tf@#2} -\immediate\openout \csuse{tf@#2} \jobname.#2\relax + \expandafter\newwrite\csuse{tf@#2} + \immediate\openout \csuse{tf@#2} \jobname.#2\relax }{} } @@ -4239,7 +4352,7 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWordProcessor}} {} { -\ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{} + \ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{} } \LWR@stoppars% final stop of all paragraphs \LWR@htmltag{/body}\LWR@orignewline @@ -4376,9 +4489,9 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifthenelse{\equal{\thepublished}{}} {} { -\begin{BlockClass}{published} -\@published -\end{BlockClass} + \begin{BlockClass}{published} + \@published + \end{BlockClass} } } @@ -4403,9 +4516,9 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifthenelse{\equal{\thesubtitle}{}} {} { -\begin{BlockClass}{subtitle} -\@subtitle -\end{BlockClass} + \begin{BlockClass}{subtitle} + \@subtitle + \end{BlockClass} } } @@ -4450,12 +4563,12 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \vspace*{\droptitle} \maketitlehooka \ifcsempty{@published} -{} -{{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} + {} + {{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} {\@bspretitle \@title \@bsposttitle} \ifcsempty{@subtitle} -{} -{\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} + {} + {\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} \maketitlehookb {\@bspreauthor \@author \@bspostauthor} \maketitlehookc @@ -4499,12 +4612,12 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \vspace*{\droptitle} \maketitlehooka \ifcsempty{@published} -{} -{{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} + {} + {{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} {\@bspretitle \@title \@bsposttitle} \ifcsempty{@subtitle} -{} -{\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} + {} + {\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} \maketitlehookb {\@bspreauthor \@author \@bspostauthor} \maketitlehookc @@ -4573,19 +4686,19 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% } \DeclareDocumentCommand{\@maketitle}{}{% -\maketitlehooka -\ifcsempty{@published} -{} -{{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} -{\@bspretitle \@title \@bsposttitle} -\ifcsempty{@subtitle} -{} -{\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} -\maketitlehookb -{\@bspreauthor \@author \@bspostauthor} -\maketitlehookc -{\@bspredate \@date \@bspostdate} -\maketitlehookd + \maketitlehooka + \ifcsempty{@published} + {} + {{\@bsprepublished \@published \@bspostpublished}\maketitlehookaa} + {\@bspretitle \@title \@bsposttitle} + \ifcsempty{@subtitle} + {} + {\maketitlehookaaa{\@bspresubtitle \@subtitle \@bspostsubtitle}} + \maketitlehookb + {\@bspreauthor \@author \@bspostauthor} + \maketitlehookc + {\@bspredate \@date \@bspostdate} + \maketitlehookd } \providecommand{\maketitlehookaa}{} @@ -4683,12 +4796,13 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \setlength{\parskip}{0ex}% \LWR@stoppars% \ifbool{LWR@verbtags}{% -\LWR@htmltag{pre class="#2" -\ifthenelse{\equal{#1}{}}{}{style="#1"}% + \LWR@htmltag{pre class="#2" + \ifthenelse{\equal{#1}{}}{}{style="#1"}% }% pre }{}% \begingroup% \LWR@origttfamily% +\LWR@FBcancel% \LetLtxMacro{\hspace}{\LWR@orighspace}% } @@ -4872,20 +4986,20 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \global\booltrue{LWR@intabularmetadata}% \ifbool{LWR@exitingtabular}{}% {% not exiting tabular -\ifbool{LWR@skippingmrowcell}{}% -{% not skippingmrowcell -\unskip% -\LWR@getexparray{LWR@colafterspec}{\theLWR@tablecolspos}% -\ifbool{LWR@tableparcell}{\LWR@stoppars}{}% -\global\boolfalse{LWR@tableparcell}% -\leavevmode\unskip\LWR@htmltag{/td}\LWR@orignewline% -\ifbool{LWR@skipatbang}% -{\boolfalse{LWR@skipatbang}}% -{% -\LWR@printatbang{at}{\theLWR@tablecolspos}% -\LWR@printatbang{bang}{\theLWR@tablecolspos}% -}% not skipping at or bang -}% not skipping mrowcell + \ifbool{LWR@skippingmrowcell}{}% + {% not skippingmrowcell + \unskip% + \LWR@getexparray{LWR@colafterspec}{\theLWR@tablecolspos}% + \ifbool{LWR@tableparcell}{\LWR@stoppars}{}% + \global\boolfalse{LWR@tableparcell}% + \leavevmode\unskip\LWR@htmltag{/td}\LWR@orignewline% + \ifbool{LWR@skipatbang}% + {\boolfalse{LWR@skipatbang}}% + {% + \LWR@printatbang{at}{\theLWR@tablecolspos}% + \LWR@printatbang{bang}{\theLWR@tablecolspos}% + }% not skipping at or bang + }% not skipping mrowcell }% not exiting tabular \global\boolfalse{LWR@skippingmrowcell}% } @@ -4911,10 +5025,10 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \LWR@traceinfo{LWR@tabularampersand}% \ifthenelse{\cnttest{\value{LWR@tabulardepth}}{>}{0}}% {% -\unskip% -\LWR@closetabledatacell% -\addtocounter{LWR@tablecolspos}{1}% -\LWR@getmynexttoken% + \unskip% + \LWR@closetabledatacell% + \addtocounter{LWR@tablecolspos}{1}% + \LWR@getmynexttoken% }% {\LWR@origampmacro}% } @@ -4966,16 +5080,16 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \LWR@traceinfo{have now read the next token}% \ifthenelse{\cnttest{\value{LWR@tabletotalcols}}=0} {% left edge of the table: -\LWR@traceinfo{at the left edge}% -\LWR@setexparray{LWR@colatspec}{leftedge}{\LWR@colparameter}% -\LWR@traceinfo{at the left edge: % - \LWR@getexparray{LWR@colatspec}{leftedge}}% + \LWR@traceinfo{at the left edge}% + \LWR@setexparray{LWR@colatspec}{leftedge}{\LWR@colparameter}% + \LWR@traceinfo{at the left edge: % + \LWR@getexparray{LWR@colatspec}{leftedge}}% }% {% not at the left edge: -\LWR@traceinfo{not at the left edge}% -\LWR@setexparray{LWR@colatspec}{\theLWR@tabletotalcols}{\LWR@colparameter}% -\LWR@traceinfo{at \theLWR@tabletotalcols: % - \LWR@getexparray{LWR@colatspec}{\theLWR@tabletotalcols}}% + \LWR@traceinfo{not at the left edge}% + \LWR@setexparray{LWR@colatspec}{\theLWR@tabletotalcols}{\LWR@colparameter}% + \LWR@traceinfo{at \theLWR@tabletotalcols: % + \LWR@getexparray{LWR@colatspec}{\theLWR@tabletotalcols}}% }% \let\LWR@colparameter\relax% \booltrue{LWR@validtablecol}% @@ -4990,13 +5104,13 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \LWR@traceinfo{have now read the next token}% \ifthenelse{\cnttest{\value{LWR@tabletotalcols}}=0} {% left edge of the table: -\LWR@traceinfo{at the left edge}% -\LWR@setexparray{LWR@colbangspec}{leftedge}{\LWR@colparameter}% + \LWR@traceinfo{at the left edge}% + \LWR@setexparray{LWR@colbangspec}{leftedge}{\LWR@colparameter}% }% {% not at the left edge: -\LWR@traceinfo{not at the left edge}% -\LWR@setexparray{LWR@colbangspec}{\theLWR@tabletotalcols}{\LWR@colparameter}% -\LWR@traceinfo{bang \theLWR@tabletotalcols: \LWR@colparameter!}% + \LWR@traceinfo{not at the left edge}% + \LWR@setexparray{LWR@colbangspec}{\theLWR@tabletotalcols}{\LWR@colparameter}% + \LWR@traceinfo{bang \theLWR@tabletotalcols: \LWR@colparameter!}% }% \let\LWR@colparameter\relax% \booltrue{LWR@validtablecol}% @@ -5101,8 +5215,8 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \IfStrEq{\LWR@strresult}{M}{\LWR@parsepcolumn{M}}{}% \IfStrEq{\LWR@strresult}{B}{\LWR@parsepcolumn{B}}{}% \ifbool{LWR@validtablecol}{}{% -\LWR@traceinfo{invalid column type: \LWR@strresult}% -\LWR@parsenormalcolumn{l}% + \LWR@traceinfo{invalid column type: \LWR@strresult}% + \LWR@parsenormalcolumn{l}% }% \addtocounter{LWR@tablecolspos}{1}% }% @@ -5114,15 +5228,15 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifbool{LWR@startedrow}% {}% started the row {% not started the row -\global\booltrue{LWR@startedrow}% -\global\booltrue{LWR@intabularmetadata}% -\ifbool{LWR@doinghline}% -{\LWR@htmltag{tr class="hline"{}}\LWR@orignewline}% -{% not doing hline -\ifbool{LWR@doingtbrule}% -{\LWR@htmltag{tr class="tbrule"{}}\LWR@orignewline}% -{\LWR@htmltag{tr}\LWR@orignewline}% -}% end of not doing hline + \global\booltrue{LWR@startedrow}% + \global\booltrue{LWR@intabularmetadata}% + \ifbool{LWR@doinghline}% + {\LWR@htmltag{tr class="hline"{}}\LWR@orignewline}% + {% not doing hline + \ifbool{LWR@doingtbrule}% + {\LWR@htmltag{tr class="tbrule"{}}\LWR@orignewline}% + {\LWR@htmltag{tr}\LWR@orignewline}% + }% end of not doing hline }% end of not started the row } @@ -5133,11 +5247,11 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifdefempty{\LWR@atbangspec}% {}% {% -\LWR@htmltag{td class="td#1% -\ifthenelse{\equal{\LWR@getexparray{LWR@midrules}{\theLWR@tablecolspos}}{Y}}{rule}{}% -"}% -\LWR@atbangspec% -\LWR@htmltag{/td}\LWR@orignewline% + \LWR@htmltag{td class="td#1% + \ifthenelse{\equal{\LWR@getexparray{LWR@midrules}{\theLWR@tablecolspos}}{Y}}{rule}{}% + "}% + \LWR@atbangspec% + \LWR@htmltag{/td}\LWR@orignewline% }% }% @@ -5145,37 +5259,40 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \newcommand*{\LWR@tabledatasinglecolumntag}% {% \LWR@maybenewtablerow% -\ifbool{LWR@intabularmetadata}{% -\ifbool{LWR@exitingtabular}{}% -{% not exiting tabular -\ifthenelse{\cnttest{\value{LWR@tablecolspos}}=1}% +\ifbool{LWR@intabularmetadata}% {% -\LWR@printatbang{at}{leftedge}% -\LWR@printatbang{bang}{leftedge}% -}% left edge -{}% not left edge -\StrChar{\LWR@tablecolspec}{\theLWR@tablecolspos}[\LWR@strresult]% -\LWR@htmltag{td class="td% -\LWR@strresult% -\ifthenelse{\equal{\LWR@getexparray{LWR@midrules}{\theLWR@tablecolspos}}{Y}}{rule}{}% -"{}}% -\ifthenelse{% -\equal{\LWR@strresult}{p}\OR% -\equal{\LWR@strresult}{m}\OR% -\equal{\LWR@strresult}{b}\OR% -\equal{\LWR@strresult}{P}\OR% -\equal{\LWR@strresult}{M}\OR% -\equal{\LWR@strresult}{B}\OR% -\equal{\LWR@strresult}{X}% -}% -{% allow pars -\LWR@startpars% -\global\booltrue{LWR@tableparcell}% -}% allow pars -{}% no pars -\LWR@getexparray{LWR@colbeforespec}{\theLWR@tablecolspos}% -\global\boolfalse{LWR@intabularmetadata}% -}% not exiting tabular + \ifbool{LWR@exitingtabular}{}% + {% not exiting tabular + \ifthenelse{\cnttest{\value{LWR@tablecolspos}}=1}% + {% + \LWR@printatbang{at}{leftedge}% + \LWR@printatbang{bang}{leftedge}% + }% left edge + {}% not left edge + \StrChar{\LWR@tablecolspec}{\theLWR@tablecolspos}[\LWR@strresult]% + \LWR@htmltag{td class="td% + \LWR@strresult% + \ifthenelse{\equal{\LWR@getexparray{LWR@midrules}{\theLWR@tablecolspos}}{Y}}% + {rule}% + {}% + "{}}% + \ifthenelse{% + \equal{\LWR@strresult}{p}\OR% + \equal{\LWR@strresult}{m}\OR% + \equal{\LWR@strresult}{b}\OR% + \equal{\LWR@strresult}{P}\OR% + \equal{\LWR@strresult}{M}\OR% + \equal{\LWR@strresult}{B}\OR% + \equal{\LWR@strresult}{X}% + }% + {% allow pars + \LWR@startpars% + \global\booltrue{LWR@tableparcell}% + }% allow pars + {}% no pars + \LWR@getexparray{LWR@colbeforespec}{\theLWR@tablecolspos}% + \global\boolfalse{LWR@intabularmetadata}% + }% not exiting tabular }{}% in tabular metadata }% @@ -5313,58 +5430,58 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \NewDocumentCommand{\LWR@longtabledatacaptiontag}{s o +m} {% \IfValueTF{#2}{% optional given? -\ifthenelse{\equal{#2}{}}% optional empty? -{\LWR@setlatestname{#3}}% empty -{\LWR@setlatestname{#2}}% given and non-empty + \ifthenelse{\equal{#2}{}}% optional empty? + {\LWR@setlatestname{#3}}% empty + {\LWR@setlatestname{#2}}% given and non-empty }% optional given {\LWR@setlatestname{#3}}% no optional \LWR@tabularhtmlcolumns{1}{\theLWR@tabletotalcols} \LWR@domulticolumn{\theLWR@tabhtmlcoltotal}{P}{% \LWR@domulticolumn \IfBooleanTF{#1}% star? {% yes star -\LWR@htmlblocktag{figcaption}% -#3% -\LWR@htmlblocktag{/figcaption}% + \LWR@htmlblocktag{figcaption}% + #3% + \LWR@htmlblocktag{/figcaption}% }% {% No star: -\ifbool{LWR@starredlongtable}% -{% -\ifthenelse{\equal{#2}{}}% TOC entry -{}% -{% -\refstepcounter{\LTcaptype}% -\protected@edef\@currentlabel{% -\csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% -}% -}{}% -\LWR@htmlblocktag{figcaption}% -\csuse{fnum@\LTcaptype}\CaptionSeparator#3% -\LWR@htmlblocktag{/figcaption}% -\ifthenelse{\equal{#2}{}}% TOC entry empty -{}% -{% TOC entry not empty -\IfNoValueTF{#2}% No TOC entry? -{% No TOC entry -\addcontentsline% -{\csuse{ext@\LTcaptype}}% -{\LTcaptype}% -{% -\protect\numberline% -{\csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% -{\ignorespaces #3\protect\relax}% -}% -}% end of No TOC entry -{% yes TOC entry -\addcontentsline% -{\csuse{ext@\LTcaptype}}% -{\LTcaptype}% -{% -\protect\numberline% -{\csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% -{\ignorespaces #2\protect\relax}% -}% -}% end of yes TOC entry -}% end of TOC entry not empty + \ifbool{LWR@starredlongtable}% + {% + \ifthenelse{\equal{#2}{}}% TOC entry + {}% + {% + \refstepcounter{\LTcaptype}% + \protected@edef\@currentlabel{% + \csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% + }% + }{}% + \LWR@htmlblocktag{figcaption}% + \csuse{fnum@\LTcaptype}\CaptionSeparator#3% + \LWR@htmlblocktag{/figcaption}% + \ifthenelse{\equal{#2}{}}% TOC entry empty + {}% + {% TOC entry not empty + \IfNoValueTF{#2}% No TOC entry? + {% No TOC entry + \addcontentsline% + {\csuse{ext@\LTcaptype}}% + {\LTcaptype}% + {% + \protect\numberline% + {\csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% + {\ignorespaces #3\protect\relax}% + }% + }% end of No TOC entry + {% yes TOC entry + \addcontentsline% + {\csuse{ext@\LTcaptype}}% + {\LTcaptype}% + {% + \protect\numberline% + {\csuse{p@\LTcaptype}\csuse{the\LTcaptype}}% + {\ignorespaces #2\protect\relax}% + }% + }% end of yes TOC entry + }% end of TOC entry not empty }% end of no star \booltrue{LWR@skipatbang}% }% end of \LWR@domulticolumn @@ -5393,10 +5510,10 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \addtocounter{LWR@tabhtmlcolindex}{1}% }% \ifthenelse{\value{LWR@tablecolspos}=1}{% -\edef\LWR@atbangspec{\LWR@getexparray{LWR@colatspec}{leftedge}}% -\ifdefempty{\LWR@atbangspec}{}{\addtocounter{LWR@tabhtmlcoltotal}{1}}% -\edef\LWR@atbangspec{\LWR@getexparray{LWR@colbangspec}{leftedge}}% -\ifdefempty{\LWR@atbangspec}{}{\addtocounter{LWR@tabhtmlcoltotal}{1}}% + \edef\LWR@atbangspec{\LWR@getexparray{LWR@colatspec}{leftedge}}% + \ifdefempty{\LWR@atbangspec}{}{\addtocounter{LWR@tabhtmlcoltotal}{1}}% + \edef\LWR@atbangspec{\LWR@getexparray{LWR@colbangspec}{leftedge}}% + \ifdefempty{\LWR@atbangspec}{}{\addtocounter{LWR@tabhtmlcoltotal}{1}}% }{}% } @@ -5492,6 +5609,7 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \global\boolfalse{LWR@startedrow}% \global\boolfalse{LWR@doinghline}% \global\boolfalse{LWR@doingtbrule}% +\LWR@FBcancel% \boolfalse{LWR@exitingtabular}% \global\booltrue{LWR@intabularmetadata}% \LWR@forcenewpage @@ -5598,21 +5716,21 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}% {}% {% not lateximage -\ifbool{LWR@doingstartpars}% -{% pars allowed -\ifbool{LWR@doingapar} -{% par started -\LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% -}% par started -{% par not started -\LWR@stoppars% -\LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% -\LWR@startpars% -}% par not started -}% pars allowed -{% pars not allowed -\LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% -}% pars not allowed + \ifbool{LWR@doingstartpars}% + {% pars allowed + \ifbool{LWR@doingapar} + {% par started + \LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% + }% par started + {% par not started + \LWR@stoppars% + \LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% + \LWR@startpars% + }% par not started + }% pars allowed + {% pars not allowed + \LWR@htmltag{a id="#1"{}}\LWR@htmltag{/a}% + }% pars not allowed }% not lateximage } \NewDocumentCommand{\LWR@newlabel}{m o}{% @@ -5640,19 +5758,20 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}% \LWR@traceinfo{LWR@startref D: !#1!}% \ifthenelse{\equal{\LWR@lidref}{??}}% {% -\LWR@traceinfo{LWR@startref D0: ??}% -??}% -{% -\LWR@traceinfo{LWR@startref D1: \LWR@lidref}% -\ifthenelse{\cnttest{\LWR@lidref}{>}{0}}% -{% -\LWR@traceinfo{LWR@startref D2: \LWR@lidref}% -lateximage\LWR@lateximagenumberref{#1}% + \LWR@traceinfo{LWR@startref D0: ??}% + ??% }% {% -\LWR@traceinfo{LWR@startref D3}% -#1% -}% + \LWR@traceinfo{LWR@startref D1: \LWR@lidref}% + \ifthenelse{\cnttest{\LWR@lidref}{>}{0}}% + {% + \LWR@traceinfo{LWR@startref D2: \LWR@lidref}% + lateximage\LWR@lateximagenumberref{#1}% + }% + {% + \LWR@traceinfo{LWR@startref D3}% + #1% + }% }% \LWR@traceinfo{LWR@startref E}% "{}}% @@ -5868,12 +5987,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \renewcommand*{\addcontentsline}[3]{% \ifthenelse{\equal{#1}{toc}}{}{% -\ifthenelse{\equal{#1}{thm}}{\csdef{ext@#2}{thm}}{} -\addtocontents{\@nameuse{ext@#2}}{% -\protect\LWRsetnextfloat% -{\arabic{LWR@latestautopage}}% -{\arabic{LWR@thisfloat}}% -}% addtocontents + \ifthenelse{\equal{#1}{thm}}{\csdef{ext@#2}{thm}}{} + \addtocontents{\@nameuse{ext@#2}}{% + \protect\LWRsetnextfloat% + {\arabic{LWR@latestautopage}}% + {\arabic{LWR@thisfloat}}% + }% addtocontents }% not toc \LWR@origaddcontentsline{#1}{#2}{#3}% } @@ -5931,22 +6050,22 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \renewcommand*{\tableofcontents}{% \ifbool{FormatWordProcessor}{}{ -\LWR@copyfile{\jobname.toc}{\jobname.sidetoc}% -\LWR@printpendingfootnotes -\LWR@origtableofcontents + \LWR@copyfile{\jobname.toc}{\jobname.sidetoc}% + \LWR@printpendingfootnotes + \LWR@origtableofcontents } } \renewcommand*{\listoffigures}{ \ifbool{FormatWordProcessor}{}{ -\LWR@printpendingfootnotes -\LWR@origlistoffigures + \LWR@printpendingfootnotes + \LWR@origlistoffigures } } \renewcommand*{\listoftables}{ \ifbool{FormatWordProcessor}{}{ -\LWR@printpendingfootnotes -\LWR@origlistoftables + \LWR@printpendingfootnotes + \LWR@origlistoftables } } @@ -5999,10 +6118,10 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \NewDocumentCommand{\hypertoc}{m m +m m}{% \ifthenelse{\cnttest{#1}{<=}{\value{tocdepth}}}{% -\LWR@startpars% -\LWR@subhyperrefclass{% -\LWR@htmlrefsectionfilename{autopage-#4}\#autosec-#4}{#3}{toc#2}% -\LWR@stoppars% + \LWR@startpars% + \LWR@subhyperrefclass{% + \LWR@htmlrefsectionfilename{autopage-#4}\#autosec-#4}{#3}{toc#2}% + \LWR@stoppars% } {} } @@ -6021,22 +6140,22 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% }{}% \LWR@traceinfo{hypertocfloat depth is #1 #3depth is \arabic{#3depth}}% \ifthenelse{\cnttest{#1}{<=}{\arabic{#3depth}}}{% -\LWR@startpars% -\LWR@subhyperrefclass{% -\LWR@htmlrefsectionfilename{autopage-\arabic{LWR@nextautopage}}% -\#autofloat-\arabic{LWR@nextautofloat}}% -{#4}{toc#2}% -\LWR@stoppars% + \LWR@startpars% + \LWR@subhyperrefclass{% + \LWR@htmlrefsectionfilename{autopage-\arabic{LWR@nextautopage}}% + \#autofloat-\arabic{LWR@nextautofloat}}% + {#4}{toc#2}% + \LWR@stoppars% }{}% } \renewcommand{\l@part}[2]{\hypertoc{-1}{part}{#1}{#2}} \DeclareDocumentCommand{\l@chapter}{m m} -{\hypertoc{0}{chapter}{#1}{#2}} + {\hypertoc{0}{chapter}{#1}{#2}} \renewcommand{\l@section}[2]{\hypertoc{1}{section}{#1}{#2}} \renewcommand{\l@subsection}[2]{\hypertoc{2}{subsection}{#1}{#2}} \renewcommand{\l@subsubsection}[2] -{\hypertoc{3}{subsubsection}{#1}{#2}} + {\hypertoc{3}{subsubsection}{#1}{#2}} \renewcommand{\l@paragraph}[2]{\hypertoc{4}{paragraph}{#1}{#2}} \renewcommand{\l@subparagraph}[2]{\hypertoc{5}{subparagraph}{#1}{#2}} \renewcommand{\l@figure}[2]{\hypertocfloat{1}{figure}{lof}{#1}{#2}} @@ -6056,8 +6175,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \setcounter{LWR@autoglossary}{0} \@ifundefined{chapter} -{\newcommand*{\LWR@indexsection}{\section{\indexname}}} -{\newcommand*{\LWR@indexsection}{\chapter{\indexname}}} + {\newcommand*{\LWR@indexsection}{\section{\indexname}}} + {\newcommand*{\LWR@indexsection}{\chapter{\indexname}}} \let\LWR@origprintindex\printindex @@ -6160,10 +6279,10 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax}% {\textbackslash(\LWR@HTMLsanitize{#1}\textbackslash)} {% not mathjax -\begin{lateximage}% -[\textbackslash( \LWR@HTMLsanitize{#1} \textbackslash)]% -\LWR@origdollar#1\LWR@origdollar% -\end{lateximage}% + \begin{lateximage}% + [\textbackslash( \LWR@HTMLsanitize{#1} \textbackslash)]% + \LWR@origdollar#1\LWR@origdollar% + \end{lateximage}% }% } @@ -6204,17 +6323,18 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% {}% not using chapters \ifthenelse{\cnttest{\value{equation}}>0} { -\setcounter{LWR@nextequation}{\value{equation}} -\addtocounter{LWR@nextequation}{1} -\InlineClass{hidden}{ -\textbackslash( -\textbackslash{}seteqnumber \{\arabic{LWR@nextequation}\} -\textbackslash) -} -}{}% not eq > 1 + \setcounter{LWR@nextequation}{\value{equation}} + \addtocounter{LWR@nextequation}{1} + \InlineClass{hidden}{ + \textbackslash( + \textbackslash{}seteqnumber \{\arabic{LWR@nextequation}\} + \textbackslash) + } +}{}% not eq > 0 } \newcommand*{\LWR@restoreorigformatting}{% +\LWR@traceinfo{LWR@restoreorigformatting}% \LetLtxMacro{\hspace}{\LWR@orighspace}% \LetLtxMacro\rule\LWR@origrule% \let\,\LWR@origcomma% disable HTML short unbreakable space @@ -6240,9 +6360,14 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \LetLtxMacro{\itshape}{\LWR@origitshape}% \LetLtxMacro{\em}{\LWR@origem}% \LetLtxMacro{\normalfont}{\LWR@orignormalfont}% -\renewcommand*{\thefootnote}{\fnsymbol{footnote}}% +\let\sp\LWR@origsp% +\let\sb\LWR@origsb% \let\textsuperscript\LWR@origtextsuperscript% \let\textsubscript\LWR@origtextsubscript% +\let\textdegree\LWR@origtextdegree% +\let\textcelsius\LWR@origtextcelsius% +\let\textohm\LWR@origtextohm% +\let\textmu\LWR@origtextmu% \let~\LWR@origtilde% \let\enskip\LWR@origenskip% \let\quad\LWR@origquad% @@ -6263,13 +6388,16 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \let\reflectbox\LWR@origreflectbox% \let\framebox\LWR@origframebox% \let\makebox\LWR@origmakebox% -\let\fbox\LWR@origfbox% -\let\fboxBlock\LWR@origfbox% -\LetLtxMacro{\fminipage}{\LWR@fminipageprint}% -\LetLtxMacro{\endfminipage}{\endLWR@fminipageprint}% +\let\fbox\LWRprint@fbox% +\let\fboxBlock\LWRprint@fbox% +\LetLtxMacro{\fminipage}{\LWRprint@fminipage}% +\LetLtxMacro{\endfminipage}{\endLWRprint@fminipage}% \LetLtxMacro{\minipage}{\LWR@origminipage}% \let\endminipage\LWR@endminipage% \LetLtxMacro{\parbox}{\LWR@origparbox}% +\LWR@restoreorigxcolor% +\LWR@restoremoreorigxcolor% +\LWR@FBcancel% } \NewDocumentCommand{\LWR@hidelatexequation}{m +m}{% @@ -6304,17 +6432,17 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\LWR@hidelatexequation{equation}{\BODY} + \LWR@syncmathjax + \LWR@hidelatexequation{equation}{\BODY} } {% not mathjax -\begin{lateximage}[(\theequation) \textbackslash{begin\{equation\}}% - \LWR@HTMLsanitizeexpand{\detokenize\expandafter{\BODY}}% - \textbackslash{end\{equation\}}]% alt tag -\LWR@origequation -\BODY% contents collected by NewEnviron -\LWR@origendequation -\end{lateximage}% + \begin{lateximage}[(\theequation) \textbackslash{begin\{equation\}}% + \LWR@HTMLsanitizeexpand{\detokenize\expandafter{\BODY}}% + \textbackslash{end\{equation\}}]% alt tag + \LWR@origequation + \BODY% contents collected by NewEnviron + \LWR@origendequation + \end{lateximage}% } }[\ifbool{mathjax}{\LWR@addmathjax{equation}{\BODY}}{}] @@ -6325,15 +6453,15 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \newcommand*{\LWR@htmlmathlabel}[1]{% \LWR@traceinfo{LWR@htmlmathlabel #1}% \ifbool{mathjax}{% -\text{ -\ifbool{LWR@amsmultline}{}{\hspace*{\totwidth@}} -\LWR@htmlclosecomment% -\LWR@origltx@label{#1}% -\LWR@htmlopencomment% -}% text + \text{ + \ifbool{LWR@amsmultline}{}{\hspace*{\totwidth@}} + \LWR@htmlclosecomment% + \LWR@origltx@label{#1}% + \LWR@htmlopencomment% + }% text }% mathjax {% -\LWR@origltx@label{#1}% + \LWR@origltx@label{#1}% }% } @@ -6362,36 +6490,38 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \newcommand{\LWR@eqnarrayfactor}{% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\ifbool{LWR@numbereqnarray} -{ -\LWR@beginhideamsmath -\LWR@origeqnarray -\BODY -\LWR@origendeqnarray -\LWR@endhideamsmath -\LWR@addmathjax{eqnarray}{\BODY} -}{% not LWR@numbereqnarray -\LWR@addmathjax{eqnarray*}{\BODY} -}% LWR@numbereqnarray + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \ifbool{LWR@numbereqnarray} + { + \LWR@beginhideamsmath + \LWR@origeqnarray + \BODY + \LWR@origendeqnarray + \LWR@endhideamsmath + \LWR@addmathjax{eqnarray}{\BODY} + }% + {% not LWR@numbereqnarray + \LWR@addmathjax{eqnarray*}{\BODY} + }% LWR@numbereqnarray }% mathjax {% not mathjax -\ifbool{LWR@numbereqnarray} -{ -\begin{lateximage}[\LWR@addmathjax{eqnarray}{\BODY}] -\LWR@origeqnarray -\BODY -\LWR@origendeqnarray -\end{lateximage} -}{% not LWR@numbereqnarray -\begin{lateximage}[\LWR@addmathjax{eqnarray*}{\BODY}] -\LWR@origeqnarray -\BODY -\nonumber -\LWR@origendeqnarray -\end{lateximage} -}% LWR@numbereqnarray + \ifbool{LWR@numbereqnarray} + { + \begin{lateximage}[\LWR@addmathjax{eqnarray}{\BODY}] + \LWR@origeqnarray + \BODY + \LWR@origendeqnarray + \end{lateximage} + }% + {% not LWR@numbereqnarray + \begin{lateximage}[\LWR@addmathjax{eqnarray*}{\BODY}] + \LWR@origeqnarray + \BODY + \nonumber + \LWR@origendeqnarray + \end{lateximage} + }% LWR@numbereqnarray }% not mathjax \booltrue{LWR@numbereqnarray} } @@ -6406,12 +6536,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\booltrue{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \booltrue{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6419,9 +6549,9 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\boolfalse{LWR@amsmultline} -\LWR@addmathjax{multline}{\the\@envbody} + \LWR@endhideamsmath + \boolfalse{LWR@amsmultline} + \LWR@addmathjax{multline}{\the\@envbody} } {\endlateximage} @@ -6431,12 +6561,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\booltrue{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \booltrue{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6444,9 +6574,9 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\boolfalse{LWR@amsmultline} -\LWR@addmathjax{multline*}{\the\@envbody} + \LWR@endhideamsmath + \boolfalse{LWR@amsmultline} + \LWR@addmathjax{multline*}{\the\@envbody} } {\endlateximage} @@ -6457,12 +6587,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6470,8 +6600,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{gather}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{gather}{\the\@envbody} } {\endlateximage} @@ -6481,12 +6611,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6494,8 +6624,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{gather*}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{gather*}{\the\@envbody} } {\endlateximage} @@ -6505,12 +6635,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6518,8 +6648,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{align}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{align}{\the\@envbody} } {\endlateximage} @@ -6529,12 +6659,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6542,8 +6672,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{align*}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{align*}{\the\@envbody} } {\endlateximage} @@ -6553,12 +6683,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6566,8 +6696,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{flalign}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{flalign}{\the\@envbody} } {\endlateximage} @@ -6577,12 +6707,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@syncmathjax -\boolfalse{LWR@amsmultline} -\LWR@beginhideamsmath + \LWR@syncmathjax + \boolfalse{LWR@amsmultline} + \LWR@beginhideamsmath } { -\lateximage[LWRAMSMATHBODY] + \lateximage[LWRAMSMATHBODY] } } @@ -6590,8 +6720,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \ifbool{mathjax} { -\LWR@endhideamsmath -\LWR@addmathjax{flalign*}{\the\@envbody} + \LWR@endhideamsmath + \LWR@addmathjax{flalign*}{\the\@envbody} } {\endlateximage} @@ -6621,6 +6751,8 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% \begin{warpHTML} \newcommand{\LWR@HTMLsanitize}[1]{% +\begingroup% +\LWR@FBcancel% \protect\StrSubstitute{\detokenize{#1}}% {\detokenize{&}}% {\detokenize{&}}[\LWR@strresult]% @@ -6637,9 +6769,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% {\#}% [\LWR@strresult]% \LWR@strresult% +\endgroup% } \newcommand{\LWR@HTMLsanitizeexpand}[1]{% +\begingroup% +\LWR@FBcancel% \protect\StrSubstitute{\detokenize\expandafter{#1}}% {\detokenize{&}}% {\detokenize{&}}% @@ -6653,84 +6788,87 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}% {\detokenize{>}}% [\LWR@strresult]% \LWR@strresult% +\endgroup% } \catcode`\$=\active% -\NewDocumentEnvironment{lateximage}{O{image}}{% +\NewDocumentEnvironment{lateximage}{O{image}} +{% \LWR@traceinfo{lateximage: starting on page \arabic{page}}% \ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}% {% -\addtocounter{LWR@lateximagedepth}{1}% + \addtocounter{LWR@lateximagedepth}{1}% }% {% start of outer-most lateximage -\addtocounter{LWR@lateximagenumber}{1}% -\LWR@traceinfo{lateximage: LWR@lateximagenumber is \arabic{LWR@lateximagenumber}}% -\boolfalse{mathjax} -\LWR@ensuredoingapar% -\addtocounter{LWR@externalfilecnt}{1}% -\LWR@traceinfo{lateximage: LWR@externalfilecnt is \arabic{LWR@externalfilecnt}}% -\setcounterpageref{LWR@LIpage}{LWRlateximage\theLWR@lateximagenumber}% -\LWR@traceinfo{lateximage: LWR@LIpage is \arabic{LWR@LIpage}}% -\LWR@htmltag{span id="lateximage\arabic{LWR@lateximagenumber}" % -class="lateximagesource"{}} \LWR@orignewline -\LWR@traceinfo{lateximage: about to write to lateximages.txt}% -\immediate\write\LWR@file{|\theLWR@LIpage|\theLWR@externalfilecnt|}% -\LWR@traceinfo{lateximage: about to create open comment}% -\LWR@htmlopencomment% -\addtocounter{LWR@lateximagedepth}{1}% -\LWR@traceinfo{lateximage: about to create new page}% -\LWR@orignewpage% -\LWR@traceinfo{lateximage: about to create minipage}% -\LWR@origminipage{6in}% -\csuse{LWR@orig\LateximageFontSizeName}% -\LWR@traceinfo{lateximage: about to temporarily restore formatting}% -\LWR@restoreorigformatting% -\LWR@traceinfo{lateximage: about to create label}% -\LWR@origlabel{LWRlateximage\arabic{LWR@lateximagenumber}}% -\LWR@traceinfo{lateximage: finished creating the label}% -\LetLtxMacro$\LWR@origdollar% -\catcode`\$=3% math shift -\LetLtxMacro\(\LWR@origopenparen% -\LetLtxMacro\)\LWR@origcloseparen% -\LetLtxMacro\[\LWR@origopenbracket% -\LetLtxMacro\]\LWR@origclosebracket% -\let\@ensuredmath\LWR@orig@ensuredmath% + \addtocounter{LWR@lateximagenumber}{1}% + \LWR@traceinfo{lateximage: LWR@lateximagenumber is \arabic{LWR@lateximagenumber}}% + \boolfalse{mathjax} + \LWR@ensuredoingapar% + \addtocounter{LWR@externalfilecnt}{1}% + \LWR@traceinfo{lateximage: LWR@externalfilecnt is \arabic{LWR@externalfilecnt}}% + \setcounterpageref{LWR@LIpage}{LWRlateximage\theLWR@lateximagenumber}% + \LWR@traceinfo{lateximage: LWR@LIpage is \arabic{LWR@LIpage}}% + \LWR@htmltag{span id="lateximage\arabic{LWR@lateximagenumber}" % + class="lateximagesource"{}} \LWR@orignewline + \LWR@traceinfo{lateximage: about to write to lateximages.txt}% + \immediate\write\LWR@file{|\theLWR@LIpage|\theLWR@externalfilecnt|}% + \LWR@traceinfo{lateximage: about to create open comment}% + \LWR@htmlopencomment% + \addtocounter{LWR@lateximagedepth}{1}% + \LWR@traceinfo{lateximage: about to create new page}% + \LWR@orignewpage% + \LWR@traceinfo{lateximage: about to create minipage}% + \LWR@origminipage{6in}% + \csuse{LWR@orig\LateximageFontSizeName}% + \LWR@traceinfo{lateximage: about to temporarily restore formatting}% + \LWR@restoreorigformatting% + \def\@mpfn{footnote}% + \def\thempfn{\thefootnote}% + \let\@footnotetext\LWR@footnotetext% + \LWR@traceinfo{lateximage: about to create label}% + \LWR@origlabel{LWRlateximage\arabic{LWR@lateximagenumber}}% + \LWR@traceinfo{lateximage: finished creating the label}% + \LetLtxMacro$\LWR@origdollar% + \catcode`\$=3% math shift + \LetLtxMacro\(\LWR@origopenparen% + \LetLtxMacro\)\LWR@origcloseparen% + \LetLtxMacro\[\LWR@origopenbracket% + \LetLtxMacro\]\LWR@origclosebracket% + \let\@ensuredmath\LWR@orig@ensuredmath% }% end of outer-most lateximage \LWR@traceinfo{lateximage: finished start of environment}% }% end of \begin{lateximage} {% start of \end{lateximage} \LWR@traceinfo{lateximage: starting end of environment}% \ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{1}}% -{% -\addtocounter{LWR@lateximagedepth}{-1}% -}% +{\addtocounter{LWR@lateximagedepth}{-1}}% {% end of outer-most lateximage -\LWR@origendminipage% -\LWR@orignewpage% -\LWR@origscriptsize% -\LWR@htmlclosecomment{}\LWR@orignewline% -\LWR@traceinfo{lateximage: The page after the image is \arabic{page}}% -\ifthenelse{\equal{#1}{LWRAMSMATHBODY}}% -{% -\LWR@subinlineimage[% -\LWR@HTMLsanitizeexpand{\detokenize\expandafter{\the\@envbody}}% -]% -{lateximage}% -{lateximages\OSPathSymbol{}lateximage-\theLWR@externalfilecnt}% -{svg}% -{}% -}% -{% -\LWR@subinlineimage[#1]{lateximage}% -{lateximages\OSPathSymbol{}lateximage-\theLWR@externalfilecnt}{svg}{}% -}% -\LWR@ensuredoingapar% -\LWR@htmltag{/span}% -\ifbool{HTMLDebugComments}{% -\LWR@htmlcomment{End of lateximage}% -}{}% -\addtocounter{LWR@lateximagedepth}{-1}% + \LWR@origendminipage% + \LWR@orignewpage% + \LWR@origscriptsize% + \LWR@htmlclosecomment{}\LWR@orignewline% + \LWR@traceinfo{lateximage: The page after the image is \arabic{page}}% + \ifthenelse{\equal{#1}{LWRAMSMATHBODY}}% + {% + \LWR@subinlineimage[% + \LWR@HTMLsanitizeexpand{\detokenize\expandafter{\the\@envbody}}% + ]% + {lateximage}% + {lateximages\OSPathSymbol{}lateximage-\theLWR@externalfilecnt}% + {svg}% + {}% + }% + {% + \LWR@subinlineimage[#1]{lateximage}% + {lateximages\OSPathSymbol{}lateximage-\theLWR@externalfilecnt}{svg}{}% + }% + \LWR@ensuredoingapar% + \LWR@htmltag{/span}% + \ifbool{HTMLDebugComments}{% + \LWR@htmlcomment{End of lateximage}% + }{}% + \addtocounter{LWR@lateximagedepth}{-1}% }% end of outer-most lateximage \LWR@traceinfo{lateximage: done}% }% @@ -6772,12 +6910,11 @@ class="lateximagesource"{}} \LWR@orignewline \begin{warpHTML} \PassOptionsToPackage{ -detect-mode=true, -per-mode=symbol, % fraction is not seen by pdftotext -text-celsius = {\HTMLentity{deg}C}, -text-degree = {\HTMLentity{deg}}, + detect-mode=true, + per-mode=symbol, % fraction is not seen by pdftotext }{siunitx} + \end{warpHTML} @@ -6808,42 +6945,42 @@ text-degree = {\HTMLentity{deg}}, \setlength{\LWR@igwidth}{#1}% \ifthenelse{\lengthtest{\LWR@igwidth > 0pt}}% {% -\uselengthunit{PT}% -\renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}% -\IfEndWith{#1}{ex}% -{\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes ex -{}% not ex -\IfEndWith{#1}{em}% -{\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes em -{}% not em -\IfEndWith{#1}{\%}% -{\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes percent -{}% not percent -\IfEndWith{#1}{px}% -{\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes px -{}% not px + \uselengthunit{PT}% + \renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}% + \IfEndWith{#1}{ex}% + {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes ex + {}% not ex + \IfEndWith{#1}{em}% + {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes em + {}% not em + \IfEndWith{#1}{\%}% + {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes percent + {}% not percent + \IfEndWith{#1}{px}% + {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes px + {}% not px }{}% end of length > 0pt } \define@key{igraph}{height}{% \setlength{\LWR@igheight}{#1}% \ifthenelse{\lengthtest{\LWR@igheight > 0pt}}% {% -\uselengthunit{PT}% -\renewcommand*{\LWR@igheightstyle}{% -height:\rndprintlength{\LWR@igheight} % -}% -\IfEndWith{#1}{ex}% -{\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes ex -{}% not ex -\IfEndWith{#1}{em}% -{\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes em -{}% not em -\IfEndWith{#1}{\%}% -{\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes percent -{}% not percent -\IfEndWith{#1}{px}% -{\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes px -{}% not px + \uselengthunit{PT}% + \renewcommand*{\LWR@igheightstyle}{% + height:\rndprintlength{\LWR@igheight} % + }% + \IfEndWith{#1}{ex}% + {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes ex + {}% not ex + \IfEndWith{#1}{em}% + {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes em + {}% not em + \IfEndWith{#1}{\%}% + {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes percent + {}% not percent + \IfEndWith{#1}{px}% + {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes px + {}% not px }{}% end of length > 0pt } \define@key{igraph}{origin}{% @@ -6886,20 +7023,23 @@ height:\rndprintlength{\LWR@igheight} % \newbool{LWR@infloatrow} \boolfalse{LWR@infloatrow} +\def\LWR@opacity{1} + \newcommand*{\LWR@imageextension}{} \newcommand*{\LWR@expgraphicsfilename}{} \NewDocumentCommand{\LWR@includegraphicsb}{s o o m} {% \LWR@origtilde \LWR@orignewline% -\ifthenelse{\cnttest{\value{LWR@minipagedepth}}{=}{0}}{% -\ifbool{LWR@infloatrow}% -{} -{% not in a minipage or a floatrow: -\setlength{\linewidth}{6in}% -\setlength{\textwidth}{6in}% -\setlength{\textheight}{9in}% -}% +\ifthenelse{\cnttest{\value{LWR@minipagedepth}}{=}{0}}% +{% + \ifbool{LWR@infloatrow}% + {} + {% not in a minipage or a floatrow: + \setlength{\linewidth}{6in}% + \setlength{\textwidth}{6in}% + \setlength{\textheight}{9in}% + }% }{}% \edef\LWR@expgraphicsfilename{#4} \renewcommand*{\LWR@imageextension}{}% @@ -6948,12 +7088,12 @@ height:\rndprintlength{\LWR@igheight} % img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \LWR@origtilde{} alt="\LWR@strresult" \LWR@orignewline \ifthenelse{ -\NOT\equal{\LWR@igwidthstyle}{} \OR -\NOT\equal{\LWR@igheightstyle}{} \OR -\NOT\equal{\LWR@igorigin}{} \OR -\NOT\equal{\LWR@igangle}{} \OR -\NOT\equal{\LWR@igxscale}{1} \OR -\NOT\equal{\LWR@igyscale}{1} + \NOT\equal{\LWR@igwidthstyle}{} \OR + \NOT\equal{\LWR@igheightstyle}{} \OR + \NOT\equal{\LWR@igorigin}{} \OR + \NOT\equal{\LWR@igangle}{} \OR + \NOT\equal{\LWR@igxscale}{1} \OR + \NOT\equal{\LWR@igyscale}{1} }% {\LWR@origtilde{} style="% \ifthenelse{\NOT\equal{\LWR@igwidthstyle}{}}% @@ -6973,6 +7113,9 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline {\LWR@scalestyle{-ms-}{\LWR@igxscale}{\LWR@igyscale}% \LWR@scalestyle{-webkit-}{\LWR@igxscale}{\LWR@igyscale}% \LWR@scalestyle{}{\LWR@igxscale}{\LWR@igyscale}}{}% +\ifthenelse{\NOT\equal{\LWR@opacity}{1}}% +{opacity:\LWR@opacity;}% +{}% " \LWR@orignewline}{}% \LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline% }% end of image tags @@ -7067,6 +7210,116 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \end{warpHTML} +\begin{warpall} + +\newcommand*{\LWR@restoreorigxcolor}{} +\newcommand*{\LWR@restoremoreorigxcolor}{} + +\end{warpall} + +\begin{warpall} +\AtBeginDocument{ +\@ifpackageloaded{xcolor}{ +\LWR@traceinfo{patching xcolor} +\LetLtxMacro\colorboxBlock\colorbox +\warpprintonly{ +\LetLtxMacro\LWRprint@colorboxBlock\colorbox +\LetLtxMacro\LWRorigprint@fcolorbox\fcolorbox +\LetLtxMacro\LWRorigprint@fcolorboxBlock\fcolorbox +} + +\newsavebox{\LWR@colorminipagebox} + +\DeclareDocumentCommand{\LWRprint@fcolorbox}{o m o m +m}{% +\LWR@traceinfo{LWRprint@fcolorbox #2 #4}% +\begin{lrbox}{\LWR@colorminipagebox}% +#5% +\end{lrbox}% +\ifthenelse{\equal{#4}{none}}% +{% #4 none + \LWR@traceinfo{background is none}% + {% scope the \colorlet + \colorlet{LWR@currentcolor}{.}% + \color{#2}% + \fbox{% + \color{LWR@currentcolor}% + \usebox{\LWR@colorminipagebox}% + }% fbox + }% colorlet +}% #4 none +{% #4 not none +\LWR@traceinfo{background not none}% +\IfValueTF{#1}% +{% + \IfValueTF{#3}% + {\LWRorigprint@fcolorbox[#1]{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% + {\LWRorigprint@fcolorbox[#1]{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% +}% +{% no value #1 + \IfValueTF{#3}% + {\LWRorigprint@fcolorbox{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% + {\LWRorigprint@fcolorbox{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% +}% no value #1 +}% #4 not none +\LWR@traceinfo{LWRprint@fcolorbox done}% +} +\LetLtxMacro\LWRprint@fcolorboxBlock\LWRprint@fcolorbox + +\NewDocumentEnvironment{LWRprint@fcolorminipage}{o m o m O{c} O{} o m} +{% +\LWR@traceinfo{*** fcolorminipage: #2 #4 #8}% +\begin{lrbox}{\LWR@colorminipagebox}% +\IfValueTF{#7}% +{\begin{minipage}[#5][#6][#7]{#8}}% +{\begin{minipage}[#5][#6][#5]{#8}}% +}% +{% +\end{minipage}% +\end{lrbox}% +\LWR@traceinfo{*** starting end fcolorminipage #1 #2 #3 #4 #8}% +\ifthenelse{\equal{#4}{none}}% +{% #4 none + {% scope the \colorlet + \colorlet{LWR@currentcolor}{.}% + \color{#2}% + \fbox{% + \color{LWR@currentcolor}% + \usebox{\LWR@colorminipagebox}% + }% fbox + }% colorlet +}% #4 none +{% #4 not none + \IfValueTF{#1}% + {% + \IfValueTF{#3}% + {\LWRorigprint@fcolorbox[#1]{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% + {\LWRorigprint@fcolorbox[#1]{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% + }% + {% no value #1 + \IfValueTF{#3}% + {\LWRorigprint@fcolorbox{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% + {\LWRorigprint@fcolorbox{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% + }% no value #1 +}% #4 not none +\LWR@traceinfo{*** finished end fcolorminipage}% +} + +\renewcommand*{\LWR@restoremoreorigxcolor}{% +\LWR@traceinfo{LWR@restoremoreorigxcolorformatting}% +\LetLtxMacro\colorboxBlock\LWRprint@colorboxBlock% +\LetLtxMacro\fcolorbox\LWRprint@fcolorbox% +\LetLtxMacro\fcolorboxBlock\LWRprint@fcolorboxBlock% +\LetLtxMacro\fcolorminipage\LWRprint@fcolorminipage% +\LetLtxMacro\endfcolorminipage\endLWRprint@fcolorminipage% +} +\warpprintonly{\LWR@restoremoreorigxcolor} + +\LWR@traceinfo{xcolor patches done} +}{}% xcolor +}% AtBeginDocument +\end{warpall} + + \begin{warpHTML} @@ -7130,10 +7383,10 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \ifvoid\@mpfootins\else \vskip\skip\@mpfootins \normalcolor -\LWR@htmldivclass{mpfootnotes} -\LWR@origmedskip + \LWR@htmldivclass{mpfootnotes} + \LWR@origmedskip \unvbox\@mpfootins -\LWR@htmldivclassend{mpfootnotes} + \LWR@htmldivclassend{mpfootnotes} \fi \@minipagefalse \color@endgroup @@ -7168,10 +7421,10 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \uselengthunit{in}% \setlength{\LWR@minipagewidth}{#4}% \ifthenelse{\cnttest{\value{LWR@minipagedepth}}{=}{0}}{% -\addtolength{\LWR@minipagewidth}{3em}% room for frames -\setlength{\linewidth}{6in}% -\setlength{\textwidth}{6in}% -\setlength{\textheight}{9in}% + \addtolength{\LWR@minipagewidth}{3em}% room for frames + \setlength{\linewidth}{6in}% + \setlength{\textwidth}{6in}% + \setlength{\textheight}{9in}% }{}% \LWR@traceinfo{computed width is \rndprintlength{\LWR@minipagewidth}} \addtocounter{LWR@minipagedepth}{1}% @@ -7181,21 +7434,21 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \LWR@traceinfo{minipage: creating div class}% \LWR@orignewpage% \LWR@htmltag{div class="minipage" style="% -\ifthenelse{\equal{#1}{t}}{vertical-align: bottom ; }{}% -\ifthenelse{\equal{#1}{c}}{vertical-align: middle ; }{}% -\ifthenelse{\equal{#1}{b}}{vertical-align: top ; }{}% -\ifthenelse{\equal{#3}{t}}{justify-content: flex-start ; }{}% -\ifthenelse{\equal{#3}{c}}{justify-content: center ; }{}% -\ifthenelse{\equal{#3}{b}}{justify-content: flex-end ; }{}% -\ifthenelse{\equal{#3}{s}}{justify-content: space-between ; }{}% +\ifthenelse{\equal{#1}{t}}{vertical-align:bottom ; }{}% +\ifthenelse{\equal{#1}{c}}{vertical-align:middle ; }{}% +\ifthenelse{\equal{#1}{b}}{vertical-align:top ; }{}% +\ifthenelse{\equal{#3}{t}}{justify-content:flex-start ; }{}% +\ifthenelse{\equal{#3}{c}}{justify-content:center ; }{}% +\ifthenelse{\equal{#3}{b}}{justify-content:flex-end ; }{}% +\ifthenelse{\equal{#3}{s}}{justify-content:space-between ; }{}% \LWR@traceinfo{minipage: about to print the width of \rndprintlength{\LWR@minipagewidth}}% \uselengthunit{PT}% \ifbool{LWR@minipagefullwidth}% {\boolfalse{LWR@minipagefullwidth}}% {% -\ifthenelse{\lengthtest{#4}=\linewidth}% -{}% -{width:\rndprintlength{\LWR@minipagewidth} ; }% + \ifthenelse{\lengthtest{#4}=\linewidth}% + {}% + {width:\rndprintlength{\LWR@minipagewidth} ; }% }% \LWR@traceinfo{minipage: about to print the height}% \IfValueTF{#2}{height:\rndprintlength{\LWR@minipageheight} ; }{}% @@ -7229,35 +7482,84 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \LetLtxMacro\LWR@origmakebox\makebox \RenewDocumentCommand{\makebox}{d() o o m}{% -\mbox{#4} +\IfValueTF{#2}% +{% + {% scope + \def\LWR@align{center}% + \ifstrequal{#3}{l}{\def\LWR@align{left}}{}% + \ifstrequal{#3}{r}{\def\LWR@align{right}}{}% + \ifstrequal{#3}{s}{\def\LWR@align{justify}}{}% + \setlength{\LWR@tempwidth}{#2}% + \uselengthunit{PT}% + \InlineClass[% + display:inline-block ; % + text-align:\LWR@align\ ; % + width:\rndprintlength{\LWR@tempwidth}% + ]% + {makebox}% + {\mbox{#4}}% + }% scope +}% +{\mbox{#4}}% } \LetLtxMacro\LWR@origframebox\framebox \RenewDocumentCommand{\framebox}{o o m}{% -\fbox{#3} +\fbox{\makebox[#1][#2]{#3}}% } -\let\LWR@origfbox\fbox +\newlength{\LWR@atleastonept} -\renewcommand{\fbox}[1]{% -\LWR@htmltagc{span class="framebox"}% -\begin{LWR@nestspan}% -#1 -\LWR@htmltagc{/span}% -\end{LWR@nestspan}% +\newcommand*{\LWR@forceminwidth}[1]{% +\setlength{\LWR@atleastonept}{#1}% +\ifthenelse{% + \lengthtest{\LWR@atleastonept>0pt}\AND% + \lengthtest{\LWR@atleastonept<1pt}% +}% +{\setlength{\LWR@atleastonept}{1pt}}% +{}% +} + +\newcommand*{\LWR@blackborderpadding}{% +\uselengthunit{PT}% +border:\rndprintlength{\LWR@atleastonept} solid black ; % +padding:\rndprintlength{\fboxsep}% +} +\let\LWRprint@fbox\fbox +\newcommand{\LWRhtml@fbox}[1]{% +\LWR@traceinfo{HTML fbox} +\LWR@forceminwidth{\fboxrule}% +\InlineClass[% +\LWR@blackborderpadding% +]{fbox}{#1} } +\AtBeginDocument{\let\fbox\LWRhtml@fbox} \newcommand{\fboxBlock}[1]{% -\begin{BlockClass}{framed} +\LWR@forceminwidth{\fboxrule}% +\begin{BlockClass}[% +\LWR@blackborderpadding% +]{fboxBlock} #1 \end{BlockClass} } \NewDocumentEnvironment{fminipage}{O{t} o O{t} m} {% -\setlength{\LWR@tempwidth}{#4} -\begin{BlockClass}[width:\rndprintlength{\LWR@tempwidth};]{framed}% +\LWR@traceinfo{fminipage #1 #2 #3 #4}% +\LWR@forceminwidth{\fboxrule}% +\setlength{\LWR@tempwidth}{#4}% +\IfValueTF{#2}{\setlength{\LWR@tempheight}{#2}}{}% +\begin{BlockClass}[% +\LWR@blackborderpadding ; % +\uselengthunit{PT}% +\IfValueTF{#2}{height:\rndprintlength{\LWR@tempheight} ; }{}% +width:\rndprintlength{\LWR@tempwidth}% +]{fminipage}% +} +{% +\end{BlockClass}% +\LWR@traceinfo{fminipage done}% } -{\end{BlockClass}} \LetLtxMacro{\LWR@origraisebox}{\raisebox} \RenewDocumentCommand{\raisebox}{m o o m}{% @@ -7267,18 +7569,20 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \end{warpHTML} \begin{warpall} - \newsavebox{\LWR@fminipagebox} -\NewDocumentEnvironment{LWR@fminipageprint}{O{t} o O{t} m} +\NewDocumentEnvironment{LWRprint@fminipage}{O{t} o O{t} m} {% +\IfValueTF{#3}% +{\def\LWR@thisalign{#3}} +{\def\LWR@thisalign{#1}}% \IfValueTF{#2}% -{\minipage[#1][#2][#3]{#4}}% -{\minipage[#3]{#4}}% +{\minipage[#1][#2+2\fboxsep+2\fboxrule][\LWR@thisalign]{#4+2\fboxsep+2\fboxrule}}% +{\minipage[#1]{#4+2\fboxsep+2\fboxrule}}% \begin{lrbox}{\LWR@fminipagebox}% \IfValueTF{#2}% -{\minipage[#1][#2][#3]{\linewidth-2\fboxsep-2\fboxrule}}% -{\minipage[#3]{\linewidth-2\fboxsep-2\fboxrule}}% +{\minipage[#1][#2][\LWR@thisalign]{#4}}% +{\minipage[#1]{#4}}% } {% \endminipage% @@ -7290,11 +7594,10 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \end{warpall} \begin{warpprint} - \let\fboxBlock\fbox -\LetLtxMacro{\fminipage}{\LWR@fminipageprint} -\LetLtxMacro{\endfminipage}{\endLWR@fminipageprint} +\LetLtxMacro{\fminipage}{\LWRprint@fminipage} +\LetLtxMacro{\endfminipage}{\endLWRprint@fminipage} \end{warpprint} @@ -7346,26 +7649,17 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \DeclareRobustCommand{\LWR@nulltextnormal}[1]{#1} \LetLtxMacro{\textnormal}{\LWR@HTMLtextnormal} -\DeclareRobustCommand{\LWR@HTMLrmfamily}[1]{} -\DeclareRobustCommand{\LWR@HTMLsffamily}[1]{} -\DeclareRobustCommand{\LWR@HTMLttfamily}[1]{} -\DeclareRobustCommand{\LWR@HTMLbfseries}[1]{} -\DeclareRobustCommand{\LWR@HTMLmdseries}[1]{} -\DeclareRobustCommand{\LWR@HTMLupshape}[1]{} -\DeclareRobustCommand{\LWR@HTMLslshape}[1]{} -\DeclareRobustCommand{\LWR@HTMLscshape}[1]{} -\DeclareRobustCommand{\LWR@HTMLitshape}[1]{} -\DeclareRobustCommand{\LWR@HTMLem}[1]{} -\DeclareRobustCommand{\LWR@nullrmfamily}[1]{} -\DeclareRobustCommand{\LWR@nullsffamily}[1]{} -\DeclareRobustCommand{\LWR@nullttfamily}[1]{} -\DeclareRobustCommand{\LWR@nullbfseries}[1]{} -\DeclareRobustCommand{\LWR@nullmdseries}[1]{} -\DeclareRobustCommand{\LWR@nullupshape}[1]{} -\DeclareRobustCommand{\LWR@nullslshape}[1]{} -\DeclareRobustCommand{\LWR@nullscshape}[1]{} -\DeclareRobustCommand{\LWR@nullitshape}[1]{} +\DeclareRobustCommand{\LWR@nullrmfamily}{} +\DeclareRobustCommand{\LWR@nullsffamily}{} +\DeclareRobustCommand{\LWR@nullttfamily}{} +\DeclareRobustCommand{\LWR@nullbfseries}{} +\DeclareRobustCommand{\LWR@nullmdseries}{} +\DeclareRobustCommand{\LWR@nullupshape}{} +\DeclareRobustCommand{\LWR@nullslshape}{} +\DeclareRobustCommand{\LWR@nullscshape}{} +\DeclareRobustCommand{\LWR@nullitshape}{} \DeclareRobustCommand{\LWR@nullem}[1]{} +\DeclareRobustCommand{\LWR@nullnormalfont}{} \newcommand*{\LWR@nullfonts}{% \LetLtxMacro{\emph}{\LWR@nullemph}% @@ -7453,7 +7747,9 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \let\LWR@origmedskip\medskip \renewcommand*{\,}{\HTMLunicode{202f}} % HTML thin non-breakable space + \renewcommand*{~}{\HTMLentity{nbsp}} + \renewcommand*{\textellipsis}{\HTMLunicode{2026}} \let\LWR@orignormalsize\normalsize \let\LWR@origsmall\small @@ -7494,17 +7790,11 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline } \newcommand*{\LWR@minipagestartpars}{% -\ifbool{LWR@minipagethispar}% -{% -\LWR@startpars% -}{}% +\ifbool{LWR@minipagethispar}{\LWR@startpars}{}% } \newcommand*{\LWR@minipagestoppars}{% -\ifbool{LWR@minipagethispar}% -{% -\LWR@stoppars% -}{}% +\ifbool{LWR@minipagethispar}{\LWR@stoppars}{}% } \renewcommand*{\quad}{% @@ -7531,20 +7821,20 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline \setlength{\LWR@tempwidth}{2em}% \fi% \ifthenelse{\dimtest{\LWR@tempwidth}{=}{0pt}}{}{% -\LWR@minipagestoppars% -\ifthenelse{\dimtest{\LWR@tempwidth}{=}{.16667em}} -{% -\HTMLunicode{2009}% thin breakable space -}% -{% -\uselengthunit{PT}% -\LWR@htmltagc{% -span style="width:\printlength{\LWR@tempwidth}; display:inline-block;"% -}% -\LWR@htmltagc{/span}% -}% -\LWR@minipagestartpars% -}% + \LWR@minipagestoppars% + \ifthenelse{\dimtest{\LWR@tempwidth}{=}{.16667em}} + {% + \HTMLunicode{2009}% thin breakable space + }% + {% + \uselengthunit{PT}% + \LWR@htmltagc{% + span style="width:\printlength{\LWR@tempwidth}; display:inline-block;"% + }% + \LWR@htmltagc{/span}% + }% + \LWR@minipagestartpars% +}% width not 0 } \NewDocumentCommand{\LWR@nohspace}{s m}{} @@ -7564,43 +7854,47 @@ span style="width:\printlength{\LWR@tempwidth}; display:inline-block;"% \renewcommand*{\nopagebreak}[1][]{} \RenewDocumentCommand{\enlargethispage}{s m}{} - +\newcommand*{\LWR@currenttextcolor}{black} \NewDocumentCommand{\LWR@rule}{o m m}{% \setlength{\LWR@tempwidth}{#2}% \ifthenelse{\lengthtest{\LWR@tempwidth=0pt}} {}% zero- width {% non-zero width -\ifthenelse{\lengthtest{\LWR@tempwidth>0pt}\AND% -\lengthtest{\LWR@tempwidth<1pt}}% -{\setlength{\LWR@tempwidth}{1pt}}{}% -\setlength{\LWR@tempheight}{#3}% -\ifthenelse{\lengthtest{\LWR@tempheight>0pt}\AND% -\lengthtest{\LWR@tempheight<1pt}}% -{\setlength{\LWR@tempheight}{1pt}}{}% -\LWR@minipagestoppars% -\uselengthunit{PT}% -\LWR@htmltagc{% -span -style=" % -background:\LWR@currenttextcolor; % -width:\printlength{\LWR@tempwidth}; % -height:\printlength{\LWR@tempheight}; % -\IfValueTF{#1}% -{% -\setlength{\LWR@tempraise}{0pt-#1}% -\setlength{\LWR@tempraise}{\LWR@tempraise*2}% -\LWR@orignewline% --ms-transform: translate(0pt,\printlength{\LWR@tempraise}); % -\LWR@orignewline% --webkit-transform: translate(0pt,\printlength{\LWR@tempraise}); % -\LWR@orignewline% -transform: translate(0pt,\printlength{\LWR@tempraise}); % -\LWR@orignewline% -}{}% -display:inline-block;"% -}% -\LWR@htmltagc{/span}% -\LWR@minipagestartpars% + \ifthenelse{% + \lengthtest{\LWR@tempwidth>0pt}\AND% + \lengthtest{\LWR@tempwidth<1pt}% + }% + {\setlength{\LWR@tempwidth}{1pt}}{}% + \setlength{\LWR@tempheight}{#3}% + \ifthenelse{% + \lengthtest{\LWR@tempheight>0pt}\AND% + \lengthtest{\LWR@tempheight<1pt}% + }% + {\setlength{\LWR@tempheight}{1pt}}{}% + \LWR@minipagestoppars% + \uselengthunit{PT}% + \LWR@htmltagc{% + span + style="% + background:\LWR@currenttextcolor; % + width:\printlength{\LWR@tempwidth}; % + height:\printlength{\LWR@tempheight}; % + \IfValueTF{#1}% + {% + \setlength{\LWR@tempraise}{0pt-#1}% + \setlength{\LWR@tempraise}{\LWR@tempraise*2}% + \LWR@orignewline% + -ms-transform: translate(0pt,\printlength{\LWR@tempraise}); % + \LWR@orignewline% + -webkit-transform: translate(0pt,\printlength{\LWR@tempraise}); % + \LWR@orignewline% + transform: translate(0pt,\printlength{\LWR@tempraise}); % + \LWR@orignewline% + }{}% + display:inline-block;"% + }% + \LWR@htmltagc{/span}% + \LWR@minipagestartpars% }% non-zero width } \renewcommand{\rule}{\LWR@rule} -- cgit v1.2.3