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.sty50
1 files changed, 34 insertions, 16 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
index 19cbcf8832c..ac519c67010 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}
- [2022/03/16 v0.904a Allows LaTeX to directly produce HTML5 output.]
+ [2022/03/22 v0.905 Allows LaTeX to directly produce HTML5 output.]
@@ -966,6 +966,9 @@
\LWR@origrule{0pt}{1\baselineskip}%
\LWR@orignewline%
}
+\long\def\LWR@thirdofthree#1#2#3{#3}%
+\long\def\LWR@fourthoffour#1#2#3#4{#4}%
+
\long\def\LWR@firstoffive#1#2#3#4#5{#1}
\long\def\LWR@secondoffive#1#2#3#4#5{#2}
\long\def\LWR@thirdoffive#1#2#3#4#5{#3}
@@ -4854,7 +4857,7 @@ MathJax = {
-- Copyright 2016-2022 Brian Dunn
-printversion = "v0.904a"
+printversion = "v0.905"
requiredconfversion = "2" -- also at *lwarpmk.conf
function printhelp ()
@@ -6018,15 +6021,16 @@ end -- not --version
\let\LWR@origampersand\&
-\newrobustcmd*{\LWR@fontfortags}[1]{%
+\newrobustcmd*{\LWR@fontfortags}[2]{%
\ifmmode%
\PackageError{lwarp}%
{%
An HTML tag was generated inside math.\MessageBreak
This should never occur.\MessageBreak
- Something is broken in Lwarp%
+ Something is broken in Lwarp.\MessageBreak
+ Enter `h' for details%
}%
- {(Using #1.)}%
+ {(Using #1{#2}.)}%
\else%
\ifdef{\romanencoding}%
{%
@@ -6045,7 +6049,7 @@ end -- not --version
\newcommand*{\HTMLentity}[1]{%
\begingroup%
\LWR@hook@processingtags%
- \LWR@fontfortags{HTMLentity}%
+ \LWR@fontfortags{HTMLentity}{\detokenize{#1}}%
\protect\LWR@origampersand\LWR@isolate{#1};%
\endgroup%
}
@@ -6419,7 +6423,7 @@ end -- not --version
\LWR@traceinfo{LWR@htmltagc !\detokenize{#1}!}%
\begingroup%
\LWR@hook@processingtags%
- \LWR@fontfortags{LWR@htmltagc}%
+ \LWR@fontfortags{LWR@htmltagc}{\detokenize{#1}}%
\protect\LWR@origtextless%
\LWR@isolate{#1}%
\protect\LWR@origtextgreater%
@@ -6522,7 +6526,7 @@ end -- not --version
\newcommand*{\LWR@htmlopencomment}{%
\begingroup%
\LWR@hook@processingtags%
- \LWR@fontfortags{LWR@htmlopencomment}%
+ \LWR@fontfortags{LWR@htmlopencomment}{}%
\LWR@print@mbox{\LWR@origtextless{}!-\/-}%
\endgroup%
}
@@ -6530,7 +6534,7 @@ end -- not --version
\newcommand*{\LWR@htmlclosecomment}{%
\begingroup%
\LWR@hook@processingtags%
- \LWR@fontfortags{LWr@htmlclosecomment}%
+ \LWR@fontfortags{LWr@htmlclosecomment}{}%
\LWR@print@mbox{-\/-\LWR@origtextgreater}%
\endgroup%
}
@@ -11408,7 +11412,8 @@ end -- not --version
\LWR@traceinfo{LWR@myshorttoc: loading}%
\begingroup%
\makeatletter%
- \LWR@disablepinyin%
+ \LetLtxMacro\ref\LWR@print@ref%
+ \LWR@disablepinyin%
\@input{\jobname.#1}%
\endgroup%
}%
@@ -11438,7 +11443,7 @@ end -- not --version
\boolfalse{LWR@copiedsidetoc}
\AtBeginDocument{
-\let\LWR@origtableofcontents\tableofcontents
+\LetLtxMacro\LWR@origtableofcontents\tableofcontents
\renewcommand*{\tableofcontents}{%
\ifboolexpr{bool{FormatWP} and bool{WPMarkTOC}}{
@@ -11452,7 +11457,11 @@ end -- not --version
\booltrue{LWR@copiedsidetoc}%
}%
\LWR@printpendingfootnotes
- \LWR@origtableofcontents
+ \begingroup%
+ \LetLtxMacro\ref\LWR@print@ref%
+ \LWR@disablepinyin%
+ \LWR@origtableofcontents%
+ \endgroup%
}
}% \tableofcontents
@@ -11468,7 +11477,11 @@ end -- not --version
}
{
\LWR@printpendingfootnotes
- \LWR@origlistoffigures
+ \begingroup%
+ \LetLtxMacro\ref\LWR@print@ref%
+ \LWR@disablepinyin%
+ \LWR@origlistoffigures%
+ \endgroup%
}
}
@@ -11482,7 +11495,11 @@ end -- not --version
}
{
\LWR@printpendingfootnotes
- \LWR@origlistoftables
+ \begingroup%
+ \LetLtxMacro\ref\LWR@print@ref%
+ \LWR@disablepinyin%
+ \LWR@origlistoftables%
+ \endgroup%
}
}
@@ -11712,9 +11729,9 @@ end -- not --version
\def\LWR@tempone{#1}%
}%
\addtocounter{LWR@autoindex}{1}%
- \label{LWRindex-\arabic{LWR@autoindex}}%
\protected@write\@indexfile{}%
- {\string\indexentry{\LWR@tempone}{\arabic{LWR@autoindex}}}%
+{\string\indexentry{\LWR@tempone}{\arabic{LWR@autoindex}}}%
+ \label{LWRindex-\arabic{LWR@autoindex}}%
\endgroup%
\@esphack%
}
@@ -14582,6 +14599,7 @@ color:\LWR@origpound\LWR@tempcolor%
\AfterEndPreamble{\LWR@LwarpStart}
\AtEndDocument{\LWR@LwarpEnd}
+\DeclareHookRule{enddocument}{lwarp}{after}{legacy}
\end{warpHTML}