diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp.sty | 113 |
1 files changed, 89 insertions, 24 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty index 172fb9061d8..ea0bba113a2 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/19 v0.80 Allows LaTeX to directly produce HTML5 output.] + [2020/03/04 v0.81 Allows LaTeX to directly produce HTML5 output.] @@ -165,6 +165,7 @@ \LWR@earlyloadnever{si}{siunitx} \LWR@earlyloadnever{sistyle}{siunitx} \LWR@earlyloadnever{slashbox}{diagbox} +\LWR@earlyloadnever{statex}{statex2} \LWR@earlyloadnever{t1enc}{fontenc, inputenc, inputenx} \LWR@earlyloadnever{ucs}{inputenc, inputencx} \LWR@earlyloadnever{wasysym}{textcomp, amssymb, amsfonts, mnsymbol, fdsymbol} @@ -236,6 +237,7 @@ \LWR@loadafter{caption} \LWR@loadafter{caption2} \LWR@loadafter{cases} +\LWR@loadafter{centernot} \LWR@loadafter{changebar} \LWR@loadafter{changelayout} \LWR@notmemoirloadafter{changepage} @@ -251,6 +253,7 @@ \LWR@notmemoirloadafter{chngpage} \LWR@loadafter{cite} \LWR@loadafter{cmdtrack} +\LWR@loadafter{colonequals} \LWR@loadafter{color} \LWR@loadafter{colortbl} \LWR@loadafter{continue} @@ -262,14 +265,18 @@ \LWR@loadafter{dblfloatfix} \LWR@loadafter{dblfnote} \LWR@notmemoirloadafter{dcolumn} +\LWR@loadafter{decimal} \LWR@loadafter{diagbox} \LWR@loadafter{dingbat} +\LWR@loadafter{DotArrow} +\LWR@loadafter{dotlessi} \LWR@loadafter{dprogress} \LWR@loadafter{draftcopy} \LWR@loadafter{draftfigure} \LWR@loadafter{draftwatermark} \LWR@loadafter{easy-todo} \LWR@loadafter{ebook} +\LWR@loadafter{econometrics} \LWR@loadafter{ed} \LWR@loadafter{ellipsis} \LWR@loadafter{embrac} @@ -277,6 +284,7 @@ \LWR@loadafter{endfloat} \LWR@loadafter{endheads} \LWR@loadafter{endnotes} +\LWR@loadafter{engtlc} \LWR@notmemoirloadafter{enumerate} \LWR@loadafter{enumitem} \LWR@notmemoirloadafter{epigraph} @@ -383,6 +391,7 @@ \LWR@loadafter{lua-check-hyphen} \LWR@loadafter{lua-visual-debug} \LWR@loadafter{luacolor} +\LWR@loadafter{luamplib} \LWR@loadafter{luatodonotes} \LWR@loadafter{lyluatex} \LWR@loadafter{magaz} @@ -393,6 +402,7 @@ \LWR@loadafter{marginnote} \LWR@loadafter{marvosym} \LWR@loadafter{mathcomp} +\LWR@loadafter{mathdots} \LWR@loadafter{mathfixs} \LWR@loadafter{mathtools} \LWR@loadafter{mcaption} @@ -414,6 +424,7 @@ \LWR@loadafter{multicap} \LWR@loadafter{multicolrule} \LWR@loadafter{multimedia} +\LWR@loadafter{multiobjective} \LWR@loadafter{multirow} \LWR@loadafter{multitoc} \LWR@loadafter{musicography} @@ -428,6 +439,7 @@ \LWR@loadafter{nicefrac} \LWR@loadafter{niceframe} \LWR@loadafter{noitcrul} +\LWR@loadafter{nolbreaks} \LWR@loadafter{nomencl} \LWR@loadafter{nonfloat} \LWR@loadafter{nonumonpart} @@ -466,6 +478,7 @@ \LWR@loadafter{pfnote} \LWR@loadafter{phfqit} \LWR@loadafter{physics} +\LWR@loadafter{physunits} \LWR@loadafter{pifont} \LWR@loadafter{placeins} \LWR@loadafter{plarray} @@ -494,6 +507,7 @@ \LWR@loadafter{relsize} \LWR@loadafter{repeatindex} \LWR@loadafter{resizegather} +\LWR@loadafter{returntogrid} \LWR@loadafter{rmathbr} \LWR@loadafter{rmpage} \LWR@loadafter{romanbar} @@ -533,6 +547,9 @@ \LWR@loadafter{srctex} \LWR@loadafter{stabular} \LWR@loadafter{stackengine} +\LWR@loadafter{stackrel} +\LWR@loadafter{statex2} +\LWR@loadafter{statmath} \LWR@loadafter{steinmetz} \LWR@notltjloadafter{stfloats} \LWR@loadafter{struktex} @@ -549,6 +566,7 @@ \LWR@notmemoirloadafter{tabularx} \LWR@loadafter{tabulary} \LWR@loadafter{tascmac} +\LWR@loadafter{tagpdf} \LWR@loadafter{textarea} \LWR@loadafter{textfit} \LWR@loadafter{textpos} @@ -1243,6 +1261,7 @@ \LWR@checkloadnever{#1}{si}{siunitx} \LWR@checkloadnever{#1}{sistyle}{siunitx} \LWR@checkloadnever{#1}{slashbox}{diagbox} +\LWR@checkloadnever{#1}{statex}{statex2} \LWR@checkloadnever{#1}{t1enc}{fontenc, inputenc, inputenx} \LWR@checkloadnever{#1}{ucs}{inputenc, inputencx} \LWR@checkloadnever{#1}{wasysym}{textcomp, amssymb, amsfonts, mnsymbol, fdsymbol} @@ -3411,6 +3430,9 @@ div.notesicon { div.notescontents { font-style: italic } +/* nolbreaks package: */ +span.nolbreaks { white-space: nowrap ; } + /* For CSS LaTeX and related logos: Based on spacing demonstrated by the metafont package. @@ -4171,7 +4193,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX- -- Copyright 2016-2020 Brian Dunn -printversion = "v0.80" +printversion = "v0.81" requiredconfversion = "2" -- also at *lwarpmk.conf function printhelp () @@ -4397,7 +4419,9 @@ if sourcename=="lwarp" then print ("lwarpmk: ===") print ("lwarpmk: lwarp.sty has recently been recompiled in this directory,") print ("lwarpmk: and \"lwarpmk.conf\" is no longer set for your own project.") - print ("lwarpmk: Recompile your own project using pdf/lua/xelatex <projectname>.") + print ("lwarpmk: (Perhaps you are not in your project's directory?)") + print ("lwarpmk: In your project directory, recompile your project") + print ("lwarpmk: using pdf/lua/xelatex <projectname>.") print ("lwarpmk: After a recompile, \"lwarpmk.conf\" will be set for your project,") print ("lwarpmk: and you may again use lwarpmk.") print ("lwarpmk: ===") @@ -6357,18 +6381,39 @@ end -- not --version } +\bgroup +\catcode`!=3 \catcode`?=3 + +\long\gdef\LWR@replacestrings@addto#1#2{% + \expandafter\def\expandafter#1\expandafter{#1#2}% +} + +\gdef\LWR@replacestrings#1#2{% + \long\def\LWR@replacestringsA##1#1{\def\tmpb{##1}\LWR@replacestringsB}% + \long\def\LWR@replacestringsB##1#1{% + \ifx!##1\relax \else\LWR@replacestrings@addto\tmpb{#2##1}% + \expandafter\LWR@replacestringsB\fi% + }% improved version <May 2016> inspired + \expandafter\LWR@replacestringsA\tmpb?#1!#1% from pysyntax.tex by Petr Krajnik + \long\def\LWR@replacestringsA##1?{% + \def\tmpb{##1}% + }\expandafter\LWR@replacestringsA\tmpb% +} +\egroup + +\catcode`\#=12 +\catcode`\&=12 \newcommand{\LWR@subHTMLsanitize}{% - \protect\StrSubstitute{\detokenize\expandafter{\LWR@strresult}}% - {\detokenize{&}}{\detokenize{&}}[\LWR@strresult]% - \protect\StrSubstitute{\detokenize\expandafter{\LWR@strresult}}% - {\detokenize{<}}{\detokenize{<}}[\LWR@strresult]% - \protect\StrSubstitute{\detokenize\expandafter{\LWR@strresult}}% - {\detokenize{>}}{\detokenize{>}}[\LWR@strresult]% - \protect\StrSubstitute{\detokenize\expandafter{\LWR@strresult}}% - {\detokenize{"}}{\detokenize{"}}[\LWR@strresult]% - \protect\StrSubstitute{\detokenize\expandafter{\LWR@strresult}}% - {\detokenize{##}}{\LWR@origpound}[\LWR@strresult]% + \edef\tmpb{\detokenize\expandafter{\LWR@strresult}}% + \LWR@replacestrings{&}{&}% + \LWR@replacestrings{<}{<}% + \LWR@replacestrings{>}{>}% + \LWR@replacestrings{"}{"}% + \LWR@replacestrings{##}{#}% + \edef\LWR@strresult{\detokenize\expandafter{\tmpb}}% } +\catcode`\#=6 +\catcode`\&=4 \newrobustcmd{\LWR@HTMLsanitize}[1]{% \begingroup% @@ -6435,8 +6480,10 @@ end -- not --version \@onlypreamble\CustomizeMathJax \newcommand*{\LWR@infoprocessingmathjax}[1]{% +\typeout{---} \typeout{Package lwarp: Processing MathJax customizations for #1.} \typeout{\space\space This may take a moment.} +\typeout{---} } \begin{warpMathJax} @@ -10510,23 +10557,38 @@ end -- not --version \LWR@origincludegraphics{\LWR@baselinename}% } }{ - \PackageWarningNoLine{lwarp}{Load graphicx or graphics - for improved\MessageBreak - SVG math baselines% + \newcommand*{\LWR@addbaselinemarker}{% + \global\booltrue{LWR@warnbaselinemarker}% + } + \AtEndDocument{ + \ifbool{LWR@warnbaselinemarker}{ + \PackageWarningNoLine{lwarp}{% + Load graphicx or graphics for improved\MessageBreak + SVG math sizing and baselines% + } + }{} } - \newcommand*{\LWR@addbaselinemarker}{} } } }{% lwarp_baseline_marker.png or .eps is not present - \PackageWarningNoLine{lwarp}{% - File \LWR@baselinename\space is not installed\MessageBreak - alongside the lwarp-*.sty files,\MessageBreak - so SVG math baselines may not be accurate} - \newcommand*{\LWR@addbaselinemarker}{} + \newcommand*{\LWR@addbaselinemarker}{% + \global\booltrue{LWR@warnbaselinemarker}% + } + \AtEndDocument{ + \ifbool{LWR@warnbaselinemarker}{ + \PackageWarningNoLine{lwarp}{% + File \LWR@baselinename\space is not installed\MessageBreak + alongside the lwarp-*.sty files, so\MessageBreak + SVG math sizing and baselines may not be accurate} + }{} + } } }% AtBeginDocument +\newbool{LWR@warnbaselinemarker} +\boolfalse{LWR@warnbaselinemarker} + \newbool{LWR@unknownmathsize} \newcommand*{\LWR@singledollarmeasure}[1]{% @@ -10778,9 +10840,12 @@ end -- not --version \renewcommand{\@ensuredmath}[1]{% \ifbool{mathjax}{% - \LWR@subsingledollar*{\AltTextOpen\MathImageAltText\AltTextClose}{% + \LWR@subsingledollar*{\AltTextOpen\MathImageAltText\AltTextClose}% + {% \protect\LWR@HTMLsanitize{\detokenize\expandafter{#1}}% - }{\relax% + }% + {% + \relax% \LWR@origensuredmath{#1}% }% }{% SVG math |