summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp.sty296
1 files changed, 198 insertions, 98 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
index 2c2ba8acad0..ddb31bd5e15 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/12/24 v0.894 Allows LaTeX to directly produce HTML5 output.]
+ [2021/02/18 v0.895 Allows LaTeX to directly produce HTML5 output.]
@@ -161,7 +161,6 @@
\LWR@earlyloadnever{colortab}{colortbl}
\LWR@earlyloadnever{csvtools}{datatool}
\LWR@earlyloadnever{doublespace}{setspace}
-\LWR@earlyloadnever{epsf}{graphicx}
\LWR@earlyloadnever{fancyheadings}{fancyhdr}
\LWR@earlyloadnever{fncylab}{cleveref}
\LWR@earlyloadnever{formula}{siunitx}
@@ -203,6 +202,7 @@
\LWR@loadafter{algorithm2e}
\LWR@loadafter{algorithmicx}
\LWR@loadafter{alltt}
+\LWR@loadafter{amscdx}
\LWR@loadafter{anonchap}
\LWR@loadafter{anysize}
\LWR@notmemoirloadafter{appendix}
@@ -303,6 +303,7 @@
\LWR@notmemoirloadafter{enumerate}
\LWR@loadafter{enumitem}
\LWR@notmemoirloadafter{epigraph}
+\LWR@loadafter{epsf}
\LWR@loadafter{epsfig}
\LWR@loadafter{epstopdf}
\LWR@loadafter{epstopdf-base}
@@ -389,8 +390,11 @@
\LWR@loadafter{idxlayout}
\LWR@loadafter{ifoddpage}
\LWR@loadafter{imakeidx}
+\LWR@loadafter{impnattypo}
\LWR@notmemoirloadafter{index}
\LWR@loadafter{intopdf}
+\LWR@loadafter{isomath}
+\LWR@loadafter{isotope}
\LWR@loadafter{jurabib}
\LWR@loadafter{karnaugh-map}
\LWR@loadafter{keyfloat}
@@ -407,6 +411,7 @@
\LWR@loadafter{listings}
\LWR@loadafter{listliketab}
\LWR@loadafter{longtable}
+\LWR@loadafter{lpic}
\LWR@loadafter{lscape}
\LWR@loadafter{ltablex}
\LWR@loadafter{ltcaption}
@@ -417,6 +422,7 @@
\LWR@loadafter{luacolor}
\LWR@loadafter{luamplib}
\LWR@loadafter{luatodonotes}
+\LWR@loadafter{luavlna}
\LWR@loadafter{lyluatex}
\LWR@loadafter{magaz}
\LWR@notmemoirloadafter{makeidx}
@@ -434,8 +440,11 @@
\LWR@loadafter{mathptmx}
\LWR@loadafter{mathspec}
\LWR@loadafter{mathtools}
+\LWR@loadafter{mattens}
+\LWR@loadafter{maybemath}
\LWR@loadafter{mcaption}
\LWR@loadafter{mdframed}
+\LWR@loadafter{mdwmath}
\LWR@loadafter{media9}
\LWR@loadafter{memhfixc}
\LWR@loadafter{menukeys}
@@ -515,6 +524,7 @@
\LWR@loadafter{physunits}
\LWR@loadafter{picinpar}
\LWR@loadafter{pifont}
+\LWR@loadafter{pinlabel}
\LWR@loadafter{placeins}
\LWR@loadafter{plarray}
\LWR@loadafter{plarydshln}
@@ -544,6 +554,7 @@
\LWR@loadafter{repeatindex}
\LWR@loadafter{resizegather}
\LWR@loadafter{returntogrid}
+\LWR@loadafter{rlepsf}
\LWR@loadafter{rmathbr}
\LWR@loadafter{rmpage}
\LWR@loadafter{romanbar}
@@ -577,6 +588,7 @@
\LWR@loadafter{simplebnf}
\LWR@loadafter{SIunits}
\LWR@loadafter{siunitx}
+\LWR@loadafter{skmath}
\LWR@loadafter{slantsc}
\LWR@loadafter{slashed}
\LWR@loadafter{soul}
@@ -612,6 +624,7 @@
\LWR@loadafter{tagpdf}
\LWR@loadafter{tascmac}
\LWR@loadafter{tcolorbox}
+\LWR@loadafter{tensor}
\LWR@loadafter{termcal}
\LWR@loadafter{textarea}
\LWR@loadafter{textfit}
@@ -628,6 +641,7 @@
\LWR@loadafter{thumb}
\LWR@loadafter{thumbs}
\LWR@loadafter{tikz}
+\LWR@loadafter{tikz-imagelabels}
\LWR@loadafter{titleps}
\LWR@loadafter{titlesec}
\LWR@loadafter{titletoc}
@@ -675,6 +689,7 @@
\LWR@loadafter{xcolor}
\LWR@loadafter{xechangebar}
\LWR@loadafter{xellipsis}
+\LWR@loadafter{xevlna}
\LWR@loadafter{xfakebold}
\LWR@loadafter{xfrac}
\LWR@loadafter{xltabular}
@@ -774,6 +789,21 @@
\ifpTeX
\RequirePackage{upquote}
\fi
+\ifxetexorluatex
+ \AtBeginDocument{
+ \@ifpackageloaded{kpfonts}{
+ \PackageError{lwarp}
+ {%
+ When using XeLaTeX or LuaLaTeX,\MessageBreak
+ use kpfonts-otf instead of kpfonts%
+ }
+ {%
+ Replace: \protect\usepackage{kpfonts}\MessageBreak
+ with: \protect\usepackage{kpfonts-otf}
+ }
+ }{}
+ }
+\fi
\newlength{\LWR@templengthone}
\newlength{\LWR@templengthtwo}
\newlength{\LWR@templengththree}
@@ -1412,7 +1442,6 @@
\LWR@checkloadnever{#1}{colortab}{colortbl}
\LWR@checkloadnever{#1}{csvtools}{datatool}
\LWR@checkloadnever{#1}{doublespace}{setspace}
-\LWR@checkloadnever{#1}{epsf}{graphicx}
\LWR@checkloadnever{#1}{fancyheadings}{fancyhdr}
\LWR@checkloadnever{#1}{fncylab}{cleveref}
\LWR@checkloadnever{#1}{formula}{siunitx}
@@ -1439,6 +1468,7 @@
\LWR@checkloadbefore{#1}{nfssext-cfr}
\LWR@checkloadbefore{#1}{fontaxes}
\LWR@checkloadbefore{#1}{kotex}
+\LWR@checkloadbefore{#1}{kpfonts}% textcomp option clash
\LWR@checkloadbefore{#1}{luatexja}
\LWR@checkloadbefore{#1}{luatexja-fontspec}
\LWR@checkloadbefore{#1}{luatexko}
@@ -1819,11 +1849,11 @@
\renewcommand*{\LWR@tagsubsubsectionend}{/h5}
\renewcommand*{\LWR@tagparagraph}{h6}
\renewcommand*{\LWR@tagparagraphend}{/h6}
-\renewcommand*{\LWR@tagsubparagraph}{span class="subparagraph"}
+\renewcommand*{\LWR@tagsubparagraph}{span class=\textquotedbl{}subparagraph\textquotedbl}
\renewcommand*{\LWR@tagsubparagraphend}{/span}
}% WPTitleHeading
{% not WPTitleHeading, part and section starting at h1
-\renewcommand*{\LWR@tagtitle}{div class="title"}
+\renewcommand*{\LWR@tagtitle}{div class=\textquotedbl{}title\textquotedbl}
\renewcommand*{\LWR@tagtitleend}{/div}
\renewcommand*{\LWR@tagpart}{h1}
\renewcommand*{\LWR@tagpartend}{/h1}
@@ -1842,7 +1872,7 @@
{% chapter defined
\ifbool{WPTitleHeading}{}
{% not WPTitleHeading, part and chapter starting at h1
-\renewcommand*{\LWR@tagtitle}{div class="title"}
+\renewcommand*{\LWR@tagtitle}{div class=\textquotedbl{}title\textquotedbl}
\renewcommand*{\LWR@tagtitleend}{/div}
\renewcommand*{\LWR@tagpart}{h1}
\renewcommand*{\LWR@tagpartend}{/h1}
@@ -1856,7 +1886,7 @@
\renewcommand*{\LWR@tagsubsubsectionend}{/h5}
\renewcommand*{\LWR@tagparagraph}{h6}
\renewcommand*{\LWR@tagparagraphend}{/h6}
-\renewcommand*{\LWR@tagsubparagraph}{span class="subparagraph"}
+\renewcommand*{\LWR@tagsubparagraph}{span class=\textquotedbl{}subparagraph\textquotedbl}
\renewcommand*{\LWR@tagsubparagraphend}{/span}
}% not WPTitleHeading
}% chapter defined
@@ -1890,8 +1920,15 @@
\let\LWR@origtextellipsis\textellipsis
\let\LWR@origvdots\vdots
-\let\LWR@orig@textquotedbl\textquotedbl
+\LetLtxMacro\LWR@orig@@textquotedbl\textquotedbl
+\LetLtxMacro\LWR@orig@textquotedbl\LWR@orig@@textquotedbl
+\AtEndPreamble{
+\@ifpackageloaded{libertinus-otf}{
+ \renewcommand{\LWR@orig@textquotedbl}{\LWR@orig@@textquotedbl\kern-.15em}
+ \LetLtxMacro\textquotedbl\LWR@orig@textquotedbl
+}{}
+}
\LetLtxMacro\LWR@origttfamily\ttfamily
\LetLtxMacro\LWR@origem\em
@@ -2051,7 +2088,7 @@
\PackageError{lwarp}%
{Unknown LaTeX engine}%
{%
- Lwarp only knows about pdflatex, dvi latex,
+ Lwarp only knows about pdflatex, DVI latex,
xelatex, lualatex, and upLateX.%
}%
}
@@ -2232,7 +2269,7 @@
\begin{filecontents*}[overwrite]{lwarp.css}
/*
CSS stylesheet for the LaTeX Lwarp package
- Copyright 2016-2020 Brian Dunn — BD Tech Concepts LLC
+ Copyright 2016-2021 Brian Dunn — BD Tech Concepts LLC
*/
/* a fix for older browsers: */
@@ -4457,10 +4494,13 @@ MathJax = {
}
}
- // Create the command map for \ifstar, \ifnextchar, \seteqnumber
- new CommandMap('ifstar-ifnextchar-setequnumber', {
+ // Create the command map for:
+ // \ifstar, \ifnextchar, \ifblank, \ifstrequal, \seteqnumber
+ new CommandMap('Lwarp-macros', {
ifstar: 'IfstarFunction',
ifnextchar: 'IfnextcharFunction',
+ ifblank: 'IfblankFunction',
+ ifstrequal: 'IfstrequalFunction',
seteqnumber: 'SeteqnumberFunction'
}, {
// This function implements an ifstar macro.
@@ -4484,6 +4524,25 @@ MathJax = {
useArgument(parser, gotchar ? resultnextchar : resultnotnextchar);
},
+ // This function implements an ifblank macro.
+ IfblankFunction(parser, name) {
+ const blankarg = parser.GetArgument(name);
+ const resultblank = parser.GetArgument(name);
+ const resultnotblank = parser.GetArgument(name);
+ const isblank = (blankarg.trim() == "");
+ useArgument(parser, isblank ? resultblank : resultnotblank);
+ },
+
+ // This function implements an ifstrequal macro.
+ IfstrequalFunction(parser, name) {
+ const strequalfirst = parser.GetArgument(name);
+ const strequalsecond = parser.GetArgument(name);
+ const resultequal = parser.GetArgument(name);
+ const resultnotequal = parser.GetArgument(name);
+ const isequal = (strequalfirst == strequalsecond);
+ useArgument(parser, isequal ? resultequal : resultnotequal);
+ },
+
// This function modifies the equation numbers.
SeteqnumberFunction(parser, name) {
// Get the macro parameters
@@ -4499,9 +4558,9 @@ MathJax = {
});
- // Create the ifstar-ifnextchar-setequnumber package
- Configuration.create('ifstar-ifnextchar-setequnumber', {
- handler: {macro: ['ifstar-ifnextchar-setequnumber']}
+ // Create the Lwarp-macros package
+ Configuration.create('Lwarp-macros', {
+ handler: {macro: ['Lwarp-macros']}
});
MathJax.startup.defaultReady();
@@ -4568,7 +4627,7 @@ MathJax = {
}, // startup
tex: {
- packages: {'[+]': ['tagformat', 'ifstar-ifnextchar-setequnumber', 'textmacros']},
+ packages: {'[+]': ['tagformat', 'Lwarp-macros', 'textmacros']},
tags: "ams",
tagformat: {
number: function (n) {
@@ -4596,9 +4655,9 @@ MathJax = {
\begin{filecontents*}[overwrite]{lwarpmk.lua}
#!/usr/bin/env texlua
--- Copyright 2016-2020 Brian Dunn
+-- Copyright 2016-2021 Brian Dunn
-printversion = "v0.894"
+printversion = "v0.895"
requiredconfversion = "2" -- also at *lwarpmk.conf
function printhelp ()
@@ -5677,7 +5736,7 @@ end -- not --version
\let\LWR@origampersand\&
\newcommand*{\HTMLentity}[1]{%
\begingroup%
-\LWR@FBcancel%
+\LWR@hook@processingtags%
\LWR@origampersand#1;%
\endgroup%
}
@@ -5959,7 +6018,7 @@ end -- not --version
\newcommand*{\LWR@tagtitle}{h1}
\newcommand*{\LWR@tagtitleend}{/h1}
-\newcommand*{\LWR@tagbook}{div class="book"}
+\newcommand*{\LWR@tagbook}{div class=\textquotedbl{}book\textquotedbl}
\newcommand*{\LWR@tagbookend}{/div}
\newcommand*{\LWR@tagpart}{h2}
\newcommand*{\LWR@tagpartend}{/h2}
@@ -5971,13 +6030,15 @@ end -- not --version
\newcommand*{\LWR@tagsubsectionend}{/h5}
\newcommand*{\LWR@tagsubsubsection}{h6}
\newcommand*{\LWR@tagsubsubsectionend}{/h6}
-\newcommand*{\LWR@tagparagraph}{span class="paragraph"}
+\newcommand*{\LWR@tagparagraph}{span class=\textquotedbl{}paragraph\textquotedbl}
\newcommand*{\LWR@tagparagraphend}{/span}
-\newcommand*{\LWR@tagsubparagraph}{span class="subparagraph"}
+\newcommand*{\LWR@tagsubparagraph}{span class=\textquotedbl{}subparagraph\textquotedbl}
\newcommand*{\LWR@tagsubparagraphend}{/span}
\newcommand*{\LWR@tagregularparagraph}{p}
+\newcommand*{\LWR@hook@processingtags}{}
+
\providecommand*{\LWR@FBcancel}{}
@@ -5986,6 +6047,7 @@ end -- not --version
{}%
{%
\LetLtxMacro\LWR@FBcancel\NoAutoSpacing%
+ \appto{\LWR@hook@processingtags}{\LWR@FBcancel}%
}%
\@ifundefined{frenchbsetup}%
@@ -5994,31 +6056,31 @@ end -- not --version
\frenchbsetup{FrenchFootnotes=false}%
\renewrobustcmd*{\FBcolonspace}{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\LWR@origampersand{}nbsp;%
\endgroup%
}%
\renewrobustcmd*{\FBthinspace}{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\LWR@origampersand\LWR@origpound{}x202f;% \,
\endgroup%
}%
\renewrobustcmd*{\FBguillspace}{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\LWR@origampersand{}nbsp;% ~, for \og xyz \fg{}
\endgroup%
}%
\DeclareDocumentCommand{\FBmedkern}{}{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\LWR@origampersand\LWR@origpound{}x202f;% \,
\endgroup%
}%
\DeclareDocumentCommand{\FBthickkern}{}{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\LWR@origampersand{}nbsp;% ~
\endgroup%
}%
@@ -6043,7 +6105,7 @@ end -- not --version
\newcommand*{\LWR@htmltagc}[1]{%
\LWR@traceinfo{LWR@htmltagc !\detokenize{#1}!}%
\begingroup%
-\LWR@FBcancel%
+\LWR@hook@processingtags%
\ifmmode\else\protect\LWR@print@normalfont\protect\LWR@origttfamily\fi%
\protect\LWR@origtextless%
\LWR@isolate{#1}%
@@ -6143,7 +6205,7 @@ end -- not --version
\newcommand*{\LWR@htmlopencomment}{%
{%
\begingroup%
-\LWR@FBcancel%
+\LWR@hook@processingtags%
\ifmmode\else\protect\LWR@print@normalfont\protect\LWR@origttfamily\fi%
\LWR@print@mbox{\LWR@origtextless{}!-\/-}%
\endgroup%
@@ -6153,7 +6215,7 @@ end -- not --version
\newcommand*{\LWR@htmlclosecomment}{%
{%
\begingroup%
-\LWR@FBcancel%
+\LWR@hook@processingtags%
\ifmmode\else\protect\LWR@print@normalfont\protect\LWR@origttfamily\fi%
\LWR@print@mbox{-\/-\LWR@origtextgreater}%
\endgroup%
@@ -6989,7 +7051,7 @@ end -- not --version
\newrobustcmd{\LWR@HTMLsanitize}[1]{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\edef\LWR@strresult{\detokenize{#1}}%
\LWR@subHTMLsanitize%
\LWR@strresult%
@@ -7008,7 +7070,7 @@ end -- not --version
\newrobustcmd{\LWR@HTMLsanitizeexpand}[1]{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\edef\LWR@strresult{\detokenize\expandafter{#1}}%
\protect\StrSubstitute{\LWR@strresult}%
{\LWR@beginspaceleftbrace}{\LWR@beginleftbrace}[\LWR@strresult]%
@@ -7027,7 +7089,7 @@ end -- not --version
\newcommand*{\LWR@subcustomizedmathjax}[1]{%
\begingroup%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\edef\LWR@strresult{\detokenize{#1}}%
\LWR@subHTMLsanitize%
\xdef\LWR@customizedMathJax{%
@@ -7041,7 +7103,7 @@ end -- not --version
\newcommand*{\CustomizeMathJax}[1]{%
\ifbool{LWR@warnedcustomizemathjax}{}{%
\StrLen{\detokenize{#1}}[\LWR@tempone]%
- \ifnumgreater{\LWR@tempone}{200}{%
+ \ifnumgreater{\LWR@tempone}{350}{%
\AtEndDocument{%
\PackageWarningNoLine{lwarp}{%
To ensure faster MathJax compilation, place each\MessageBreak
@@ -8217,11 +8279,10 @@ end -- not --version
\LWR@htmltag{/span}%
\endgroup%
}
-
\xpretocmd{\verb}
{%
\begingroup%
- \LWR@htmltag{span class="texttt"}%
+ \LWR@htmltag{span class=\textquotedbl{}texttt\textquotedbl}%
\let\verb@egroup\LWR@verb@egroup@endspan%
}
{}
@@ -8244,7 +8305,7 @@ end -- not --version
\LWR@origttfamily%
\LWR@print@scriptsize%
\LWR@restoreoriglists%
-\LWR@FBcancel%
+\LWR@hook@processingtags%
\LWR@select@print@hspace%
}
@@ -8335,7 +8396,9 @@ end -- not --version
\newcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}
-\newcommand*{\LWR@printopenlist}{ul style="\LWR@print@mbox{list-style-type:none}"}
+\newcommand*{\LWR@printopenlist}{%
+ ul style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}%
+}
\AtBeginDocument{
\def\@mklab#1{%
@@ -8431,7 +8494,9 @@ end -- not --version
\newcommand*{\LWR@itemizestart}{%
\renewcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}
-\renewcommand*{\LWR@printopenlist}{ul style="\LWR@print@mbox{list-style-type:none}"}
+\renewcommand*{\LWR@printopenlist}{%
+ ul style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}%
+}
\let\item\LWR@itemizeitem%
\LWR@nulllistfills%
}
@@ -8440,7 +8505,9 @@ end -- not --version
\newcommand*{\LWR@enumeratestart}{%
\renewcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}
-\renewcommand*{\LWR@printopenlist}{ul style="\LWR@print@mbox{list-style-type:none}"}
+\renewcommand*{\LWR@printopenlist}{%
+ ul style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}%
+}
\let\item\LWR@itemizeitem%
\LWR@nulllistfills%
}
@@ -9110,19 +9177,19 @@ end -- not --version
test{\ifnumcomp{\value{LWR@hdashedlines}}{>}{0}}%
}%
{%
- \LWR@htmltag{tr class="hline" }%
+ \LWR@htmltag{tr class=\textquotedbl{}hline\textquotedbl }%
\LWR@orignewline%
}%
{% not doing hline
\ifbool{LWR@doingtbrule}%
{%
\ifdefvoid{\LWR@ruleHTMLcolor}{%
- \LWR@htmltag{tr class="tbrule"}%
+ \LWR@htmltag{tr class=\textquotedbl{}tbrule\textquotedbl}%
}{%
\LWR@htmltag{%
- tr class="tbrule" % space
- style="border-top: 1px solid % space
- \LWR@origpound\LWR@ruleHTMLcolor "%
+ tr class=\textquotedbl{}tbrule\textquotedbl\ % space
+ style=\textquotedbl{}border-top: 1px solid % space
+ \LWR@origpound\LWR@ruleHTMLcolor \textquotedbl{}%
}%
}%
\LWR@orignewline%
@@ -9152,10 +9219,10 @@ end -- not --version
{}%
{% not empty
\LWR@htmltag{%
- td class="td#1%
+ td class=\textquotedbl{}td#1%
\LWR@subaddcmidruletrim{}{}%
\LWR@printbartag{#2}%
- "%
+ \textquotedbl{}%
\LWR@tdstartstyles%
\LWR@addcmidrulewidth%
\LWR@addcdashline%
@@ -9202,12 +9269,12 @@ end -- not --version
}%
\LWR@traceinfo{LWR@tabledatasinglecolumntag: about to print td tag}%
\LWR@htmltag{%
- td class="td%
+ td class=\textquotedbl{}td%
\LWR@strresult%
\LWR@addcmidruletrim%
\LWR@addleftmostbartag%
\LWR@printbartag{\arabic{LWR@tableLaTeXcolindex}}%
- "%
+ \textquotedbl{}%
\LWR@tdstartstyles%
\LWR@addcmidrulewidth%
\LWR@addcdashline%
@@ -9328,14 +9395,14 @@ end -- not --version
\newcommand*{\LWR@tdaddstyle}{%
\ifbool{LWR@tdhavecellstyle}%
{; }%
- { style="}%
+ { style=\textquotedbl}%
\booltrue{LWR@tdhavecellstyle}%
}
\newcommand*{\LWR@tdendstyles}{%
\ifbool{LWR@tdhavecellstyle}%
{%
- "%
+ \textquotedbl%
\boolfalse{LWR@tdhavecellstyle}%
}{}%
}
@@ -9536,9 +9603,11 @@ end -- not --version
}
\newcommand*{\LWR@subaddtabularcellcolor}[1]{%
- \LWR@htmltag{div class="cellcolor" style="%
+ \LWR@htmltag{div class=\textquotedbl{}cellcolor\textquotedbl\ % space
+ style=\textquotedbl{}%
background:\LWR@origpound{}{}#1 %
- " }%
+ \textquotedbl\ %
+ }% space
\defaddtocounter{LWR@cellcolordepth}{1}%
}
@@ -9729,11 +9798,11 @@ end -- not --version
\defaddtocounter{LWR@lastmulticolumn}{-1}%
\LWR@maybenewtablerow%
\LWR@htmltag{%
- td colspan="#4" %
+ td colspan=\textquotedbl#4\textquotedbl\ %
\IfValueT{#2}{ % rows?
- rowspan="#2" %
+ rowspan=\textquotedbl#2\textquotedbl\ %
}%
- class="td%
+ class=\textquotedbl{}td%
\defcounter{LWR@mcolvertbarsl}{0}%
\defcounter{LWR@mcolvertbarsr}{0}%
\defcounter{LWR@mcolvertbarsldash}{0}%
@@ -9759,7 +9828,7 @@ end -- not --version
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{=}{1}{ tvertbarrdash}{}%
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{>}{1}%
{ tvertbarrdoubledash}{}%
- "%
+ \textquotedbl{}%
\LWR@tdstartstyles%
\IfValueT{#1}{% vpos?
\ifstrequal{#1}{b}%
@@ -10337,7 +10406,7 @@ end -- not --version
\newcommand*{\LWR@label@subcreatetag}{%
- \LWR@htmltag{a \LWR@print@mbox{id="\LWR@sanitized"}}%
+ \LWR@htmltag{a \LWR@print@mbox{id=\textquotedbl\LWR@sanitized\textquotedbl}}%
\LWR@htmltag{/a}%
}
@@ -10408,7 +10477,7 @@ end -- not --version
\newcommand*{\LWR@addlinktitle}{%
\ifdefvoid{\LWR@ThisAltText}{}{ % space
- title="\LWR@ThisAltText" % space
+ title=\textquotedbl\LWR@ThisAltText\textquotedbl\ % space
\gdef\LWR@ThisAltText{}%
}%
}
@@ -10417,7 +10486,7 @@ end -- not --version
{%
\LWR@sanitize{#1}%
\LWR@traceinfo{LWR@startref A: !#1!}%
- \LWR@htmltag{a href="%
+ \LWR@htmltag{a href=\textquotedbl%
\LWR@traceinfo{LWR@startref B}%
\LWR@print@mbox{\LWR@htmlrefsectionfilename{#1}}%
\LWR@traceinfo{LWR@startref C}%
@@ -10439,7 +10508,7 @@ end -- not --version
}%
}%
\LWR@traceinfo{LWR@startref E}%
- "%
+ \textquotedbl%
\LWR@addlinktitle%
}%
\LWR@traceinfo{LWR@startref F}%
@@ -10495,7 +10564,7 @@ end -- not --version
\catcode`\&=12%
\catcode`\~=12%
\catcode`\_=12%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
}
\newcommand*{\LWR@linkmediacatcodes}{%
@@ -10503,16 +10572,16 @@ end -- not --version
\catcode`\%=12%
\catcode`\~=12%
\catcode`\_=12%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
}
\NewDocumentCommand{\LWR@subhyperref}{m}{%
\LWR@traceinfo{LWR@subhyperref !#1!}%
\LWR@sanitize{#1}%
\LWR@htmltag{%
- a href="\LWR@sanitized" % space
+ a href=\textquotedbl\LWR@sanitized\textquotedbl\ % space
\LWR@addlinktitle % space
- target="\_{}blank" % space
+ target=\textquotedbl\_{}blank\textquotedbl\ % space
}%
}
@@ -10525,8 +10594,8 @@ end -- not --version
\NewDocumentCommand{\LWR@subhyperrefclass}{m +m m}{%
\LWR@htmltag{%
a % space
- href="\begingroup\@sanitize#1\endgroup" % space
- class="#3" % space
+ href=\textquotedbl\begingroup\@sanitize#1\endgroup\textquotedbl\ % space
+ class=\textquotedbl#3\textquotedbl\ % space
\LWR@addlinktitle % space
}\LWR@orignewline%
#2%
@@ -10579,18 +10648,18 @@ end -- not --version
\ifblank{#1}%
{%
\LWR@htmltag{img \LWR@indentHTML
- src="#3.#4" \LWR@indentHTML
- alt="#3" \LWR@indentHTML
- style="#5" \LWR@indentHTML
- class="#2" \LWR@orignewline
+ src=\textquotedbl#3.#4\textquotedbl \LWR@indentHTML
+ alt=\textquotedbl#3\textquotedbl \LWR@indentHTML
+ style=\textquotedbl#5\textquotedbl \LWR@indentHTML
+ class=\textquotedbl#2\textquotedbl \LWR@orignewline
}%
}%
{%
\LWR@htmltag{img \LWR@indentHTML
- src="#3.#4" \LWR@indentHTML
- alt="#1" \LWR@indentHTML
- style="#5" \LWR@indentHTML
- class="#2" \LWR@orignewline
+ src=\textquotedbl#3.#4\textquotedbl \LWR@indentHTML
+ alt=\textquotedbl#1\textquotedbl \LWR@indentHTML
+ style=\textquotedbl#5\textquotedbl \LWR@indentHTML
+ class=\textquotedbl#2\textquotedbl \LWR@orignewline
}%
}%
}
@@ -10613,8 +10682,10 @@ end -- not --version
\begingroup%
\LWR@print@raggedright%
\LWR@htmltag{%
- figure id="\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}" % space
- class="#1 \@nameuse{LWR@floatstyle@#1}"%
+ figure id=\textquotedbl%
+ \LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}%
+ \textquotedbl\ % space
+ class=\textquotedbl#1 \@nameuse{LWR@floatstyle@#1}\textquotedbl%
}%
\ifbool{FormatWP}{%
\LWR@orignewline%
@@ -10680,13 +10751,17 @@ end -- not --version
\addtocounter{LWR@thisautoid}{1}%
\ifbool{LWR@doingapar}%
{%
- \LWR@htmltag{a id="\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}" }%
- \LWR@htmltag{/a }%
+ \LWR@htmltag{a id=\textquotedbl%
+ \LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}%
+ \textquotedbl\ }% space
+ \LWR@htmltag{/a }%
}%
{%
\LWR@stoppars%
- \LWR@htmltag{a id="\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}" }%
- \LWR@htmltag{/a }%
+ \LWR@htmltag{a id=\textquotedbl%
+ \LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}%
+ \textquotedbl\ }% space
+ \LWR@htmltag{/a }%
\LWR@startpars%
}%
}
@@ -11448,7 +11523,7 @@ end -- not --version
\let\enddisplaymath\LWR@orig@enddisplaymath%
\LWR@restoreorigaccents%
\LWR@restoreoriglists%
- \LWR@FBcancel%
+ \LWR@hook@processingtags%
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }%
{\LWR@restoreMathJaxformatting}%
{}%
@@ -12463,8 +12538,10 @@ end -- not --version
}%
\LWR@traceinfo{lateximage: LWR@LIpage is \arabic{LWR@LIpage}}%
\LWR@htmltag{span\LWR@indentHTML%
- id="lateximage-\BaseJobname-\arabic{LWR@lateximagenumber}"\LWR@indentHTML
- class="lateximagesource"\LWR@orignewline
+ id=\textquotedbl{}%
+ lateximage-\BaseJobname-\arabic{LWR@lateximagenumber}%
+ \textquotedbl\LWR@indentHTML
+ class=\textquotedbl{}lateximagesource\textquotedbl\LWR@orignewline
}%
\LWR@traceinfo{lateximage: about to write to \BaseJobname-images.txt}%
\IfBooleanTF{#1}% starred
@@ -12927,13 +13004,15 @@ end -- not --version
\addtocounter{LWR@thisautoidWP}{1}%
\LWR@htmltag{%
- div id="\LWR@print@mbox{autoidWP-\arabic{LWR@thisautoidWP}}" %
- class="wpminipage"%
+ div id=\textquotedbl%
+ \LWR@print@mbox{autoidWP-\arabic{LWR@thisautoidWP}}%
+ \textquotedbl\ % space
+ class=\textquotedbl{}wpminipage\textquotedbl%
}%
}{}%
\LWR@traceinfo{minipage: creating div class}%
-\LWR@htmltag{div class="minipage" style="%
+\LWR@htmltag{div class=\textquotedbl{}minipage\textquotedbl\ style=\textquotedbl%
\ifthenelse{\equal{#1}{t}}{\LWR@print@mbox{vertical-align:bottom} ; }{}%
\ifthenelse{\equal{#1}{c}}{\LWR@print@mbox{vertical-align:middle} ; }{}%
\ifthenelse{\equal{#1}{b}}{\LWR@print@mbox{vertical-align:top} ; }{}%
@@ -12955,7 +13034,8 @@ end -- not --version
}%
\LWR@traceinfo{minipage: about to print the height}%
\ifblank{#2}{}{height:\LWR@printlength{\LWR@minipageheight} ; }%
-"}%
+\textquotedbl%
+}%
\ifnumequal{\value{LWR@virtualpagedepth}}{1}{%
\addtolength{\LWR@minipagewidth}{-3em}% undo frame padding
@@ -13698,8 +13778,8 @@ color:\LWR@origpound\LWR@tempcolor%
}%
{%
\LWR@htmltagc{%
- span style="width:\LWR@printlength{\LWR@tempwidth}; % extra space
- display:inline-block"%
+ span style=\textquotedbl{}width:\LWR@printlength{\LWR@tempwidth}; % extra space
+ display:inline-block\textquotedbl%
}%
\ifbool{FormatWP}{%
\setlength{\LWR@templengthone}{\LWR@tempwidth}%
@@ -13764,7 +13844,7 @@ color:\LWR@origpound\LWR@tempcolor%
\LWR@findcurrenttextcolor%
\LWR@htmltagc{%
span\LWR@indentHTML%
- style="%
+ style=\textquotedbl%
\ifbool{FormatWP}{}{background:\LWR@currenttextcolor ; }%
width:\LWR@printlength{\LWR@tempwidth} ; %
height:\LWR@printlength{\LWR@tempheight} ; %
@@ -13781,7 +13861,7 @@ color:\LWR@origpound\LWR@tempcolor%
transform: translate(0pt,\LWR@printlength{\LWR@tempraise}); %
\LWR@indentHTML%
}%
- display:inline-block;"\LWR@orignewline%
+ display:inline-block;\textquotedbl\LWR@orignewline%
}%
\ifbool{FormatWP}{%
\setlength{\LWR@templengthone}{\LWR@tempwidth}%
@@ -14103,7 +14183,7 @@ color:\LWR@origpound\LWR@tempcolor%
\typeout{Package lwarp:}
\typeout{If the error}
\typeout{\space\space``! Undefined control sequence.
- \space ... \space \protect\@begindocumenthook''}
+ \space ... \space \protect\__hook begindocument''}
\typeout{occurs here, use the polyglossia macro:}
\typeout{\space\space\protect\setmainlanguage\protect{...\protect}}
\typeout{---}
@@ -14144,7 +14224,8 @@ color:\LWR@origpound\LWR@tempcolor%
\ifblank{#2}{%
\PackageWarningNoLine{lwarp}
{%
- Lwarp does not provide MathJax support for #1%
+ Lwarp does not provide MathJax support for #1.\MessageBreak
+ Use SVG math by removing the Lwarp mathjax option%
}
}{%
\PackageWarningNoLine{lwarp}
@@ -14164,15 +14245,21 @@ color:\LWR@origpound\LWR@tempcolor%
afterward to resume using MathJax math.\MessageBreak
Before display math, use \protect\displaymathother\MessageBreak
to begin using SVG math, and use \protect\displaymathnormal\MessageBreak
- after to resume using MathJax for the following math%
+ after to resume using MathJax for the following math.\MessageBreak
+ Or, use SVG math for all expressions by removing\MessageBreak
+ the mathjax option for the lwarp package%
}
\AtBeginDocument{
\ifbool{mathjax}{
+ \LWR@nomathjaxwarn{aligned-overset}{}
+ \LWR@nomathjaxwarn{amscdx}
+ {\LWR@forceSVGmessage{amscdx}}
\LWR@mathjaxwarn{arydshln}
{In a math array, do not use the optional argument\MessageBreak
for \protect\cdashline.\space\space
Furthermore, \protect\cline\space is not\MessageBreak
supported by MathJax}
+ \LWR@nomathjaxwarn{autoaligne}{}
\LWR@mathjaxwarn{autonum}
{MathJax does not support equation+.\MessageBreak
You may use the warpprint and warpHTML\MessageBreak
@@ -14180,6 +14267,7 @@ color:\LWR@origpound\LWR@tempcolor%
and the equation+ environments}
\LWR@mathjaxwarn{bigdelim}
{Delimiters appear only of the first line}
+ \LWR@nomathjaxwarn{boldtensors}{}
\LWR@mathjaxwarn{booktabs}
{\protect\cmidrule\space is not displayed}
\LWR@mathjaxwarn{breqn}
@@ -14194,8 +14282,18 @@ color:\LWR@origpound\LWR@tempcolor%
{\LWR@forceSVGmessage{gauss}}
\LWR@mathjaxwarn{hhline}
{A simple \protect\hline\space is used}
+ \LWR@mathjaxwarn{isomath}
+ {Some of the symbol font macros such as \protect\mathsfbfit\MessageBreak
+ do not use a sans font because MathJax does not yet\MessageBreak
+ have sans Greek. Tensors may look like vectors%
+ }
\LWR@nomathjaxwarn{jkmath}
{\LWR@forceSVGmessage{jkmath}}
+ \LWR@mathjaxwarn{libertinust1math}
+ {Some of the symbol font macros such as \protect\mathsfbfit\MessageBreak
+ do not use a sans font because MathJax does not yet\MessageBreak
+ have sans Greek. Tensors may look like vectors%
+ }
\LWR@mathjaxwarn{mathtools}
{See the Lwarp manual regarding the disallowspaces\MessageBreak
and showonlyrefs options, the alignat environment,\MessageBreak
@@ -14216,13 +14314,15 @@ color:\LWR@origpound\LWR@tempcolor%
}
\LWR@nomathjaxwarn{pb-diagram}
{\LWR@forceSVGmessage{pb-diagram}}
+ \LWR@nomathjaxwarn{tensind}{}
\LWR@mathjaxwarn{unicode-math}
{Do not use embedded Unicode characters.\MessageBreak
- Not all characters are encoded correctly.\MessageBreak
- \protect\left\space and \protect\right\space may not work.\MessageBreak
+ (Not all characters are encoded correctly.)\MessageBreak
Some symbol fonts are not supported by MathJax,\MessageBreak
and are only approximated.\MessageBreak
- Latin characters may not be correct}
+ Greek macros such as \protect\alpha\space respond to the math-style\MessageBreak
+ option. Latin symbols does not, per MathJax\MessageBreak
+ limitations, unless placed inside \protect\symbit\space or similar}
\LWR@nomathjaxwarn{unitsdef}{}
\LWR@mathjaxwarn{witharrows}
{Arrows can only point to the next line.\MessageBreak