summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-24 22:54:37 +0000
committerKarl Berry <karl@freefriends.org>2019-02-24 22:54:37 +0000
commit01ce171ea65540f0bb89b3cfb83ea45dd7d1235a (patch)
treecdc736435f2179972b4ebc234f4c562cc652ea2d /Master/texmf-dist/tex/latex/lwarp/lwarp.sty
parentef1c4700cc5221b54ed47f9db8fc87201ba87d4e (diff)
lwarp (24feb19)
git-svn-id: svn://tug.org/texlive/trunk@50118 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.sty456
1 files changed, 324 insertions, 132 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
index 6c5a86c3451..e38af279f34 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}
- [2019/02/08 v0.66 Allows LaTeX to directly produce HTML5 output.]
+ [2019/02/23 v0.67 Allows LaTeX to directly produce HTML5 output.]
@@ -162,6 +162,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{a4wide}
\LWR@loadafter{a5comb}
\LWR@notmemoirloadafter{abstract}
+\LWR@loadafter{academicons}
\LWR@loadafter{accsupp}
\LWR@loadafter{acro}
\LWR@loadafter{acronym}
@@ -190,6 +191,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{axodraw2}
\LWR@loadafter{backref}
\LWR@loadafter{balance}
+\LWR@loadafter{bbding}
\LWR@loadafter{bigdelim}
\LWR@loadafter{bigstrut}
\LWR@loadafter{bitpattern}
@@ -213,7 +215,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{cases}
\LWR@loadafter{changebar}
\LWR@notmemoirloadafter{changepage}
-\LWR@notmemoirloadafter{chngpage}
+\LWR@loadafter{changes}
\LWR@loadafter{chappg}
\LWR@loadafter{chapterbib}
\LWR@loadafter{chemfig}
@@ -222,6 +224,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{chemmacros}
\LWR@loadafter{chemnum}
\LWR@loadafter{chkfloat}
+\LWR@notmemoirloadafter{chngpage}
\LWR@loadafter{cite}
\LWR@loadafter{cmdtrack}
\LWR@loadafter{color}
@@ -235,6 +238,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{dblfnote}
\LWR@notmemoirloadafter{dcolumn}
\LWR@loadafter{diagbox}
+\LWR@loadafter{dingbat}
\LWR@loadafter{dprogress}
\LWR@loadafter{draftcopy}
\LWR@loadafter{draftfigure}
@@ -256,6 +260,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{epstopdf-base}
\LWR@loadafter{errata}
\LWR@loadafter{eso-pic}
+\LWR@loadafter{eurosym}
\LWR@loadafter{everypage}
\LWR@loadafter{everyshi}
\LWR@loadafter{extramarks}
@@ -267,6 +272,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{fancyvrb}
\LWR@loadafter{figcaps}
\LWR@loadafter{figsize}
+\LWR@loadafter{fitbox}
\LWR@loadafter{fix2col}
\LWR@loadafter{fixme}
\LWR@loadafter{fixmetodonotes}
@@ -282,11 +288,14 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{fncychap}
\LWR@loadafter{fnlineno}
\LWR@loadafter{fnpos}
+\LWR@loadafter{fontawesome}
+\LWR@loadafter{fontawesome5}
\LWR@loadafter{footmisc}
\LWR@loadafter{footnote}
\LWR@loadafter{footnotehyper}
\LWR@loadafter{footnoterange}
\LWR@loadafter{footnpag}
+\LWR@loadafter{foreign}
\LWR@loadafter{forest}
\LWR@loadafter{framed}
\LWR@loadafter{ftnright}
@@ -297,6 +306,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{gentombow}
\LWR@loadafter{gmeometric}
\LWR@loadafter{glossaries}
+\LWR@loadafter{gloss}
\LWR@loadafter{glossary}
\LWR@loadafter{grffile}
\LWR@loadafter{grid}
@@ -315,6 +325,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{imakeidx}
\LWR@notmemoirloadafter{index}
\LWR@loadafter{intopdf}
+\LWR@loadafter{karnaugh-map}
\LWR@loadafter{keyfloat}
\LWR@loadafter{layaureo}
\LWR@loadafter{layout}
@@ -339,6 +350,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{marginfit}
\LWR@loadafter{marginfix}
\LWR@loadafter{marginnote}
+\LWR@loadafter{marvosym}
\LWR@loadafter{mcaption}
\LWR@loadafter{mdframed}
\LWR@loadafter{memhfixc}
@@ -350,6 +362,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{morefloats}
\LWR@notmemoirloadafter{moreverb}
\LWR@notmemoirloadafter{mparhack}
+\LWR@loadafter{multicap}
\LWR@loadafter{multicolrule}
\LWR@loadafter{multirow}
\LWR@loadafter{multitoc}
@@ -362,9 +375,11 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{newtxmath}
\LWR@notmemoirloadafter{nextpage}
\LWR@loadafter{nicefrac}
+\LWR@loadafter{nomencl}
\LWR@loadafter{nonfloat}
\LWR@loadafter{nonumonpart}
\LWR@loadafter{nopageno}
+\LWR@loadafter{notes}
\LWR@loadafter{notespages}
\LWR@loadafter{nowidow}
\LWR@loadafter{ntheorem}
@@ -388,6 +403,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{pdfx}
\LWR@loadafter{pfnote}
\LWR@loadafter{phfqit}
+\LWR@loadafter{pifont}
\LWR@loadafter{placeins}
\LWR@loadafter{plarray}
\LWR@loadafter{plarydshln}
@@ -449,6 +465,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{srctex}
\LWR@loadafter{stabular}
\LWR@notltjloadafter{stfloats}
+\LWR@loadafter{struktex}
\LWR@loadafter{subcaption}
\LWR@loadafter{subfig}
\LWR@loadafter{subfigure}
@@ -485,6 +502,8 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{truncate}
\LWR@loadafter{turnthepage}
\LWR@loadafter{twoup}
+\LWR@loadafter{typicons}
+\LWR@loadafter{umoline}
\LWR@loadafter{underscore}
\LWR@loadafter{units}
\LWR@loadafter{unitsdef}
@@ -507,6 +526,7 @@ For a possible alternative, see class(es) #2.}
\LWR@loadafter{xcolor}
\LWR@loadafter{xechangebar}
\LWR@loadafter{xellipsis}
+\LWR@loadafter{xfakebold}
\LWR@loadafter{xfrac}
\LWR@loadafter{xltabular}
\LWR@loadafter{xltxtra}
@@ -955,7 +975,7 @@ For a possible alternative, see class(es) #2.}
\end{warpprint}
-\begin{warpHTML}
+\begin{warpall}
\LetLtxMacro\LWR@origRequirePackage\RequirePackage
@@ -963,6 +983,17 @@ For a possible alternative, see class(es) #2.}
\newcommand*{\LWR@parsedrequirepackagenames}{}
+\newcommand*{\LWR@nullifycomment}{%
+ \PackageInfo{lwarp}%
+ {Nullifying the comment environment before loading \LWR@strresulttwo,}%
+ \let\comment\relax%
+ \let\endcomment\relax%
+}
+
+\newcommand*\LWR@findword[3][,]{%
+ \StrBetween[#3,\numexpr#3+1]{#1#2#1}{#1}{#1}%
+}
+
\newcommand*{\LWR@checkloadfilename}[1]{%
\LWR@checkloadnever{#1}{ae}{latinmodern}
\LWR@checkloadnever{#1}{aecc}{latinmodern}
@@ -1002,17 +1033,18 @@ For a possible alternative, see class(es) #2.}
\LWR@checkloadbefore{#1}{zxjatype}
}
-\newcommand*\LWR@findword[3][,]{%
- \StrBetween[#3,\numexpr#3+1]{#1#2#1}{#1}{#1}%
-}
\newcommand*{\LWR@lookforpackagename}[1]{%
\LWR@findword{\LWR@requirepackagenames}{#1}[\LWR@strresult]%
\StrSubstitute[100]{\LWR@strresult}{ }{}[\LWR@strresulttwo]%
\IfStrEq{\LWR@strresulttwo}{}%
{}% no filename
{% yes filename was found
-\LWR@checkloadfilename{\LWR@strresulttwo}%
- \IfFileExists{lwarp-\LWR@strresulttwo.sty}%
+ \ifdefstring{\LWR@strresulttwo}{easyReview}{\LWR@nullifycomment}{}%
+ \ifbool{warpingHTML}{\LWR@checkloadfilename{\LWR@strresulttwo}}{}%
+ \ifboolexpr{
+ bool{warpingHTML} and
+ test{\IfFileExists{lwarp-\LWR@strresulttwo.sty}}
+ }%
{% lwarp-* file found
\ifdefvoid{\LWR@parsedrequirepackagenames}{%
\edef\LWR@parsedrequirepackagenames{lwarp-\LWR@strresulttwo}%
@@ -1033,6 +1065,7 @@ For a possible alternative, see class(es) #2.}
}% no lwarp-* file
}% yes filename
}
+
\RenewDocumentCommand{\RequirePackage}{o m o}{%
\renewcommand*{\LWR@requirepackagenames}{#2}%
\renewcommand*{\LWR@parsedrequirepackagenames}{}%
@@ -1070,6 +1103,10 @@ For a possible alternative, see class(es) #2.}
}
\LetLtxMacro\usepackage\RequirePackage
+\end{warpall}
+
+\begin{warpHTML}
+
\NewDocumentCommand{\LWR@ProvidesPackagePass}{m o}{
\PackageInfo{lwarp}{Using package `#1' and adding lwarp modifications, including options,}%
\IfValueTF{#2}
@@ -1380,6 +1417,7 @@ For a possible alternative, see class(es) #2.}
\let\LWR@origbigskip\bigskip
\let\LWR@origtextellipsis\textellipsis
+\let\LWR@orig@textquotedbl\textquotedbl
\LetLtxMacro\LWR@origrmfamily\rmfamily
\LetLtxMacro\LWR@origsffamily\sffamily
@@ -1961,7 +1999,7 @@ div.copyrightboxnote {text-align: left ; font-size: 60%}
span.lettrine { font-size: 4ex ; float: left ; }
span.lettrinetext { font-variant: small-caps ; }
-/* ulem and soul packages: */
+/* ulem, soul, umoline packages: */
span.uline {
text-decoration: underline ;
text-decoration-skip: auto ;
@@ -1983,6 +2021,11 @@ span.sout {
text-decoration: line-through ;
}
+span.oline {
+ text-decoration: overline ;
+ text-decoration-skip: auto ;
+}
+
span.xout {
text-decoration: line-through ;
}
@@ -2997,6 +3040,24 @@ div.amsthmproof
span.amsthmnoteremark {}
+/* For the notes package: */
+div.notesimportantnote, div.noteswarningnote, div.notesinformationnote {
+ clear: both ;
+ margin: 2ex 2em 2ex 2em ;
+ border: 1px solid silver ;
+}
+
+div.notesicon {
+ float:left ;
+ display: inline-block ;
+ background: gold ;
+ padding: 0ex 1em 0ex 1em ;
+ margin-right: 1em ;
+ font-weight: bold ;
+}
+
+div.notescontents { font-style: italic }
+
/*
For CSS LaTeX and related logos:
Based on spacing demonstrated by the metafont package.
@@ -3756,7 +3817,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-
-- Copyright 2016-2018 Brian Dunn
-printversion = "v0.66"
+printversion = "v0.67"
requiredconfversion = "2" -- also at *lwarpmk.conf
function printhelp ()
@@ -4291,7 +4352,7 @@ end -- createonelateximage
function createlateximages ()
--
--- Create lateximages based on <sourcename>.txt:
+-- Create lateximages based on <sourcename>-images.txt:
--
-- See if the document must be recompiled first:
checklimages ()
@@ -4801,8 +4862,8 @@ end -- not --version
\LWR@sanitize{#1}%
\LWR@traceinfo{about to compare with ??}%
\ifthenelse{\equal{\LWR@sanitized}{??}}%
-{\LWR@traceinfo{found ??}}%
-{\LWR@traceinfo{not found ??}}%
+ {\LWR@traceinfo{found ??}}%
+ {\LWR@traceinfo{not found ??}}%
\LWR@traceinfo{about to compare with zero or empty}%
\ifthenelse{%
\equal{\LWR@sanitized}{0}%
@@ -5558,18 +5619,18 @@ end -- not --version
\boolean{LWR@doingstartpars} \AND%
\cnttest{\value{LWR@lateximagedepth}}{=}{0}%
}%
- {}%
- {\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline}%
+ {}%
+ {\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline}%
\@makefntext{#1}%
\ifthenelse{%
\boolean{LWR@doingstartpars} \AND%
\cnttest{\value{LWR@lateximagedepth}}{=}{0}%
}%
- {\par}%
- {%
- \LWR@htmltagc{/\LWR@tagregularparagraph}%
- \LWR@orignewline%
- }%
+ {\par}%
+ {%
+ \LWR@htmltagc{/\LWR@tagregularparagraph}%
+ \LWR@orignewline%
+ }%
\color@endgroup%
}% vbox
\LWR@ensuredoingapar%
@@ -5597,11 +5658,11 @@ end -- not --version
\ignorespaces#1%
}%
\ifthenelse{\cnttest{\value{LWR@lateximagedepth}}{>}{0}}%
- {}%
- {%
- \LWR@htmltagc{/\LWR@tagregularparagraph}%
- \LWR@orignewline%
- }%
+ {}%
+ {%
+ \LWR@htmltagc{/\LWR@tagregularparagraph}%
+ \LWR@orignewline%
+ }%
\color@endgroup%
}% vbox
\LWR@ensuredoingapar%
@@ -5712,6 +5773,20 @@ end -- not --version
}
}
+\newcommand*{\LWR@simplifycustom}{}
+
+\NewDocumentCommand{\FilenameSimplify}{s m}{%
+\IfBooleanTF{#1}{%
+ \appto{\LWR@simplifycustom}{%
+ \LWR@simplifyname*{#2}%
+ }%
+}{%
+ \appto{\LWR@simplifycustom}{%
+ \LWR@simplifyname{#2}%
+ }%
+}%
+}
+
\newcommand*{\LWR@filenamenoblanks}[1]{%
\begingroup
\LWR@nullfonts%
@@ -5723,8 +5798,6 @@ end -- not --version
\LWR@simplifyname{\textbackslash}
\LWR@simplifyname{\protect}
\LWR@simplifyname{\ }
-\LWR@simplifyname{<}
-\LWR@simplifyname{>}
\LWR@simplifyname{\textless}
\LWR@simplifyname{\textgreater}
\edef\LWR@thisnewfilename{\detokenize\expandafter{\LWR@thisnewfilename}}%
@@ -5748,8 +5821,10 @@ end -- not --version
\LWR@simplifyname*{<}
\LWR@simplifyname*{>}
\LWR@simplifyname{\LWRbackslash}
-\LWR@simplifyname{\LWRleftbrace}
-\LWR@simplifyname{\LWRrightbrace}
+\StrSubstitute{\LWR@thisnewfilename}%
+ {\LWRleftbrace}{}[\LWR@thisnewfilename]%
+\StrSubstitute{\LWR@thisnewfilename}%
+ {\LWRrightbrace}{}[\LWR@thisnewfilename]%
\LWR@simplifyname{\LWRpercent}
\LWR@simplifyname{\LWRdollar}
\LWR@simplifyname*{|}
@@ -5776,6 +5851,7 @@ end -- not --version
\LWR@simplifyname*{-FOR-}
\LWR@simplifyname*{-the-}
\LWR@simplifyname*{-THE-}
+\LWR@simplifycustom%
\LWR@simplifyname*{-----}
\LWR@simplifyname*{----}
\LWR@simplifyname*{---}
@@ -5789,6 +5865,9 @@ end -- not --version
\LWR@simplifyname*{—}
\LWR@simplifyname*{–}
\fi%
+\IfBeginWith{\LWR@thisnewfilename}{\detokenize{-}}{%
+ \StrGobbleLeft{\LWR@thisnewfilename}{1}[\LWR@thisnewfilename]%
+}{}%
\IfEndWith{\LWR@thisnewfilename}{\detokenize{-}}{%
\StrGobbleRight{\LWR@thisnewfilename}{1}[\LWR@thisnewfilename]%
}{}%
@@ -5849,6 +5928,8 @@ end -- not --version
\newcommand*{\CustomizeMathJax}[1]{}
+\NewDocumentCommand{\FilenameSimplify}{s m}{}
+
\end{warpprint}
\begin{warpHTML}
@@ -5871,8 +5952,8 @@ end -- not --version
\LWR@htmlelementend{footer}
}
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}
-{}
-{\ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{}}
+ {}
+ {\ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{}}
\LWR@stoppars
\LWR@htmltag{/body}\LWR@orignewline
@@ -5917,23 +5998,23 @@ end -- not --version
\setcounter{LWR@latestautopage}{\value{page}}%
\LWR@newautopagelabel{LWR@latestautopage}%
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}
-{}
-{\LWR@topnavigation}
+ {}
+ {\LWR@topnavigation}
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}
-{}
-{
- \LWR@htmlelement{header}
+ {}
+ {
+ \LWR@htmlelement{header}
- \LWR@pagetop
+ \LWR@pagetop
- \LWR@htmlelementend{header}
-}
+ \LWR@htmlelementend{header}
+ }
\LWR@htmlelementclass{div}{bodyandsidetoc}
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}
-{}
-{\LWR@sidetoc}
+ {}
+ {\LWR@sidetoc}
\LWR@htmlelementclass{div}{bodycontainer}
\LWR@htmlelementclass{section}{textbody}
@@ -6071,8 +6152,8 @@ end -- not --version
\ifthenelse{%
\cnttest{\@nameuse{LWR@depth#4}}{>=}{\LWR@depthparagraph}%
}%
-{\LWR@startpars}%
-{}%
+ {\LWR@startpars}%
+ {}%
\LWR@traceinfo{LWR@section: about to LWR@createautosec}%
\LWR@createautosec{\@nameuse{LWR@tag#4}}%
\setcounter{LWR@currentautosec}{\value{page}}%
@@ -6131,22 +6212,22 @@ end -- not --version
{\value{secnumdepth}}\) \AND%
\(\cnttest{\@nameuse{LWR@depth#4}}{=}{\LWR@depthpart}\)%
}%
- {\@partnameformat}%
- {}%
+ {\@partnameformat}%
+ {}%
\LWR@traceinfo{LWR@section: about to print section number}%
\ifthenelse{%
\cnttest{\@nameuse{LWR@depth#4}}{<=}{\value{secnumdepth}}%
}%
- {%
- \ifstrequal{#4}{part}%
- {\protect\LWR@sectionnumber{\@partcntformat{#4}}}%
{%
- \ifstrequal{#4}{chapter}%
- {\protect\LWR@sectionnumber{\@chapcntformat{#4}}}%
- {\protect\LWR@sectionnumber{\@seccntformat{#4}}}%
+ \ifstrequal{#4}{part}%
+ {\protect\LWR@sectionnumber{\@partcntformat{#4}}}%
+ {%
+ \ifstrequal{#4}{chapter}%
+ {\protect\LWR@sectionnumber{\@chapcntformat{#4}}}%
+ {\protect\LWR@sectionnumber{\@seccntformat{#4}}}%
+ }%
}%
- }%
- {}%
+ {}%
\LWR@traceinfo{LWR@section: finished print section number}%
}{}%
}% end of not starred
@@ -6161,22 +6242,22 @@ end -- not --version
\ifthenelse{%
\cnttest{\@nameuse{LWR@depth#4}}{<}{\LWR@depthparagraph}%
}%
-{\LWR@startpars}%
-{}%
+ {\LWR@startpars}%
+ {}%
\ifthenelse{%
\NOT\equal{#1}{\BooleanTrue}\OR%
\cnttest{\@nameuse{LWR@depth#4}}{=}{\LWR@depthpart}%
}%
-{% not starred
- \setcounter{LWR@prevFileDepth}{\@nameuse{LWR@depth#4}}%
-}% not starred
-{}%
+ {% not starred
+ \setcounter{LWR@prevFileDepth}{\@nameuse{LWR@depth#4}}%
+ }% not starred
+ {}%
\ifstrempty{#3}%
-{}%
-{%
-\global\boolfalse{LWR@forcinghtmlpage}%
-\global\boolfalse{LWR@forcinghtmltoc}%
-}%
+ {}%
+ {%
+ \global\boolfalse{LWR@forcinghtmlpage}%
+ \global\boolfalse{LWR@forcinghtmltoc}%
+ }%
\LWR@traceinfo{LWR@section: done}%
}
@@ -6343,59 +6424,59 @@ end -- not --version
\edef\theHTMLSection{#1}%
\LWR@htmltag{!DOCTYPE html}\LWR@orignewline
\LWR@htmltag{%
- html lang=\textquotedbl\LWR@currentHTMLLanguage\textquotedbl%
+ html lang=\LWR@orig@textquotedbl\LWR@currentHTMLLanguage\LWR@orig@textquotedbl%
}\LWR@orignewline
\LWR@htmltag{head}\LWR@orignewline
\LWR@htmltag{%
- meta charset=\textquotedbl{}UTF-8\textquotedbl\ /%
+ meta charset=\LWR@orig@textquotedbl{}UTF-8\LWR@orig@textquotedbl\ /%
}\LWR@orignewline
\ifthenelse{\equal{\theHTMLAuthor}{}}%
-{}%
-{%
- \LWR@htmltag{%
- meta name=\textquotedbl{}author\textquotedbl\ % space
- content=\textquotedbl\theHTMLAuthor\textquotedbl\ /%
- }\LWR@orignewline%
-}%
+ {}%
+ {%
+ \LWR@htmltag{%
+ meta name=\LWR@orig@textquotedbl{}author\LWR@orig@textquotedbl\ % space
+ content=\LWR@orig@textquotedbl\theHTMLAuthor\LWR@orig@textquotedbl\ /%
+ }\LWR@orignewline%
+ }%
\LWR@htmltag{%
meta % space
- name=\textquotedbl{}generator\textquotedbl\ % space
- content=\textquotedbl{}LaTeX lwarp package\textquotedbl\ /%
+ name=\LWR@orig@textquotedbl{}generator\LWR@orig@textquotedbl\ % space
+ content=\LWR@orig@textquotedbl{}LaTeX lwarp package\LWR@orig@textquotedbl\ /%
}\LWR@orignewline%
\ifdefempty{\LWR@currentHTMLDescription}{}{%
\LWR@htmltag{%
- meta name=\textquotedbl{}description\textquotedbl\ % space
- content=\textquotedbl\LWR@currentHTMLDescription\textquotedbl\ /%
+ meta name=\LWR@orig@textquotedbl{}description\LWR@orig@textquotedbl\ % space
+ content=\LWR@orig@textquotedbl\LWR@currentHTMLDescription\LWR@orig@textquotedbl\ /%
}\LWR@orignewline
}%
\LWR@htmltag{%
meta % space
- name=\textquotedbl{}viewport\textquotedbl\ % space
- content=\textquotedbl{}width=device-width, initial-scale=1.0\textquotedbl\ /%
+ name=\LWR@orig@textquotedbl{}viewport\LWR@orig@textquotedbl\ % space
+ content=\LWR@orig@textquotedbl{}width=device-width, initial-scale=1.0\LWR@orig@textquotedbl\ /%
}\LWR@orignewline
\LWR@htmltag{!-\/-[if lt IE 9]}\LWR@orignewline
\LWR@htmltag{%
script % space
- src=\textquotedbl{}%
+ src=\LWR@orig@textquotedbl{}%
http://html5shiv.googlecode.com/svn/trunk/html5.js%
- \textquotedbl%
+ \LWR@orig@textquotedbl%
}%
\LWR@htmltag{/script}\LWR@orignewline
\LWR@htmltag{![endif]-\/-}\LWR@orignewline
\ifthenelse{\equal{\theHTMLTitle}{}}%
-{}%
-{%
- \LWR@htmltag{title}%
- \ifdefempty{\theHTMLSection}%
- {\theHTMLTitle}%
- {\theHTMLTitleSection}%
- \LWR@htmltag{/title}\LWR@orignewline%
-}%
+ {}%
+ {%
+ \LWR@htmltag{title}%
+ \ifdefempty{\theHTMLSection}%
+ {\theHTMLTitle}%
+ {\theHTMLTitleSection}%
+ \LWR@htmltag{/title}\LWR@orignewline%
+ }%
\LWR@htmltag{%
link % space
- rel=\textquotedbl{}stylesheet\textquotedbl\ % space
- type=\textquotedbl{}text/css\textquotedbl\ % space
- href=\textquotedbl\LWR@currentcss\textquotedbl\ /%
+ rel=\LWR@orig@textquotedbl{}stylesheet\LWR@orig@textquotedbl\ % space
+ type=\LWR@orig@textquotedbl{}text/css\LWR@orig@textquotedbl\ % space
+ href=\LWR@orig@textquotedbl\LWR@currentcss\LWR@orig@textquotedbl\ /%
}%
\LWR@orignewline
\ifbool{mathjax}%
@@ -6513,10 +6594,10 @@ end -- not --version
\LWR@htmlelementend{footer}
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}
-{}
-{
- \ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{}
-}
+ {}
+ {
+ \ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{}
+ }
\LWR@stoppars% final stop of all paragraphs
\LWR@htmltag{/body}\LWR@orignewline
\LWR@htmltag{/html}\LWR@orignewline
@@ -8825,13 +8906,13 @@ rowspan="#2" %
}%
{%
\ifthenelse{\cnttest{\LWR@lateximagedepthref{#1}}{>}{0}}%
- {%
- \LWR@ImagesName\LWR@lateximagenumberref{#1}%
- }%
- {%
- \LWR@traceinfo{LWR@startref D3}%
- \LWR@print@mbox{\LWR@sanitized}%
- }%
+ {%
+ \LWR@ImagesName\LWR@lateximagenumberref{#1}%
+ }%
+ {%
+ \LWR@traceinfo{LWR@startref D3}%
+ \LWR@print@mbox{\LWR@sanitized}%
+ }%
}%
\LWR@traceinfo{LWR@startref E}%
"}%
@@ -9331,14 +9412,16 @@ autopage-\theLWR@currentautosec%
\NewDocumentCommand{\hypertoc}{m m +m m}{%
\LWR@traceinfo{hypertoc !#1!#2!#3!#4!}%
-\ifthenelse{\cnttest{#1}{<=}{\value{tocdepth}}}{%
- \LWR@startpars%
- \LWR@subhyperrefclass{%
- \LWR@htmlrefsectionfilename{autopage-#4}\LWR@origpound\LWR@print@mbox{autosec-#4}%
- }{#3}{toc#2}%
- \LWR@stoppars%
-}%
-{}%
+\ifthenelse{\cnttest{#1}{<=}{\value{tocdepth}}}%
+ {%
+ \LWR@startpars%
+ \LWR@subhyperrefclass{%
+ \LWR@htmlrefsectionfilename{autopage-#4}%
+ \LWR@origpound\LWR@print@mbox{autosec-#4}%
+ }{#3}{toc#2}%
+ \LWR@stoppars%
+ }%
+ {}%
\LWR@traceinfo{hypertoc done}%
}
@@ -9359,14 +9442,16 @@ autopage-\theLWR@currentautosec%
\setcounter{#3depth}{1}%
}{}%
\LWR@traceinfo{hypertocfloat depth is #1 #3depth is \arabic{#3depth}}%
-\ifthenelse{\cnttest{#1}{<=}{\arabic{#3depth}}}{%
- \LWR@startpars%
- \LWR@subhyperrefclass{%
- \LWR@htmlrefsectionfilename{autopage-\arabic{LWR@nextautopage}}%
- \LWR@origpound\LWR@print@mbox{autoid-\arabic{LWR@nextautoid}}}%
- {#4}{toc#2}%
- \LWR@stoppars%
-}{}%
+\ifthenelse{\cnttest{#1}{<=}{\arabic{#3depth}}}%
+ {%
+ \LWR@startpars%
+ \LWR@subhyperrefclass{%
+ \LWR@htmlrefsectionfilename{autopage-\arabic{LWR@nextautopage}}%
+ \LWR@origpound\LWR@print@mbox{autoid-\arabic{LWR@nextautoid}}}%
+ {#4}{toc#2}%
+ \LWR@stoppars%
+ }%
+ {}%
}
\DeclareDocumentCommand{\l@part}{m m}{\hypertoc{-1}{part}{#1}{#2}}
@@ -9602,6 +9687,15 @@ autopage-\theLWR@currentautosec%
\newbool{LWR@indisplaymathimage}
+\newbool{LWR@xfakebold}
+\boolfalse{LWR@xfakebold}
+
+\newcommand*{\LWR@orig@setBold}{}
+
+\newcommand*{\LWR@orig@unsetBold}{}
+
+\newcommand*{\LWR@applyxfakebold}{}
+
\let\LWR@origtextdollar\$
\renewcommand*{\$}{%
@@ -9662,6 +9756,7 @@ autopage-\theLWR@currentautosec%
}%
{% not in a lateximage
\begingroup%
+\LWR@applyxfakebold%
\ifboolexpr{%
(
bool{mathjax} or
@@ -9766,6 +9861,9 @@ autopage-\theLWR@currentautosec%
\LWR@traceinfo{subsingledollar: static}%
\IfValueTF{#1}{%
\LWR@findcurrenttextcolor% sets \LWR@tempcolor
+ \ifbool{LWR@xfakebold}%
+ {\def\LWR@tempone{Y}}%
+ {\def\LWR@tempone{N}}%
\begin{lateximage}*% use hashing
[#2]% alt
[% addl' hashing
@@ -9774,6 +9872,7 @@ autopage-\theLWR@currentautosec%
SR\LWR@f@series%
SH\LWR@f@shape%
CL\LWR@tempcolor%
+ FB\LWR@tempone% xfakebold
]%
[\LWR@singledollarstyle \LWR@singledollardepthstyle]% CSS
}{%
@@ -9784,6 +9883,7 @@ autopage-\theLWR@currentautosec%
}%
}%
\LWR@addbaselinemarker%
+ \LWR@applyxfakebold%
\usebox{\LWR@singledollarbox}%
\LWR@addbaselinemarker%
\end{lateximage}%
@@ -9826,6 +9926,7 @@ autopage-\theLWR@currentautosec%
\LWR@HTMLsanitize{#1} % extra space
\textbackslash{]}%
]%
+ \LWR@applyxfakebold%
\LWR@origdollar\LWR@origdollar#1\LWR@origdollar\LWR@origdollar%
\end{lateximage}%
\end{BlockClass}%
@@ -9934,11 +10035,11 @@ autopage-\theLWR@currentautosec%
\newcounter{LWR@nextequation}
\newcommand*{\LWR@syncmathjax}{%
\ifcsdef{thechapter}{
-\InlineClass{hidden}{
-\textbackslash(
-\textbackslash{}seteqsection \{\thechapter\}
-\textbackslash)
-}
+ \InlineClass{hidden}{
+ \textbackslash(
+ \textbackslash{}seteqsection \{\thechapter\}
+ \textbackslash)
+ }
}
{}% not using chapters
\ifthenelse{\cnttest{\value{equation}}>0}
@@ -10009,6 +10110,7 @@ autopage-\theLWR@currentautosec%
\LWR@HTMLsanitizeexpand{\detokenize\expandafter{#1}} % extra space
\textbackslash{end\{#2\}}%
]% alt tag
+ \LWR@applyxfakebold%
\@nameuse{LWR@orig#2}%
#1% contents collected by \collect@body
\@nameuse{LWR@origend#2}%
@@ -10158,6 +10260,7 @@ autopage-\theLWR@currentautosec%
\booltrue{LWR@indisplaymathimage}%
\begin{lateximage}[(\LWR@startingequationtag--\LWR@equationtag)
\LWR@addmathjax{eqnarray}{\BODY}]
+ \LWR@applyxfakebold%
\LWR@origeqnarray
\BODY
\LWR@origendeqnarray
@@ -10169,6 +10272,7 @@ autopage-\theLWR@currentautosec%
\LWR@newautoidanchor%
\booltrue{LWR@indisplaymathimage}%
\begin{lateximage}[\LWR@addmathjax{eqnarray*}{\BODY}]
+ \LWR@applyxfakebold%
\LWR@origeqnarray
\BODY
\nonumber
@@ -10967,8 +11071,8 @@ autopage-\theLWR@currentautosec%
\lengthtest{\LWR@atleastonept>0pt}\AND%
\lengthtest{\LWR@atleastonept<1pt}%
}%
-{\setlength{\LWR@atleastonept}{1pt}}%
-{}%
+ {\setlength{\LWR@atleastonept}{1pt}}%
+ {}%
}
\newcommand*{\LWR@fboxstyle}{%
@@ -11207,6 +11311,7 @@ width:\LWR@printlength{\LWR@tempwidth}%
\DeclareRobustCommand{\LWR@null@em}{}
\catcode`\$=\active% redefining $ below
+\catcode`\_=12% redefining \_ below
\newcommand*{\LWR@nullfonts}{%
\LetLtxMacro\emph\LWR@null@emph%
\LetLtxMacro\textmd\LWR@null@textmd%
@@ -11232,13 +11337,93 @@ width:\LWR@printlength{\LWR@tempwidth}%
\LetLtxMacro\itshape\LWR@null@itshape%
\LetLtxMacro\normalfont\LWR@null@normalfont%
\LetLtxMacro\em\LWR@null@em%
+\renewcommand*{\$}{-}%
+\renewcommand*{\%}{-}%
+\renewcommand*{\_}{-}%
+\renewcommand*{\}}{-}%
+\renewcommand*{\{}{-}%
+\renewcommand*{\&}{and}%
+\renewcommand*{\#}{-}%
\renewcommand*{\,}{-}%
\renewcommand*{~}{-}%
-\renewcommand*{\newline}{ }%
+\renewcommand*{\^}[1]{-}%
+\renewcommand*{\~}[1]{-}%
+\renewcommand*{\newline}{-}%
+\renewcommand*{\textasciicircum}{-}%
+\renewcommand*{\textasciitilde}{-}%
+\renewcommand*{\textasteriskcentered}{-}%
+\renewcommand*{\textbackslash}{-}%
+\renewcommand*{\textbar}{-}%
+\renewcommand*{\textbardbl}{-}%
+\renewcommand*{\textbigcircle}{-}%
+\renewcommand*{\textbraceleft}{-}%
+\renewcommand*{\textbraceright}{-}%
+\renewcommand*{\textbullet}{-}%
+\renewcommand*{\textcopyright}{-}%
+\renewcommand*{\textdagger}{-}%
+\renewcommand*{\textdaggerdbl}{-}%
+\renewcommand*{\textdollar}{-}%
\renewcommand*{\textellipsis}{-}%
+\renewcommand*{\textemdash}{-}%
+\renewcommand*{\textendash}{-}%
+\renewcommand*{\textexclamdown}{-}%
+\renewcommand*{\textgreater}{-}%
+\renewcommand*{\textless}{-}%
+\renewcommand*{\textordfeminine}{-}%
+\renewcommand*{\textordmasculine}{-}%
+\renewcommand*{\textparagraph}{-}%
+\renewcommand*{\textperiodcentered}{-}%
+\renewcommand*{\textpertenthousand}{-}%
+\renewcommand*{\textperthousand}{-}%
+\renewcommand*{\textquestiondown}{-}%
+\renewcommand*{\textquotedblleft}{-}%
+\renewcommand*{\textquotedblright}{-}%
+\renewcommand*{\textquoteleft}{-}%
+\renewcommand*{\textquoteright}{-}%
+\renewcommand*{\textregistered}{-}%
+\renewcommand*{\textsection}{-}%
+\renewcommand*{\textsterling}{-}%
+\renewcommand*{\texttrademark}{-}%
+\renewcommand*{\textunderscore}{-}%
+\renewcommand*{\textvisiblespace}{-}%
+\renewcommand*{\copyright}{-}%
+\renewcommand*{\dag}{-}%
+\renewcommand*{\ddag}{-}%
+\renewcommand*{\dots}{-}%
+\renewcommand*{\P}{-}%
+\renewcommand*{\pounds}{-}%
+\renewcommand*{\S}{-}%
+\renewcommand*{\aa}{a}%
+\renewcommand*{\AA}{A}%
+\renewcommand*{\AE}{AE}%
+\renewcommand*{\ae}{ae}%
+\renewcommand*{\dh}{d}%
+\renewcommand*{\DH}{D}%
+\renewcommand*{\DJ}{D}%
+\renewcommand*{\dj}{d}%
+\renewcommand*{\IJ}{IJ}%
+\renewcommand*{\ij}{ij}%
+\renewcommand*{\L}{L}%
+\renewcommand*{\l}{l}%
+\renewcommand*{\NG}{NG}%
+\renewcommand*{\ng}{ng}%
+\renewcommand*{\O}{O}%
+\renewcommand*{\o}{o}%
+\renewcommand*{\oe}{oe}%
+\renewcommand*{\OE}{OE}%
+\renewcommand*{\ss}{ss}%
+\renewcommand*{\SS}{SS}%
+\renewcommand*{\th}{th}%
+\renewcommand*{\TH}{TH}%
+\renewcommand*{\guillemotleft}{}%
+\renewcommand*{\guilsinglleft}{}%
+\renewcommand*{\quotedblbase}{}%
+\renewcommand*{\textquotedbl}{}%
+\renewcommand*{\guillemotright}{}%
+\renewcommand*{\guilsinglright}{}%
+\renewcommand*{\quotesinglbase}{}%
\renewcommand*{\HTMLunicode}[1]{}%
\renewcommand*{\HTMLentity}[1]{}%
-\renewcommand*{\&}{and}%
\renewcommand{\textsuperscript}[1]{##1}%
\renewcommand{\textsubscript}[1]{##1}%
\renewcommand{\underline}[1]{##1}%
@@ -11265,7 +11450,10 @@ width:\LWR@printlength{\LWR@tempwidth}%
\newcommand{\texorpdfstring}[2]{##2}%
}
\catcode`\$=3%
-
+\catcode`\_=8%
+\newcommand*{\FilenameNullify}[1]{%
+ \appto{\LWR@nullfonts}{#1}%
+}
\newcommand*{\LWR@f@family}{rm}
\newcommand*{\LWR@f@series}{md}
@@ -11380,6 +11568,8 @@ width:\LWR@printlength{\LWR@tempwidth}%
\newenvironment*{LWR@blocktextcurrentfont}{}{}
+\newcommand*{\FilenameNullify}[1]{}
+
\end{warpprint}
@@ -11537,20 +11727,22 @@ width:\LWR@printlength{\LWR@tempwidth}%
\renewcommand*{\cleardoublepage}{}
\newcommand*{\LWR@HTML@rule}[3][]{%
\setlength{\LWR@tempwidth}{#2}%
-\ifthenelse{\lengthtest{\LWR@tempwidth=0pt}}
+\ifthenelse{\lengthtest{\LWR@tempwidth=0pt}}%
{}% zero- width
{% non-zero width
\ifthenelse{%
\lengthtest{\LWR@tempwidth>0pt}\AND%
\lengthtest{\LWR@tempwidth<1pt}%
}%
- {\setlength{\LWR@tempwidth}{1pt}}{}%
+ {\setlength{\LWR@tempwidth}{1pt}}%
+ {}%
\setlength{\LWR@tempheight}{#3}%
\ifthenelse{%
\lengthtest{\LWR@tempheight>0pt}\AND%
\lengthtest{\LWR@tempheight<1pt}%
}%
- {\setlength{\LWR@tempheight}{1pt}}{}%
+ {\setlength{\LWR@tempheight}{1pt}}%
+ {}%
\LWR@minipagestoppars%
\LWR@findcurrenttextcolor%
\LWR@htmltagc{%