summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-26 23:20:37 +0000
committerKarl Berry <karl@freefriends.org>2017-09-26 23:20:37 +0000
commitb482e67a123af24b726b884c6f5ba992e3a37b0b (patch)
treefda79325a3a802526e8d97c7bf851d1a1a76163c /Master/texmf-dist/tex/latex/lwarp/lwarp.sty
parentddbb47b55229a220d99b4e5e630bab06c543149e (diff)
lwarp (26sep17)
git-svn-id: svn://tug.org/texlive/trunk@45406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp.sty525
1 files changed, 171 insertions, 354 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
index 33c49ac4737..09b09364a47 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}
- [2017/09/05 v0.39 Allows LaTeX to directly produce HTML5 output.]
+ [2017/09/25 v0.40 Allows LaTeX to directly produce HTML5 output.]
@@ -200,11 +200,13 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{a4wide}
\LWR@loadafter{a5comb}
\LWR@loadafter{abstract}
+\LWR@loadafter{adjmulticol}
\LWR@loadafter{addlines}
\LWR@loadafter{afterpage}
\LWR@loadafter{algorithmicx}
\LWR@loadafter{alltt}
\LWR@loadafter{amsthm}
+\LWR@loadafter{anonchap}
\LWR@loadafter{anysize}
\LWR@loadafter{appendix}
\LWR@loadafter{arabicfront}
@@ -223,7 +225,9 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{chappg}
\LWR@loadafter{color}
\LWR@loadafter{crop}
+\LWR@loadafter{cuted}
\LWR@loadafter{cutwin}
+\LWR@loadafter{dblfnote}
\LWR@loadafter{dcolumn}
\LWR@loadafter{draftwatermark}
\LWR@loadafter{ebook}
@@ -247,6 +251,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{floatrow}
\LWR@loadafter{flushend}
\LWR@loadafter{fncychap}
+\LWR@loadafter{fnpos}
\LWR@loadafter{ftnright}
\LWR@loadafter{fullpage}
\LWR@loadafter{fullwidth}
@@ -273,6 +278,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{mdframed}
\LWR@loadafter{metalogo}
\LWR@loadafter{microtype}
+\LWR@loadafter{midfloat}
\LWR@loadafter{moreverb}
\LWR@loadafter{mparhack}
\LWR@loadafter{multirow}
@@ -289,8 +295,10 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{parskip}
\LWR@loadafter{pdflscape}
\LWR@loadafter{pdfsync}
+\LWR@loadafter{pfnote}
\LWR@loadafter{placeins}
\LWR@loadafter{prelim2e}
+\LWR@loadafter{quotchap}
\LWR@loadafter{ragged2e}
\LWR@loadafter{realscripts}
\LWR@loadafter{relsize}
@@ -299,6 +307,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{rotating}
\LWR@loadafter{rotfloat}
\LWR@loadafter{savetrees}
+\LWR@loadafter{sectsty}
\LWR@loadafter{setspace}
\LWR@loadafter{shadow}
\LWR@loadafter{showidx}
@@ -307,8 +316,10 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{sidenotes}
\LWR@loadafter{siunitx}
\LWR@loadafter{soul}
+\LWR@loadafter{stabular}
\LWR@loadafter{subfig}
\LWR@loadafter{supertabular}
+\LWR@loadafter{tabls}
\LWR@loadafter{tabularx}
\LWR@loadafter{tabulary}
\LWR@loadafter{textarea}
@@ -456,8 +467,6 @@ top=1in,bottom=1in,%
\RequirePackage{amsmath}
-\RequirePackage{xfrac}
-
\RequirePackage{printlen}
\end{warpHTML}
@@ -678,6 +687,7 @@ top=1in,bottom=1in,%
\let\LWR@origsb\sb
\let\LWR@origtextsuperscript\textsuperscript
\let\LWR@origtextsubscript\textsubscript
+\LetLtxMacro\LWR@origunderline\underline
\let\LWR@origscriptsize\scriptsize
@@ -919,6 +929,11 @@ span.textsf {
span.textcircled { border: 1px solid black ; border-radius: 1ex ; }
+span.underline {
+ text-decoration: underline ;
+ text-decoration-skip ;
+}
+
/* For realscripts */
.supsubscript {
display: inline-block;
@@ -958,7 +973,15 @@ blockquote {
margin-right: 0px ;
}
-blockquote p {
+/* quotchap is for the quotchap package */
+div.quotchap {
+ font-style: oblique ;
+ overflow-x: auto ;
+ margin-left: 2em ;
+ margin-right: 2em ;
+}
+
+blockquote p, div.quotchap p {
line-height: 1.5;
text-align: left ;
font-size: .85em ;
@@ -966,6 +989,20 @@ blockquote p {
margin-right: 3em ;
}
+/* qauthor is for the quotchap package */
+div.qauthor {
+ display: block ;
+ text-align: right ;
+ margin-left: auto ;
+ margin-right: 2em ;
+ font-size: 80% ;
+ font-variant: small-caps;
+}
+
+div.qauthor p {
+ text-align: right ;
+}
+
blockquotation {
margin-left: 0px ;
margin-right: 0px ;
@@ -2600,7 +2637,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-
-- Print the usage of the lwarpmk command:
-printversion = "v0.39"
+printversion = "v0.40"
function printhelp ()
print ("lwarpmk: Use lwarpmk -h or lwarpmk --help for help.") ;
@@ -3496,7 +3533,7 @@ end -- not --version
\renewcommand{\BlockClassSingle}[2]{##2}%
\renewcommand{\LWR@forcenewpage}{}%
\renewcommand{\LWR@itemizestart}{%
- \let\item\LWR@nestspanitem%
+ \let\item\LWR@nestspanitem%
}%
\renewcommand{\LWR@itemizeend}{}%
\renewcommand{\LWR@enumeratestart}{%
@@ -3508,8 +3545,8 @@ end -- not --version
}%
\renewcommand{\LWR@descriptionend}{}%
}% not in a lateximage
-}%
-{%
+}% starting env
+{% ending env
\ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}%
{}%
{\addtocounter{LWR@spandepth}{-1}}%
@@ -3528,11 +3565,13 @@ end -- not --version
}
\NewDocumentCommand{\LWR@htmlspanclass}{o m +m}{%
+\LWR@traceinfo{LWR@htmlspanclass #2}%
\LWR@ensuredoingapar%
\LWR@subhtmlelementclass{span}[#1]{#2}%
\begin{LWR@nestspan}%
#3%
\LWR@htmltagc{/span}%
+\LWR@traceinfo{LWR@htmlspanclass done}%
\end{LWR@nestspan}%
}
@@ -3592,13 +3631,15 @@ end -- not --version
\NewDocumentCommand{\LWR@subhtmlelementclass}{m o m}{%
+\LWR@traceinfo{LWR@subhtmlelementclass #1 #3}%
\IfValueTF{#2}%
{% option
\ifthenelse{\equal{#2}{}}%
- {\LWR@htmltag{#1 class="#3" }}% empty option
- {\LWR@htmltag{#1 class="#3" style="#2" }}% non-empty option
+ {\LWR@htmltag{#1 class="#3"}}% empty option
+ {\LWR@htmltag{#1 class="#3" style="#2"}}% non-empty option
}% option
-{\LWR@htmltag{#1 class="#3" }}% no option
+{\LWR@htmltag{#1 class="#3"}}% no option
+\LWR@traceinfo{LWR@subhtmlelementclass done}%
}
\NewDocumentCommand{\LWR@htmlelementclass}{m o m}{%
@@ -3648,8 +3689,6 @@ end -- not --version
\end{warpHTML}
-
-
\begin{warpHTML}
\NewDocumentEnvironment{BlockClass}{o m}%
{
@@ -4196,6 +4235,8 @@ end -- not --version
\newcounter{LWR@prevFileDepth}
\setcounter{LWR@prevFileDepth}{\LWR@depthsubparagraph}
\def\@seccntformat#1{\csname the#1\endcsname\protect\quad}
+\newcommand*{\simplechapterdelim}{}
+\let\@chapcntformat\@seccntformat
\DeclareDocumentCommand{\LWR@section}{m m m m}{%
\LWR@traceinfo{LWR@section |#2| |#3|}%
\LWR@traceinfo{LWR@section: not an empty section}%
@@ -4231,10 +4272,10 @@ end -- not --version
\LWR@orignewpage%
}% not new file
-\IfValueTF{#3}{%
+\IfValueT{#3}{%
\LWR@traceinfo{LWR@section: about to LWR@setlatestname}%
\IfValueTF{#2}{\LWR@setlatestname{#2}}{\LWR@setlatestname{#3}}%
-}{}%
+}%
\ifbool{HTMLDebugComments}{%
\LWR@htmlcomment{Opening #4 ``#3''{}}%
@@ -4291,7 +4332,11 @@ end -- not --version
\ifthenelse{%
\cnttest{\csuse{LWR@depth#4}}{<=}{\value{secnumdepth}}%
}%
- {\protect\LWR@sectionnumber{\@seccntformat{#4}}}%
+ {%
+ \ifstrequal{#4}{chapter}%
+ {\protect\LWR@sectionnumber{\@chapcntformat{#4}}}%
+ {\protect\LWR@sectionnumber{\@seccntformat{#4}}}%
+ }%
{}%
\LWR@traceinfo{LWR@section: finished print section number}%
}{}%
@@ -4331,6 +4376,8 @@ end -- not --version
\LWR@section{#1}{#2}{#3}{part}%
}
+\let\@printcites\relax% for quotchap package
+
\@ifundefined{chapter}
{}
{%
@@ -4342,6 +4389,7 @@ end -- not --version
\LWR@startnewdepth{\LWR@depthchapter}{\LWR@printclosechapter}%
\LWR@section{#1}{#2}{#3}{chapter}%
+\@printcites% for quotchap package
}
}
@@ -4501,9 +4549,6 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}%
\let\XeTeX\LWR@XeTeX
\let\XeLaTeX\LWR@XeLaTeX
\let\ConTeXt\LWR@ConTeXt
-\LetLtxMacro{\rotatebox}{\LWR@rotatebox}
-\LetLtxMacro{\scalebox}{\LWR@scalebox}
-\let\reflectbox\LWR@reflectbox
\global\boolfalse{LWR@doingapar}
\global\boolfalse{LWR@doingstartpars}
\LWR@traceinfo{LWR@lwarpStart: Starting new file.}
@@ -5455,13 +5500,13 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}%
}%
\LWR@maybenewtablerow%
\LWR@htmltag{td colspan="#3" %
-\IfValueTF{#2}{ % rows?
+\IfValueT{#2}{ % rows?
rowspan="#2" %
\IfValueT{#1}{% vpos?
\ifstrequal{#1}{b}{style="vertical-align:bottom" }{}%
\ifstrequal{#1}{t}{style="vertical-align:top" }{}%
}% vpos?
-}{}% rows?
+}% rows?
class="td%
\LWR@parsemulticolumnalignment{#4}{\LWR@printmccoltype}%
\ifthenelse{\equal{\LWR@getexparray{LWR@midrules}{\theLWR@tablecolspos}}{Y}}{rule}{}%
@@ -5575,16 +5620,38 @@ rowspan="#2" %
}
\end{warpHTML}
\begin{warpall}
-\DeclareExpandableDocumentCommand{\LWR@origmulticolumnrow}{m m O{c} m O{0} m O{0pt} +m}{%
-\multicolumn{#1}{#2}{\@xmultirow[#3]{#4}[#5]{#6}[#7]{#8}}
-}
-
-\newcommand*{\multicolumnrow}{\LWR@origmulticolumnrow}
+\AtBeginDocument{
+\@ifundefined{@xmultirow}
+{}% no version of multirow was loaded
+{% \@xmultirow defined, so some version of multirow was loaded
+\@ifpackageloaded{multirow}{% v2.0 or newer
+\@ifpackagelater{multirow}{2016/09/01}% 2016/09/27 for v2.0
+{% v2.0+:
+\DeclareExpandableDocumentCommand{\LWR@origmulticolumnrow}%
+ {+m +m +O{c} +m +O{0} +m +O{0pt} +m}%
+{\multicolumn{#1}{#2}{\@xmultirow[#3]{#4}[#5]{#6}[#7]{#8}}}%
+}
+{% loaded but older, probably not executed:
+\DeclareExpandableDocumentCommand{\LWR@origmulticolumnrow}%
+ {+m +m +O{c} +m +O{0} +m +O{0pt} +m}%
+{\multicolumn{#1}{#2}{\@xmultirow{#4}[#5]{#6}[#7]{#8}}}%
+}
+}% packageloaded{multirow}
+{% v1.6 or older did not \ProvidePackage
+\DeclareExpandableDocumentCommand{\LWR@origmulticolumnrow}%
+ {+m +m +O{c} +m +O{0} +m +O{0pt} +m}%
+{\multicolumn{#1}{#2}{\@xmultirow{#4}[#5]{#6}[#7]{#8}}}%
+}
+\providecommand*{\multicolumnrow}{\LWR@origmulticolumnrow}
+}% \@xmultirow defined, so multirow was loaded
+}% AtBeginDocument
\end{warpall}
\begin{warpHTML}
\newcommand*{\LWR@donothing}{}
\newcommand*{\LWR@domidrule}{\booltrue{LWR@doinghline}}
\newcommand*{\LWR@dotbrule}{\booltrue{LWR@doingtbrule}}
+\newcommand*{\ldelim}{}
+\newcommand*{\rdelim}{}
\end{warpHTML}
@@ -5618,38 +5685,42 @@ rowspan="#2" %
{%
\LWR@traceinfo{LWR@tabledatacolumntag}%
\let\mynext\LWR@tabledatasinglecolumntag%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\end}}%
-{\booltrue{LWR@exitingtabular}}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\caption}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\multicolumn}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\multirow}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\multicolumnrow}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\mrowcell}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\TabularMacro}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\hline}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\toprule}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\midrule}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\cmidrule}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\specialrule}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\cline}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\bottomrule}}%
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\warpprintonly}}
-{\let\mynext\LWR@donothing}{}%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\warpHTMLonly}}
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\end}%
+ {\booltrue{LWR@exitingtabular}}{}%
+\ifdefequal{\LWR@mynexttoken}{\caption}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\multicolumn}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\multirow}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\multicolumnrow}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\mrowcell}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\TabularMacro}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\hline}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\toprule}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\midrule}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\cmidrule}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\specialrule}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\cline}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\bottomrule}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\warpprintonly}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\warpHTMLonly}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\ldelim}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\rdelim}%
+ {\let\mynext\LWR@donothing}{}%
\mynext%
}
@@ -5670,6 +5741,11 @@ rowspan="#2" %
\newcommand*{\LWR@origaddlinespace}[1][]{}
\newcommand*{\LWR@origmorecmidrules}{}
\newcommand*{\LWR@origspecialrule}[3]{\hline}
+\AtBeginDocument{
+\@ifpackageloaded{lwarp-tabls}
+{\newcommand*{\LWR@hline}[1][]{\LWR@domidrule\LWR@getmynexttoken}}
+{\newcommand*{\LWR@hline}{\LWR@domidrule\LWR@getmynexttoken}}
+}% AtBeginDocument
\StartDefiningTabulars
\newenvironment*{LWR@tabular}[2][]
@@ -5690,8 +5766,7 @@ rowspan="#2" %
\LWR@clearmidrules%
\LetLtxMacro{\\}{\LWR@tabularendofline}%
\LWR@traceinfo{LWR@tabular: redefining macros}%
-\renewcommand*{\hline}{\LWR@domidrule\LWR@getmynexttoken}%
-
+\renewcommand*{\hline}{\LWR@hline}%
\RenewDocumentCommand{\cline}{m}%
{\LWR@docmidrule{##1}\LWR@getmynexttoken}%
@@ -6403,9 +6478,15 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
}
\newcommand*{\LWR@restoreorigformatting}{%
\LWR@traceinfo{LWR@restoreorigformatting}%
+\RenewDocumentCommand{\InlineClass}{o m +m}{##3}%
+\RenewDocumentEnvironment{BlockClass}{o m}{}{}%
+\renewcommand{\BlockClassSingle}[2]{##2}%
\LetLtxMacro{\hspace}{\LWR@orighspace}%
\LetLtxMacro\rule\LWR@origrule%
\let\,\LWR@origcomma% disable HTML short unbreakable space
+\let\textellipsis\LWR@origtextellipsis%
+\let\textless\LWR@origtextless%
+\let\textgreater\LWR@origtextgreater%
\LetLtxMacro{\textrm}{\LWR@origtextrm}%
\LetLtxMacro{\textsf}{\LWR@origtextsf}%
\LetLtxMacro{\texttt}{\LWR@origtexttt}%
@@ -6432,6 +6513,7 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
\let\sb\LWR@origsb%
\let\textsuperscript\LWR@origtextsuperscript%
\let\textsubscript\LWR@origtextsubscript%
+\LetLtxMacro\underline\LWR@origunderline%
\let~\LWR@origtilde%
\let\enskip\LWR@origenskip%
\let\quad\LWR@origquad%
@@ -6447,9 +6529,11 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
\LetLtxMacro\specialrule\LWR@origspecialrule%
\let\newline\LWR@orignewline%
\LetLtxMacro{\raisebox}{\LWR@origraisebox}%
+\LetLtxMacro\includegraphics\LWR@origincludegraphics%
\LetLtxMacro{\scalebox}{\LWR@origscalebox}%
\LetLtxMacro{\rotatebox}{\LWR@origrotatebox}%
\let\reflectbox\LWR@origreflectbox%
+\LetLtxMacro\resizebox\LWR@origresizebox%
\let\framebox\LWR@origframebox%
\let\makebox\LWR@origmakebox%
\let\fbox\LWRprint@fbox%
@@ -6459,6 +6543,10 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
\LetLtxMacro{\minipage}{\LWR@origminipage}%
\let\endminipage\LWR@endminipage%
\LetLtxMacro{\parbox}{\LWR@origparbox}%
+\let\TeX\LWR@origTeX%
+\let\LaTeX\LWR@origLaTeX%
+\let\LaTeXe\LWR@origLaTeXe%
+\renewcommand*{\Xe}{X\textsubscript{E}}%
\LWR@restoreorigaccents%
\LWR@FBcancel%
}
@@ -6974,6 +7062,12 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
}
{}
+\@ifpackageloaded{graphics}
+{
+\LWR@origRequirePackage{lwarp-graphics}
+}
+{}
+
\end{warpHTML}
@@ -6989,297 +7083,11 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
\end{warpHTML}
-\begin{warpHTML}
-
-
-\newcommand*{\thisgraphicspath}{{}}
-\renewcommand*{\graphicspath}[1]{\renewcommand*{\thisgraphicspath}{#1}}
-
-
-\renewcommand*{\DeclareGraphicsExtensions}[1]{}
-\renewcommand*{\DeclareGraphicsRule}[4]{}
-
-
-\renewcommand*{\unitspace}{}
-
-\newlength{\LWR@igwidth}
-\newlength{\LWR@igheight}
-\newcommand*{\LWR@igwidthstyle}{}
-\newcommand*{\LWR@igheightstyle}{}
-\newcommand*{\LWR@igorigin}{}
-\newcommand*{\LWR@igangle}{}
-\newcommand*{\LWR@igxscale}{1}
-\newcommand*{\LWR@igyscale}{1}
-\newcommand*{\LWR@igclass}{inlineimage}
-
-\define@key{igraph}{width}{%
-\setlength{\LWR@igwidth}{#1}%
-\ifthenelse{\lengthtest{\LWR@igwidth > 0pt}}%
-{%
- \uselengthunit{PT}%
- \renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}%
- \IfEndWith{#1}{ex}%
- {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes ex
- {}% not ex
- \IfEndWith{#1}{em}%
- {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes em
- {}% not em
- \IfEndWith{#1}{\%}%
- {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes percent
- {}% not percent
- \IfEndWith{#1}{px}%
- {\renewcommand*{\LWR@igwidthstyle}{width:#1}}% yes px
- {}% not px
-}{}% end of length > 0pt
-}
-\define@key{igraph}{height}{%
-\setlength{\LWR@igheight}{#1}%
-\ifthenelse{\lengthtest{\LWR@igheight > 0pt}}%
-{%
- \uselengthunit{PT}%
- \renewcommand*{\LWR@igheightstyle}{%
- height:\rndprintlength{\LWR@igheight} %
- }%
- \IfEndWith{#1}{ex}%
- {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes ex
- {}% not ex
- \IfEndWith{#1}{em}%
- {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes em
- {}% not em
- \IfEndWith{#1}{\%}%
- {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes percent
- {}% not percent
- \IfEndWith{#1}{px}%
- {\renewcommand*{\LWR@igheightstyle}{height:#1}}% yes px
- {}% not px
-}{}% end of length > 0pt
-}
-\define@key{igraph}{origin}{%
-\renewcommand*{\LWR@igorigin}{#1}%
-}
-\define@key{igraph}{angle}{\renewcommand*{\LWR@igangle}{#1}}
-\define@key{igraph}{class}{\renewcommand*{\LWR@igclass}{#1}}
-
-\define@key{igraph}{scale}{%
-\renewcommand*{\LWR@igxscale}{#1}%
-\renewcommand*{\LWR@igyscale}{#1}}
-\define@key{igraph}{bb}{}
-\define@key{igraph}{bbllx}{}
-\define@key{igraph}{bblly}{}
-\define@key{igraph}{bburx}{}
-\define@key{igraph}{bbury}{}
-\define@key{igraph}{natwidth}{}
-\define@key{igraph}{natheight}{}
-\define@key{igraph}{hiresbb}{}
-\define@key{igraph}{viewport}{}
-\define@key{igraph}{trim}{}
-\define@key{igraph}{totalheight}{}
-\define@key{igraph}{keepaspectratio}{}
-\define@key{igraph}{clip}{}
-\define@key{igraph}{draft}{}
-\define@key{igraph}{type}{}
-\define@key{igraph}{ext}{}
-\define@key{igraph}{read}{}
-\define@key{igraph}{command}{}
-
-\newcommand*{\LWR@rotstyle}[2]{%
- #1transform:rotate(-#2deg);
-}
-
-\newcommand*{\LWR@scalestyle}[3]{%
- #1transform:scale(#2,#3);
-}
-
-
-\newbool{LWR@infloatrow}
-\boolfalse{LWR@infloatrow}
-
-\def\LWR@opacity{1}
-
-\newcommand*{\LWR@imageextension}{}
-\newcommand*{\LWR@expgraphicsfilename}{}
-
-\NewDocumentCommand{\LWR@includegraphicsb}{s o o m}
-{%
-\LWR@origtilde \LWR@orignewline%
-\ifthenelse{\cnttest{\value{LWR@minipagedepth}}{=}{0}}%
-{%
- \ifbool{LWR@infloatrow}%
- {}
- {% not in a minipage or a floatrow:
- \setlength{\linewidth}{6in}%
- \setlength{\textwidth}{6in}%
- \setlength{\textheight}{9in}%
- }%
-}{}%
-\edef\LWR@expgraphicsfilename{#4}
-\renewcommand*{\LWR@imageextension}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.jpg}%
-{\renewcommand*{\LWR@imageextension}{.jpg}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.JPG}%
-{\renewcommand*{\LWR@imageextension}{.JPG}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.png}%
-{\renewcommand*{\LWR@imageextension}{.png}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.PNG}%
-{\renewcommand*{\LWR@imageextension}{.PNG}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.gif}%
-{\renewcommand*{\LWR@imageextension}{.gif}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.GIF}%
-{\renewcommand*{\LWR@imageextension}{.GIF}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.svg}%
-{\renewcommand*{\LWR@imageextension}{.svg}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.SVG}%
-{\renewcommand*{\LWR@imageextension}{.SVG}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.svgz}%
-{\renewcommand*{\LWR@imageextension}{.svgz}}{}%
-\IfFileExists{\detokenize\expandafter\thisgraphicspath\LWR@expgraphicsfilename.SVGZ}%
-{\renewcommand*{\LWR@imageextension}{.SVGZ}}{}%
-\StrSubstitute{\detokenize\expandafter{\LWR@expgraphicsfilename}}%
-{\detokenize{.pdf}}{\detokenize{.svg}}[\LWR@strresult]%
-\StrSubstitute{\LWR@strresult}%
-{\detokenize{.PDF}}{\detokenize{.SVG}}[\LWR@strresult]%
-\large%
-\setlength{\LWR@igwidth}{0pt}%
-\setlength{\LWR@igheight}{0pt}%
-\renewcommand*{\LWR@igwidthstyle}{}%
-\renewcommand*{\LWR@igheightstyle}{}%
-\renewcommand*{\LWR@igorigin}{}%
-\renewcommand*{\LWR@igangle}{}%
-\renewcommand*{\LWR@igxscale}{1}%
-\renewcommand*{\LWR@igyscale}{1}%
-\renewcommand*{\LWR@igclass}{inlineimage}%
-\IfValueTF{#3}{}{%
-\IfValueTF{#2}%
-{\setkeys{igraph}{#2}}%
-{\setkeys{igraph}{}}%
-}%
-\href{\thisgraphicspath\LWR@strresult\LWR@imageextension}%
-{% start of href
-\LWR@htmltag{% start of image tags
-img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
-\LWR@origtilde{} alt="\LWR@strresult" \LWR@orignewline
-\ifthenelse{
- \NOT\equal{\LWR@igwidthstyle}{} \OR
- \NOT\equal{\LWR@igheightstyle}{} \OR
- \NOT\equal{\LWR@igorigin}{} \OR
- \NOT\equal{\LWR@igangle}{} \OR
- \NOT\equal{\LWR@igxscale}{1} \OR
- \NOT\equal{\LWR@igyscale}{1}
-}%
-{\LWR@origtilde{} style="%
-\ifthenelse{\NOT\equal{\LWR@igwidthstyle}{}}%
-{\LWR@igwidthstyle;}{}%
-\ifthenelse{\NOT\equal{\LWR@igheightstyle}{}}%
-{\LWR@igheightstyle;}{}%
-\ifthenelse{\NOT\equal{\LWR@igorigin}{}}%
-{\LWR@origtilde{} transform-origin: \LWR@originnames{\LWR@igorigin}; \LWR@orignewline}{}%
-\ifthenelse{\NOT\equal{\LWR@igangle}{}}%
-{%
-\LWR@rotstyle{-ms-}{\LWR@igangle}%
-\LWR@rotstyle{-webkit-}{\LWR@igangle}%
-\LWR@rotstyle{}{\LWR@igangle%
-}}{}%
-\ifthenelse{\NOT\equal{\LWR@igxscale}{1}\OR%
-\NOT\equal{\LWR@igyscale}{1}}%
-{\LWR@scalestyle{-ms-}{\LWR@igxscale}{\LWR@igyscale}%
-\LWR@scalestyle{-webkit-}{\LWR@igxscale}{\LWR@igyscale}%
-\LWR@scalestyle{}{\LWR@igxscale}{\LWR@igyscale}}{}%
-\ifthenelse{\NOT\equal{\LWR@opacity}{1}}%
-{opacity:\LWR@opacity;}%
-{}%
-" \LWR@orignewline}{}%
-\LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline%
-}% end of image tags
-}% end of href
-\endgroup
-\LWR@origscriptsize
-}
-
-
-
-
-
-\renewcommand*{\includegraphics}
-{%
-\LWR@ensuredoingapar%
-\begingroup%
-\LWR@includegraphicsb%
-}
-
-\end{warpHTML}
\begin{warpprint}
\define@key{Gin}{class}{}
\end{warpprint}
-
-\begin{warpHTML}
-
-\newcommand*{\LWR@rotboxorigin}{}
-\newcommand*{\LWR@originname}[1]{%
-\ifthenelse{\equal{#1}{t}}{top}{}%
-\ifthenelse{\equal{#1}{b}}{bottom}{}%
-\ifthenelse{\equal{#1}{c}}{center}{}%
-\ifthenelse{\equal{#1}{l}}{left}{}%
-\ifthenelse{\equal{#1}{r}}{right}{}%
-}
-\newcommand*{\LWR@originnames}[1]{%
-\StrChar{#1}{1}[\LWR@strresult]%
-\LWR@originname{\LWR@strresult}
-\StrChar{#1}{2}[\LWR@strresult]%
-\LWR@originname{\LWR@strresult}
-}
-\define@key{krotbox}{origin}{%
-\renewcommand*{\LWR@rotboxorigin}{#1}%
-}
-\define@key{krotbox}{x}{}
-\define@key{krotbox}{y}{}
-\define@key{krotbox}{units}{}
-\LetLtxMacro\LWR@origrotatebox\rotatebox
-
-\NewDocumentCommand{\LWR@rotatebox}{O{} m +m}{%
-\renewcommand*{\LWR@rotboxorigin}{}
-\setkeys{krotbox}{#1}%
-\LWR@htmltagc{span style="display: inline-block; %
-\ifthenelse{\NOT\equal{\LWR@rotboxorigin}{}}%
-{transform-origin: \LWR@originnames{\LWR@rotboxorigin};\LWR@origtilde}{}%
-\LWR@rotstyle{-ms-}{#2} %
-\LWR@rotstyle{-webkit-}{#2} %
-\LWR@rotstyle{}{#2} %
-"{}}\LWR@orignewline%
-\begin{LWR@nestspan}%
-#3%
-\LWR@htmltagc{/span}%
-\end{LWR@nestspan}%
-}
-
-\LetLtxMacro\LWR@origscalebox\scalebox
-
-\NewDocumentCommand{\LWR@scalebox}{m o m}{%
-\LWR@htmltagc{span style="display: inline-block; %
-\LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-\LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-\LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-"{}}%
-\begin{LWR@nestspan}%
-#3%
-\LWR@htmltagc{/span}%
-\end{LWR@nestspan}%
-}
-
-\let\LWR@origreflectbox\reflectbox
-
-\newcommand{\LWR@reflectbox}[1]{\LWR@scalebox{-1}[1]{#1}}
-
-\end{warpHTML}
-
-
-\begin{warpHTML}
-
-\renewcommand{\resizebox}[3]{#3}
-
-\end{warpHTML}
-
\begin{warpall}
\AtBeginDocument{
\@ifpackageloaded{xcolor}{
@@ -7496,7 +7304,7 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
\LWR@traceinfo{computed width is \rndprintlength{\LWR@minipagewidth}}
\addtocounter{LWR@minipagedepth}{1}%
\setlength{\LWR@minipageheight}{\textheight}% default unless specified
-\IfValueTF{#2}{\setlength{\LWR@minipageheight}{#2}}{}%
+\IfValueT{#2}{\setlength{\LWR@minipageheight}{#2}}%
\LWR@stoppars%
\LWR@traceinfo{minipage: creating div class}%
\LWR@orignewpage%
@@ -7518,7 +7326,7 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
{width:\rndprintlength{\LWR@minipagewidth} ; }%
}%
\LWR@traceinfo{minipage: about to print the height}%
-\IfValueTF{#2}{height:\rndprintlength{\LWR@minipageheight} ; }{}%
+\IfValueT{#2}{height:\rndprintlength{\LWR@minipageheight} ; }%
"{}}%
\LWR@origminipage{6in}% The preceding empty line is required.
@@ -7615,11 +7423,11 @@ padding:\rndprintlength{\fboxsep}%
\LWR@traceinfo{fminipage #1 #2 #3 #4}%
\LWR@forceminwidth{\fboxrule}%
\setlength{\LWR@tempwidth}{#4}%
-\IfValueTF{#2}{\setlength{\LWR@tempheight}{#2}}{}%
+\IfValueT{#2}{\setlength{\LWR@tempheight}{#2}}%
\begin{BlockClass}[%
\LWR@blackborderpadding ; %
\uselengthunit{PT}%
-\IfValueTF{#2}{height:\rndprintlength{\LWR@tempheight} ; }{}%
+\IfValueT{#2}{height:\rndprintlength{\LWR@tempheight} ; }%
width:\rndprintlength{\LWR@tempwidth}%
]{fminipage}%
}
@@ -7756,8 +7564,9 @@ width:\rndprintlength{\LWR@tempwidth}%
\renewcommand*{\&}{and}%
\renewcommand{\textsuperscript}[1]{##1}%
\renewcommand{\textsubscript}[1]{##1}%
+\LetLtxMacro\underline\LWR@origunderline%
\RenewDocumentCommand{\LWR@htmlspanclass}{o m +m}{##3}%
-\DeclareExpandableDocumentCommand{\InlineClass}{o m +m}{##3}%
+\DeclareExpandableDocumentCommand{\InlineClass}{+o +m +m}{##3}%
}
\renewcommand*{\mdseries}{}
@@ -7792,6 +7601,8 @@ width:\rndprintlength{\LWR@tempwidth}%
\AtBeginDocument{\let\fup\textsuperscript}
+\renewcommand{\underline}[1]{\InlineClass{underline}{#1}}
+
\renewcommand*{\hfill}{\qquad}
\renewcommand*{\hrulefill}{\rule{1in}{1pt}}
@@ -7812,6 +7623,7 @@ width:\rndprintlength{\LWR@tempwidth}%
\let\LWR@origvspace\vspace
\let\LWR@origrule\rule
\let\LWR@origmedskip\medskip
+\let\LWR@origtextellipsis\textellipsis
\renewcommand*{\,}{\HTMLunicode{202f}} % HTML thin non-breakable space
@@ -7946,7 +7758,7 @@ width:\rndprintlength{\LWR@tempwidth}%
background:\LWR@currenttextcolor; %
width:\printlength{\LWR@tempwidth}; %
height:\printlength{\LWR@tempheight}; %
- \IfValueTF{#1}%
+ \IfValueT{#1}%
{%
\setlength{\LWR@tempraise}{0pt-#1}%
\setlength{\LWR@tempraise}{\LWR@tempraise*2}%
@@ -7957,7 +7769,7 @@ width:\rndprintlength{\LWR@tempwidth}%
\LWR@orignewline%
transform: translate(0pt,\printlength{\LWR@tempraise}); %
\LWR@orignewline%
- }{}%
+ }%
display:inline-block;"%
}%
\LWR@htmltagc{/span}%
@@ -7980,14 +7792,20 @@ width:\rndprintlength{\LWR@tempwidth}%
\begin{warpHTML}
+\let\LWR@origTeX\TeX
+
\newcommand*{\LWR@TeX}
{\InlineClass{latexlogofont}%
{\InlineClass{latexlogo}{T\textsubscript{e}X}}}
+\let\LWR@origLaTeX\LaTeX
+
\newcommand*{\LWR@LaTeX}
{\InlineClass{latexlogofont}%
{\InlineClass{latexlogo}%
{L\textsuperscript{a}T\textsubscript{e}X}}}
+\let\LWR@origLaTeXe\LaTeXe
+
\renewcommand*{\LaTeXe}
{\LaTeX\InlineClass{latexlogofont}%
{\,2\textsubscript{\textit{\HTMLunicode{3B5}}}}}
@@ -8036,7 +7854,6 @@ width:\rndprintlength{\LWR@tempwidth}%
\end{warpHTML}
-
\endinput
%%
%% End of file `lwarp.sty'.