summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-13 21:03:22 +0000
committerKarl Berry <karl@freefriends.org>2018-10-13 21:03:22 +0000
commit130fb6350db2aad61eca882f23ed963d1ea31821 (patch)
treed33c7ad0daff3592154ae659e783b5d1c64c87f0 /Master/texmf-dist/tex/latex/lwarp/lwarp.sty
parent206e1efd94e4c3414835af0e2c8266c88ed7dcc9 (diff)
lwarp (13oct18)
git-svn-id: svn://tug.org/texlive/trunk@48904 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.sty255
1 files changed, 160 insertions, 95 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
index 8f664fc5138..38d80c02841 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp.sty
@@ -17,7 +17,8 @@
%% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{lwarp}
- [2018/09/19 v0.60 Allows LaTeX to directly produce HTML5 output.]
+ [2018/10/13 v0.61 Allows LaTeX to directly produce HTML5 output.]
+
@@ -46,7 +47,7 @@
{Lwarp must find the macros pdfmdfivesum or mdfivesum.}
}
-\ifPDFTeX
+\ifPDFTeX% pdflatex or dvi latex
\let\LWR@mdfive\pdfmdfivesum
\fi
@@ -61,7 +62,7 @@
\@ifundefined{mdfivesum}{}
{\let\LWR@mdfive\mdfivesum}
\fi
-\ifPDFTeX
+\ifPDFTeX% pdflatex or dvi latex
\RequirePackage[T1]{fontenc}
\@ifpackageloaded{inputenc}{}{
@@ -74,7 +75,7 @@
\newunicodechar{⨯}{\texttimes}
-\ifPDFTeX
+\ifPDFTeX% pdflatex or dvi latex
\newunicodechar{ff}{ff}% the first arguments are ligatures
\newunicodechar{fi}{fi}
\newunicodechar{fl}{fl}
@@ -102,6 +103,23 @@
\RequirePackage{ifplatform}% sense op-system platform
\RequirePackage{letltxmacro}
+\let\LWRpercent\@percentchar
+\catcode`\$=12
+\def\LWRdollar{$}
+\catcode`\$=3
+\catcode`\&=12
+\def\LWRamp{&}
+\catcode`\&=4
+\catcode`\&=0
+&catcode`&\=12
+&def&LWRbackslash{\}
+&catcode`&\=0
+\catcode`\&=4
+\catcode`\#=12
+\def\LWRhash{#}
+\catcode`\#=6
+\def\LWRopquote{'}
+\def\LWRopseq{\space\LWRamp\LWRamp\space\space}
\newbool{usingOSWindows}
\boolfalse{usingOSWindows}
@@ -113,6 +131,8 @@
{
\booltrue{usingOSWindows}
\renewcommand*{\OSPathSymbol}{\@backslashchar}
+\def\LWRopquote{"}
+\def\LWRopseq{\space\LWRamp\space\space}
}
\ifwindows
\LWR@setOSWindows
@@ -122,6 +142,8 @@
\RequirePackage{kvoptions}
\SetupKeyvalOptions{family=LWR,prefix=LWR@}
+\newcommand{\lwarpsetup}[1]{\setkeys{LWR}{#1}}
+
\newbool{warpingprint}
\newbool{warpingHTML}
\newbool{mathjax}
@@ -181,6 +203,10 @@
\DeclareStringOption[]{HTMLFilename}
+\DeclareStringOption[]{PrintLatexCmd}
+
+\DeclareStringOption[]{HTMLLatexCmd}
+
\DeclareStringOption[]{PrintIndexCmd}
\DeclareStringOption[]{HTMLIndexCmd}
@@ -329,8 +355,9 @@ or is superceded by another package.
For a possible alternative, see package(s) #2.}
}{}%
}
-\LWR@earlyloadnever{ae}{lmodern}
-\LWR@earlyloadnever{aecc}{lmodern}
+\LWR@earlyloadnever{ae}{cm-super, lmodern}
+\LWR@earlyloadnever{aecompl}{cm-super, lmodern}
+\LWR@earlyloadnever{aecc}{cm-super, lmodern}
\LWR@earlyloadnever{boxedminipage}{boxedminipage2e}
\LWR@earlyloadnever{caption2}{caption}
\LWR@earlyloadnever{fancyheadings}{fancyhdr}
@@ -397,10 +424,13 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{chemgreek}
\LWR@loadafter{chemmacros}
\LWR@loadafter{chemnum}
+\LWR@loadafter{chkfloat}
\LWR@loadafter{cite}
+\LWR@loadafter{cmdtrack}
\LWR@loadafter{color}
\LWR@loadafter{colortbl}
\LWR@loadafter{continue}
+\LWR@loadafter{copyrightbox}
\LWR@notmemoirloadafter{crop}
\LWR@loadafter{cuted}
\LWR@loadafter{cutwin}
@@ -408,6 +438,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{dblfnote}
\LWR@notmemoirloadafter{dcolumn}
\LWR@loadafter{diagbox}
+\LWR@loadafter{dprogress}
\LWR@loadafter{draftcopy}
\LWR@loadafter{draftfigure}
\LWR@loadafter{draftwatermark}
@@ -421,6 +452,7 @@ For a possible alternative, see package(s) #2.}
\LWR@notmemoirloadafter{enumerate}
\LWR@loadafter{enumitem}
\LWR@notmemoirloadafter{epigraph}
+\LWR@loadafter{epsfig}
\LWR@loadafter{epstopdf}
\LWR@loadafter{epstopdf-base}
\LWR@loadafter{errata}
@@ -498,6 +530,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{ltxgrid}
\LWR@loadafter{ltxtable}
\LWR@loadafter{lua-check-hyphen}
+\LWR@loadafter{lua-visual-debug}
\LWR@loadafter{luacolor}
\LWR@loadafter{luatodonotes}
\LWR@loadafter{magaz}
@@ -541,6 +574,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{pdfrender}
\LWR@loadafter{pdflscape}
\LWR@loadafter{pdfpages}
+\LWR@loadafter{pdfprivacy}
\LWR@loadafter{pdfsync}
\LWR@loadafter{pdftricks}
\LWR@loadafter{pdfx}
@@ -550,12 +584,16 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{prelim2e}
\LWR@loadafter{prettyref}
\LWR@loadafter{preview}
+\LWR@loadafter{psfrag}
+\LWR@loadafter{psfragx}
\LWR@loadafter{pst-eps}
+\LWR@loadafter{pstool}
\LWR@loadafter{pstricks}
\LWR@loadafter{quotchap}
\LWR@loadafter{quoting}
\LWR@loadafter{ragged2e}
\LWR@loadafter{realscripts}
+\LWR@loadafter{refcheck}
\LWR@loadafter{register}
\LWR@loadafter{relsize}
\LWR@loadafter{repeatindex}
@@ -586,6 +624,8 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{soulpos}
\LWR@loadafter{soulutf8}
\LWR@loadafter{splitidx}
+\LWR@loadafter{srcltx}
+\LWR@loadafter{srctex}
\LWR@loadafter{stabular}
\LWR@loadafter{stfloats}
\LWR@loadafter{subfig}
@@ -599,6 +639,8 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{textfit}
\LWR@loadafter{textpos}
\LWR@loadafter{theorem}
+\LWR@loadafter{thinsp}
+\LWR@loadafter{threadcol}
\LWR@loadafter{threeparttable}
\LWR@loadafter{thumb}
\LWR@loadafter{thumbs}
@@ -617,23 +659,25 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{trimclip}
\LWR@loadafter{trivfloat}
\LWR@loadafter{turnthepage}
-\LWR@loadafter{twoup-gen}
\LWR@loadafter{ulem}
\LWR@loadafter{underscore}
\LWR@loadafter{units}
\LWR@loadafter{upref}
\LWR@loadafter{url}
+\LWR@loadafter{uspace}
\LWR@loadafter{varioref}% no lwarp package provided
\LWR@notmemoirloadafter{verse}
\LWR@loadafter{vertbars}
\LWR@loadafter{vmargin}
\LWR@loadafter{vowel}
+\LWR@loadafter{vpe}
\LWR@loadafter{vwcol}
\LWR@loadafter{wallpaper}
\LWR@loadafter{wasysym}
\LWR@loadafter{watermark}
\LWR@loadafter{widows-and-orphans}
\LWR@loadafter{wrapfig}
+\LWR@loadafter{xbmks}
\LWR@loadafter{xcolor}
\LWR@loadafter{xellipsis}
\LWR@loadafter{xfrac}
@@ -716,8 +760,6 @@ top=1in,bottom=1in,%
\RequirePackage{xifthen}
-\RequirePackage{xstring}
-
\RequirePackage{verbatim}
\RequirePackage{calc}
@@ -731,6 +773,8 @@ top=1in,bottom=1in,%
\begin{warpall}
+\RequirePackage{xstring}
+
\RequirePackage{environ}
\end{warpall}
@@ -813,6 +857,17 @@ top=1in,bottom=1in,%
\LWR@lookforpackagename{7}%
\LWR@lookforpackagename{8}%
\LWR@lookforpackagename{9}%
+\LWR@lookforpackagename{10}%
+\LWR@lookforpackagename{11}%
+\LWR@lookforpackagename{12}%
+\LWR@lookforpackagename{13}%
+\LWR@lookforpackagename{14}%
+\LWR@lookforpackagename{15}%
+\LWR@lookforpackagename{16}%
+\LWR@lookforpackagename{17}%
+\LWR@lookforpackagename{18}%
+\LWR@lookforpackagename{19}%
+\LWR@lookforpackagename{20}%
\IfValueTF{#1}%
{% options given
\IfValueTF{#3}% version given?
@@ -940,7 +995,6 @@ top=1in,bottom=1in,%
\end{warpHTML}
-
\begin{warpall}
\newbool{LWR@tracinglwarp}
@@ -1117,6 +1171,7 @@ top=1in,bottom=1in,%
\chardef\LWR@origpound=`\#
\let\LWR@origcomma\,
\let\LWR@origthinspace\thinspace
+\let\LWR@orignegthinspace\negthinspace
\let\LWR@origtilde~
\let\LWR@origenskip\enskip
\let\LWR@origquad\quad
@@ -1212,7 +1267,7 @@ top=1in,bottom=1in,%
\begin{warpHTML}
\AtBeginDocument{
\LetLtxMacro\LWR@origt\t
-\ifPDFTeX
+\ifPDFTeX% pdflatex or dvi latex
\LetLtxMacro\LWR@origequalaccent\=
\LetLtxMacro\LWR@origdotaccent\.
\LetLtxMacro\LWR@origu\u
@@ -1230,7 +1285,7 @@ top=1in,bottom=1in,%
\fi
\def\LWR@t#1#2{#1\HTMLunicode{0361}#2}
\renewcommand*{\t}[1]{\LWR@t#1}
-\ifPDFTeX
+\ifPDFTeX% pdflatex or dvi latex
\newcommand*{\LWR@restoreorigaccents}{%
\LetLtxMacro\=\LWR@origequalaccent%
\LetLtxMacro\.\LWR@origdotaccent%
@@ -1251,11 +1306,22 @@ top=1in,bottom=1in,%
+
+\excludecomment{LWRwriteconf}
\begin{warpprint}
-\typeout{lwarp: generating configuration files}
+\fullexpandarg%
+\IfSubStr*{\jobname}{-pstool}
+ {
+ \typeout{lwarp: jobname with -pstool is found,}%
+ \typeout{lwarp: \space\space not generating configuration files.}%
+ }
+ {
+ \typeout{lwarp: generating configuration files}
+ \includecomment{LWRwriteconf}
+ }
\end{warpprint}
-\begin{warpprint}
+\begin{LWRwriteconf}
\immediate\openout\LWR@quickfile=\jobname_html.tex
\immediate\write\LWR@quickfile{%
\detokenize{\PassOptionsToPackage}%
@@ -1265,28 +1331,12 @@ top=1in,bottom=1in,%
\detokenize{\input}\string{\jobname.tex\string }%
}
\immediate\closeout\LWR@quickfile
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\newcommand*{\LWR@lwarpconfversion}{1}% also in lwarpmk.lua
-\catcode`\$=12
-\def\LWR@dollarchar{$}
-\catcode`\$=3
-\catcode`\&=12
-\def\LWR@ampersand{&}
-\catcode`\&=4
-\ifbool{usingOSWindows}{
- \def\LWR@opquote{"}
-}{
- \def\LWR@opquote{'}
-}
-\ifbool{usingOSWindows}{
- \def\LWR@opsequence{\LWR@ampersand}
-}{
- \def\LWR@opsequence{\LWR@ampersand\LWR@ampersand}
-}
\ifshellescape
\def\LWR@shellescapecmd{--shell-escape }
\else
@@ -1296,7 +1346,7 @@ top=1in,bottom=1in,%
#1 \LWR@shellescapecmd \jobname#2%
}
\newcommand*{\LWR@addcompilecmd}[2]{%
- \space \LWR@opsequence \space\space
+ \LWRopseq
#1 \jobname#2%
}
\newcommand*{\LWR@unknownengine}{%
@@ -1306,9 +1356,9 @@ top=1in,bottom=1in,%
}
\newcommand*{\LWR@latexmkvar}[2]{%
-e
- \LWR@opquote%
- \LWR@dollarchar #1=q/#2/%
- \LWR@opquote
+ \LWRopquote%
+ \LWRdollar #1=q/#2/%
+ \LWRopquote
}
\newcommand*{\LWR@latexmkcmd}[1]{%
latexmk \space \LWR@shellescapecmd \space #1 \space
@@ -1358,53 +1408,53 @@ top=1in,bottom=1in,%
}
\fi
\fi% \ifpdf
- \def\LWR@printlatexcmd{\LWR@latexcmd \space \jobname}
- \def\LWR@HTMLlatexcmd{\LWR@latexcmd \space \jobname_html}
+ \def\LWR@tempprintlatexcmd{\LWR@latexcmd \space \jobname}
+ \def\LWR@tempHTMLlatexcmd{\LWR@latexcmd \space \jobname_html}
}% latexmk
{% not latexmk
\ifpdf
\ifPDFTeX
- \def\LWR@printlatexcmd{\LWR@compilecmd{pdflatex}{}}
- \def\LWR@HTMLlatexcmd{\LWR@compilecmd{pdflatex}{_html}}
+ \def\LWR@tempprintlatexcmd{\LWR@compilecmd{pdflatex}{}}
+ \def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{pdflatex}{_html}}
\else
\ifLuaTeX
- \def\LWR@printlatexcmd{\LWR@compilecmd{lualatex}{}}
- \def\LWR@HTMLlatexcmd{\LWR@compilecmd{lualatex}{_html}}
+ \def\LWR@tempprintlatexcmd{\LWR@compilecmd{lualatex}{}}
+ \def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{lualatex}{_html}}
\else
\LWR@unknownengine
\fi
\fi
\else% \ifpdf
\ifXeTeX
- \def\LWR@printlatexcmd{\LWR@compilecmd{xelatex}{}}
- \def\LWR@HTMLlatexcmd{\LWR@compilecmd{xelatex}{_html}}
+ \def\LWR@tempprintlatexcmd{\LWR@compilecmd{xelatex}{}}
+ \def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{xelatex}{_html}}
\else
\ifbool{LWR@dvipdfm}{
- \def\LWR@printlatexcmd{%
+ \def\LWR@tempprintlatexcmd{%
\LWR@compilecmd{latex}{}
\LWR@addcompilecmd{dvipdfm}{}
}
- \def\LWR@HTMLlatexcmd{%
+ \def\LWR@tempHTMLlatexcmd{%
\LWR@compilecmd{latex}{_html}
\LWR@addcompilecmd{dvipdfm}{_html}
}
}{
\ifbool{LWR@dvipdfmx}{
- \def\LWR@printlatexcmd{%
+ \def\LWR@tempprintlatexcmd{%
\LWR@compilecmd{latex}{}
\LWR@addcompilecmd{dvipdfmx}{}
}
- \def\LWR@HTMLlatexcmd{%
+ \def\LWR@tempHTMLlatexcmd{%
\LWR@compilecmd{latex}{_html}
\LWR@addcompilecmd{dvipdfmx}{_html}
}
}{% dvips
- \def\LWR@printlatexcmd{%
+ \def\LWR@tempprintlatexcmd{%
\LWR@compilecmd{latex}{}
\LWR@addcompilecmd{dvips}{}
\LWR@addcompilecmd{ps2pdf}{}.ps
}
- \def\LWR@HTMLlatexcmd{%
+ \def\LWR@tempHTMLlatexcmd{%
\LWR@compilecmd{latex}{_html}
\LWR@addcompilecmd{dvips}{_html}
\LWR@addcompilecmd{ps2pdf}{_html}.ps
@@ -1414,7 +1464,13 @@ top=1in,bottom=1in,%
\fi% \ifXeTeX
\fi% \ifpdf
}% latexmk
-\newcommand{\LWR@writeconf}[1]{%
+ \ifdefempty{\LWR@PrintLatexCmd}{
+ \def\LWR@PrintLatexCmd{\LWR@tempprintlatexcmd}
+ }{}
+ \ifdefempty{\LWR@HTMLLatexCmd}{
+ \def\LWR@HTMLLatexCmd{\LWR@tempHTMLlatexcmd}
+ }{}
+\newcommand{\LWR@writeconf}[1]{
\ifcsdef{LWR@quickfile}{}{\newwrite{\LWR@quickfile}}
\immediate\openout\LWR@quickfile=#1
\immediate\write\LWR@quickfile{confversion = [[\LWR@lwarpconfversion]]}
@@ -1427,8 +1483,8 @@ top=1in,bottom=1in,%
\immediate\write\LWR@quickfile{homehtmlfilename = [[\HomeHTMLFilename]]}
\immediate\write\LWR@quickfile{htmlfilename = [[\HTMLFilename]]}
\immediate\write\LWR@quickfile{latexmk = [[\ifbool{LWR@latexmk}{true}{false}]]}
-\immediate\write\LWR@quickfile{printlatexcmd = [[\LWR@printlatexcmd]]}
-\immediate\write\LWR@quickfile{HTMLlatexcmd = [[\LWR@HTMLlatexcmd]]}
+\immediate\write\LWR@quickfile{printlatexcmd = [[\LWR@PrintLatexCmd]]}
+\immediate\write\LWR@quickfile{HTMLlatexcmd = [[\LWR@HTMLLatexCmd]]}
\immediate\write\LWR@quickfile{printindexcmd = [[\LWR@PrintIndexCmd]]}
\immediate\write\LWR@quickfile{HTMLindexcmd = [[\LWR@HTMLIndexCmd]]}
\immediate\write\LWR@quickfile{latexmkindexcmd = [[\LWR@LatexmkIndexCmd]]}
@@ -1438,22 +1494,22 @@ top=1in,bottom=1in,%
}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\AtBeginDocument{\LWR@writeconf{lwarpmk.conf}}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\AtBeginDocument{\LWR@writeconf{\jobname.lwarpmkconf}}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp.css}
/*
CSS stylesheet for the LaTeX lwarp package
@@ -1681,6 +1737,11 @@ div.epigraph p, div.dictum p { padding: .5ex ; margin: 0ex ;}
div.epigraphsource p, div.dictumauthor p { padding: .5ex 0ex 0ex 0ex ; margin: 0ex ;}
div.dictumauthor { font-style:italic }
+/* copyrightbox package */
+div.copyrightbox { margin: .5ex .5em }
+div.copyrightbox p {margin: 0px .5em ; padding: 0px}
+div.copyrightboxnote {text-align: left ; font-size: 60%}
+
/* lettrine package: */
span.lettrine { font-size: 4ex ; float: left ; }
span.lettrinetext { font-variant: small-caps ; }
@@ -1818,6 +1879,7 @@ div.titlepage {
}
.footnotes {
+ text-align: left ;
font-size: .85em ;
margin: 3ex 2em 0ex 2em ;
border-top: 1px solid silver ;
@@ -2272,6 +2334,8 @@ figure.subfigure, figure.subtable {
figcaption .minipage { margin:0 ; padding: 0 }
div.minipage figure { border: none ; box-shadow: none ; }
+div.minipage figure.table { margin: 0ex }
+div.minipage div.footnotes { margin: 1ex 2em 0ex 2em }
div.floatrow { text-align: center; }
@@ -2834,10 +2898,10 @@ nav.botnavigation { display:none; }
nav.botnavigation { display:block }
}
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp_sagebrush.css}
@import url("lwarp.css") ;
@@ -3067,10 +3131,10 @@ nav.sidetoc a:hover {
}
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp_formal.css}
@import url("lwarp.css") ;
@@ -3267,10 +3331,10 @@ nav.botnavigation {
border-top: 1px solid black ;
}
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{sample_project.css}
/* ( --- Start of project.css --- ) */
/* ( --- A sample project-specific CSS file for lwarp --- ) */
@@ -3285,10 +3349,10 @@ nav.botnavigation {
/* ( --- End of project.css --- ) */
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp.ist}
preamble
"\\begin{theindex}
@@ -3310,10 +3374,10 @@ delim_r "} -- \\hyperindexref{"
delim_t "}"
page_compositor "."
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp.xdy}
(require "tex/inputenc/latin.xdy")
(merge-rule "\\PS *" "Postscript")
@@ -3336,9 +3400,9 @@ page_compositor "."
"see"
"seealso"))
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp_one_limage.txt}
@echo off
pdfseparate -f %1 -l %1 %4_html.pdf lateximages\lateximagetemp-%%d.pdf
@@ -3348,10 +3412,10 @@ del lateximages\%3.pdf
del lateximages\lateximagetemp-%1.pdf
exit
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
-\begin{warpprint}
+\begin{LWRwriteconf}
\begin{filecontents*}{lwarp_mathjax.txt}
<!-- https://groups.google.com/forum/#!topic/
mathjax-users/jUtewUcE2bY -->
@@ -3460,7 +3524,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-
-->
\end{filecontents*}
-\end{warpprint}
+\end{LWRwriteconf}
\begin{LWR@createlwarpmk}
@@ -3469,7 +3533,7 @@ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-
-- Copyright 2016-2018 Brian Dunn
-printversion = "v0.60"
+printversion = "v0.61"
requiredconfversion = "1" -- also at *lwarpmk.conf
function printhelp ()
@@ -4448,12 +4512,12 @@ end -- not --version
\begin{warpall}
\newbool{LWR@dynamicmath}
\boolfalse{LWR@dynamicmath}
-\newcommand{\StartDynamicMath}{%
-\LWR@traceinfo{StartDynamicMath}%
+\newcommand{\inlinemathother}{%
+\LWR@traceinfo{inlinemathother}%
\booltrue{LWR@dynamicmath}%
}
-\newcommand{\StopDynamicMath}{%
-\LWR@traceinfo{StopDynamicMath}%
+\newcommand{\inlinemathnormal}{%
+\LWR@traceinfo{inlinemathnormal}%
\boolfalse{LWR@dynamicmath}%
}
\end{warpall}
@@ -5413,7 +5477,7 @@ end -- not --version
\StrSubstitute{\LWR@thisnewfilename}{----}{-}[\LWR@thisnewfilename]
\StrSubstitute{\LWR@thisnewfilename}{---}{-}[\LWR@thisnewfilename]
\StrSubstitute{\LWR@thisnewfilename}{--}{-}[\LWR@thisnewfilename]
-\ifPDFTeX%
+\ifPDFTeX% pdflatex or dvi latex
\ifdefstring{\inputencodingname}{utf8}{%
\StrSubstitute{\LWR@thisnewfilename}{—}{-}[\LWR@thisnewfilename]
\StrSubstitute{\LWR@thisnewfilename}{–}{-}[\LWR@thisnewfilename]
@@ -5520,7 +5584,7 @@ end -- not --version
\LWR@stoppars
-\ifPDFTeX%
+\ifPDFTeX% pdflatex or dvi latex
\ifdefstring{\inputencodingname}{utf8}{%
\LWR@filestart{ — #1}% there is an EMdash in front of the #1
}{
@@ -6685,6 +6749,7 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}%
}
\newcommand*{\LWR@closetabledatacell}{%
+\LWR@stoppars%
\global\booltrue{LWR@intabularmetadata}%
\ifbool{LWR@exitingtabular}{}%
{% not exiting tabular
@@ -8767,7 +8832,7 @@ autopage-\theLWR@currentautosec%
\NewDocumentCommand{\listof}{m +m}{%
\@ifundefined{l@#1}{%
- \csdef{l@#1}[2]{\hypertocfloat{1}{#1}{\@nameuse{ext@#1}}{##1}{##2}}%
+ \csdef{l@#1}##1##2{\hypertocfloat{1}{#1}{\@nameuse{ext@#1}}{##1}{##2}}%
}{}%
\LWR@subtableofcontents{\@nameuse{ext@#1}}{#2}
\expandafter\newwrite\csname tf@\csname ext@#1\endcsname\endcsname
@@ -8945,15 +9010,15 @@ autopage-\theLWR@currentautosec%
}
\newcommand{\LWR@hyperindexrefnullified}{%
-\renewcommand{\emph}[1]{\LWR@HTMLemph{\LWR@doindexentry{##1}}}%
-\renewcommand{\textbf}[1]{\LWR@HTMLtextbf{\LWR@doindexentry{##1}}}%
-\renewcommand{\textrm}[1]{\LWR@HTMLtextrm{\LWR@doindexentry{##1}}}%
-\renewcommand{\textsf}[1]{\LWR@HTMLtextsf{\LWR@doindexentry{##1}}}%
-\renewcommand{\texttt}[1]{\LWR@HTMLtexttt{\LWR@doindexentry{##1}}}%
-\renewcommand{\textup}[1]{\LWR@HTMLtextup{\LWR@doindexentry{##1}}}%
-\renewcommand{\textsc}[1]{\LWR@HTMLtextsc{\LWR@doindexentry{##1}}}%
-\renewcommand{\textit}[1]{\LWR@HTMLtextit{\LWR@doindexentry{##1}}}%
-\renewcommand{\textsl}[1]{\LWR@HTMLtextsl{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\emph}[1]{\LWR@HTMLemph{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textbf}[1]{\LWR@HTMLtextbf{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textrm}[1]{\LWR@HTMLtextrm{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textsf}[1]{\LWR@HTMLtextsf{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\texttt}[1]{\LWR@HTMLtexttt{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textup}[1]{\LWR@HTMLtextup{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textsc}[1]{\LWR@HTMLtextsc{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textit}[1]{\LWR@HTMLtextit{\LWR@doindexentry{##1}}}%
+\renewrobustcmd{\textsl}[1]{\LWR@HTMLtextsl{\LWR@doindexentry{##1}}}%
}
\newcommand{\hyperindexref}[1]{%
@@ -9023,6 +9088,7 @@ autopage-\theLWR@currentautosec%
\let\hfilneg\LWR@orighfilneg%
\let\,\LWR@origcomma% disable HTML short unbreakable space
\let\thinspace\LWR@origthinspace% disable HTML short unbreakable space
+\let\negthinspace\LWR@orignegthinspace% disable HTML negative short unbreakable space
\let\textellipsis\LWR@origtextellipsis%
\let\textless\LWR@origtextless%
\let\textgreater\LWR@origtextgreater%
@@ -10725,14 +10791,13 @@ width:\LWR@printlength{\LWR@tempwidth}%
\begin{warpHTML}
-
-
+\AtBeginDocument{
\renewrobustcmd*{\,}{\HTMLunicode{202f}} % HTML thin non-breakable space
\renewrobustcmd*{\thinspace}{\HTMLunicode{202f}} % HTML thin non-breakable space
-
+\renewrobustcmd*{\negthinspace}{\HTMLunicode{202f}} % HTML thin non-breakable space
\renewrobustcmd*{~}{\HTMLentity{nbsp}}
-
\renewrobustcmd*{\textellipsis}{\HTMLunicode{2026}}
+}
\newrobustcmd*{\LWR@HTML@normalsize}{}
\LWR@formatted{normalsize}