diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp.sty | 117 |
1 files changed, 92 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty index 6dd7b680198..172fb9061d8 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} - [2020/02/01 v0.79 Allows LaTeX to directly produce HTML5 output.] + [2020/02/19 v0.80 Allows LaTeX to directly produce HTML5 output.] @@ -153,6 +153,7 @@ \LWR@earlyloadnever{epsf}{graphicx} \LWR@earlyloadnever{fancyheadings}{fancyhdr} \LWR@earlyloadnever{fncylab}{cleveref} +\LWR@earlyloadnever{formula}{siunitx} \LWR@earlyloadnever{glossary}{glossaries} \LWR@earlyloadnever{hyper}{hyperref} \LWR@earlyloadnever{newthm}{ntheorem} @@ -160,8 +161,10 @@ \LWR@earlyloadnever{picinpar}{floatflt, wrapfig} \LWR@earlyloadnever{picins}{floatflt, wrapfig} \LWR@earlyloadnever{rplain}{fancyhdr} +\LWR@earlyloadnever{shadethm}{mdframed} \LWR@earlyloadnever{si}{siunitx} \LWR@earlyloadnever{sistyle}{siunitx} +\LWR@earlyloadnever{slashbox}{diagbox} \LWR@earlyloadnever{t1enc}{fontenc, inputenc, inputenx} \LWR@earlyloadnever{ucs}{inputenc, inputencx} \LWR@earlyloadnever{wasysym}{textcomp, amssymb, amsfonts, mnsymbol, fdsymbol} @@ -201,6 +204,7 @@ \LWR@loadafter{attachfile} \LWR@loadafter{attachfile2} \LWR@loadafter{authblk} +\LWR@loadafter{autobreak} \LWR@loadafter{autonum} \LWR@loadafter{awesomebox} \LWR@loadafter{axessibility} @@ -286,12 +290,14 @@ \LWR@loadafter{eurosym} \LWR@loadafter{everypage} \LWR@loadafter{everyshi} +\LWR@loadafter{extarrows} \LWR@loadafter{extramarks} \LWR@loadafter{fancybox} \LWR@loadafter{fancyhdr} \LWR@loadafter{fancyref} \LWR@loadafter{fancytabs} \LWR@loadafter{fancyvrb} +\LWR@loadafter{fewerfloatpages} \LWR@loadafter{figcaps} \LWR@loadafter{figsize} \LWR@loadafter{fitbox} @@ -321,6 +327,7 @@ \LWR@loadafter{footnpag} \LWR@loadafter{foreign} \LWR@loadafter{forest} +\LWR@loadafter{fouridx} \LWR@loadafter{framed} \LWR@loadafter{ftcap} \LWR@loadafter{ftnright} @@ -328,9 +335,11 @@ \LWR@loadafter{fullpage} \LWR@loadafter{fullwidth} \LWR@loadafter{fwlw} +\LWR@loadafter{gensymb} \LWR@loadafter{gentombow} -\LWR@loadafter{gmeometric} +\LWR@loadafter{ghsystem} \LWR@loadafter{glossaries} +\LWR@loadafter{gmeometric} \LWR@loadafter{gloss} \LWR@loadafter{glossary} \LWR@loadafter{grffile} @@ -339,6 +348,7 @@ \LWR@loadafter{gridset} \LWR@loadafter{hang} \LWR@loadafter{hanging} +\LWR@loadafter{hhline} \LWR@loadafter{hypbmsec} \LWR@loadafter{hypcap} \LWR@loadafter{hypdestopt} @@ -357,6 +367,7 @@ \LWR@loadafter{layout} \LWR@loadafter{layouts} \LWR@loadafter{leading} +\LWR@loadafter{leftidx} \LWR@loadafter{letterspace} \LWR@loadafter{lettrine} \LWR@loadafter{lineno} @@ -381,6 +392,8 @@ \LWR@loadafter{marginfix} \LWR@loadafter{marginnote} \LWR@loadafter{marvosym} +\LWR@loadafter{mathcomp} +\LWR@loadafter{mathfixs} \LWR@loadafter{mathtools} \LWR@loadafter{mcaption} \LWR@loadafter{mdframed} @@ -394,6 +407,7 @@ \LWR@loadafter{midpage} \LWR@loadafter{minibox} \LWR@loadafter{minitoc} +\LWR@loadafter{mismath} \LWR@notmemoirloadafter{moreverb} \LWR@notmemoirloadafter{movie15} \LWR@notmemoirloadafter{mparhack} @@ -407,11 +421,13 @@ \LWR@loadafter{nameref} \LWR@loadafter{natbib} \LWR@notmemoirloadafter{nccfancyhdr} +\LWR@loadafter{nccmath} \LWR@notmemoirloadafter{needspace} \LWR@loadafter{newtxmath} \LWR@notmemoirloadafter{nextpage} \LWR@loadafter{nicefrac} \LWR@loadafter{niceframe} +\LWR@loadafter{noitcrul} \LWR@loadafter{nomencl} \LWR@loadafter{nonfloat} \LWR@loadafter{nonumonpart} @@ -478,6 +494,7 @@ \LWR@loadafter{relsize} \LWR@loadafter{repeatindex} \LWR@loadafter{resizegather} +\LWR@loadafter{rmathbr} \LWR@loadafter{rmpage} \LWR@loadafter{romanbar} \LWR@loadafter{romanbarpagenumber} @@ -522,6 +539,7 @@ \LWR@loadafter{subcaption} \LWR@loadafter{subfig} \LWR@loadafter{subfigure} +\LWR@loadafter{subsupscripts} \LWR@loadafter{supertabular} \LWR@loadafter{svg} \LWR@loadafter{t1inc} @@ -1213,6 +1231,7 @@ \LWR@checkloadnever{#1}{epsf}{graphicx} \LWR@checkloadnever{#1}{fancyheadings}{fancyhdr} \LWR@checkloadnever{#1}{fncylab}{cleveref} +\LWR@checkloadnever{#1}{formula}{siunitx} \LWR@checkloadnever{#1}{glossary}{glossaries} \LWR@checkloadnever{#1}{hyper}{hyperref} \LWR@checkloadnever{#1}{newthm}{ntheorem} @@ -1220,8 +1239,10 @@ \LWR@checkloadnever{#1}{picinpar}{floatflt, wrapfig} \LWR@checkloadnever{#1}{picins}{floatflt, wrapfig} \LWR@checkloadnever{#1}{rplain}{fancyhdr} +\LWR@checkloadnever{#1}{shadethm}{mdframed} \LWR@checkloadnever{#1}{si}{siunitx} \LWR@checkloadnever{#1}{sistyle}{siunitx} +\LWR@checkloadnever{#1}{slashbox}{diagbox} \LWR@checkloadnever{#1}{t1enc}{fontenc, inputenc, inputenx} \LWR@checkloadnever{#1}{ucs}{inputenc, inputencx} \LWR@checkloadnever{#1}{wasysym}{textcomp, amssymb, amsfonts, mnsymbol, fdsymbol} @@ -4150,7 +4171,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX- -- Copyright 2016-2020 Brian Dunn -printversion = "v0.79" +printversion = "v0.80" requiredconfversion = "2" -- also at *lwarpmk.conf function printhelp () @@ -6374,6 +6395,9 @@ end -- not --version \newcommand*{\LWR@customizedMathJax}{} +\newbool{LWR@warnedcustomizemathjax} +\boolfalse{LWR@warnedcustomizemathjax} + \newcommand*{\LWR@subcustomizedmathjax}[1]{% \begingroup% \LWR@FBcancel% @@ -6387,12 +6411,34 @@ end -- not --version }% \endgroup% } +\@onlypreamble\LWR@subcustomizedmathjax \newcommand*{\CustomizeMathJax}[1]{% + \ifbool{LWR@warnedcustomizemathjax}{}{% + \StrLen{\detokenize{#1}}[\LWR@tempone]% + \ifnumgreater{\LWR@tempone}{200}{% + \AtBeginDocument{% + \PackageWarningNoLine{lwarp}{% + To ensure faster MathJax compilation, place each\MessageBreak + custom macro in its own \protect\CustomizeMathJax.\MessageBreak + See the Lwarp documentation regarding customizing\MessageBreak + MathJax% + }% + }% + \booltrue{LWR@warnedcustomizemathjax}% + }{}% + }% \appto\LWR@customizedMathJax{\LWRbackslash(}% \LWR@subcustomizedmathjax{#1}% \appto\LWR@customizedMathJax{\LWRbackslash)\par}% } +\@onlypreamble\CustomizeMathJax + +\newcommand*{\LWR@infoprocessingmathjax}[1]{% +\typeout{Package lwarp: Processing MathJax customizations for #1.} +\typeout{\space\space This may take a moment.} +} + \begin{warpMathJax} \CustomizeMathJax{\newcommand\ensuremath[1]{#1}} \CustomizeMathJax{\newcommand\footnote[2][]{\text{( Footnote #1 )}}} @@ -6415,11 +6461,16 @@ end -- not --version \LWR@stoppars \LWR@htmlcomment{MathJax customizations:} +\typeout{---} +\typeout{Package lwarp:} +\typeout{Processing MathJax customizations. If this takes too long,} +\typeout{see the Lwarp manual regarding customizing MathJax.} \begin{BlockClass}{hidden} \LWR@stoppars \LWR@customizedMathJax \LWR@startpars \end{BlockClass} +\typeout{---} \LWR@startpars }{} @@ -9172,6 +9223,8 @@ end -- not --version {\global\let\LWR@mynextaction\LWR@donothing}{}% \ifdefequal{\LWR@mynexttoken}{\bottomrule}% {\global\let\LWR@mynextaction\LWR@donothing}{}% + \ifdefequal{\LWR@mynexttoken}{\hhline}% + {\global\let\LWR@mynextaction\LWR@donothing}{}% \ifdefequal{\LWR@mynexttoken}{\rowcolor}% {\global\let\LWR@mynextaction\LWR@donothing}{}% \ifdefequal{\LWR@mynexttoken}{\arrayrulecolor}% @@ -10371,6 +10424,10 @@ end -- not --version \let\newline\LWR@orignewline% \LetLtxMacro\includegraphics\LWR@origincludegraphics% \LetLtxMacro\@ensuredmath\LWR@origensuredmath% + \let\math\LWR@orig@math% + \let\endmath\LWR@orig@endmath% + \let\displaymath\LWR@orig@displaymath% + \let\enddisplaymath\LWR@orig@enddisplaymath% \LWR@restoreorigaccents% \LWR@restoreoriglists% \LWR@FBcancel% @@ -10743,6 +10800,11 @@ end -- not --version \gdef\LWR@ThisAltText{}% } +\let\LWR@orig@math\math +\let\LWR@orig@endmath\endmath +\let\LWR@orig@displaymath\displaymath +\let\LWR@orig@enddisplaymath\enddisplaymath + \let\math\relax \let\endmath\relax \let\displaymath\relax @@ -11031,10 +11093,10 @@ end -- not --version \booltrue{LWR@indisplaymathimage}% \begin{lateximage}[\LWR@addmathjax{eqnarray*}{\BODY}]*% \LWR@applyxfakebold% - \LWR@origeqnarray% + \def\@eqncr{\nonumber\@seqncr} + \csuse{LWR@origeqnarray}% \BODY% - \nonumber% - \LWR@origendeqnarray% + \nonumber\csuse{LWR@origendeqnarray}% \end{lateximage}% \end{BlockClass}% }% LWR@numbereqnarray @@ -11233,6 +11295,9 @@ end -- not --version \LWR@traceinfo{lateximage: about to create label}% \LWR@orig@label{LWRlateximage-\BaseJobname-\arabic{LWR@lateximagenumber}}% \LWR@traceinfo{lateximage: finished creating the label}% + \ifdefvoid{\LWR@ruleHTMLcolor}{}{% + \LWR@print@arrayrulecolor[HTML]{\LWR@ruleHTMLcolor}% + }% \LetLtxMacro$\LWR@origdollar% \catcode`\$=3% math shift \LetLtxMacro\(\LWR@origopenparen% @@ -11475,10 +11540,10 @@ end -- not --version }% #4 not none \LWR@traceinfo{LWR@print@fcolorbox done}% } - -\renewcommand*{\fcolorbox}{\LWR@print@fcolorbox} +\renewrobustcmd*{\fcolorbox}{\LWR@print@fcolorbox}% \newcommand*{\LWR@print@fcolorboxBlock}{\LWR@print@fcolorbox} -\newcommand*{\fcolorboxBlock}{\LWR@print@fcolorboxBlock} + +\newrobustcmd*{\fcolorboxBlock}{\LWR@print@fcolorboxBlock} \NewDocumentEnvironment{LWR@print@fcolorminipage}{o m o m O{c} O{} o m} {% @@ -11519,7 +11584,7 @@ end -- not --version \LWR@traceinfo{*** finished end fcolorminipage}% } -\newenvironment*{fcolorminipage} +\NewDocumentEnvironment{fcolorminipage}{} {\LWR@print@fcolorminipage} {\endLWR@print@fcolorminipage} @@ -11987,7 +12052,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@emph}[1]{% {% - \itshape% + \LWR@HTML@itshape% \LWR@htmlspan{em}{#1}% }% } @@ -11998,7 +12063,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textmd}[1]{% {% - \mdseries% + \LWR@HTML@mdseries% \InlineClass(font-weight:normal){textmd}{#1}% }% } @@ -12009,7 +12074,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textbf}[1]{% {% - \bfseries% + \LWR@HTML@bfseries% \LWR@htmlspan{b}{#1}% }% } @@ -12020,7 +12085,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@texteb}[1]{% {% - \ebweight% + \LWR@HTML@ebweight% \InlineClass{texteb}{#1}% }% } @@ -12031,7 +12096,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textlg}[1]{% {% - \lgweight% + \LWR@HTML@lgweight% \InlineClass{textlg}{#1}% }% } @@ -12042,7 +12107,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textrm}[1]{% {% - \rmfamily% + \LWR@HTML@rmfamily% \InlineClass(font-family:serif){textrm}{#1}% }% } @@ -12053,7 +12118,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textsf}[1]{% {% - \sffamily% + \LWR@HTML@sffamily% \InlineClass(font-family:sans){textsf}{#1}% }% } @@ -12064,7 +12129,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@texttt}[1]{% {% - \ttfamily% + \LWR@HTML@ttfamily% \LWR@htmlspan{kbd}{#1}% }% } @@ -12075,7 +12140,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textup}[1]{% {% - \upshape% + \LWR@HTML@upshape% \InlineClass(font-style:normal){textup}{#1}% }% } @@ -12086,7 +12151,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textit}[1]{% {% - \itshape% + \LWR@HTML@itshape% \LWR@htmlspan{i}{#1}% }% } @@ -12097,7 +12162,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textsc}[1]{% {% - \scshape% + \LWR@HTML@scshape% \InlineClass{textsc}{#1}% }% } @@ -12108,7 +12173,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textulc}[1]{% {% - \ulcshape% + \LWR@HTML@ulcshape% \InlineClass{textulc}{#1}% }% } @@ -12123,7 +12188,7 @@ color:\LWR@origpound\LWR@tempcolor% \DeclareRobustCommand{\LWR@HTML@textsi}[1]{% {% - \sishape% + \LWR@HTML@sishape% \textsc{\textit{#1}}% }% } @@ -12927,8 +12992,10 @@ color:\LWR@origpound\LWR@tempcolor% {% Polyglossia has been loaded. Lwarp also uses cleveref.\MessageBreak See the cleveref documentation regarding\MessageBreak - polyglossia support% + polyglossia support. Some languages are not supported% } + \typeout{---} + \typeout{Package lwarp:} \typeout{If the error} \typeout{\space\space``! Undefined control sequence. \space ... \space \protect\@begindocumenthook''} @@ -12941,7 +13008,7 @@ color:\LWR@origpound\LWR@tempcolor% {% Babel has been loaded. Lwarp also uses cleveref.\MessageBreak See the cleveref documentation regarding\MessageBreak - babel support% + babel support. Some languages are not supported% } }{} } |