summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/lwarp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-20 03:01:38 +0000
committerNorbert Preining <norbert@preining.info>2020-02-20 03:01:38 +0000
commit9989fc4235eab4ecacbc0451af9238e1372aeaff (patch)
tree1727a29e7cc88b16f486df87d68eaa0a6567d796 /macros/latex/contrib/lwarp
parentc36a274c633c08115b6006622112f5609031001e (diff)
CTAN sync 202002200301
Diffstat (limited to 'macros/latex/contrib/lwarp')
-rw-r--r--macros/latex/contrib/lwarp/README.txt2
-rw-r--r--macros/latex/contrib/lwarp/lwarp.dtx1532
-rw-r--r--macros/latex/contrib/lwarp/lwarp.ins17
-rw-r--r--macros/latex/contrib/lwarp/lwarp.pdfbin2569325 -> 2633200 bytes
-rwxr-xr-xmacros/latex/contrib/lwarp/lwarpmk.lua2
5 files changed, 1440 insertions, 113 deletions
diff --git a/macros/latex/contrib/lwarp/README.txt b/macros/latex/contrib/lwarp/README.txt
index f91cc09657..12e0d44443 100644
--- a/macros/latex/contrib/lwarp/README.txt
+++ b/macros/latex/contrib/lwarp/README.txt
@@ -1,5 +1,5 @@
-LaTeX lwarp package v0.79 README.txt
+LaTeX lwarp package v0.80 README.txt
Files included are:
diff --git a/macros/latex/contrib/lwarp/lwarp.dtx b/macros/latex/contrib/lwarp/lwarp.dtx
index 0de08ba438..e80de5d4ad 100644
--- a/macros/latex/contrib/lwarp/lwarp.dtx
+++ b/macros/latex/contrib/lwarp/lwarp.dtx
@@ -16,16 +16,19 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{lwarp}
-%<package> [2020/02/01 v0.79 Allows LaTeX to directly produce HTML5 output.]
+%<package> [2020/02/19 v0.80 Allows LaTeX to directly produce HTML5 output.]
%
%<*driver>
\documentclass{ltxdoc}
+\PassOptionsToPackage{quiet}{textcomp}% Not all chars supported in TT font.
+
\usepackage{lmodern}
% \usepackage{libertine}
\usepackage[space]{erewhon}
\usepackage[varqu,varl]{inconsolata} % typewriter
% \usepackage{roboto}% conflicts with \textsc inside a float
+% \usepackage{sourcecodepro}
% \usepackage{sourcesanspro}
\usepackage{cabin}
% \usepackage[tabular,semibold]{sourcesanspro}
@@ -1195,6 +1198,7 @@ seamlessly integrating with the rest of the \LaTeX\ code.
\end{enumerate}
\subsubsection{Customizing \brand{MathJax}}
+\label{sec:limitscustomizemathjax}
\gindex{MathJax=\brand{MathJax}>custom functions}
\gindex{math>MathJax=\brand{MathJax} custom functions}
\limitscustomizemathjax
@@ -1261,6 +1265,12 @@ Limitations when using \brand{MathJax} include:
While using \brand{MathJax}, \pkg{lwarp} provides emulation
for footnotes, \pkg{bm}, \pkg{mathtools},
\pkg{nicefrac}, \pkg{siunitx}, and \pkg{units}.
+
+\item Starred macros are generally not supported
+ \trouble[starred macros]{starred macros>MathJax=\brand{MathJax}}
+ \trouble{math>starred macros and MathJax=\brand{MathJax}}
+ \trouble{MathJax=\brand{MathJax}>starred macros}
+ by MathJax or the \pkg{lwarp} emulations.
\end{itemize}
}
@@ -1333,13 +1343,14 @@ so complicated objects such as \tikz\ pictures are more likely to compile succes
\newcommand{\limitscustomizemathjax}{%
\brand{MathJax} does not have preexisting support every possible math function.
+\margintag{global customizations}
Additional \brand{MathJax} function definitions may be
-defined. These will be declared at the start of each \HTML\ page,
-and thus will have a global effect.
+defined in the preamble. These will be declared at the start of each \HTML\ page,
+and thus will have a global effect across all \HTML\ pages.
Examples:
\begin{sourcedisplay}
-\cs{begin}\{warpMathJax\} \\
+\textred{\cs{begin}\{warpMathJax\}} \\
\cs{CustomizeMathJax}\{ \\
\fqquad\cs{newcommand}\{\cs{expval}\}[1]\{\cs{langle}\#1\cs{rangle}\} \\
\fqquad\cs{newcommand}\{\cs{abs}\}[1]\{\cs{lvert}\#1\cs{rvert}\} \\
@@ -1347,8 +1358,15 @@ Examples:
\cs{CustomizeMathJax}\{\cs{newcommand}\{\cs{arcsinh}\}\{\cs{text}\{arcsinh\}\}\} \\
\cs{CustomizeMathJax}\{\cs{newcommand}\{\cs{arccosh}\}\{\cs{text}\{arccosh\}\}\} \\
\cs{CustomizeMathJax}\{\cs{newcommand}\{\cs{NN}\}\{\cs{mathbb}\{N\}\}\} \\
-\cs{end}\{warpMathJax\}
+\textred{\cs{end}\{warpMathJax\}}
\end{sourcedisplay}
+To avoid a slowdown in compile speed, use
+\trouble[slow compilation]{MathJax=\brand{MathJax}>slow compilation}
+\trouble{compiling>slow \brand{MathJax}}
+the \env{warpMathJax} environment to prevent its contents from being processed in
+print or \SVG\ math output.
+Also, place each new definition inside its own \cs{CustomizeMathJax}.
+A warning to this effect is issued if an overly-long definition is attempted.
\pkg{lwarp} already provides \brand{MathJax} customizations for some packages.
@@ -1360,6 +1378,31 @@ When using \pkg{siunitx}, a similar process may be used to add custom units:
\cs{CustomizeMathJax}\{\cs{newcommand}\{\cs{umyunit}\}\{\cs{mathrm}\{\cs{micro}\cs{myunit}\}\}\} \\
\cs{end}\{warpMathJax\}
\end{sourcedisplay}
+
+For more advanced control over dynamically creating custom definitions,
+\margintag{advanced control}
+see as an example the \pkg{lwarp} definition for
+\cs{DeclarePairedDelimiterX}, in \cref{sec:mathtools}, \nameref{sec:mathtools}.
+
+For customizations local to the current \HTML\ page only,
+\margintag{local customizations}
+macros may be defined as follows:
+\begin{sourcedisplay}
+\textred{\cs{begin}\{warpMathJax\}} \\
+\textred{\LWRbackslash(}
+ \cs{newcommand}\{\LWRbackslash macroname\}\{\dots\}
+ \textred{\LWRbackslash)}\\
+\textred{\LWRbackslash(}
+ \cs{newcommand}\{\LWRbackslash anothername\}\{\dots\}
+ \textred{\LWRbackslash)}\\
+\textred{\cs{end}\{warpMathJax\}}
+\end{sourcedisplay}
+To maintain compile speed, use the \env{warpMathJax} environment,
+and use a separate math environment for each definition.
+
+Starred macros are generally not supported
+ \watchout[starred macros]
+ by MathJax or the \pkg{lwarp} emulations.
}
%\newcommand{\limitscustomizeKaTeX}{%
@@ -2835,7 +2878,7 @@ This boolean may be tested by the user for later use.
%<*package>
% \fi
%
-% \CheckSum{36513}
+% \CheckSum{37579}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -2957,6 +3000,7 @@ This boolean may be tested by the user for later use.
% \changes{v0.77}{2019/10/15}{\ 2019/10/15}
% \changes{v0.78}{2019/11/07}{\ 2019/11/07}
% \changes{v0.79}{2020/02/01}{\ 2020/02/01}
+% \changes{v0.80}{2020/02/19}{\ 2020/02/19}
@@ -3178,6 +3222,29 @@ This boolean may be tested by the user for later use.
%
% \begin{description}
% \needspace{2\baselineskip}
+% \item[v0.80:] \brand{MathJax}, \pkg{biblatex}.
+% \begin{itemize}
+% \item Added docs and warning/info messages
+% \margintag{\brand{MathJax}}
+% re: avoiding slow \brand{MathJax} compilation.
+% See \cref{sec:limitscustomizemathjax}, \nameref{sec:limitscustomizemathjax}.
+% \item Added \brand{MathJax} emulation for \pkg{accessibility}, \pkg{autobreak},
+% \pkg{centernot}, \pkg{extarrows}, \pkg{fouridx}, \pkg{gensymb},
+% \pkg{leftidx}, \pkg{mathcomp}, \pkg{mathdots}, \pkg{mathfixs}, \pkg{mismath},
+% \pkg{nccmath}, \pkg{noitcrul},
+% \pkg{pdfcomment}, \pkg{relsize}, \pkg{rmathbr},
+% \pkg{subsupscripts}, \pkg{xfrac}.
+% \item Improved \brand{MathJax} emulation for \pkg{unicode-math}.
+% \item \pkg{biblatex}, \pkg{url}: Now create hyperlinks.
+% \margintag{packages}
+% \item \pkg{amsmath}: Fix to center starred environments.
+% \item \pkg{xcolor}, \pkg{graphics}: Made more macros robust.
+% \item \pkg{colortbl}: Fix: Rule color in a \env{lateximage}.
+% \item \pkg{chemmacros}: Updated to v5.10.
+% \item Added \pkg{fewerfloatpages}, \pkg{ghsystem}, \pkg{hhline},
+% \pkg{mismath}, \pkg{nccmath}.
+% \end{itemize}
+% \needspace{2\baselineskip}
% \item[v0.79:] \brand{MathJax}, nested \env{tabular}.
% \begin{itemize}
% \item Added or improved \brand{MathJax} emulation for
@@ -5068,10 +5135,17 @@ This boolean may be tested by the user for later use.
% \mpkg{amsthm}, \mpkg{ntheorem}, \mpkg{theorem}. \\
%
% Additional math: & Math fonts via \SVG\ images,
-% \spkg{amscd}, \ipkg{autonum}, \mpkg{backnaur}, \mpkg{bm}\sjax, \spkg{braket}\sjax,
-% \mpkg{breqn}, \mpkg{cases}, \spkg{delarray}, \spkg{guass}, \spkg{jkmath},
-% \spkg{mathspec}, \mpkg{mathtools}\sjax, \spkg{nicematrix}, \spkg{pb-diagram},
-% \ipkg{resizegather}, \spkg{unicode-math}\sjax, \mpkg{witharrows}\sjax,
+% \spkg{amscd}, \spkg{autobreak}\sjax, \ipkg{autonum},
+% \mpkg{backnaur}, \mpkg{bm}\sjax, \spkg{braket}\sjax,
+% \mpkg{breqn}, \mpkg{cases}, \spkg{centernot}\sjax,
+% \spkg{delarray}, \spkg{extarrows}\sjax, \spkg{fouridx}\sjax,
+% \spkg{guass}, \spkg{jkmath},
+% \spkg{leftidx}\sjax, \spkg{mathcomp}\sjax, \spkg{mathdots}\sjax, \spkg{mathfixs}\sjax,
+% \spkg{mathspec}, \mpkg{mathtools}\sjax, \mpkg{mismath}\sjax,
+% \mpkg{nccmath}\sjax,
+% \spkg{nicematrix}, \spkg{noitcrul}\sjax, \spkg{pb-diagram},
+% \ipkg{resizegather}, \spkg{rmathbr}\sjax, \spkg{subsupscripts}\sjax,
+% \spkg{unicode-math}\sjax, \mpkg{witharrows}\sjax,
% \mpkg{xfakebold}\sjax, \mpkg{xy}.
% Many others work as-is. \\
%
@@ -5082,13 +5156,14 @@ This boolean may be tested by the user for later use.
%
% Units and fractions: &
% \mpkg{nicefrac}\sjax, \mpkg{SIunits}, \mpkg{siunitx}\sjax,
-% \mpkg{units}\sjax, \mpkg{unitsdef}, \mpkg{xfrac}. \\
+% \mpkg{units}\sjax, \mpkg{unitsdef}, \mpkg{xfrac}\sjax. \\
%
% \midrule
%
% Floats: & Appear where declared.
% \spkg{capt-of}, \mpkg{caption}, \epkg{cutwin},
-% \ipkg{dblfloatfix}, \ipkg{endfloat}, \ipkg{fix2col}, \ipkg{flafter},
+% \ipkg{dblfloatfix}, \ipkg{endfloat}, \ipkg{fewerfloatpages},
+% \ipkg{fix2col}, \ipkg{flafter},
% \epkg{float}, \epkg{floatflt}, \epkg{floatrow}, \ipkg{fltrace}, \ipkg{ftcap},
% \ipkg{hypcap}, \mpkg{keyfloat}, \ipkg{morefloats}, \ipkg{multicap}, \spkg{newfloat},
% \epkg{nonfloat}, \ipkg{placeins}, \epkg{rotfloat}, \ipkg{stfloats},
@@ -5100,7 +5175,7 @@ This boolean may be tested by the user for later use.
% Tabular: &
% \env{tabular} environment, \mpkg{array}\sjax, \epkg{arydshln}\sjax,
% \mpkg{bigdelim}\sjax, \mpkg{bigstrut}\sjax, \mpkg{booktabs}\sjax,
-% \mpkg{colortbl}, \mpkg{ctable}, \mpkg{diagbox}, \epkg{longtable},
+% \mpkg{colortbl}, \mpkg{ctable}, \mpkg{diagbox}, \mpkg{hhline}\sjax, \epkg{longtable},
% \epkg{ltablex}, \epkg{ltxtable},
% \mpkg{multirow}\sjax, \epkg{supertabular}, \epkg{tabularx}, \epkg{tabulary},
% \epkg{threeparttable}, \mpkg{threeparttablex},
@@ -5172,7 +5247,7 @@ This boolean may be tested by the user for later use.
% \ipkg{hyphenat}, \epkg{lettrine}, \epkg{lips},
% \ipkg{lua-check-hyphen}, \ipkg{luacolor}, \epkg{magaz}, \ipkg{normalcolor},
% \ipkg{pdfcol}, \ipkg{pdfcolmk},
-% \ipkg{pdfrender}, \epkg{realscripts}, \mpkg{relsize},
+% \ipkg{pdfrender}, \epkg{realscripts}, \mpkg{relsize}\sjax,
% \ipkg{scalefnt}, \epkg{soul}, \epkg{soulpos}, \epkg{soulutf8}, \mpkg{stackengine},
% \epkg{textfit}, \epkg{thinsp}, \ipkg{trimclip}, \ipkg{truncate},
% \mpkg{ulem}, \mpkg{umoline}, \ipkg{underscore}, \ipkg{uspace},
@@ -5207,8 +5282,8 @@ This boolean may be tested by the user for later use.
%
% Symbols: & Native \LaTeX\ diacriticals, \mpkg{academicons}, \mpkg{bbding},
% \mpkg{chemgreek}, \mpkg{dingbat}, \spkg{euro}, \mpkg{eurosym},
-% \mpkg{fontawesome}, \mpkg{fontawesome5}, \spkg{gensymb}, \mpkg{marvosym},
-% \mpkg{metalogo}, \mpkg{metalogox},
+% \mpkg{fontawesome}, \mpkg{fontawesome5}, \spkg{gensymb}\sjax, \mpkg{marvosym},
+% \spkg{mathcomp}\sjax, \mpkg{metalogo}, \mpkg{metalogox},
% \mpkg{pifont}, \spkg{textalpha},
% \mpkg{textcomp}, \spkg{textgreek}, \mpkg{typicons}, \mpkg{xunicode}.
% \\
@@ -5229,6 +5304,7 @@ This boolean may be tested by the user for later use.
% \mpkg{chemfig}, \mpkg{chemformula}, \mpkg{chemgreek},
% \mpkg{chemmacros}, \mpkg{chemnum},
% \spkg{circuitikz}, \spkg{elements}, \spkg{engtlc}, \spkg{fast-diagram},
+% \mpkg{ghsystem},
% \spkg{hepnicenames}, \spkg{heppennames}, \spkg{karnaughmap}, \mpkg{karnaugh-map},
% \mpkg{listings}, \spkg{linop}, \mpkg{mhchem}\sjax, \spkg{pgfgantt},
% \mpkg{phfqit}, \spkg{physics}\sjax, \spkg{qcircuit},
@@ -5251,13 +5327,14 @@ This boolean may be tested by the user for later use.
% Editorial: & \ipkg{changebar}, \spkg{changelog}, \mpkg{changes},
% \mpkg{easy-todo}, \spkg{easyReview}, \mpkg{ed}, \mpkg{errata}, \mpkg{fixme},
% \mpkg{fixmetodonotes},
-% \ipkg{pdfcomment}, \ipkg{pdfmarginpar},
+% \ipkg{pdfcomment}\sjax, \ipkg{pdfmarginpar},
% \mpkg{todo}, \mpkg{todonotes}, \epkg{tram}, \ipkg{xechangebar}.
% \\
%
% \midrule
%
-% Accessibility: & \epkg{accessibility}, \ipkg{accsupp}, \ipkg{axessibility}. \\
+% Accessibility: & \epkg{accessibility}\sjax, \ipkg{accsupp}, \ipkg{axessibility},
+% \ipkg{pdfcomment}\sjax. \\
%
% \midrule
%
@@ -6507,6 +6584,8 @@ This boolean may be tested by the user for later use.
% \item [Shell escape:] See \cref{sec:shellescape}, \nameref{sec:shellescape}.
% \item [\CSS\ customization:] See \cref{sec:csscustomization},
% \nameref{sec:csscustomization}.
+% \item [\brand{MathJax} customization:] See \cref{sec:limitscustomizemathjax},
+% \nameref{sec:limitscustomizemathjax}.
% \item [Localization:] (languages) --- See \cref{sec:localization},
% \nameref{sec:localization}.
% \item [Accessibility:] (\attribute{alt} and \attribute{title} tags) ---
@@ -8283,7 +8362,7 @@ This boolean may be tested by the user for later use.
% and |\warpprintonly{\hrule}| command:
% \begin{Verbatim}[gobble=2,frame=lines]
% \begin{BlockClass}{frameminipage}% ignored in print output
-% % use \CSS\ to format div class ``framedminipage''
+% % use \CSS\ to format div class framedminipage
% \warpprintonly{\hrule} % only appears in print output
% Contents
% \warpprintonly{\hrule} % only appears in print output
@@ -10796,6 +10875,15 @@ This boolean may be tested by the user for later use.
% \cs{morewritessetup}\{allocate=10\}
% \end{sourcedisplay}
%
+% \item [''! TeX capacity exceeded, sorry {[}text input levels=15{]}.'':] Packages
+% \trouble{Text input levels equals 15}
+% \trouble{TeX capacity exceeded>Text input levels equals 15}
+% were nested too many levels deep. Locate the file \filenm{texmf.cnf}
+% for your distribution, and add the line
+% \begin{sourcedisplay}
+% max\_in\_open = 30
+% \end{sourcedisplay}
+%
% \item [``Missing \$ inserted.'':] If using a filename or URL in a
% footnote or \cs{item}, escape underscores with \cs{\_}.
% \trouble{Missing \$ inserted>filename or URL}
@@ -11574,6 +11662,7 @@ This boolean may be tested by the user for later use.
% \changes{v0.66}{2019/01/04}{Added early checks for \pkg{colortab}, \pkg{epsf}, \pkg{hyper},
% \pkg{picinpar}, \pkg{picins}, \pkg{sistyle}, \pkg{ucs}.}
% \changes{v0.68}{2019/02/26}{Prevented \pkg{alg}, \pkg{algorithmic}, \pkg{fncylab}, \pkg{pdfcprot}.}
+% \changes{v0.80}{2020/02/15}{Prevented \pkg{formula}, \pkg{shadethm}, \pkg{slashbox}.}
%
% \begin{macrocode}
\LWR@earlyclassloadnever{jarticle}{ujarticle}
@@ -11596,6 +11685,7 @@ This boolean may be tested by the user for later use.
\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}
@@ -11603,8 +11693,10 @@ This boolean may be tested by the user for later use.
\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}
@@ -11670,6 +11762,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{attachfile}
\LWR@loadafter{attachfile2}
\LWR@loadafter{authblk}
+\LWR@loadafter{autobreak}
\LWR@loadafter{autonum}
\LWR@loadafter{awesomebox}
\LWR@loadafter{axessibility}
@@ -11757,12 +11850,14 @@ This boolean may be tested by the user for later use.
\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}
@@ -11794,6 +11889,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{footnpag}
\LWR@loadafter{foreign}
\LWR@loadafter{forest}
+\LWR@loadafter{fouridx}
\LWR@loadafter{framed}
\LWR@loadafter{ftcap}
\LWR@loadafter{ftnright}
@@ -11801,10 +11897,12 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{fullpage}
\LWR@loadafter{fullwidth}
\LWR@loadafter{fwlw}
+\LWR@loadafter{gensymb}
\LWR@loadafter{gentombow}
% geometry is always loaded by lwarp, and lwarp-geometry is AtBeginDocument
-\LWR@loadafter{gmeometric}
+\LWR@loadafter{ghsystem}
\LWR@loadafter{glossaries}
+\LWR@loadafter{gmeometric}
% \LWR@loadafter{graphics}% pre-loaded by xunicode
% \LWR@loadafter{graphicx}% pre-loaded by xunicode
\LWR@loadafter{gloss}
@@ -11815,6 +11913,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{gridset}
\LWR@loadafter{hang}
\LWR@loadafter{hanging}
+\LWR@loadafter{hhline}
\LWR@loadafter{hypbmsec}
\LWR@loadafter{hypcap}
\LWR@loadafter{hypdestopt}
@@ -11836,6 +11935,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{layout}
\LWR@loadafter{layouts}
\LWR@loadafter{leading}
+\LWR@loadafter{leftidx}
\LWR@loadafter{letterspace}
\LWR@loadafter{lettrine}
\LWR@loadafter{lineno}
@@ -11860,6 +11960,8 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{marginfix}
\LWR@loadafter{marginnote}
\LWR@loadafter{marvosym}
+\LWR@loadafter{mathcomp}
+\LWR@loadafter{mathfixs}
\LWR@loadafter{mathtools}
\LWR@loadafter{mcaption}
\LWR@loadafter{mdframed}
@@ -11873,6 +11975,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{midpage}
\LWR@loadafter{minibox}
\LWR@loadafter{minitoc}
+\LWR@loadafter{mismath}
% morefloats must be allowed early for print mode
\LWR@notmemoirloadafter{moreverb}
% morewrites must be loaded before lwarp
@@ -11889,6 +11992,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{nameref}
\LWR@loadafter{natbib}
\LWR@notmemoirloadafter{nccfancyhdr}
+\LWR@loadafter{nccmath}
\LWR@notmemoirloadafter{needspace}
% newclude must be loaded before lwarp
\LWR@loadafter{newtxmath}
@@ -11896,6 +12000,7 @@ This boolean may be tested by the user for later use.
\LWR@notmemoirloadafter{nextpage}
\LWR@loadafter{nicefrac}
\LWR@loadafter{niceframe}
+\LWR@loadafter{noitcrul}
\LWR@loadafter{nomencl}
\LWR@loadafter{nonfloat}
\LWR@loadafter{nonumonpart}
@@ -11963,6 +12068,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{relsize}
\LWR@loadafter{repeatindex}
\LWR@loadafter{resizegather}
+\LWR@loadafter{rmathbr}
\LWR@loadafter{rmpage}
\LWR@loadafter{romanbar}
\LWR@loadafter{romanbarpagenumber}
@@ -12008,6 +12114,7 @@ This boolean may be tested by the user for later use.
\LWR@loadafter{subcaption}
\LWR@loadafter{subfig}
\LWR@loadafter{subfigure}
+\LWR@loadafter{subsupscripts}
\LWR@loadafter{supertabular}
\LWR@loadafter{svg}
\LWR@loadafter{t1inc}
@@ -13971,6 +14078,7 @@ This boolean may be tested by the user for later use.
% \pkg{picins}, \pkg{sistyle}, \pkg{ucs}.}
% \changes{v0.68}{2019/02/26}{Prevented \pkg{alg}, \pkg{algorithmic}, \pkg{fncylab}, \pkg{pdfcprot}.}
% \changes{v0.79}{2020/01/09}{Prevented \pkg{bxcjkjatype}, \pkg{hangul}.}
+% \changes{v0.80}{2020/02/15}{Prevented \pkg{formula}, \pkg{shadethm}, \pkg{slashbox}.}
%
% The following should never be loaded:
% \begin{macrocode}
@@ -13989,6 +14097,7 @@ This boolean may be tested by the user for later use.
\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}
@@ -13996,8 +14105,10 @@ This boolean may be tested by the user for later use.
\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}
@@ -18329,7 +18440,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 ()
@@ -22524,13 +22635,17 @@ end -- not --version
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\CustomizeMathJax}
-%
-% \limitscustomizemathjax
%
+% \DescribeBoolean{LWR@warnedcustomizemathjax}
+% Used to issue only one warning about
+% using a \cs{CustomizeMathJax} per macro.
+% \begin{macrocode}
+\newbool{LWR@warnedcustomizemathjax}
+\boolfalse{LWR@warnedcustomizemathjax}
+% \end{macrocode}
%
-% \changes{v0.52}{2018/03/31}{Added.}
-% \changes{v0.79}{2020/01/22}{Fix: Sanitize for \HTML.}
+
+% \begin{macro}{\LWR@subcustomizedmathjax} \marg{macro definition}
% \begin{macrocode}
\newcommand*{\LWR@subcustomizedmathjax}[1]{%
\begingroup%
@@ -22545,15 +22660,55 @@ end -- not --version
}%
\endgroup%
}
+\@onlypreamble\LWR@subcustomizedmathjax
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\CustomizeMathJax} \marg{macro definition}
+%
+% ^^A \limitscustomizemathjax
+%
+% A warning is issued if a very long argument is given.
+%
+% \changes{v0.52}{2018/03/31}{Added.}
+% \changes{v0.79}{2020/01/22}{Fix: Sanitize for \HTML.}
+% \changes{v0.80}{2020/02/06}{Warn of slow compile.}
+% \changes{v0.80}{2020/02/06}{Fix: Made \cs{@onlypreamble}.}
+% \begin{macrocode}
\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
% \end{macrocode}
% \end{macro}
%
+
+% \begin{macro}{\LWR@infoprocessingmathjax} \marg{package name}
+% \changes{v0.80}{2020/02/06}{Add: Info message.}
+% \begin{macrocode}
+\newcommand*{\LWR@infoprocessingmathjax}[1]{%
+\typeout{Package lwarp: Processing MathJax customizations for #1.}
+\typeout{\space\space This may take a moment.}
+}
+% \end{macrocode}
+% \end{macro}
+
%
% Default customizations:
%
@@ -22593,11 +22748,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
}{}
@@ -27425,7 +27585,7 @@ end -- not --version
% \end{macro}
-% \subsection{\pkg{colortbl} and \pkg{xparse} tabular color support}
+% \subsection{\pkg{colortbl} and \pkg{xcolor} tabular color support}
%
% \changes{v0.48}{2018/02/06}{\pkg{colortbl}: Added.}
% \changes{v0.49}{2018/02/17}{\pkg{xcolor}: Added tabular row colors.}
@@ -27481,7 +27641,7 @@ end -- not --version
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{\LWR@ruleHTMLcolor} \HTML style code for the cell color.
+% \begin{macro}{\LWR@ruleHTMLcolor} \HTML style code for the rule color.
% \begin{macrocode}
\newcommand*{\LWR@ruleHTMLcolor}{}
% \end{macrocode}
@@ -29375,6 +29535,10 @@ end -- not --version
{\global\let\LWR@mynextaction\LWR@donothing}{}%
% \end{macrocode}
% \begin{macrocode}
+ \ifdefequal{\LWR@mynexttoken}{\hhline}%
+ {\global\let\LWR@mynextaction\LWR@donothing}{}%
+% \end{macrocode}
+% \begin{macrocode}
\ifdefequal{\LWR@mynexttoken}{\rowcolor}%
{\global\let\LWR@mynextaction\LWR@donothing}{}%
% \end{macrocode}
@@ -32314,6 +32478,13 @@ end -- not --version
% \changes{v0.42}{2017/10/16}{Improved \cs{ensuremath}.}
% \begin{macrocode}
\LetLtxMacro\@ensuredmath\LWR@origensuredmath%
+% \end{macrocode}
+% \changes{v0.80}{2020/02/14}{Improved \env{math}, \env{displaymath}.}
+% \begin{macrocode}
+ \let\math\LWR@orig@math%
+ \let\endmath\LWR@orig@endmath%
+ \let\displaymath\LWR@orig@displaymath%
+ \let\enddisplaymath\LWR@orig@enddisplaymath%
%
\LWR@restoreorigaccents%
\LWR@restoreoriglists%
@@ -33208,8 +33379,15 @@ end -- not --version
% \end{macro}
-% Remove the old |math| and |displaymath| environments:
+% Remember then remove the old |math| and |displaymath| environments:
+%
+% \changes{v0.80}{2020/02/14}{Improved \env{math}, \env{displaymath}.}
% \begin{macrocode}
+\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
@@ -33900,14 +34078,15 @@ end -- not --version
% \end{macrocode}
% Support for \pkg{xfakebold}:
% \changes{v0.67}{2019/02/17}{\pkg{xfakebold}: Added support.}
+% \changes{v0.80}{2020/02/10}{Fix: \env{eqnarray*}.}
% \begin{macrocode}
\LWR@applyxfakebold%
% \end{macrocode}
% \begin{macrocode}
- \LWR@origeqnarray%
+ \def\@eqncr{\nonumber\@seqncr}
+ \csuse{LWR@origeqnarray}%
\BODY%
- \nonumber%
- \LWR@origendeqnarray%
+ \nonumber\csuse{LWR@origendeqnarray}%
\end{lateximage}%
\end{BlockClass}%
}% LWR@numbereqnarray
@@ -34466,6 +34645,15 @@ end -- not --version
\LWR@orig@label{LWRlateximage-\BaseJobname-\arabic{LWR@lateximagenumber}}%
\LWR@traceinfo{lateximage: finished creating the label}%
% \end{macrocode}
+%
+% Adjust the rule color to match \HTML:
+% \changes{v0.80}{2020/02/04}{Fix: Rule color in \env{lateximage}.}
+% \begin{macrocode}
+ \ifdefvoid{\LWR@ruleHTMLcolor}{}{%
+ \LWR@print@arrayrulecolor[HTML]{\LWR@ruleHTMLcolor}%
+ }%
+% \end{macrocode}
+%
% Enable print-mode math functions:
% \changes{v0.50}{2018/02/20}{Fix: SVG math in a section name.}
% \begin{macrocode}
@@ -35018,8 +35206,11 @@ end -- not --version
}% #4 not none
\LWR@traceinfo{LWR@print@fcolorbox done}%
}
-
-\renewcommand*{\fcolorbox}{\LWR@print@fcolorbox}
+% \end{macrocode}
+%
+% \changes{v0.80}{2020/02/03}{Made robust.}
+% \begin{macrocode}
+\renewrobustcmd*{\fcolorbox}{\LWR@print@fcolorbox}%
% \end{macrocode}
% \end{macro}
%
@@ -35030,7 +35221,11 @@ end -- not --version
% In print mode, \cs{fcolorboxBlock} is the same as \cs{fcolorbox}.
% \begin{macrocode}
\newcommand*{\LWR@print@fcolorboxBlock}{\LWR@print@fcolorbox}
-\newcommand*{\fcolorboxBlock}{\LWR@print@fcolorboxBlock}
+% \end{macrocode}
+
+% \changes{v0.80}{2020/02/03}{Made robust.}
+% \begin{macrocode}
+\newrobustcmd*{\fcolorboxBlock}{\LWR@print@fcolorboxBlock}
% \end{macrocode}
% \end{macro}
@@ -35094,8 +35289,11 @@ end -- not --version
}% #4 not none
\LWR@traceinfo{*** finished end fcolorminipage}%
}
+% \end{macrocode}
-\newenvironment*{fcolorminipage}
+% \changes{v0.80}{2020/02/03}{Made robust.}
+% \begin{macrocode}
+\NewDocumentEnvironment{fcolorminipage}{}
{\LWR@print@fcolorminipage}
{\endLWR@print@fcolorminipage}
% \end{macrocode}
@@ -36179,12 +36377,13 @@ color:\LWR@origpound\LWR@tempcolor%
% \changes{v0.42}{2017/10/20}{\cs{textbf} and related: If \progcode{FormatWP}, use explicit styles for
% \cs{textsc}, etc.}
% \changes{v0.62}{2018/11/11}{\cs{textbf} and related: Improved font detection.}
+% \changes{v0.80}{2020/02/16}{\cs{textbf} and related: Use \HTML\ series, etc.}
% \begin{macro}{\emph} \marg{text}
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@emph}[1]{%
{%
- \itshape%
+ \LWR@HTML@itshape%
\LWR@htmlspan{em}{#1}%
}%
}
@@ -36200,7 +36399,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textmd}[1]{%
{%
- \mdseries%
+ \LWR@HTML@mdseries%
\InlineClass(font-weight:normal){textmd}{#1}%
}%
}
@@ -36216,7 +36415,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textbf}[1]{%
{%
- \bfseries%
+ \LWR@HTML@bfseries%
\LWR@htmlspan{b}{#1}%
}%
}
@@ -36233,7 +36432,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@texteb}[1]{%
{%
- \ebweight%
+ \LWR@HTML@ebweight%
\InlineClass{texteb}{#1}%
}%
}
@@ -36250,7 +36449,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textlg}[1]{%
{%
- \lgweight%
+ \LWR@HTML@lgweight%
\InlineClass{textlg}{#1}%
}%
}
@@ -36266,7 +36465,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textrm}[1]{%
{%
- \rmfamily%
+ \LWR@HTML@rmfamily%
\InlineClass(font-family:serif){textrm}{#1}%
}%
}
@@ -36282,7 +36481,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textsf}[1]{%
{%
- \sffamily%
+ \LWR@HTML@sffamily%
\InlineClass(font-family:sans){textsf}{#1}%
}%
}
@@ -36297,7 +36496,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@texttt}[1]{%
{%
- \ttfamily%
+ \LWR@HTML@ttfamily%
\LWR@htmlspan{kbd}{#1}%
}%
}
@@ -36314,7 +36513,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textup}[1]{%
{%
- \upshape%
+ \LWR@HTML@upshape%
\InlineClass(font-style:normal){textup}{#1}%
}%
}
@@ -36329,7 +36528,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textit}[1]{%
{%
- \itshape%
+ \LWR@HTML@itshape%
\LWR@htmlspan{i}{#1}%
}%
}
@@ -36345,7 +36544,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textsc}[1]{%
{%
- \scshape%
+ \LWR@HTML@scshape%
\InlineClass{textsc}{#1}%
}%
}
@@ -36362,7 +36561,7 @@ color:\LWR@origpound\LWR@tempcolor%
% \begin{macrocode}
\DeclareRobustCommand{\LWR@HTML@textulc}[1]{%
{%
- \ulcshape%
+ \LWR@HTML@ulcshape%
\InlineClass{textulc}{#1}%
}%
}
@@ -36383,7 +36582,7 @@ color:\LWR@origpound\LWR@tempcolor%
\DeclareRobustCommand{\LWR@HTML@textsi}[1]{%
{%
- \sishape%
+ \LWR@HTML@sishape%
\textsc{\textit{#1}}%
% \InlineClass(
% font-style: italic;
@@ -37043,7 +37242,7 @@ color:\LWR@origpound\LWR@tempcolor%
%
% Direct-formatting space commands become \HTML\ entities:
%
-% \changes{v0.45}{2017/12/29}{Improved: Robust \cs{\,}, \cs{~}, and \cs{textellipsis} commands.}
+% \changes{v0.45}{2017/12/29}{Improved: Robust \cs{,}, \cs{~}, and \cs{textellipsis} commands.}
% \changes{v0.56}{2018/05/09}{Added \cs{thinspace}.}
% \changes{v0.61}{2018/09/23}{Spaces redefined \cs{AtBeginDocument}.}
% \begin{macrocode}
@@ -38122,8 +38321,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''}
@@ -38136,7 +38337,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%
}
}{}
}
@@ -38691,6 +38892,17 @@ color:\LWR@origpound\LWR@tempcolor%
\providecommand{\thead}[1]{\textbf{#1}}
% \end{macrocode}
%
+%
+% For \brand{MathJax}:
+%
+% \changes{v0.80}{2020/02/06}{\pkg{accessibility}: Added \brand{MathJax} emulation.}
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\alt}[1]{}}
+\CustomizeMathJax{\newcommand{\thead}[1]{\text{\textbf{#1}}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
% \iffalse
%</accessibility>
% \fi
@@ -39536,12 +39748,20 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \changes{v0.73}{2019/06/25}{AMS environments: Fix: \attribute{alt} tags.}
% \changes{v0.73}{2019/06/25}{AMS environments: Fix: Paragraph tags.}
%
-% \begin{noindmacro}{\LWR@amsmathenv@@before} \marg{environment name}
+% \begin{noindmacro}{\LWR@amsmathenv@@before}* \marg{environment name}
+%
+% |*| if the environment was starred.
%
% Embeds the environment inside a \env{lateximage}.
+%
+% \changes{v0.80}{2020/02/13}{AMS environments: Fix: Centering starred envs.}
% \begin{macrocode}
-\newcommand*{\LWR@amsmathenv@@before}[1]{%
- \begin{BlockClass}{displaymathnumbered}
+\NewDocumentCommand{\LWR@amsmathenv@@before}{s m}{%
+ \IfBooleanTF{#1}{
+ \begin{BlockClass}{displaymath}
+ }{
+ \begin{BlockClass}{displaymathnumbered}
+ }
\LWR@newautoidanchor%
\booltrue{LWR@indisplaymathimage}%
\begin{lateximage}[\LWR@amsmathbodynumbered{#1}]*
@@ -39551,20 +39771,23 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \end{noindmacro}
%
%
-% \begin{noindmacro}{\LWR@amsmathenv@before} \marg{environment name}
+% \begin{noindmacro}{\LWR@amsmathenv@before}* \marg{environment name}
+%
+% |*| if the environment was starred.
%
% Embeds the environment with \brand{MathJax} or a \env{lateximage}.
% \changes{v0.79}{2020/01/31}{AMS environments: Fix: Nested.}
+% \changes{v0.80}{2020/02/13}{AMS environments: Fix: Centering starred envs.}
% \begin{macrocode}
-\newcommand*{\LWR@amsmathenv@before}[1]{%
+\NewDocumentCommand{\LWR@amsmathenv@before}{s m}{%
\ifnumequal{\value{LWR@amsmathdepth}}{0}{%
\LWR@stoppars%
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }%
{
\LWR@syncmathjax
\boolfalse{LWR@amsmultline}
- \ifstrequal{#1}{multline}{\booltrue{LWR@amsmultline}}{}
- \ifstrequal{#1}{multline*}{\booltrue{LWR@amsmultline}}{}
+ \ifstrequal{#2}{multline}{\booltrue{LWR@amsmultline}}{}
+ \ifstrequal{#2}{multline*}{\booltrue{LWR@amsmultline}}{}
% \end{macrocode}
% \pkg{autonum}'s ``+'' environments are not supported by \brand{MathJax}.
% \watchout
@@ -39572,7 +39795,11 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
\LWR@beginhideamsmath
}
{
- \LWR@amsmathenv@@before{#1}
+ \IfBooleanTF{#1}{
+ \LWR@amsmathenv@@before*{#2}
+ }{
+ \LWR@amsmathenv@@before{#2}
+ }
}
}{}
\addtocounter{LWR@amsmathdepth}{1}
@@ -39594,17 +39821,22 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \end{noindmacro}
%
%
-% \begin{noindmacro}{\LWR@amsmathenv@after} \marg{environment name}
+% \begin{noindmacro}{\LWR@amsmathenv@after}* \marg{environment name}
+%
+% |*| if the environment was starred. Ignored here, only used for
+% a consistent syntax.
%
% Embeds the environment with \brand{MathJax} or a \env{lateximage}.
+%
+% \changes{v0.80}{2020/02/13}{AMS environments: Fix: Centering starred envs.}
% \begin{macrocode}
-\newcommand*{\LWR@amsmathenv@after}[1]{%
+\NewDocumentCommand{\LWR@amsmathenv@after}{s m}{%
\ifnumequal{\value{LWR@amsmathdepth}}{1}{%
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }%
{
\LWR@endhideamsmath
\boolfalse{LWR@amsmultline}
- \LWR@addmathjax{#1}{\the\@envbody}
+ \LWR@addmathjax{#2}{\the\@envbody}
}
{\LWR@amsmathenv@@after}
% \end{macrocode}
@@ -39630,9 +39862,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \begin{environment}{multline*}
% \begin{macrocode}
-\BeforeBeginEnvironment{multline*}{\LWR@amsmathenv@before{multline*}}
+\BeforeBeginEnvironment{multline*}{\LWR@amsmathenv@before*{multline*}}
-\AfterEndEnvironment{multline*}{\LWR@amsmathenv@after{multline*}}
+\AfterEndEnvironment{multline*}{\LWR@amsmathenv@after*{multline*}}
% \end{macrocode}
% \end{environment}
@@ -39648,9 +39880,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \begin{environment}{gather*}
% \begin{macrocode}
-\BeforeBeginEnvironment{gather*}{\LWR@amsmathenv@before{gather*}}
+\BeforeBeginEnvironment{gather*}{\LWR@amsmathenv@before*{gather*}}
-\AfterEndEnvironment{gather*}{\LWR@amsmathenv@after{gather*}}
+\AfterEndEnvironment{gather*}{\LWR@amsmathenv@after*{gather*}}
% \end{macrocode}
% \end{environment}
@@ -39666,9 +39898,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \begin{environment}{align*}
% \begin{macrocode}
-\BeforeBeginEnvironment{align*}{\LWR@amsmathenv@before{align*}}
+\BeforeBeginEnvironment{align*}{\LWR@amsmathenv@before*{align*}}
-\AfterEndEnvironment{align*}{\LWR@amsmathenv@after{align*}}
+\AfterEndEnvironment{align*}{\LWR@amsmathenv@after*{align*}}
% \end{macrocode}
% \end{environment}
@@ -39684,9 +39916,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \begin{environment}{flalign*}
% \begin{macrocode}
-\BeforeBeginEnvironment{flalign*}{\LWR@amsmathenv@before{flalign*}}
+\BeforeBeginEnvironment{flalign*}{\LWR@amsmathenv@before*{flalign*}}
-\AfterEndEnvironment{flalign*}{\LWR@amsmathenv@after{flalign*}}
+\AfterEndEnvironment{flalign*}{\LWR@amsmathenv@after*{flalign*}}
% \end{macrocode}
% \end{environment}
@@ -39703,9 +39935,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \begin{environment}{alignat*}
% \begin{macrocode}
-\BeforeBeginEnvironment{alignat*}{\LWR@amsmathenv@before{alignat*}}
+\BeforeBeginEnvironment{alignat*}{\LWR@amsmathenv@before*{alignat*}}
-\AfterEndEnvironment{alignat*}{\LWR@amsmathenv@after{alignat*}}
+\AfterEndEnvironment{alignat*}{\LWR@amsmathenv@after*{alignat*}}
% \end{macrocode}
% \end{environment}
%
@@ -40285,7 +40517,7 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% For \brand{MathJax}:
% \begin{macrocode}
\CustomizeMathJax{
-\newcommand{\multicolumn}[3]{#3}% only uses one cell
+ \newcommand{\multicolumn}[3]{#3}% only uses one cell
}
% \end{macrocode}
%
@@ -40810,6 +41042,52 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
%
%
% \iffalse
+%<*autobreak>
+% \fi
+%
+% \part{lwarp-autobreak.sty}
+%
+% \section{autobreak}
+%
+% \credits{Takahiro Ueda}
+%
+% \DescribePackage{autobreak}
+% \pkg{autobreak} is used as-is for \SVG\ math, and
+% nullified for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/09}{\pkg{autobreak}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{autobreak}[2017/02/23]
+% \end{macrocode}
+%
+% For \brand{MathJax}.
+% The modified \env{align} environment is used for \SVG\ math,
+% but is reverted to its original for \brand{MathJax}.
+% (Extraneous commas were appearing in the result.)
+% \begin{macrocode}
+\begin{warpMathJax}
+\renewenvironment{autobreak}{\newcommand{\MoveEqLeft}[1]{}}{}
+\let\start@align\@autobreak@oldstart@align
+\let\endalign\@autobreak@oldendalign
+\CustomizeMathJax{\newenvironment{autobreak}{}{}}
+\CustomizeMathJax{\newcommand{\MoveEqLeft}[1][]{}}
+\CustomizeMathJax{\newcommand{\everybeforeautobreak}[1]{}}
+\CustomizeMathJax{\newcommand{\everyafterautobreak}[1]{}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</autobreak>
+% \fi
+%
+%
+%
+%
+%
+% \iffalse
%<*autonum>
% \fi
%
@@ -41507,6 +41785,58 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
\LWR@ProvidesPackagePass{biblatex}[2018/03/04]
% \end{macrocode}
%
+% The following create hyperlinks to the references.
+% The original code to use \pkg{hyperref} is recreated here,
+% because \pkg{hyperref} is emulated.
+%
+% \changes{v0.80}{2020/01/06}{\pkg{biblatex}: Creates hyperlinks.}
+% \begin{macrocode}
+\AfterPreamble{
+
+\let\blx@anchors\@empty
+\protected\def\blx@anchor{%
+ \xifinlist{\the\c@refsection @\abx@field@entrykey}{\blx@anchors}
+ {}
+ {\listxadd\blx@anchors{\the\c@refsection @\abx@field@entrykey}%
+ \hypertarget{cite.\the\c@refsection @\abx@field@entrykey}{}}}
+\protected\def\blx@imc@bibhyperref{%
+ \@ifnextchar[%]
+ {\blx@bibhyperref}
+ {\blx@bibhyperref[\abx@field@entrykey]}}%
+
+\long\def\blx@bibhyperref[#1]#2{%
+% \blx@sfsave
+ \hyperlink{cite.\the\c@refsection @#1}{%
+% \blx@sfrest
+ #2%
+% \blx@sfsave
+ }%
+% \blx@sfrest%
+}%% \def\blx@nohyperref[#1]#2{#2}%
+
+\protected\long\def\blx@imc@bibhyperlink#1#2{%
+% \blx@sfsave
+ \hyperlink{cite.\the\c@refsection:#1}{%
+% \blx@sfrest
+ #2%
+% \blx@sfsave
+ }%
+% \blx@sfrest%
+}%
+
+\protected\long\def\blx@imc@bibhypertarget#1#2{%
+% \blx@sfsave%
+ \hypertarget{cite.\the\c@refsection:#1}{%
+% \blx@sfrest
+ #2%
+% \blx@sfsave%
+ }%
+% \blx@sfrest%
+}
+
+\let\blx@imc@ifhyperref\@firstoftwo
+}
+% \end{macrocode}
%
% \iffalse
%</biblatex>
@@ -41610,14 +41940,12 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
% \changes{v0.79}{2020/01/20}{\pkg{bigdelim}: Added \brand{MathJax} emulation.}
% \begin{macrocode}
\begin{warpMathJax}
-\CustomizeMathJax{
% \ldelim ( [n]{width}[text]
- \newcommand{\LWRldelim}[1][]{\text{#1}~\LWRbigdelim}
- \def\ldelim#1#2#3{\def\LWRbigdelim{#1}\LWRldelim}
+\CustomizeMathJax{\newcommand{\LWRldelim}[1][]{\text{#1}~\LWRbigdelim}}
+\CustomizeMathJax{\def\ldelim#1#2#3{\def\LWRbigdelim{#1}\LWRldelim}}
% \rdelim ) [n]{width}[text]
- \newcommand{\LWRrdelim}[1][]{\LWRbigdelim~\text{#1}}
- \def\rdelim#1#2#3{\def\LWRbigdelim{#1}\LWRrdelim}
-}
+\CustomizeMathJax{\newcommand{\LWRrdelim}[1][]{\LWRbigdelim~\text{#1}}}
+\CustomizeMathJax{\def\rdelim#1#2#3{\def\LWRbigdelim{#1}\LWRrdelim}}
\end{warpMathJax}
% \end{macrocode}
%
@@ -41707,9 +42035,9 @@ span style="width:\LWR@printlength{\ALG@thistlm}; display:inline-block;"%
%
% \changes{v0.79}{2020/01/20}{\pkg{bigstrut}: Added \brand{MathJax} emulation.}
% \begin{macrocode}
-\CustomizeMathJax{
- \newcommand{\bigstrut}[1][]{}
-}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\bigstrut}[1][]{}}
+\end{warpMathJax}
% \end{macrocode}
%
%
@@ -42844,6 +43172,41 @@ s%
%
%
% \iffalse
+%<*centernot>
+% \fi
+%
+% \part{lwarp-centernot.sty}
+%
+% \section{centernot}
+%
+% \credits{Heiko Oberdiek}
+%
+% \DescribePackage{centernot}
+% \pkg{centernot} is used as-is for \SVG\ math,
+% and emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/08}{\pkg{centernot}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{centernot}[2016/05/16]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\centernot}[1]{\not{\!#1\,}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</centernot>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*changebar>
% \fi
%
@@ -44123,7 +44486,12 @@ s%
\cs_undefine:N \chemmacros_phase:n
\cs_new_protected:Npn \chemmacros_phase:n #1
{
- \chemmacros_leave_vmode:
+% \end{macrocode}
+% \changes{v0.80}{2020/02/16}{\pkg{chemmacros}: Updated to v5.10.}
+% \begin{macrocode}
+ \mode_leave_vertical:
+% \end{macrocode}
+% \begin{macrocode}
\bool_if:NTF \l__chemmacros_phases_sub_bool
{
\ifnumequal{\value{LWR@lateximagedepth}}{0}
@@ -44527,7 +44895,6 @@ name = \chemmacros_translate:n {scheme-name}
}
\__chemmacros_nmr_coupling_aux_i:w
}
-
\AfterEndPreamble{% After \AtBeginDocument
% \NMR{<num>,<elem>}(<num>,<unit>)[<solvent>] ALL arguments are optional
% \NMR* same but without ": $\delta$" at end
@@ -44535,7 +44902,12 @@ name = \chemmacros_translate:n {scheme-name}
{
\bool_if:NT \l__chemmacros_nmr_list_bool { \item \scan_stop: }
\group_begin:
- \chemmacros_leave_vmode:
+% \end{macrocode}
+% \changes{v0.80}{2020/02/16}{\pkg{chemmacros}: Updated to v5.10.}
+% \begin{macrocode}
+ \mode_leave_vertical:
+% \end{macrocode}
+% \begin{macrocode}
\bool_set_false:N \l__chemmacros_nmr_frequency_bool
\bool_set_false:N \l__chemmacros_nmr_solvent_bool
\tl_if_empty:nF {#3}
@@ -47174,6 +47546,46 @@ name = \chemmacros_translate:n {scheme-name}
%
%
%
+% \iffalse
+%<*extarrows>
+% \fi
+%
+% \part{lwarp-extarrows.sty}
+%
+% \section{extarrows}
+%
+% \credits{Huynh Ky Anh}
+%
+% \DescribePackage{extarrows}
+% \pkg{extarrows} is used as-is for \SVG\ math, and
+% emulted for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/15}{\pkg{extarrows}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{extarrows}[2008/05/15]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\Newextarrow\xLongleftarrow{10,10}{0x21D0}}
+\CustomizeMathJax{\Newextarrow\xLongrightarrow{10,10}{0x21D2}}
+\CustomizeMathJax{\Newextarrow\xLongleftrightarrow{10,10}{0x21D4}}
+\CustomizeMathJax{\Newextarrow\xLeftrightarrow{10,10}{0x21D4}}
+\CustomizeMathJax{\Newextarrow\xlongleftrightarrow{10,10}{0x2194}}
+\CustomizeMathJax{\Newextarrow\xleftrightarrow{10,10}{0x2194}}
+\CustomizeMathJax{\let\xlongleftarrow\xleftarrow}
+\CustomizeMathJax{\let\xlongrightarrow\xrightarrow}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</extarrows>
+% \fi
+%
+%
%
% \iffalse
%<*extramarks>
@@ -48061,6 +48473,37 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
%
%
%
+% \iffalse
+%<*fewerfloatpages>
+% \fi
+%
+% \part{lwarp-fewerfloatpages.sty}
+%
+% \section{fewerfloatpages}
+%
+% \DescribePackage{fewerfloatpages}
+% \pkg{fewerfloatpages} is ignored.
+%
+% \changes{v0.80}{2020/02/15}{\pkg{fewerfloatpages}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{fewerfloatpages}[2020/02/14]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcommand\floatpagekeepfraction{\textfraction}
+\newcounter{floatpagedeferlimit}
+\newcounter{floatpagekeeplimit}
+% \end{macrocode}
+%
+% \iffalse
+%</fewerfloatpages>
+% \fi
+%
+%
+%
%
%
% \iffalse
@@ -49829,6 +50272,43 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
%
%
%
+% \iffalse
+%<*fouridx>
+% \fi
+%
+% \part{lwarp-fouridx.sty}
+%
+% \section{fouridx}
+%
+% \credits{Stefan Karrmann}
+%
+% \DescribePackage{fouridx}
+% \pkg{fouridx} works as-is with \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/10}{\pkg{fouridx}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{fouridx}[2013/11/21]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{%
+ \newcommand{\fourIdx}[5]{%
+ \vphantom{#5}^{\hphantom{#2}#1}_{\hphantom{#1}#2}{#5}^{#3}_{#4}%
+ }%
+}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</fouridx>
+% \fi
+%
+%
%
%
% \iffalse
@@ -50175,6 +50655,45 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
%
%
%
+% \iffalse
+%<*gensymb>
+% \fi
+%
+% \part{lwarp-gensymb.sty}
+%
+% \section{gensymb}
+%
+% \credits{Walter Schmidt}
+%
+% \DescribePackage{gensymb}
+% \pkg{gensymb} works as-is for \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/09}{\pkg{gensymb}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{gensymb}[2003/07/02]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\degree}{\mathrm{^\circ}}}
+\CustomizeMathJax{\newcommand{\celsius}{\unicode{x2103}}}
+\CustomizeMathJax{\newcommand{\perthousand}{\unicode{x2030}}}
+\CustomizeMathJax{\newcommand{\ohm}{\mathrm{\Omega}}}
+\CustomizeMathJax{\newcommand{\micro}{\mathrm{\unicode{x00B5}}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</gensymb>
+% \fi
+%
+%
+%
+%
%
% \iffalse
%<*gentombow>
@@ -50267,6 +50786,58 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
%
%
%
+% \iffalse
+%<*ghsystem>
+% \fi
+%
+% \part{lwarp-ghsystem.sty}
+%
+% \section{ghsystem}
+%
+% \credits{Clemens Niederberger}
+%
+% \DescribePackage{ghsystem}
+% \pkg{ghsystem} is patched for use by \pkg{lwarp}.
+%
+% Images must be provided in \SVG\ format, unless \JPG\ is specified.
+% \watchout[\cs{ghspic} images]
+% It is recommended to create a local \filenm{images} directory,
+% copy into it the relevent \PDF\ \pkg{ghsystem} images, and then
+% convert them with \userentry{lwarpmk pdftosvg images/*.pdf}
+%
+% \changes{v0.80}{2020/02/16}{\pkg{ghsystem}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{ghsystem}[2020/02/17]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\ExplSyntaxOn
+
+\cs_set_protected:Npn \ghsystem_filler:n #1
+ { \emph { \textless #1 \textgreater } }
+
+\cs_set_protected:Npn \ghsystem_pic:n #1
+ {
+ \__ghsystem_includegraphics:xn
+ {
+% scale = \fp_to_tl:N \l__ghsystem_picture_scale_fp
+ width = 1.25cm
+ \exp_not:V \l__ghsystem_picture_includegraphics_tl
+ }
+ { ghsystem_ #1 . \l__ghsystem_picture_type_tl }
+ }
+
+\ExplSyntaxOff
+% \end{macrocode}
+%
+% \iffalse
+%</ghsystem>
+% \fi
+%
+%
%
%
% \iffalse
@@ -50424,11 +50995,13 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
% \pkg{gmeometric} is ignored.
%
% \changes{v0.64}{2018/12/07}{\pkg{gmeometric}: Added.}
+% \changes{v0.80}{2020/02/16}{\pkg{gmeometric}: Requires \pkg{geometry}.}
%
% \codehtml
%
% \begin{macrocode}
\LWR@ProvidesPackageDrop{gmeometric}[2008/11/22]
+\RequirePackageWithOptions{geometry}
% \end{macrocode}
%
% \iffalse
@@ -51076,8 +51649,11 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
\LWR@traceinfo{Patching includegraphics.}
\LetLtxMacro\LWR@origincludegraphics\includegraphics
+% \end{macrocode}
-\renewcommand*{\includegraphics}
+% \changes{v0.80}{2020/02/03}{Made robust.}
+% \begin{macrocode}
+\renewrobustcmd*{\includegraphics}
{%
% \end{macrocode}
% This graphic should trigger an \HTML\ paragraph even if alone,
@@ -51641,6 +52217,58 @@ solid {\FancyVerbRuleColor{\LWR@origpound\LWR@tempcolor}} ; % space
%
%
% \iffalse
+%<*hhline>
+% \fi
+%
+% \part{lwarp-hhline.sty}
+%
+% \section{hhline}
+%
+% \credits{David Carlisle}
+%
+% \DescribePackage{hhline}
+% \pkg{hhline} is patched for use by \pkg{lwarp}.
+%
+% Only a rudimentary emulation is provided so far.
+% If the argument contains any \texttt{=} characters, the
+% result is a double \cs{hline}. If none, the result is a
+% single \cs{hline}.
+%
+% \changes{v0.80}{2020/02/04}{\pkg{hhline}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{hhline}[2014/10/28]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newrobustcmd*{\LWR@HTML@hhline}[1]{%
+ \edef\LWR@tempone{\detokenize\expandafter{#1}}%
+ \IfSubStr[1]{\LWR@tempone}{=}{\hline\hline}{\hline}%
+}
+% ^^A or:
+% ^^A \newrobustcmd*{\LWR@HTML@hhline}[1]{\LWR@getmynexttoken}
+
+\AtBeginDocument{\LWR@expandableformatted{hhline}}
+% \end{macrocode}
+%
+%
+% For \brand{MathJax}. A simple \cs{hline} is used.
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\hhline}[1]{\hline}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</hhline>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*hypbmsec>
% \fi
%
@@ -52426,7 +53054,7 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
% \end{noindmacro}
%
% \begin{noindmacro}{\@index}
-% The \HTML\ version of \cs{\@index}:
+% The \HTML\ version of \cs{@index}:
% \begin{macrocode}
\catcode`\_=12%
@@ -53599,6 +54227,44 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
%
%
%
+%
+%
+% \iffalse
+%<*leftidx>
+% \fi
+%
+% \part{lwarp-leftidx.sty}
+%
+% \section{leftidx}
+%
+% \credits{Harald Harders}
+%
+% \DescribePackage{leftidx}
+% \pkg{leftidx} works as-is with \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/10}{\pkg{leftidx}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{leftidx}[2003/09/24]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\leftidx}[3]{{\vphantom{#2}}#1#2#3}}
+\CustomizeMathJax{\newcommand{\ltrans}[1]{\leftidx{^\mathrm{t}}{\!#1}{}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</leftidx>
+% \fi
+%
+%
+%
+%
% \iffalse
%<*letterspace>
% \fi
@@ -55437,12 +56103,131 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
%
%
% \iffalse
+%<*mathcomp>
+% \fi
+%
+% \part{lwarp-mathcomp.sty}
+%
+% \section{mathcomp}
+%
+% \credits{Tilmann B\"o\textup{\textrm{\ss}}}
+%
+% \DescribePackage{mathcomp}
+% \pkg{mathcomp} is supported as-is for \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/09}{\pkg{mathcomp}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{mathcomp}[2001/01/07]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\tcohm}{\mathrm{\Omega}}}
+\CustomizeMathJax{\newcommand{\tccelsius}{\unicode{x2103}}}
+\CustomizeMathJax{\newcommand{\tcmu}{\mathrm{\unicode{x00B5}}}}
+\CustomizeMathJax{\newcommand{\tcperthousand}{\unicode{x2030}}}
+\CustomizeMathJax{\newcommand{\tcpertenthousand}{\unicode{x2031}}}
+\CustomizeMathJax{\newcommand{\tcdegree}{\mathrm{^\circ}}}
+\CustomizeMathJax{\newcommand{\tcdigitoldstyle}[1]{\oldstyle{#1}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</mathcomp>
+% \fi
+%
+%
+%
+%
+% \iffalse
+%<*mathdots>
+% \fi
+%
+% \part{lwarp-mathdots.sty}
+%
+% \section{mathdots}
+%
+% \credits{Dan Luecking}
+%
+% \DescribePackage{mathdots}
+% \pkg{mathdots} is used as-is for \SVG\ math, and
+% emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/16}{\pkg{mathdots}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{mathdots}[2014/06/11]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\iddots}{\unicode{x22F0}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</mathdots>
+% \fi
+%
+%
+%
+%
+% \iffalse
+%<*mathfixs>
+% \fi
+%
+% \part{lwarp-mathfixs.sty}
+%
+% \section{mathfixs}
+%
+% \credits{Niklas Beisert}
+%
+% \DescribePackage{mathfixs}
+% \pkg{mathfixs} is used as-is for \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% Greek letters are unchanged.\watchout
+%
+% \changes{v0.80}{2020/02/09}{\pkg{mathfixs}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{mathfixs}[2018/12/30]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\rfrac}[2]{\tfrac{#1}{#2}}}
+\CustomizeMathJax{\newcommand{\vfrac}[2]{{}^{#1}\!/{}_{#2}}}
+\CustomizeMathJax{\newcommand{\ProvideMathFix}[1]{}}
+\CustomizeMathJax{\newcommand{\mathbold}[1]{\boldsymbol{#1}}}
+\CustomizeMathJax{\newcommand{\.}{\,}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</mathfixs>
+% \fi
+%
+%
+%
+%
+%
+% \iffalse
%<*mathtools>
% \fi
%
% \part{lwarp-mathtools.sty}
%
% \section{mathtools}
+% \label{sec:mathtools}
%
% \credits{Morten Høgholm, Lars Madsen}
%
@@ -55501,6 +56286,8 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
% \changes{v0.79}{2020/01/26}{\pkg{mathtools}: Added \brand{MathJax} emulation.}
% \begin{macrocode}
\begin{warpMathJax}
+\LWR@infoprocessingmathjax{mathtools}
+
\CustomizeMathJax{\newcommand{\mathllap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\mathrlap}[2][]{{#1#2}}}
\CustomizeMathJax{\newcommand{\mathclap}[2][]{{#1#2}}}
@@ -55603,7 +56390,7 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
}
\@onlypreamble\DeclareParedDelimiter
-% (\cs{DeclarePairedDelimiterX} is already defined to use \cs{\DeclarePairedDelimiterXPP}.)
+% (DeclarePairedDelimiterX is already defined to use \DeclarePairedDelimiterXPP.)
% The following does not create a starred version of the macro.
\LetLtxMacro\LWR@mathtools@orig@DeclarePairedDelimiterXPP\DeclarePairedDelimiterXPP
@@ -56975,6 +57762,229 @@ background:
%
%
% \iffalse
+%<*mismath>
+% \fi
+%
+% \part{lwarp-mismath.sty}
+%
+% \section{mismath}
+%
+% \credits{Antoine Missier}
+%
+% \DescribePackage{mismath}
+% \pkg{mismath} is patched for \SVG\ math, and
+% emulated for \brand{MathJax}.
+%
+% \cs{enumber}, \cs{inumber}, \cs{jnumber}, and \cs{pinumber} are
+% \watchout[\brand{MathJax}]
+% ignored for \brand{MathJax}, except that \cs{itpi} is made available as a
+% clone of \cs{pi}.
+%
+% For \brand{MathJax}, \cs{boldvect} and \cs{arrowvect} are honored if
+% in the preamble.
+%
+% If \cs{boldvectcommand} is set to \cs{mathbf} in the preamble,
+% it will be used for \brand{MathJax}, otherwise it will default to \cs{mathit}.
+% \cs{boldvectcommand} may also be set with \cs{CustomizeMathJax} in
+% the preamble. See \cref{sec:limitscustomizemathjax}.
+% Note that as of this writing there is not a bold italic font across all
+% \brand{MathJax} fonts.
+%
+% If \cs{probastyle} is set to \cs{mathbb} in the preamble,
+% it will be used for \brand{MathJax}, otherwise it will default to \cs{mathrm}.
+% \cs{probastyle} may be set with \cs{CustomizeMathJax} in the preamble.
+%
+% If \cs{mathset} is set to \cs{mathbb} in the preamble,
+% it will be used for \brand{MathJax}, otherwise it will default to \cs{mathbf}.
+% \cs{mathset} may be set with \cs{CustomizeMathJax} in the preamble.
+%
+% \changes{v0.80}{2020/02/14}{\pkg{mismath}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{mismath}[2019/12/27]
+% \end{macrocode}
+%
+% For \brand{MathJax}, used in the \HTML\ comment before the environment.
+% \begin{macrocode}
+\ifbool{mathjax}{
+ \RenewEnviron{mathcols}{%
+ \preto\BODY{\begin{aligned}\displaystyle}
+ \appto\BODY{\end{aligned}}
+ \expandafter\(\BODY\)
+ }
+}% mathjax
+% \end{macrocode}
+%
+% For \SVG\ math.
+% The \env{lateximage} restores the original defintion of the \env{math} environment.
+% \begin{macrocode}
+{% svg
+ \renewenvironment{mathcols}{
+ \begin{lateximage}
+ \begin{math}
+ \begin{aligned}\displaystyle
+ }{
+ \end{aligned}%
+ \end{math}
+ \end{lateximage}
+ }
+}% svg
+
+\renewcommand{\changecol}{
+ \end{aligned} \qquad
+ \begin{aligned}\displaystyle
+}
+
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\mathup}[1]{\mathrm{#1}}}
+\CustomizeMathJax{\newcommand{\e}{\mathrm{e}}}
+\CustomizeMathJax{\newcommand{\i}{\mathrm{i}}}
+\CustomizeMathJax{\newcommand{\j}{\mathrm{j}}}
+
+\CustomizeMathJax{\newcommand{\boldvect}{}}
+\CustomizeMathJax{\newcommand{\arrowvect}{}}
+\CustomizeMathJax{\newcommand{\pinumber}[1][]{}}
+\CustomizeMathJax{\newcommand{\hvect}[1]{\vec{\vphantom{h}#1}}}
+\CustomizeMathJax{\newcommand{\hvec}[1]{\vec{\vphantom{t}#1}}}
+\CustomizeMathJax{%
+ \newcommand{\norm}[1]{\left\vert\left\vert#1\right\vert\right\vert}
+}
+\CustomizeMathJax{\newcommand{\di}{\mathop{}\!\mathrm{d}}}
+
+\CustomizeMathJax{\newcommand{\P}{\operatorname{\probastyle{P}}}}
+\CustomizeMathJax{\newcommand{\E}{\operatorname{\probastyle{E}}}}
+\CustomizeMathJax{\newcommand{\V}{\operatorname{\probastyle{V}}}}
+\CustomizeMathJax{\newcommand{\Par}{\unicode{x00B6}}}
+
+\CustomizeMathJax{\newcommand{\adj}{\mathrm{adj}}}
+\CustomizeMathJax{\newcommand{\Aut}{\mathrm{Aut}}}
+\CustomizeMathJax{\newcommand{\Conv}{\mathrm{Conv}}}
+\CustomizeMathJax{\newcommand{\cov}{\mathrm{cov}}}
+\CustomizeMathJax{\newcommand{\Cov}{\mathrm{Cov}}}
+\CustomizeMathJax{\newcommand{curl}{\operatorname{\vect{\mathrm{curl}}}}}
+\CustomizeMathJax{\newcommand{\divg}{\mathrm{div}}}
+\CustomizeMathJax{\newcommand{\End}{\mathrm{End}}}
+
+\CustomizeMathJax{\newcommand{\erf}{\mathrm{erf}}}
+\CustomizeMathJax{\newcommand{grad}{\operatorname{\vect{\mathrm{grad}}}}}
+\CustomizeMathJax{\newcommand{\id}{\mathrm{id}}}
+\CustomizeMathJax{\newcommand{\Id}{\mathrm{Id}}}
+\CustomizeMathJax{\newcommand{\im}{\mathrm{im}}}
+\CustomizeMathJax{\let\oldIm\Im}
+\CustomizeMathJax{\renewcommand{\Im}{\operatorname{Im}}}
+\CustomizeMathJax{\newcommand{\lb}{\mathrm{lb}}}
+\CustomizeMathJax{\newcommand{\lcm}{\mathrm{lcm}}}
+
+\CustomizeMathJax{\newcommand{\rank}{\mathrm{rank}}}
+\CustomizeMathJax{\let\oldRe\Re}
+\CustomizeMathJax{\renewcommand{\Re}{\operatorname{Re}}}
+\CustomizeMathJax{\newcommand{rot}{\operatorname{\vect{\mathrm{rot}}}}}
+\CustomizeMathJax{\newcommand{\sgn}{\mathrm{sgn}}}
+\CustomizeMathJax{\newcommand{\spa}{\mathrm{span}}}
+\CustomizeMathJax{\newcommand{\tr}{\mathrm{tr}}}
+\CustomizeMathJax{\newcommand{\Var}{\mathrm{Var}}}
+\CustomizeMathJax{\newcommand{\Zu}{\mathrm{Z}}}
+
+\CustomizeMathJax{\newcommand{\arccot}{\mathrm{arccot}}}
+\CustomizeMathJax{\newcommand{\sech}{\mathrm{sech}}}
+\CustomizeMathJax{\newcommand{\csch}{\mathrm{csch}}}
+\CustomizeMathJax{\newcommand{\arsinh}{\mathrm{arsinh}}}
+\CustomizeMathJax{\newcommand{\arcosh}{\mathrm{arcosh}}}
+\CustomizeMathJax{\newcommand{\artanh}{\mathrm{artanh}}}
+\CustomizeMathJax{\newcommand{\arcoth}{\mathrm{arcoth}}}
+\CustomizeMathJax{\newcommand{\arsech}{\mathrm{arsech}}}
+\CustomizeMathJax{\newcommand{\arcsch}{\mathrm{arcsch}}}
+
+\CustomizeMathJax{\newcommand{\bigO}{\mathcal{O}}}
+\CustomizeMathJax{\newcommand{\bigo}{\mathrm{O}}}
+\CustomizeMathJax{\newcommand{\lito}{\mathrm{o}}}
+
+\CustomizeMathJax{\newcommand{\R}{\mathset{R}}}
+\CustomizeMathJax{\newcommand{\C}{\mathset{C}}}
+\CustomizeMathJax{\newcommand{\N}{\mathset{N}}}
+\CustomizeMathJax{\newcommand{\Z}{\mathset{Z}}}
+\CustomizeMathJax{\newcommand{\Q}{\mathset{Q}}}
+\CustomizeMathJax{\newcommand{\F}{\mathset{F}}}
+\CustomizeMathJax{\newcommand{\K}{\mathset{K}}}
+
+\CustomizeMathJax{\newcommand{\ds}{\displaystyle}}
+\CustomizeMathJax{\newcommand{\dlim}{\lim\limits}}
+\CustomizeMathJax{\newcommand{\dsum}{\sum\limits}}
+\CustomizeMathJax{\newcommand{\dprod}{\prod\limits}}
+\CustomizeMathJax{\newcommand{\dcup}{\bigcup\limits}}
+\CustomizeMathJax{\newcommand{\dcap}{\bigcap\limits}}
+\CustomizeMathJax{\newcommand{\lbar}{\overline}}
+\CustomizeMathJax{\newcommand{\hlbar}[1]{\overline{\vphantom{h}#1}}}
+\CustomizeMathJax{\newcommand{\eqdef}{\stackrel{\mathrm{def}}{=}}}
+\CustomizeMathJax{\newcommand{\unbr}{\underbrace}}
+\CustomizeMathJax{\newcommand{\iif}{if and only if }}
+
+\CustomizeMathJax{\newcommand{\mul}{\mathord{\times}}}
+\CustomizeMathJax{\newcommand{\then}{\ \Longrightarrow \ \mbox{} }}
+\CustomizeMathJax{\newcommand{\txt}[1]{\quad\text{#1}\quad}}
+\CustomizeMathJax{\newcommand{\paren}[1]{\mathopen{\left(#1\right)}}}
+\CustomizeMathJax{\newcommand{\pow}[2]{\left( #1 \right)^{\!#2}}}
+\CustomizeMathJax{\newcommand{\abs}[1]{\left\vert#1\right\vert}}
+\CustomizeMathJax{\newcommand{\lfrac}[2]{\frac{\:#1\:}{\:#2\:}}}
+
+\CustomizeMathJax{\newenvironment{system}[1][l]%
+ {\left\{\begin{array}{@{.15em}#1@{}}}
+ {\end{array}\right.}
+}
+
+\CustomizeMathJax{\newenvironment{spmatrix}
+ {\left(\begin{smallmatrix}}
+ {\end{smallmatrix}\right)}
+}
+
+\CustomizeMathJax{%
+ \newenvironment{mathcols}
+ {\begin{aligned}\displaystyle}
+ {\end{aligned}}
+}
+\CustomizeMathJax{\newcommand{\changecol}{\end{aligned}\qquad\begin{aligned}}}
+% \end{macrocode}
+%
+% User-adjustable settings, detected if in the preamble.
+% \begin{macrocode}
+\AtBeginDocument{
+\ifdef{\itpi}{
+ \CustomizeMathJax{\let\itpi\pi}
+}{}
+\ifdefstring{\boldvectcommand}{\mathbf}{
+ \CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\mathbf{#1}}}
+}{
+ \CustomizeMathJax{\newcommand{\boldvectcommand}[1]{\boldsymbol{#1}}}
+}
+\ifbool{arrowvect}{
+ \CustomizeMathJax{\newcommand{\vect}[1]{\overrightarrow{#1}}}
+}{
+ \CustomizeMathJax{\newcommand{\vect}[1]{\boldvectcommand{#1}}}
+}
+\ifdefstring{\probastyle}{\mathbb}{
+ \CustomizeMathJax{\newcommand{\probastyle}[1]{\mathbb{#1}}}
+}{
+ \CustomizeMathJax{\newcommand{\probastyle}[1]{\mathrm{#1}}}
+}
+\ifdefstring{\mathset}{\mathbb}{
+ \CustomizeMathJax{\newcommand{\mathset}[1]{\mathbb{#1}}}
+}{
+ \CustomizeMathJax{\newcommand{\mathset}[1]{\mathbf{#1}}}
+}
+}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</mismath>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*morefloats>
% \fi
%
@@ -58095,6 +59105,86 @@ do not attempt to patch lwarp's version of `nameref'.)\MessageBreak
%
%
%
+% \iffalse
+%<*nccmath>
+% \fi
+%
+% \part{lwarp-nccmath.sty}
+%
+% \section{nccmath}
+%
+% \credits{Alexander I. Rozhenko}
+%
+% \DescribePackage{nccmath}
+% \pkg{nccmath} is patched for use by \pkg{lwarp}, and
+% emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/13}{\pkg{nccmath}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{nccmath}[2006/01/20]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\let\LWR@origeqnarray\eqnarray
+\let\LWR@origendeqnarray\endeqnarray
+
+\csletcs{LWR@origeqnarraystar}{eqnarray*}
+\csletcs{LWR@origendeqnarraystar}{endeqnarray*}
+
+\RenewEnviron{eqnarray}
+{%
+
+ \LWR@eqnarrayfactor
+
+}
+
+\RenewEnviron{eqnarray*}
+{%
+
+ \begingroup
+ \csletcs{LWR@origeqnarray}{LWR@origeqnarraystar}
+ \csletcs{LWR@origendeqnarray}{LWR@origendeqnarraystar}
+ \boolfalse{LWR@numbereqnarray}
+ \LWR@eqnarrayfactor
+ \endgroup
+
+}
+
+\def\eqs{%
+ \@ifstar\LWR@nccmath@eqsstar\LWR@nccmath@eqs%
+}
+\newcommand*{\LWR@nccmath@eqsstar}[2][]{\begin{eqnarray*}#2\end{eqnarray*}}
+\newcommand*{\LWR@nccmath@eqs}[2][]{\begin{eqnarray}#2\end{eqnarray}}
+
+\begin{warpMathJax}
+\CustomizeMathJax{\renewcommand{\intertext}[2][]{\\ \text{#2}\notag \\}}
+\CustomizeMathJax{\newenvironment{fleqn}[1][]{}{}}
+\CustomizeMathJax{\newenvironment{ceqn}{}{}}
+\CustomizeMathJax{\newenvironment{darray}[2][c]{\begin{array}[#1]{#2}}{\end{array}}}
+\CustomizeMathJax{\newcommand{\dmulticolumn}[3]{#3}}
+\CustomizeMathJax{\newcommand{\nr}{\\[.5ex]}}
+\CustomizeMathJax{\newcommand{\mrel}[1]{\begin{aligned}#1\end{aligned}}}
+\CustomizeMathJax{\newcommand{\underrel}[2]{{#1}_{#2}}}
+\CustomizeMathJax{\newcommand{\medmath}[1]{#1}}
+\CustomizeMathJax{\newcommand{\medop}[1]{#1}}
+\CustomizeMathJax{\newcommand{\medint}[1]{#1}}
+\CustomizeMathJax{\newcommand{\medintcorr}[1]{#1}}
+\CustomizeMathJax{\newcommand{\mfrac}[2]{\frac{#1}{#2}}}
+\CustomizeMathJax{\newcommand{\mbinom}[2]{\binom{#1}{#2}}}
+\CustomizeMathJax{\newenvironment{mmatrix}{\begin{matrix}}{\end{matrix}}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</nccmath>
+% \fi
+%
+%
+%
+%
%
% \iffalse
%<*needspace>
@@ -58763,6 +59853,40 @@ do not attempt to patch lwarp's version of `nameref'.)\MessageBreak
%
%
% \iffalse
+%<*noitcrul>
+% \fi
+%
+% \part{lwarp-noitcrul.sty}
+%
+% \section{noitcrul}
+%
+% \credits{Paul Ebermann}
+%
+% \DescribePackage{noitcrul}
+% \pkg{noitcrul} is used as-is for \SVG\, and
+% emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/13}{\pkg{noitcrul}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{noitcrul}[2006/04/11]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\noitUnderline}[1]{\underline{#1}\!}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</noitcrul>
+% \fi
+%
+%
+%
+% \iffalse
%<*nomencl>
% \fi
%
@@ -60613,6 +61737,16 @@ do not attempt to patch lwarp's version of `nameref'.)\MessageBreak
\newcommand{\definestyle}[2]{}
% \end{macrocode}
%
+%
+% For \brand{MathJax}:
+% \changes{v0.80}{2020/02/08}{\pkg{pdfcomment}: Added \brand{MathJax} emulation.}
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\pdfmarkupcomment}[3][]{#2}}
+\CustomizeMathJax{\newcommand{\pdftooltip}[3][]{#2}}
+\end{warpMathJax}
+% \end{macrocode}
+%
% \iffalse
%</pdfcomment>
% \fi
@@ -61228,6 +62362,8 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% \begin{macrocode}
% doesn't work with \big, etc:
\begin{warpMathJax}
+\LWR@infoprocessingmathjax{physics}
+
\CustomizeMathJax{\newcommand{\quantity}{}}
\CustomizeMathJax{\let\qty\quantity}
\CustomizeMathJax{\newcommand{\pqty}[1]{\left(#1\right)}}
@@ -62561,7 +63697,8 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% \credits{Donald Arseneau, Bernie Cosell, Matt Swift}
%
% \DescribePackage{relsize}
-% \pkg{relsize} is patched for use by \pkg{lwarp}.
+% \pkg{relsize} is patched for use by \pkg{lwarp}, and
+% emulated for \brand{MathJax}.
%
% \limitsrelsize
%
@@ -62615,6 +63752,17 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
}
% \end{macrocode}
%
+%
+% For \brand{MathJax}:
+% \changes{v0.80}{2020/02/06}{\pkg{relsize}: Added \brand{MathJax} emulation.}
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\mathlarger}[1]{#1}}
+\CustomizeMathJax{\newcommand{\mathsmaller}[1]{#1}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+%
% \iffalse
%</relsize>
% \fi
@@ -62719,6 +63867,43 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
%
%
% \iffalse
+%<*rmathbr>
+% \fi
+%
+% \part{lwarp-rmathbr.sty}
+%
+% \section{rmathbr}
+%
+% \credits{Denis Ryabov}
+%
+% \DescribePackage{rmathbr}
+% \pkg{rmathbr} is used as-is for \SVG\ math, and
+% emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/17}{\pkg{rmathbr}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{rmathbr}[2016/04/10]
+% \end{macrocode}
+%
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\def\*{~}}
+\CustomizeMathJax{\newcommand{\cdott}{\cdot}}
+\CustomizeMathJax{\newcommand{\nobr}{}}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</rmathbr>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*rmpage>
% \fi
%
@@ -64619,6 +65804,8 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% of one single call.)
% \begin{macrocode}
\begin{warpMathJax}
+\LWR@infoprocessingmathjax{siunitx}
+
\CustomizeMathJax{\newcommand{\ang}[2][]{(\mathrm{#2})\degree}}
\CustomizeMathJax{\newcommand{\num}[2][]{\mathrm{#2}}}
\CustomizeMathJax{\newcommand{\si}[2][]{\mathrm{#2}}}
@@ -66014,6 +67201,83 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
%
%
%
+% \iffalse
+%<*subsupscripts>
+% \fi
+%
+% \part{lwarp-subsupscripts.sty}
+%
+% \section{subsupscripts}
+%
+% \credits{Riccardo Bresciani}
+%
+% \DescribePackage{subsupscripts}
+% \pkg{subsupscripts} is used as-is for \SVG\ math, and
+% is emulated for \brand{MathJax}.
+%
+% \changes{v0.80}{2020/02/13}{\pkg{subsupscripts}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackagePass{subsupscripts}[2009/10/27]
+% \end{macrocode}
+%
+% The larger skips are used here.
+% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{%
+ \newcommand{\fourscriptsC}[7]{%
+ {}^{#2}_{#3}\hspace{#6}#1\hspace{#7}{}^{#4}_{#5}%
+ }
+}
+\CustomizeMathJax{%
+ \newcommand{\lrsubscriptsC}[5]{%
+ \fourscriptsC{#1}{}{#2}{}{#3}{#4}{#5}%
+ }
+}
+\CustomizeMathJax{%
+ \newcommand{\lrsuperscriptsC}[5]{%
+ \fourscriptsC{#1}{#2}{}{#3}{}{#4}{#5}%
+ }
+}
+\CustomizeMathJax{%
+ \newcommand{\fourscripts}[5]{%
+ \fourscriptsC{#1}{#2}{#3}{#4}{#5}{0ex}{0ex}%
+ }
+}
+\CustomizeMathJax{%
+ \newcommand{\lrsubscripts}[3]{\fourscripts{#1}{}{#2}{}{#3}}
+}
+\CustomizeMathJax{%
+ \newcommand{\lrsuperscripts}[3]{\fourscripts{#1}{#2}{}{#3}{}}
+}
+\CustomizeMathJax{%
+ \newcommand{\twolscripts}[4][-.16ex]{{}^{#3}_{#4}\hspace{#1}#2}
+}
+\CustomizeMathJax{%
+ \newcommand{\tworscripts}[4][-.07ex]{#2\hspace{#1}{}^{#3}_{#4}}
+}
+\CustomizeMathJax{%
+ \newcommand{\lsubscript}[3][-.16ex]{\twolscripts[#1]{#2}{}{#3}}
+}
+\CustomizeMathJax{%
+ \newcommand{\lsuperscript}[3][-.16ex]{\twolscripts[#1]{#2}{#3}{}}
+}
+\CustomizeMathJax{%
+ \newcommand{\rsubscript}[3][-.07ex]{\tworscripts[#1]{#2}{}{#3}}
+}
+\CustomizeMathJax{%
+ \newcommand{\rsuperscript}[3][-.07ex]{\tworscripts[#1]{#2}{#3}{}}
+}
+\end{warpMathJax}
+% \end{macrocode}
+%
+% \iffalse
+%</subsupscripts>
+% \fi
+%
+%
%
% \iffalse
%<*supertabular>
@@ -69949,6 +71213,7 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% supported by MathJax.
%
% \changes{v0.79}{2020/01/30}{\pkg{unicode-math}: Added.}
+% \changes{v0.80}{2020/02/15}{\pkg{unicode-math}: Improved \brand{MathJax}.}
%
% \codehtml
%
@@ -69956,26 +71221,61 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
\LWR@ProvidesPackagePass{unicode-math}[2019/09/26]
% \end{macrocode}
%
+% ^^A mathvariant may be ony of:
+% ^^A none | [capitalize | uppercase | lowercase ] || full-width || full-size-kana |
+% ^^A math-auto | math-bold | math-italic | math-bold-italic | math-double-struck |
+% ^^A math-bold-fraktur | math-script | math-bold-script | math-fraktur |
+% ^^A math-sans-serif | math-bold-sans-serif | math-sans-serif-italic |
+% ^^A math-sans-serif-bold-italic | math-monospace | math-initial | math-tailed |
+% ^^A math-looped | math-stretched
% \begin{macrocode}
-\begin{warpHTML}
+\begin{warpMathJax}
+\LWR@infoprocessingmathjax{unicode-math}
+
% Not all are possible in MathJax.
-\CustomizeMathJax{\let\symnormal\mathrm}
+\CustomizeMathJax{\let\symnormal\mathit}
\CustomizeMathJax{\let\symliteral\mathrm}
\CustomizeMathJax{\let\symbb\mathbb}
\CustomizeMathJax{\let\symbbit\mathbb}% not italic
\CustomizeMathJax{\let\symcal\mathcal}
\CustomizeMathJax{\let\symscr\mathscr}
\CustomizeMathJax{\let\symfrak\mathfrak}
-\CustomizeMathJax{\let\symsfup\mathsf}% not up
-\CustomizeMathJax{\let\symsfit\mathit}% not sans
-\CustomizeMathJax{\let\symbfsf\mathbf}% not sans
-\CustomizeMathJax{\let\symbfup\mathbf}% not up
-\CustomizeMathJax{\let\symbfit\mathit}% not bold
+\CustomizeMathJax{\let\symsfup\mathsf}
+
+% \CustomizeMathJax{\let\symsfit\mathit}% not sans
+\CustomizeMathJax{\newcommand{\symsfit}[1]{%
+ \mmlToken{mi}[mathvariant="sans-serif-italic"]{#1}}%
+}
+
+% \CustomizeMathJax{\let\symbfsf\mathbf}% not sans
+\CustomizeMathJax{\newcommand{\symbfsf}[1]{%
+ \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}%
+}
+
+\CustomizeMathJax{\let\symbfup\mathbf}
+\CustomizeMathJax{\newcommand{\symbfit}[1]{\boldsymbol{#1}}}
\CustomizeMathJax{\let\symbfcal\mathcal}% not bold
+
\CustomizeMathJax{\let\symbfscr\mathscr}% not bold
+% \CustomizeMathJax{\newcommand{\symbfscr}[1]{
+% \mmlToken{mi}[mathvariant="math-bold-script"]{#1}}
+% }
+
\CustomizeMathJax{\let\symbffrak\mathfrak}% not bold
-\CustomizeMathJax{\let\symbfsfup\mathbf}% not sans
-\CustomizeMathJax{\let\symbfsfit\mathit}% not bold nor sans
+% \CustomizeMathJax{\newcommand{\symbffrak}[1]{%
+% \mmlToken{mi}[mathvariant="math-bold-fraktur"]{#1}}%
+% }
+
+% \CustomizeMathJax{\let\symbfsfup\mathbf}% not sans
+\CustomizeMathJax{\newcommand{\symbfsfup}[1]{%
+ \mmlToken{mi}[mathvariant="bold-sans-serif"]{#1}}%
+}
+
+% \CustomizeMathJax{\let\symbfsfit\mathit}% not bold nor sans
+\CustomizeMathJax{\newcommand{\symbfsfit}[1]{%
+ \mmlToken{mi}[mathvariant="sans-serif-bold-italic"]{#1}}%
+}
+
% Duplicates below are commented out.
\CustomizeMathJax{\let\symup\mathrm}
\CustomizeMathJax{\let\symbf\mathbf}% \symbfup defined above
@@ -69992,7 +71292,7 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% \CustomizeMathJax{\let\symbfscr\mathscr}% not bold
% \CustomizeMathJax{\let\symfrak\mathfrak}
\CustomizeMathJax{\let\symbffrac\mathbffrac}
-\end{warpHTML}
+\end{warpMathJax}
% \end{macrocode}
%
% \iffalse
@@ -70181,26 +71481,30 @@ remember to convert PDF images to SVG using 'lwarpmk pdftosvg *-fig.pdf',
% \pkg{url} is patched for use by \pkg{lwarp}.
%
% \changes{v0.52}{2018/03/29}{\pkg{url}: Added.}
+% \changes{v0.80}{2020/02/06}{\pkg{url}: Creates hyperlinks.}
%
% \codehtml
%
% \begin{macrocode}
+\LetLtxMacro\LWR@url@orig@url\url
+
\LWR@ProvidesPackagePass{url}[2013/09/16]
% \end{macrocode}
-% \pkg{url} uses math mode to print its string inside a group, so the original meaning
-% of math is restored first.
+% ^^A Previously:
+% ^^A \pkg{url} uses math mode to print its string inside a group, so the original meaning
+% ^^A of math is restored first.
+% ^^A \LetLtxMacro\LWR@url@origUrl@FormatString\Url@FormatString
+% ^^A \InlineClass{verbatim}{%
+% ^^A \LWR@restoreorigformatting%
+% ^^A \LWR@url@origUrl@FormatString%
+%
% \begin{macrocode}
-\LetLtxMacro\LWR@url@origUrl@FormatString\Url@FormatString
-
\renewcommand*{\Url@FormatString}{%
- \InlineClass{verbatim}{%
- \LWR@restoreorigformatting%
- \LWR@url@origUrl@FormatString%
- }%
+ \expandafter\LWR@url@orig@url\expandafter{\Url@String}%
}
% \end{macrocode}
-
+%
% \iffalse
%</url>
% \fi
@@ -71960,7 +73264,8 @@ height:\LWR@printlength{\LWR@tempheight}%
%
% \credits{The \LaTeX3 Project}
%
-% \DescribePackage{xfrac} Supported by adding \pkg{xfrac} instances.
+% \DescribePackage{xfrac} Supported by adding \pkg{xfrac} instances,
+% and emulated for \brand{MathJax}.
%
% \codehtml
% \begin{macrocode}
@@ -72111,10 +73416,15 @@ height:\LWR@printlength{\LWR@tempheight}%
% \end{macrocode}
+% For \brand{MathJax}:
+% \changes{v0.80}{2020/02/08}{\pkg{xfrac}: Added \brand{MathJax} emulation.}
% \begin{macrocode}
+\begin{warpMathJax}
+\CustomizeMathJax{\newcommand{\LWRsfrac}[2][/]{{}^\LWRsfracnumerator\!#1{}_{#2}}}
+\CustomizeMathJax{\newcommand{\sfrac}[2][]{\def\LWRsfracnumerator{#2}\LWRsfrac}}
+\end{warpMathJax}
% \end{macrocode}
-
% \begin{macrocode}
\end{warpHTML}
% \end{macrocode}
diff --git a/macros/latex/contrib/lwarp/lwarp.ins b/macros/latex/contrib/lwarp/lwarp.ins
index b251ada07c..5c9f591ed7 100644
--- a/macros/latex/contrib/lwarp/lwarp.ins
+++ b/macros/latex/contrib/lwarp/lwarp.ins
@@ -64,6 +64,7 @@ version 2005/12/01 or later.
\file{lwarp-attachfile.sty}{\from{lwarp.dtx}{attachfile}}
\file{lwarp-attachfile2.sty}{\from{lwarp.dtx}{attachfile2}}
\file{lwarp-authblk.sty}{\from{lwarp.dtx}{authblk}}
+\file{lwarp-autobreak.sty}{\from{lwarp.dtx}{autobreak}}
\file{lwarp-autonum.sty}{\from{lwarp.dtx}{autonum}}
\file{lwarp-awesomebox.sty}{\from{lwarp.dtx}{awesomebox}}
\file{lwarp-axessibility.sty}{\from{lwarp.dtx}{axessibility}}
@@ -96,6 +97,7 @@ version 2005/12/01 or later.
\file{lwarp-canoniclayout.sty}{\from{lwarp.dtx}{canoniclayout}}
\file{lwarp-caption.sty}{\from{lwarp.dtx}{caption}}
\file{lwarp-cases.sty}{\from{lwarp.dtx}{cases}}
+\file{lwarp-centernot.sty}{\from{lwarp.dtx}{centernot}}
\file{lwarp-changebar.sty}{\from{lwarp.dtx}{changebar}}
\file{lwarp-changelayout.sty}{\from{lwarp.dtx}{changelayout}}
\file{lwarp-changepage.sty}{\from{lwarp.dtx}{changepage}}
@@ -153,12 +155,14 @@ version 2005/12/01 or later.
\file{lwarp-eurosym.sty}{\from{lwarp.dtx}{eurosym}}
\file{lwarp-everypage.sty}{\from{lwarp.dtx}{everypage}}
\file{lwarp-everyshi.sty}{\from{lwarp.dtx}{everyshi}}
+\file{lwarp-extarrows.sty}{\from{lwarp.dtx}{extarrows}}
\file{lwarp-extramarks.sty}{\from{lwarp.dtx}{extramarks}}
\file{lwarp-fancybox.sty}{\from{lwarp.dtx}{fancybox}}
\file{lwarp-fancyhdr.sty}{\from{lwarp.dtx}{fancyhdr}}
\file{lwarp-fancyref.sty}{\from{lwarp.dtx}{fancyref}}
\file{lwarp-fancytabs.sty}{\from{lwarp.dtx}{fancytabs}}
\file{lwarp-fancyvrb.sty}{\from{lwarp.dtx}{fancyvrb}}
+\file{lwarp-fewerfloatpages.sty}{\from{lwarp.dtx}{fewerfloatpages}}
\file{lwarp-figcaps.sty}{\from{lwarp.dtx}{figcaps}}
\file{lwarp-figsize.sty}{\from{lwarp.dtx}{figsize}}
\file{lwarp-fitbox.sty}{\from{lwarp.dtx}{fitbox}}
@@ -189,6 +193,7 @@ version 2005/12/01 or later.
\file{lwarp-footnpag.sty}{\from{lwarp.dtx}{footnpag}}
\file{lwarp-foreign.sty}{\from{lwarp.dtx}{foreign}}
\file{lwarp-forest.sty}{\from{lwarp.dtx}{forest}}
+\file{lwarp-fouridx.sty}{\from{lwarp.dtx}{fouridx}}
\file{lwarp-framed.sty}{\from{lwarp.dtx}{framed}}
\file{lwarp-ftcap.sty}{\from{lwarp.dtx}{ftcap}}
\file{lwarp-ftnright.sty}{\from{lwarp.dtx}{ftnright}}
@@ -196,8 +201,10 @@ version 2005/12/01 or later.
\file{lwarp-fullpage.sty}{\from{lwarp.dtx}{fullpage}}
\file{lwarp-fullwidth.sty}{\from{lwarp.dtx}{fullwidth}}
\file{lwarp-fwlw.sty}{\from{lwarp.dtx}{fwlw}}
+\file{lwarp-gensymb.sty}{\from{lwarp.dtx}{gensymb}}
\file{lwarp-gentombow.sty}{\from{lwarp.dtx}{gentombow}}
\file{lwarp-geometry.sty}{\from{lwarp.dtx}{geometry}}
+\file{lwarp-ghsystem.sty}{\from{lwarp.dtx}{ghsystem}}
\file{lwarp-gloss.sty}{\from{lwarp.dtx}{gloss}}
\file{lwarp-glossaries.sty}{\from{lwarp.dtx}{glossaries}}
\file{lwarp-gmeometric.sty}{\from{lwarp.dtx}{gmeometric}}
@@ -209,6 +216,7 @@ version 2005/12/01 or later.
\file{lwarp-gridset.sty}{\from{lwarp.dtx}{gridset}}
\file{lwarp-hang.sty}{\from{lwarp.dtx}{hang}}
\file{lwarp-hanging.sty}{\from{lwarp.dtx}{hanging}}
+\file{lwarp-hhline.sty}{\from{lwarp.dtx}{hhline}}
\file{lwarp-hypbmsec.sty}{\from{lwarp.dtx}{hypbmsec}}
\file{lwarp-hypcap.sty}{\from{lwarp.dtx}{hypcap}}
\file{lwarp-hypdestopt.sty}{\from{lwarp.dtx}{hypdestopt}}
@@ -228,6 +236,7 @@ version 2005/12/01 or later.
\file{lwarp-layout.sty}{\from{lwarp.dtx}{layout}}
\file{lwarp-layouts.sty}{\from{lwarp.dtx}{layouts}}
\file{lwarp-leading.sty}{\from{lwarp.dtx}{leading}}
+\file{lwarp-leftidx.sty}{\from{lwarp.dtx}{leftidx}}
\file{lwarp-letterspace.sty}{\from{lwarp.dtx}{letterspace}}
\file{lwarp-lettrine.sty}{\from{lwarp.dtx}{lettrine}}
\file{lwarp-lineno.sty}{\from{lwarp.dtx}{lineno}}
@@ -254,6 +263,9 @@ version 2005/12/01 or later.
\file{lwarp-marginfix.sty}{\from{lwarp.dtx}{marginfix}}
\file{lwarp-marginnote.sty}{\from{lwarp.dtx}{marginnote}}
\file{lwarp-marvosym.sty}{\from{lwarp.dtx}{marvosym}}
+\file{lwarp-mathcomp.sty}{\from{lwarp.dtx}{mathcomp}}
+\file{lwarp-mathdots.sty}{\from{lwarp.dtx}{mathdots}}
+\file{lwarp-mathfixs.sty}{\from{lwarp.dtx}{mathfixs}}
\file{lwarp-mathtools.sty}{\from{lwarp.dtx}{mathtools}}
\file{lwarp-mcaption.sty}{\from{lwarp.dtx}{mcaption}}
\file{lwarp-mdframed.sty}{\from{lwarp.dtx}{mdframed}}
@@ -267,6 +279,7 @@ version 2005/12/01 or later.
\file{lwarp-midpage.sty}{\from{lwarp.dtx}{midpage}}
\file{lwarp-minibox.sty}{\from{lwarp.dtx}{minibox}}
\file{lwarp-minitoc.sty}{\from{lwarp.dtx}{minitoc}}
+\file{lwarp-mismath.sty}{\from{lwarp.dtx}{mismath}}
\file{lwarp-morefloats.sty}{\from{lwarp.dtx}{morefloats}}
\file{lwarp-moreverb.sty}{\from{lwarp.dtx}{moreverb}}
\file{lwarp-movie15.sty}{\from{lwarp.dtx}{movie15}}
@@ -282,11 +295,13 @@ version 2005/12/01 or later.
\file{lwarp-nameref.sty}{\from{lwarp.dtx}{nameref}}
\file{lwarp-natbib.sty}{\from{lwarp.dtx}{natbib}}
\file{lwarp-nccfancyhdr.sty}{\from{lwarp.dtx}{nccfancyhdr}}
+\file{lwarp-nccmath.sty}{\from{lwarp.dtx}{nccmath}}
\file{lwarp-needspace.sty}{\from{lwarp.dtx}{needspace}}
\file{lwarp-nextpage.sty}{\from{lwarp.dtx}{nextpage}}
\file{lwarp-nfssext-cfr.sty}{\from{lwarp.dtx}{nfssext-cfr}}
\file{lwarp-nicefrac.sty}{\from{lwarp.dtx}{nicefrac}}
\file{lwarp-niceframe.sty}{\from{lwarp.dtx}{niceframe}}
+\file{lwarp-noitcrul.sty}{\from{lwarp.dtx}{noitcrul}}
\file{lwarp-nomencl.sty}{\from{lwarp.dtx}{nomencl}}
\file{lwarp-nonfloat.sty}{\from{lwarp.dtx}{nonfloat}}
\file{lwarp-nonumonpart.sty}{\from{lwarp.dtx}{nonumonpart}}
@@ -352,6 +367,7 @@ version 2005/12/01 or later.
\file{lwarp-relsize.sty}{\from{lwarp.dtx}{relsize}}
\file{lwarp-repeatindex.sty}{\from{lwarp.dtx}{repeatindex}}
\file{lwarp-resizegather.sty}{\from{lwarp.dtx}{resizegather}}
+\file{lwarp-rmathbr.sty}{\from{lwarp.dtx}{rmathbr}}
\file{lwarp-rmpage.sty}{\from{lwarp.dtx}{rmpage}}
\file{lwarp-romanbar.sty}{\from{lwarp.dtx}{romanbar}}
\file{lwarp-romanbarpagenumber.sty}{\from{lwarp.dtx}{romanbarpagenumber}}
@@ -397,6 +413,7 @@ version 2005/12/01 or later.
\file{lwarp-subcaption.sty}{\from{lwarp.dtx}{subcaption}}
\file{lwarp-subfig.sty}{\from{lwarp.dtx}{subfig}}
\file{lwarp-subfigure.sty}{\from{lwarp.dtx}{subfigure}}
+\file{lwarp-subsupscripts.sty}{\from{lwarp.dtx}{subsupscripts}}
\file{lwarp-supertabular.sty}{\from{lwarp.dtx}{supertabular}}
\file{lwarp-svg.sty}{\from{lwarp.dtx}{svg}}
\file{lwarp-syntonly.sty}{\from{lwarp.dtx}{syntonly}}
diff --git a/macros/latex/contrib/lwarp/lwarp.pdf b/macros/latex/contrib/lwarp/lwarp.pdf
index 1f8251c97e..de944bc2ac 100644
--- a/macros/latex/contrib/lwarp/lwarp.pdf
+++ b/macros/latex/contrib/lwarp/lwarp.pdf
Binary files differ
diff --git a/macros/latex/contrib/lwarp/lwarpmk.lua b/macros/latex/contrib/lwarp/lwarpmk.lua
index f90499f916..afa450930a 100755
--- a/macros/latex/contrib/lwarp/lwarpmk.lua
+++ b/macros/latex/contrib/lwarp/lwarpmk.lua
@@ -2,7 +2,7 @@
-- Copyright 2016-2020 Brian Dunn
-printversion = "v0.79"
+printversion = "v0.80"
requiredconfversion = "2" -- also at *lwarpmk.conf
function printhelp ()