summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/lwarp
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/source/latex/lwarp
parentddbb47b55229a220d99b4e5e630bab06c543149e (diff)
lwarp (26sep17)
git-svn-id: svn://tug.org/texlive/trunk@45406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/lwarp')
-rw-r--r--Master/texmf-dist/source/latex/lwarp/lwarp.dtx3097
-rw-r--r--Master/texmf-dist/source/latex/lwarp/lwarp.ins11
2 files changed, 2010 insertions, 1098 deletions
diff --git a/Master/texmf-dist/source/latex/lwarp/lwarp.dtx b/Master/texmf-dist/source/latex/lwarp/lwarp.dtx
index ba6ac00dd1f..22db6861f1e 100644
--- a/Master/texmf-dist/source/latex/lwarp/lwarp.dtx
+++ b/Master/texmf-dist/source/latex/lwarp/lwarp.dtx
@@ -16,7 +16,7 @@
% \iffalse
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{lwarp}
-%<package> [2017/09/05 v0.39 Allows LaTeX to directly produce HTML5 output.]
+%<package> [2017/09/25 v0.40 Allows LaTeX to directly produce HTML5 output.]
%
%<*driver>
\documentclass{ltxdoc}
@@ -65,6 +65,18 @@
\newunicodechar{ê}{\^{e}}
\newunicodechar{Ω}{\textohm}
\newunicodechar{μ}{\textmu}
+\newunicodechar{⁅}{\textlquill}
+\newunicodechar{⁆}{\textrquill}
+\newunicodechar{℗}{\textcircledP}
+\newunicodechar{—}{\texttwelveudash}% emdash
+\newunicodechar{—}{\textthreequartersemdash}% emdash
+\newunicodechar{℧}{\textmho}
+\newunicodechar{₦}{\textnaira}
+\newunicodechar{₱}{\textpeso}
+\newunicodechar{℞}{\textrecipe}
+\newunicodechar{‱}{\textpertenthousand}
+\newunicodechar{฿}{\textbaht}
+\newunicodechar{℠}{\textservicemark}
\usepackage[log-declarations=false]{xparse}
@@ -104,6 +116,8 @@
\usepackage{array}
\usepackage{longtable}
\usepackage{booktabs}
+\usepackage{multirow}
+\usepackage{bigdelim}
\usepackage[normalem]{ulem}
@@ -174,7 +188,23 @@
\DescribeBoolean{#1}%
}
+% A macro which is not indexed:
+\makeatletter
+\newenvironment{noindmacro}[1]
+{
+\setlength{\parskip}{\marginparpush}
+\leavevmode\par\DTXD@margintag{}{\cmd{#1}}{}}
+{\unskip}
+\makeatother
+% An environment which is not indexed:
+\makeatletter
+\newenvironment{noindenvironment}[1]
+{
+\setlength{\parskip}{\marginparpush}
+\leavevmode\par\DTXD@margintag{}{#1}{Env}}
+{\unskip}
+\makeatother
\usepackage{microtype}
@@ -333,11 +363,24 @@ Green-colored tags in the left margin show which sections of source
code apply to the generation of \HTML, print, or both forms of output.
}
-\newcommand{\limitspageref}{\pkg{cleveref} and \pkg{varioref} are supported,
-but printed page numbers do not map to \HTML, so a section name or a text phrase
-are used instead.
-See \cref{sec:successfulcommands} to redefine the message which is printed
-for page number references.
+\newcommand{\limitscpageref}{\pkg{cleveref} and \pkg{varioref} are supported,
+\watchout[\pkg{cleveref} page numbers]
+but printed page numbers do not map to \HTML,
+so a section name or a text phrase
+are used for \cs{cpageref} and \cs{cpagerefrange}.
+This phrase includes \cs{cpagerefFor}, which defaults to ``for''.
+
+\needspace{3\baselineskip}
+Ex:
+\begin{sourcedisplay}
+ \cs{cpageref}\{tab:first,tab:second\} \\
+ \hspace*{-2em} in \HTML\ becomes:\\
+ \rmfamily
+ ``pages \textbf{for} table \textcolor{red}{4.1} and
+ \textbf{for} table \textcolor{red}{4.2}''
+\end{sourcedisplay}
+See \cs{cpagerefFor} at \cpageref{sec:cpagereffor}
+to redefine the message which is printed for page number references.
}
\newcommand{\limitshyperlinks}{%
@@ -441,6 +484,8 @@ a \acro{TOC} entry, and placed inline or on their own \HTML page:
\limitsindexlanguage
+\limitstocloft
+
An index may be placed inline with other \HTML\ text, or on its own \HTML\ page:
\margintag{placement and \acro{TOC} options}
@@ -490,12 +535,21 @@ An index may be placed inline with other \HTML\ text, or on its own \HTML\ page:
\cs{ForceHTMLPage} \\
\cs{printindex}
\end{sourcedisplay}
+\end{description}
- Use the \pkg{tocbibind} \texttt{numindex} option to generate a numbered index.
+Use the \pkg{tocbibind} \texttt{numindex} option to generate a numbered index.
\DescribeOption[tocbibind]{numindex}
- Without this option, the index heading has no number.
+Without this option, the index heading has no number.
\margintag{numbered index section}
-\end{description}
+}
+
+\newcommand{\limitstocloft}{%
+If using \pkg{tocloft} with \pkg{tocbibind}, \pkg{anonchap},
+\watchout[\pkg{tocloft} \& other packages]
+\pkg{fncychap}, or other packages which change chapter title formatting,
+load \pkg{tocloft} with its \texttt{titles} option, which
+tells \pkg{tocloft} to use standard \LaTeX\ commands to create the titles,
+allowing other packages to work with it.
}
\newcommand*{\limitspagenote}{%
@@ -544,6 +598,9 @@ and a \cs{fill} is converted to a \cs{qquad}.
}
\newcommand{\limitstextcomp}{%
+Some \pkg{textcomp} symbols do not have Unicode equivalents, and thus
+are not supported.
+
Many \pkg{textcomp} symbols are not supported by many fonts.
\watchout[Missing symbols]
Try using more complete fonts in the \CSS, but expect to see gaps in coverage.
@@ -570,14 +627,26 @@ may limit how small the output will be displayed.
\newcommand{\limitsreferences}{%
\cs{nameref} refers to the most recently-used section where the \cs{label}
-was defined. If no section has been defined before the \cs{label},
+was defined.
+If no section has been defined before the \cs{label},
+\watchout[empty link]
the link will be empty.
Index entries also use \cs{nameref} and have the same limitation.
}
+\newcommand{\limitspfnote}{
+While emulating \pkg{pfnote}, \pkg{lwarp} is not able to reset \HTML\ footnote
+\watchout[\pkg{pfnote} numbers]
+numbers per page number to match the printed version,
+as \HTML\ has no concept of page numbers.
+\pkg{lwarp} therefore uses continuous footnote numbering even for \pkg{pfnote}.
+}
+
\newcommand{\limitsfootnotes}{
\pkg{lwarp} uses native \LaTeX\ footnote code, although with its own
\cs{box} to avoid the \LaTeX\ output routine. The usual functions work as-is.
+
+\limitspfnote
}
\newcommand{\limitsverse}{%
@@ -772,6 +841,32 @@ It is recommended to use \pkg{cleveref} instead of \pkg{ntheorem}'s
\newcommand{\limitsgraphics}{%
+For \cs{includegraphics} with \texttt{.pdf} files,
+\watchout[\texttt{.pdf} image files]
+the user should provide a \texttt{.pdf} image file, and also
+a \texttt{.svg}, \texttt{.png}, or \texttt{.jpg} version of the same image.
+\textcolor{red}{These should be referred to without a file extension:}
+\watchout[no file extension]
+\begin{sourcedisplay}
+\cs{includegraphics}\{filename\} \% print:.pdf, HTML:.svg or other
+\end{sourcedisplay}
+For print output, \pkg{lwarp} will automatically choose the \texttt{.pdf} if available,
+other some other format otherwise.
+For \HTML, one of the other formats is used instead.
+
+If a \texttt{.pdf} file is explicitly referred to with its file extension,
+a link to the \texttt{.pdf} file will appear in the \HTML\ output.
+\begin{sourcedisplay}
+\cs{includegraphics}\{filename.pdf\} \% creates a link in HTML
+\end{sourcedisplay}
+
+For \texttt{.png}, \texttt{.jpg}, or \texttt{.gif} image files,
+\margintag{other image files}
+the same file may be used in
+both print or \HTML\ versions, and may be used with a file extension,
+but will also be used without the file extension if it is the only file of
+its base name.
+
If using the older \pkg{graphics} syntax, use both optional arguments
\watchout[\pkg{graphics} vs. \pkg{graphicx}]
for \cs{includegraphics}.
@@ -780,17 +875,13 @@ Note that viewports are not supported by \pkg{warp};
\watchout[viewports]
the entire image will be shown.
-\cs{graphicspath} only works for a single directory;
-\watchout[\cs{graphicspath}]
-all graphics must be in this directory.
-
For \cs{includegraphics}, avoid \texttt{px} and \% units for width and height, or
\margintag{units}
enclose them inside \env{warpHTML} environments.
For font-proportional image sizes, use \texttt{ex} or \texttt{em}.
For fixed-sized images, use
\texttt{cm}, \texttt{mm}, \texttt{in}, \texttt{pt}, or \texttt{pc}.
-Using the keys \cmds{width=.5\lmacro{linewidth}},
+Use the keys \cmds{width=.5\lmacro{linewidth}},
or similar for \cmds{\lmacro{textwidth}} or \cmds{\lmacro{textheight}}
to give fixed-sized images proportional to a 6 by 9 inch text area.
@@ -805,20 +896,12 @@ With \HTML\ output, \cs{includegraphics} accepts an optional
the \HTML\ output will include that class for the image.
The class is ignored for print output.
-For \cs{includegraphics} the user should provide both \texttt{.pdf} and \texttt{.svg}
-images, but always refer to
-\watchout[image file types]
-\texttt{.pdf} images in the document source.
-All \cs{includegraphics} references to \texttt{.pdf} will automatically
-be changed to \texttt{.svg} for \HTML\ output, and will be left as \texttt{.pdf} for print output.
-Images may also be \texttt{.jpg} and \texttt{.png}, and will be used as-is for either output.
-
\cs{rotatebox} accepts the optional \texttt{origin} key.
\margintag{\cs{rotatebox}}
-\cs{rotatebox}, \cs{scalebox}, and \cs{reflectbox} depend on modern browser
-support.
+\cs{rotatebox}, \cs{scalebox}, and \cs{reflectbox} depend
\watchout[browser support]
+on modern browser support.
The \CSSthree\ standard declares that when an object is transformed
the whitespace which they occupied is preserved,
unlike \LaTeX{}, so expect some
@@ -851,13 +934,11 @@ see \cref{sec:tutorialmathjax} to use MathJax instead.
}
\newcommand{\limitsgrffile}{%
-\pkg{grffile} is partially emulated.
+\pkg{grffile} is supported as-is.
File types known to the browser are displayed, and unknown file types are given a link.
Each \PDF\ image for print mode should be accompanied
\watchout[matching \PDF\ and \SVG]
-by an \SVG\ version for \HTML.
-No attempt is made to convert input or filename encodings.
-\watchout[encodings]
+by an \SVG, \PNG, or \JPG\ version for \HTML.
}
\newcommand{\limitscolor}{%
@@ -905,7 +986,7 @@ Use \CSS\ or \cs{textcolor} where possible.
Tabular mostly works as expected, but pay special attention to the
following, especially if working with environments, macros inside tabulars,
multirows, \texttt{*} column specifiers, \pkg{siunitx} \texttt{S} columns,
-or the packages \pkg{longtable}, \pkg{supertabular}, or \pkg{xtab}.
+or the packages \pkg{multirow}, \pkg{longtable}, \pkg{supertabular}, or \pkg{xtab}.
\begin{description}
\item [Defining environments:] \
\begin{itemize}
@@ -1044,6 +1125,8 @@ To create a 2 column, 3 row cell:
The two arguments for \cs{multicolumn} come first, followed by
the five arguments for \cs{multirow}, many of which are optional,
followed by the contents.
+Note that recent versions of \pkg{multirow} include a new optional
+\texttt{vposn} argument.
}
\newcommand{\limitsresumetabular}{%
@@ -1106,6 +1189,31 @@ For \cs{tablefirsthead}, etc., enclose them as follows:
See \cref{sec:limitstabular}.
}
+\newcommand{\limitsbigdelim}{%
+\cs{ldelim} and \cs{rdelim} use \cs{multirow}, so
+\watchout[use \cs{mrowcell}]
+\cs{mrowcell} must be used in the proper number of empty cells in the
+same column below \cs{ldelim} or \cs{rdelim}, but not in cells which
+are above or below the delimiter:
+\begin{sourcedisplay}
+\hrule\smallskip
+\cs{begin}\{tabular\}\{lll\} \\
+\textcolor{green}{<empty>} \& a \& b \textbackslash\textbackslash \\
+\cs{ldelim}\{\textbackslash\{\}\{2\}\{.25in\}[left ] \& c \& d \textbackslash\textbackslash \\
+\textcolor{red}{\cs{mrowcell}} \& e \& f \textbackslash\textbackslash \\
+\textcolor{green}{<empty>} \& g \& h \textbackslash\textbackslash \\
+\cs{end}\{tabular\}
+\smallskip\hrule
+\begin{tabular}{lll}
+ & a & b \\
+\ldelim{\{}{2}{.25in}[left ] & c & d \\
+\mrowcell & e & f \\
+ & g & h \\
+\end{tabular}
+\hrule
+\end{sourcedisplay}
+}
+
\newcommand{\limitssaveboxes}{%
\LaTeX\ boxes are placed inline and do not allow line breaks, so boxes
with long contents may overflow the line during \HTML\ conversion.
@@ -1443,7 +1551,7 @@ This boolean may be tested by the user for later use.
%<*package>
% \fi
%
-% \CheckSum{13780}
+% \CheckSum{14147}
%
% \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
@@ -1524,6 +1632,7 @@ This boolean may be tested by the user for later use.
% \changes{v0.37}{2017/08/19}{\ 2017/08/19}
% \changes{v0.38}{2017/08/27}{\ 2017/08/27}
% \changes{v0.39}{2017/09/05}{\ 2017/09/05}
+% \changes{v0.40}{2017/09/25}{\ 2017/09/25}
@@ -1658,6 +1767,38 @@ This boolean may be tested by the user for later use.
% For a detailed list of changes, see the Change History on page \pageref{sec:changehistory}.
%
% \begin{description}
+% \item[v0.40:] \
+% \begin{itemize}
+% \item \pkg{graphics} and \pkg{graphicx} have been moved from the
+% \margintag{\pkg{graphics}, \pkg{graphicx}}
+% \pkg{lwarp} core, and are only loaded if requested with \cs{usepackage}.
+% \item Improved \pkg{graphics} \cs{graphicspath} support.
+% \margintag{\cs{includegraphics} path}
+% Multiple image directories may now be used.
+% \textcolor{red}{Refer to |.pdf| files without a file extension}
+% \watchout[image file extensions]
+% to allow the \HTML\ version
+% to use a |.svg|, |.png|, |.jpg|, or |.gif| version instead.
+% See \cref{sec:limitsgraphics}.
+% \item \pkg{grffile} is now directly supported instead of emulated.
+% \item Fix for \pkg{bigdelim}, and improved documentation.
+% \margintag{\pkg{bigdelim}}
+% See \cref{sec:bigdelim}.
+% \item Improved \LaTeX\ and \pkg{textcomp} symbols.\margintag{\pkg{symbols}}
+% \item Fix for \LaTeX\ logos and \cs{InlineClass}, etc. inside a \env{lateximage}.
+% \margintag{\pkg{fixes}}
+% \item Fix for \pkg{xltxtra} with \XeLaTeX.
+% \item Fixes for \pkg{tocbibind} with \cs{simplechapter}, etc.
+% \item Fixes for \cs{multicolumnrow} and \cs{nullfonts} with older versions
+% of \pkg{multirow} and \pkg{xparse}.
+% \item Added \cs{underline}.
+% \item Added \pkg{adjmulticol}.\margintag{margins}
+% \item Added \pkg{cuted}, \pkg{midfloat}.\margintag{columns}
+% \item Added \pkg{pfnote}, \pkg{fnpos}, \pkg{dblfnote}.\margintag{footnotes}
+% \item Added \pkg{stabular}, \pkg{tabls}.\margintag{tabular}
+% \item Added \pkg{sectsty}, \pkg{anonchap}, \pkg{quotchap}.\margintag{sectioning}
+% \end{itemize}
+% \needspace{2\baselineskip}
% \item[v0.39:] \
% \begin{itemize}
% \item Improved the titlepage \HTML\ code, \cs{thanks} notes,
@@ -1689,8 +1830,10 @@ This boolean may be tested by the user for later use.
% See \cref{sec:limitstabular}.
% \end{itemize}
% \item Added \pkg{supertabular}, \pkg{xtab}, \pkg{bigstrut}, \pkg{bigdelim}.
-% \item Added \pkg{fullwidth}.
+% \margintag{tabular}
+% \item Added \pkg{fullwidth}.\margintag{margins}
% \item Added \pkg{addlines}, \pkg{anysize}, \pkg{a4}, \pkg{a4wide}, \pkg{a5comb},
+% \margintag{page layout}
% \pkg{textarea}, \pkg{zwpagelayout}, \pkg{typearea}, \pkg{ebook}.
% \end{itemize}
% \item[v0.38:] \
@@ -1710,10 +1853,11 @@ This boolean may be tested by the user for later use.
% and \cs{ForceHTMLTOC} macros.
% \item Added \pkg{appendix}, \pkg{tocbibind}, \pkg{fncychap}, \pkg{fix2col}.
% \margintag{packages}
-% \item Added \pkg{relsize}, \pkg{scalefnt}.
+% \item Added \pkg{relsize}, \pkg{scalefnt}.\margintag{font size}
% \item Added \pkg{realscripts}, \pkg{metalogo}, \pkg{xltxtra}.
% \item Added \pkg{grffile}, \pkg{romanbar}.
% \item Added \pkg{arabicfront}, \pkg{chappg}, \pkg{nonumonpart}, \pkg{nopageno},
+% \margintag{page numbering}
% \pkg{romanbarpagenumber}.
% \item Docs: Improved description of the use of front/back matter.
% \margintag{front \& back matter}
@@ -1721,6 +1865,7 @@ This boolean may be tested by the user for later use.
% \item Fix: \pkg{color} requests \pkg{xcolor}.
% \item Fix: \cs{part} for |article| class.
% \end{itemize}
+% \needspace{2\baselineskip}
% \item[v0.37:] \
% \begin{itemize}
% \item \cs{include} now maintains independent |.aux| files
@@ -1987,7 +2132,7 @@ This boolean may be tested by the user for later use.
% ^^A \needspace{2\baselineskip}
% ^^A \item[v0.25:] \
% ^^A \begin{itemize}
-% ^^A \item Fix: Allows \pkg{graphicx} and \pkg{graphicsx} before \pkg{lwarp} because
+% ^^A \item Fix: Allows \pkg{graphicx} and \pkg{graphicx} before \pkg{lwarp} because
% ^^A \XeLaTeX\ and \LuaLaTeX\ use \pkg{xunicode} which uses \pkg{graphics}.
% ^^A \item Package support for \pkg{framed}, several theorem packages, and ellipses.
% ^^A \end{itemize}
@@ -2233,7 +2378,8 @@ This boolean may be tested by the user for later use.
% Adds \cmds{FileDepth} for splitting the \HTML\ output.
% Files may be numbered sequentially or named according to section name.
% Common short words and punctuation is removed from the filenames.
-% Emulates \pkg{titlesec}, \pkg{fncychap}. \\
+% Emulates \pkg{titlesec}, \pkg{fncychap}, \pkg{sectsty},
+% \pkg{anonchap}, \pkg{quotchap}. \\
%
% Table of contents, figures, tables: & Supported, with hyperlinks.
% Supports \pkg{tocbibind}. Emulates \pkg{titletoc} and \pkg{tocloft}. \\
@@ -2283,7 +2429,7 @@ This boolean may be tested by the user for later use.
% Floats: & Appear where declared.
% \pkg{float}, \pkg{rotfloat}, \pkg{newfloat}, \pkg{caption} and \pkg{subcaption},
% \pkg{subfig}, \pkg{capt-of}, \pkg{placeins}, \pkg{trivfloat}, \pkg{floatrow},
-% \pkg{keyfloat}, \pkg{wrapfig}, \pkg{cutwin}, \pkg{floatflt}. \\
+% \pkg{subfloat}, \pkg{keyfloat}, \pkg{wrapfig}, \pkg{cutwin}, \pkg{floatflt}. \\
%
% \midrule
%
@@ -2301,7 +2447,7 @@ This boolean may be tested by the user for later use.
% References to \PDF\ files are changed to \SVG, other image types
% are accepted as well.
% \cs{rotatebox} and \cs{scalebox} are supported as well as \HTML\ can handle.
-% \pkg{grffile} is emulated. \\
+% \pkg{grffile} is supported. \\
%
% \pkg{rotating}: & Emulated. All objects are displayed unrotated. \\
%
@@ -4402,20 +4548,32 @@ This boolean may be tested by the user for later use.
%
% \limitsreferences
%
-% \subsubsection{Page references} The printed page does not translate to the \HTML\
-% page, so references to page numbers are converted to parentheses containing
-% \cs{pagerefPageFor}, which defaults to ``see '',
+% \subsubsection{Page references} The printed page does not translate
+% to the \HTML\
+% \watchout[\LaTeX\ page numbers]
+% page, so \cs{pageref} references are converted to parentheses containing
+% \cs{pagerefPageFor}, which defaults to ``see~'',
% followed by a hyperlink to the appropriate
-% object. Ex: ``Sec.~\textcolor{red}{1.23}
-% on page (see sec.~\textcolor{red}{1.23})''.
+% object.
+%
+% Ex:
+% \begin{sourcedisplay}
+% \cs{ref}\{sec:name\} on page \cs{pageref}\{sec:name\} \\
+% \rmfamily
+% \hspace*{-2em} in \HTML\ becomes: \\
+% ``Sec.~\textcolor{red}{1.23}
+% on page (\textbf{see}
+% sec.~\textcolor{red}{1.23})''.
+% \end{sourcedisplay}
% \cs{pagerefPageFor} may be redefined to ``page for '', empty, etc.
+% See \cpageref{sec:pagerefpagefor}.
%
%
% \subsubsection{\pkg{cleveref} and \pkg{varioref} packages}
%
% \changes{v0.22}{2017/03/01}{\pkg{varioref}: Supported.}
%
-% \limitspageref
+% \limitscpageref
%
% \subsubsection{Hyperlinks, \pkg{hyperref}, and \pkg{url}}
%
@@ -4473,6 +4631,7 @@ This boolean may be tested by the user for later use.
% For print output, \cs{ForceHTMLTOC} and \cs{ForceHTMLPage} have no effect.
%
%
+%
% \subsubsection{\pkg{abstract} package}
%
% \limitsabstract
@@ -4483,6 +4642,12 @@ This boolean may be tested by the user for later use.
% \limitstitlepage
%
%
+% \subsubsection{\pkg{tocloft} package}
+%
+% \DescribeOption[tocloft]{titles}
+% \limitstocloft
+%
+%
% \subsubsection{\pkg{appendix} package}
%
% \limitsappendix
@@ -4513,7 +4678,9 @@ This boolean may be tested by the user for later use.
%
% \limitsindex
%
-% See \cref{sec:index}.
+% See \cref{sec:index} for \pkg{lwarp}'s core index and glossary code,
+% and \cref{sec:tocbibind} for \pkg{tocbibind}.
+%
%
%
%
@@ -4552,6 +4719,7 @@ This boolean may be tested by the user for later use.
%
%
% \subsection{Graphics}
+% \label{sec:limitsgraphics}
%
% \limitsgraphics
%
@@ -4586,9 +4754,13 @@ This boolean may be tested by the user for later use.
%
% \limitssupertabular
%
+% \subsubsection{\pkg{bigdelim} package}
%
+% \limitsbigdelim
+%
+%
+% \subsection{Floats}
%
-%
% \subsubsection{\pkg{float}, \pkg{trivfloat}, and/or \pkg{algorithmicx} together}
%
% \limitscombiningfloats
@@ -4600,8 +4772,6 @@ This boolean may be tested by the user for later use.
%
%
%
-% \subsection{Floats}
-%
%
% \subsubsection{\pkg{subfig} package}
%
@@ -5034,7 +5204,7 @@ This boolean may be tested by the user for later use.
% \item Use |lwarpmk again| followed
% by |lwarpmk html| or |lwarpmk print| to compile the document one more time.
% \item \limitsreferences
-% \item \limitspageref
+% \item \limitscpageref
% \end{itemize}
%
% \item [Em-dashes or En-dashes in listing captions and titles:] \
@@ -5838,11 +6008,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}
@@ -5861,7 +6033,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}
@@ -5885,6 +6059,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}
@@ -5913,6 +6088,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{multicol}% loaded by ltxdoc
@@ -5930,8 +6106,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}
@@ -5941,6 +6119,7 @@ For a possible alternative, see package(s) #2.}
\LWR@loadafter{rotfloat}
\LWR@loadafter{savetrees}
% \LWR@loadafter{scalefnt}% loaded by babel-french
+\LWR@loadafter{sectsty}
\LWR@loadafter{setspace}
\LWR@loadafter{shadow}
\LWR@loadafter{showidx}
@@ -5949,8 +6128,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}
@@ -6454,14 +6635,8 @@ top=1in,bottom=1in,%
% \end{macrocode}
-% \DescribePackage{xfrac}
-%
-% Patched for \HTML\ use.
-% See \cref{sec:xfrac}.
-% \begin{macrocode}
-\RequirePackage{xfrac}
-% \end{macrocode}
+% \changes{v0.40}{2017/09/07}{No longer preloads \pkg{xfrac}.}
%
% Used to convert lengths for image width/height options.
@@ -6944,6 +7119,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
@@ -6968,10 +7144,8 @@ top=1in,bottom=1in,%
\LetLtxMacro{\LWR@origdescription}{\description}
\LetLtxMacro{\LWR@endorigdescription}{\enddescription}
-
\let\LWR@origpar\par
-
\LetLtxMacro{\LWR@origfootnote}{\footnote}
\let\LWR@orig@mpfootnotetext\@mpfootnotetext
@@ -6986,10 +7160,6 @@ top=1in,bottom=1in,%
-
-
-
-
% \section{Accents}
%
% \limitsaccents
@@ -7317,6 +7487,10 @@ span.textsf {
span.textcircled { border: 1px solid black ; border-radius: 1ex ; }
+span.underline {
+ text-decoration: underline ;
+ text-decoration-skip ;
+}
/* For realscripts */
@@ -7341,9 +7515,6 @@ span.textcircled { border: 1px solid black ; border-radius: 1ex ; }
top: .5em;
}
-
-
-
span.attribution {
margin-left: 1em ; font-size: 80% ; font-variant: small-caps;
}
@@ -7361,7 +7532,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 ;
@@ -7369,6 +7548,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 ;
@@ -9201,7 +9394,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.") ;
@@ -10533,8 +10726,8 @@ end -- not --version
% a paragraph to start if the span is at the beginning of a new paragraph.
%
% |\end{LWR@nestspan}| must follow the \element{/span} or a \element{p} may appear
-% inside the span.
% \watchout
+% inside the span.
%
% \changes{v0.20}{2016/12/24}{Fix: Minipages inside a span.}
% \changes{v0.34}{2017/07/29}{Fix: Minipages, BlocksClass, and lists inside a span.}
@@ -10560,7 +10753,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}{%
@@ -10572,8 +10765,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}}%
@@ -10612,11 +10805,13 @@ end -- not --version
%
% \begin{macrocode}
\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}%
}
% \end{macrocode}
@@ -10723,13 +10918,15 @@ end -- not --version
%
% \begin{macrocode}
\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}%
}
% \end{macrocode}
% \end{macro}
@@ -10838,10 +11035,12 @@ end -- not --version
% These are high-level commands which allow the creation of
% arbitrary block or inline
% sections which may be formatted with \CSS.
-
+%
+% Nullified versions are provided for print mode.
+%
% For other direct-formatting commands, see \cref{sec:directformatting}.
-
-
+%
+%
% \begin{environment}{BlockClass} \oarg{style} \marg{class} \quad
% High-level interface for \element{div} classes.
%
@@ -12267,7 +12466,7 @@ end -- not --version
% \end{macrocode}
%
%
-% \begin{macro}{\@seccntformat}
+% \begin{macro}{\@seccntformat} \marg{sectiontype}
% \changes{v0.38}{2017/08/21}{Added for \pkg{appendix}.}
%
% \begin{macrocode}
@@ -12276,6 +12475,30 @@ end -- not --version
% \end{macro}
%
%
+% \begin{macro}{\simplechapterdelim} Used by \pkg{tocbibind} and \pkg{anonchap}.
+% \changes{v0.40}{2017/09/12}{Added for \pkg{tocbibind}, \pkg{anonchap}.}
+%
+% \begin{macrocode}
+\newcommand*{\simplechapterdelim}{}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\@chapcntformat} \marg{sectiontype}
+%
+% \cs{let} to \cs{@seccntformat} by default, but may be redefined
+% by \cs{simplechapter} and \cs{restorechapter} from \pkg{tocbibind} or
+% \pkg{anonchap}.
+%
+% \changes{v0.40}{2017/09/12}{Added for \pkg{tocbibind}, \pkg{anonchap}.}
+%
+% \begin{macrocode}
+\let\@chapcntformat\@seccntformat
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
% \begin{macro}{\LWR@section} * \oarg{TOC name} \marg{name} \marg{sectiontype}
%
% \changes{v0.20}{2017/01/09}{Combined higher-level sections together into files.}
@@ -12360,10 +12583,10 @@ end -- not --version
% \end{macrocode}
% Remember this section's name for \cs{nameref}:
% \begin{macrocode}
-\IfValueTF{#3}{%
+\IfValueT{#3}{%
\LWR@traceinfo{LWR@section: about to LWR@setlatestname}%
\IfValueTF{#2}{\LWR@setlatestname{#2}}{\LWR@setlatestname{#3}}%
-}{}%
+}%
% \end{macrocode}
% Print an opening comment with the level and the name;
% ex: ``section'' ``Introduction''
@@ -12462,7 +12685,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}%
}{}%
@@ -12549,7 +12776,10 @@ end -- not --version
% \begin{macro}{\chapter} * \oarg{TOC name} \marg{name}
%
% \changes{v0.28}{2017/04/06}{If \EPUB, prints footnotes before each section.}
+% \changes{v0.40}{2017/09/22}{Added support for \pkg{quotchap}.}
% \begin{macrocode}
+\let\@printcites\relax% for quotchap package
+
\@ifundefined{chapter}
{}
{%
@@ -12561,6 +12791,7 @@ end -- not --version
\LWR@startnewdepth{\LWR@depthchapter}{\LWR@printclosechapter}%
\LWR@section{#1}{#2}{#3}{chapter}%
+\@printcites% for quotchap package
}
}
% \end{macrocode}
@@ -12928,12 +13159,6 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}%
\let\XeLaTeX\LWR@XeLaTeX
\let\ConTeXt\LWR@ConTeXt
% \end{macrocode}
-% Graphics:
-% \begin{macrocode}
-\LetLtxMacro{\rotatebox}{\LWR@rotatebox}
-\LetLtxMacro{\scalebox}{\LWR@scalebox}
-\let\reflectbox\LWR@reflectbox
-% \end{macrocode}
% Not yet started any paragraph handling:
% \begin{macrocode}
\global\boolfalse{LWR@doingapar}
@@ -15504,7 +15729,7 @@ link rel="stylesheet" type="text/css" href="\LWR@currentcss" /}%
% \end{macrocode}
%
% \begin{macrocode}
-\IfValueTF{#2}{ % rows?
+\IfValueT{#2}{ % rows?
rowspan="#2" %
% \end{macrocode}
%
@@ -15513,7 +15738,7 @@ rowspan="#2" %
\ifstrequal{#1}{b}{style="vertical-align:bottom" }{}%
\ifstrequal{#1}{t}{style="vertical-align:top" }{}%
}% vpos?
-}{}% rows?
+}% rows?
% \end{macrocode}
%
% \begin{macrocode}
@@ -15808,13 +16033,59 @@ rowspan="#2" %
% problem-with-abbreviation-of-multirow-and-multicolumn-latex}
%
% \changes{v0.39}{2017/08/31}{Added.}
+% \changes{v0.40}{2017/09/22}{Fix: Adapts to older \pkg{multirow} and \pkg{xparse}.}
+%
+% After the user may have
+% \begin{macrocode}
+\AtBeginDocument{
+% \end{macrocode}
+%
+% |\@ifundefined{@xmultirow}| determines if \pkg{multirow} was never loaded.
%
% \begin{macrocode}
-\DeclareExpandableDocumentCommand{\LWR@origmulticolumnrow}{m m O{c} m O{0} m O{0pt} +m}{%
-\multicolumn{#1}{#2}{\@xmultirow[#3]{#4}[#5]{#6}[#7]{#8}}
+\@ifundefined{@xmultirow}
+{}% no version of multirow was loaded
+{% \@xmultirow defined, so some version of multirow was loaded
+% \end{macrocode}
+%
+% |\@ifpackageloaded{multirow}| determines if v2.0 or later of
+% \pkg{multirow} was used, which included the \cs{ProvidesPackage} macro.
+%
+% \begin{macrocode}
+\@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}}}%
}
-
-\newcommand*{\multicolumnrow}{\LWR@origmulticolumnrow}
+{% 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}
+% \end{macrocode}
+%
+% If not |\@ifpackageloaded{multirow}| but \cs{@xmultirow} is defined,
+% then this must be v1.6 or earlier, which did not |\ProvidesPackage{multirow}|,
+% and did not have the |vposn| option.
+%
+% \begin{macrocode}
+{% 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}}}%
+}
+% \end{macrocode}
+%
+% The user-level interface. This is provided if the \HTML\ version was
+% not already given.
+%
+% \begin{macrocode}
+\providecommand*{\multicolumnrow}{\LWR@origmulticolumnrow}
+}% \@xmultirow defined, so multirow was loaded
+}% AtBeginDocument
% \end{macrocode}
% \end{macro}
%
@@ -15836,6 +16107,12 @@ rowspan="#2" %
\newcommand*{\LWR@domidrule}{\booltrue{LWR@doinghline}}
\newcommand*{\LWR@dotbrule}{\booltrue{LWR@doingtbrule}}
% \end{macrocode}
+%
+% In case \pkg{bigdelim} is not loaded:
+% \begin{macrocode}
+\newcommand*{\ldelim}{}
+\newcommand*{\rdelim}{}
+% \end{macrocode}
% \begin{macrocode}
\end{warpHTML}
@@ -15923,6 +16200,7 @@ rowspan="#2" %
%
% \changes{v0.34}{2017/08/08}{\pkg{booktabs}: Works inside \env{lateximage}.}
% \changes{v0.39}{2017/08/29}{Don't start a data cell if see \cs{TabularMacro}.}
+% \changes{v0.40}{2017/09/09}{Fix for \pkg{bigdelim}: \cs{ldelim}, \cs{rdelim}.}
%
% \begin{macrocode}
\newbool{LWR@exitingtabular}
@@ -15940,57 +16218,63 @@ rowspan="#2" %
% \end{macrocode}
% If exiting the tabular:
% \begin{macrocode}
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\end}}%
-{\booltrue{LWR@exitingtabular}}{}%
+\ifdefequal{\LWR@mynexttoken}{\end}%
+ {\booltrue{LWR@exitingtabular}}{}%
% \end{macrocode}
% \env{longtable} can have a caption in a cell
% \begin{macrocode}
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\caption}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\caption}%
+ {\let\mynext\LWR@donothing}{}%
% \end{macrocode}
% Look for other things which would not start a table cell:
% \begin{macrocode}
-\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}{}%
+\ifdefequal{\LWR@mynexttoken}{\multicolumn}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\multirow}%
+ {\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\multicolumnrow}%
+ {\let\mynext\LWR@donothing}{}%
% \end{macrocode}
% if come to an |\mrowcell|, this is a cell to be skipped over
% \begin{macrocode}
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\mrowcell}}%
-{\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}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\TabularMacro}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\toprule}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\hline}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\midrule}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\toprule}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\cmidrule}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\midrule}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\specialrule}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\cmidrule}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\cline}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\specialrule}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\bottomrule}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\cline}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\warpprintonly}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\bottomrule}}%
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\warpHTMLonly}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\warpprintonly}}
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\ldelim}%
+ {\let\mynext\LWR@donothing}{}%
%
-\ifthenelse{\isequivalentto{\LWR@mynexttoken}{\warpHTMLonly}}
-{\let\mynext\LWR@donothing}{}%
+\ifdefequal{\LWR@mynexttoken}{\rdelim}%
+ {\let\mynext\LWR@donothing}{}%
% \end{macrocode}
% no action for an |\end| token
%
@@ -16049,6 +16333,23 @@ rowspan="#2" %
% \end{macrocode}
%
%
+% \begin{macro}{\LWR@hline}
+% The definition of \cs{hline} depends on whether \pkg{tabls} has been loaded.
+% If so, optional space below the line may be specified, but will be ignored.
+%
+% \changes{v0.40}{2017/09/06}{Added.}
+%
+% \begin{macrocode}
+\AtBeginDocument{
+\@ifpackageloaded{lwarp-tabls}
+{\newcommand*{\LWR@hline}[1][]{\LWR@domidrule\LWR@getmynexttoken}}
+{\newcommand*{\LWR@hline}{\LWR@domidrule\LWR@getmynexttoken}}
+}% AtBeginDocument
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
% \begin{environment}{LWR@tabular} \oarg{vertposition} \marg{colspecs}
%
% The new tabular environment will be |\let| in |\LWR@LwarpStart|,
@@ -16116,10 +16417,12 @@ rowspan="#2" %
% The following may appear before a data cell is created,
% so after doing their actions, we look ahead with |\LWR@getmynextoken|
% to see if the next token might create a new data cell:
+%
+% The optional parameter for \cs{hline} supports the \pkg{tabls} package.
% \begin{macrocode}
\LWR@traceinfo{LWR@tabular: redefining macros}%
-\renewcommand*{\hline}{\LWR@domidrule\LWR@getmynexttoken}%
-
+\renewcommand*{\hline}{\LWR@hline}%
+%
\RenewDocumentCommand{\cline}{m}%
{\LWR@docmidrule{##1}\LWR@getmynexttoken}%
@@ -16598,7 +16901,8 @@ rowspan="#2" %
% \end{macro}
-% \begin{macro}{\pagerefPageFor} Text for starred page references.
+% \label{sec:pagerefpagefor}
+% \begin{macro}{\pagerefPageFor} Text for page references.
%
% \begin{macrocode}
\newcommand*{\pagerefPageFor}{see }
@@ -17957,13 +18261,22 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
% \changes{v0.34}{2017/08/08}{\pkg{booktabs}: Works inside \env{lateximage}.}
% \changes{v0.36}{2017/08/16}{\pkg{siunitx}: Improved super/subscripts in a \env{lateximage}.}
% \changes{v0.39}{2017/09/01}{Appended with \cs{appto} instead of calling various macros.}
+% \changes{v0.40}{2017/09/09}{Improved symbols inside a \env{lateximage}.}
+% \changes{v0.40}{2017/09/09}{Improved \protect\LaTeX\ logos inside a \env{lateximage}.}
+% \changes{v0.40}{2017/09/09}{Nullified \cs{InlineClass}, etc. inside a \env{lateximage}.}
%
% \begin{macrocode}
\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}%
@@ -17990,6 +18303,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%
@@ -18005,9 +18319,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%
@@ -18017,6 +18333,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%
%
@@ -19062,7 +19382,7 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
-% \section{Textcomp}
+% \section{Pre-loaded packages}
%
% \codehtml
% \begin{macrocode}
@@ -19081,6 +19401,16 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
{}
% \end{macrocode}
+% If \pkg{graphics} or \pkg{graphicx} were loaded before \pkg{lwarp},
+% perhaps by \pkg{xunicode}, explicitly load the lwarp patches now:
+% \begin{macrocode}
+\@ifpackageloaded{graphics}
+{
+\LWR@origRequirePackage{lwarp-graphics}
+}
+{}
+% \end{macrocode}
+
% \begin{macrocode}
\end{warpHTML}
% \end{macrocode}
@@ -19135,425 +19465,6 @@ class="#3"\LWR@orignewline}#2\LWR@htmltag{/a}%
%
% \limitsgraphics
%
-% \codehtml
-% \begin{macrocode}
-\begin{warpHTML}
-% \end{macrocode}
-
-
-
-% \subsection{\cs{graphicspath}}
-
-% \begin{macro}{\graphicspath} \marg{path}
-% \begin{macrocode}
-\newcommand*{\thisgraphicspath}{{}}
-\renewcommand*{\graphicspath}[1]{\renewcommand*{\thisgraphicspath}{#1}}
-% \end{macrocode}
-% \end{macro}
-
-% ^^A \begin{Verbatim}[gobble=2,frame=lines,obeytabs,tabsize=4]
-% ^^A \DeclareGraphicsExtensions{.svg,.gif,.png,.jpg}
-% ^^A \DeclareGraphicsRule{.svg}{svg}{.png}{}
-% ^^A \end{Verbatim}
-
-% \begin{macro}{\DeclareGraphicsExtensions} \marg{list}
-% \begin{macro}{\DeclareGraphicsRule} \marg{} \marg{} \marg{} \marg{}
-% \begin{macrocode}
-\renewcommand*{\DeclareGraphicsExtensions}[1]{}
-\renewcommand*{\DeclareGraphicsRule}[4]{}
-% \end{macrocode}
-% \end{macro}
-% \end{macro}
-
-
-% \subsection{Length conversions and graphics options}
-%
-% A scaled image in \LaTeX{} by default takes only as much space
-% on the page as it
-% requires, but \HTML\ browsers use as much space as the
-% \watchout[whitespace]
-% original unscaled image would have taken,
-% with the scaled image over- or under-flowing the area.
-
-% \begin{macrocode}
-\renewcommand*{\unitspace}{}
-% \end{macrocode}
-
-% Used to store the user's selected dimensions and \HTML\ class.
-%
-% The class defaults to ``inlineimage'' unless changed by a |class=xyx| option.
-% \begin{macrocode}
-\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}
-% \end{macrocode}
-
-% Set the actions of each of the key/value combinations for
-% \cs{includegraphics}. Many are ignored.
-%
-% If an optional width was given, set an \HTML\ style:
-% \begin{macrocode}
-\define@key{igraph}{width}{%
-\setlength{\LWR@igwidth}{#1}%
-\ifthenelse{\lengthtest{\LWR@igwidth > 0pt}}%
-{%
-% \end{macrocode}
-% Default to use the converted fixed length given:
-% \begin{macrocode}
- \uselengthunit{PT}%
- \renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}%
-% \end{macrocode}
-% If ex or em dimensions were given, use those instead:
-% \begin{macrocode}
- \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
-}
-% \end{macrocode}
-%
-% If an optional height was given, set an \HTML\ style:
-% \begin{macrocode}
-\define@key{igraph}{height}{%
-\setlength{\LWR@igheight}{#1}%
-\ifthenelse{\lengthtest{\LWR@igheight > 0pt}}%
-{%
-% \end{macrocode}
-% Default to use the converted fixed length given:
-% \begin{macrocode}
- \uselengthunit{PT}%
- \renewcommand*{\LWR@igheightstyle}{%
- height:\rndprintlength{\LWR@igheight} %
- }%
-% \end{macrocode}
-% If ex or em dimensions were given, use those instead:
-% \begin{macrocode}
- \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
-}
-% \end{macrocode}
-%
-%
-% Handle origin key:
-% \begin{macrocode}
-\define@key{igraph}{origin}{%
-\renewcommand*{\LWR@igorigin}{#1}%
-}
-% \end{macrocode}
-%
-%
-% Handle angle key:
-% \begin{macrocode}
-\define@key{igraph}{angle}{\renewcommand*{\LWR@igangle}{#1}}
-% \end{macrocode}
-%
-%
-% Handle class key:
-% \begin{macrocode}
-\define@key{igraph}{class}{\renewcommand*{\LWR@igclass}{#1}}
-
-% \end{macrocode}
-% ^^A \define@key{igraph}{xscale}{\renewcommand*{\LWR@igxscale}{#1}}
-% ^^A \define@key{igraph}{yscale}{\renewcommand*{\LWR@igyscale}{#1}}
-% It appears that \pkg{graphicx} does not have separate keys for
-% |xscale| and |yscale|. |scale| adjusts both at the same time.
-% \begin{macrocode}
-\define@key{igraph}{scale}{%
-\renewcommand*{\LWR@igxscale}{#1}%
-\renewcommand*{\LWR@igyscale}{#1}}
-% \end{macrocode}
-%
-% Numerous ignored keys:
-% \begin{macrocode}
-\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}{}
-% \end{macrocode}
-
-
-% \begin{macro}{\LWR@rotstyle} \marg{prefix} \marg{degrees}
-%
-% Prints the rotate style with the given prefix.
-%
-% |prefix| is |-ms-| or |-webkit-| or nothing, and is used to generate
-% three versions of the |transform:rotate| style.
-% \begin{macrocode}
-\newcommand*{\LWR@rotstyle}[2]{%
- #1transform:rotate(-#2deg);
-}
-% \end{macrocode}
-% \end{macro}
-
-
-% \begin{macro}{\LWR@scalestyle} \marg{prefix} \marg{xscale} \marg{yscale}
-%
-% Prints the scale style with the given prefix.
-%
-% |prefix| is |-ms-| or |-webkit-| or nothing, and is used to generate
-% three versions of the |transform:scale| style.
-% \begin{macrocode}
-\newcommand*{\LWR@scalestyle}[3]{%
- #1transform:scale(#2,#3);
-}
-% \end{macrocode}
-% \end{macro}
-
-
-
-
-% \subsection{\cs{includegraphics}}
-
-% \DescribeBoolean{LWR@infloatrow}
-% Used to compute \cs{linewidth}.
-% \begin{macrocode}
-\newbool{LWR@infloatrow}
-\boolfalse{LWR@infloatrow}
-% \end{macrocode}
-
-% \cs{LWR@opacity} may be set by the \pkg{transparent} package.
-% For \HTML\ it is only used for \cs{includegraphics}.
-% \begin{macrocode}
-\def\LWR@opacity{1}
-% \end{macrocode}
-
-
-% \begin{macrocode}
-\newcommand*{\LWR@imageextension}{}
-\newcommand*{\LWR@expgraphicsfilename}{}
-% \end{macrocode}
-
-% \begin{macro}{\LWR@includegraphicsb} * \oarg{2: options} \oarg{3: options} \marg{4: filename}
-%
-% \pkg{graphics} syntax is \cs{includegraphics} * \oarg{llx,lly} \oarg{urx,ury} \marg{file}
-%
-% \pkg{graphicx} syntax is \cs{includegraphics} \oarg{key values} \marg{file}
-%
-% If |#3| is empty, only one optional argument was given, thus \pkg{graphicx} syntax.
-%
-% \changes{v0.18}{2016/04/14}{Improved \HTML\ output linebreaks.}
-% \changes{v0.18}{2016/05/17}{Fix: \cs{linewidth}, \cs{textwidth}, \cs{textheight}
-% inside a minipage.}
-% \changes{v0.18}{2016/05/17}{em, ex, \%, px dimensions preserved.}
-% \changes{v0.18}{2016/05/17}{Add: svgz file extension.}
-% \changes{v0.20}{2016/08/20}{Fix: \cs{linewidth} in a floatrow.}
-% \changes{v0.20}{2017/01/12}{Fix: Expands filename.}
-% \changes{v0.28}{2017/04/12}{Adapts to \pkg{graphics} syntax.}
-% \changes{v0.29}{2017/04/15}{Fix: Error when no optional arguments.}
-% \begin{macrocode}
-\NewDocumentCommand{\LWR@includegraphicsb}{s o o m}
-{%
-% \end{macrocode}
-% Start the image tag on a new line, allow \PDF\ output word wrap:
-% \begin{macrocode}
-\LWR@origtilde \LWR@orignewline%
-% \end{macrocode}
-% Temporarily compute |\linewidth|, |\textwidth|, |\textheight| arguments with a 6x9 inch size
-% until the next |\endgroup|.
-% \begin{macrocode}
-\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}%
- }%
-}{}%
-% \end{macrocode}
-% See if can find the image by adding an extension:
-%
-% Preference is |svgz|, then |svg|, |gif|, |png|, and |jpg|.
-%
-% |\detokenize\expandafter| allows underscore characters in filenames.
-%
-% \begin{macrocode}
-\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}}{}%
-% \end{macrocode}
-%
-% Convert a \PDF\ extension to \SVG, leave the result in |\LWR@strresult|:
-%
-% Must also |\detokenize| |.pdf| and |.svg| comparison strings.
-% \begin{macrocode}
-\StrSubstitute{\detokenize\expandafter{\LWR@expgraphicsfilename}}%
-{\detokenize{.pdf}}{\detokenize{.svg}}[\LWR@strresult]%
-%
-\StrSubstitute{\LWR@strresult}%
-{\detokenize{.PDF}}{\detokenize{.SVG}}[\LWR@strresult]%
-% \end{macrocode}
-% For correct em sizing during the width and height conversions:
-% \begin{macrocode}
-\large%
-% \end{macrocode}
-% Reset some defaults, possibly will be changed below if options were given:
-% \begin{macrocode}
-\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}%
-% \end{macrocode}
-%
-% If |#3| is empty, only one optional argument was given, thus \pkg{graphicx} syntax:
-% \begin{macrocode}
-\IfValueTF{#3}{}{%
-\IfValueTF{#2}%
-{\setkeys{igraph}{#2}}%
-{\setkeys{igraph}{}}%
-}%
-% \end{macrocode}
-% Create the \HTML\ reference with the graphicspath, filename, extension,
-% alt tag, style, and class.
-%
-% The \cs{LWR@origtilde} adds space between tags in case this
-% is being done inside a \cs{savebox} where \cs{newline} has no effect.
-% \begin{macrocode}
-\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
-% \end{macrocode}
-% Only include a style tag if a width, height, angle, or scale was given:
-% \begin{macrocode}
-\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}{}%
-% \end{macrocode}
-% Set the class:
-% \begin{macrocode}
-\LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline%
-}% end of image tags
-}% end of href
-\endgroup
-% \end{macrocode}
-% Return to small-sized output:
-% \begin{macrocode}
-\LWR@origscriptsize
-}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macro}{\includegraphics} \oarg{key=val} \marg{filename}
-
-% Handles width and height, converted to fixed width and heights.
-
-% Converts any |.pdf| references to |.svg| for \HTML\
-
-% The user should always refer to |.pdf| in the document source.
-
-% \begin{macrocode}
-\renewcommand*{\includegraphics}
-{%
-% \end{macrocode}
-% This graphic should trigger an \HTML\ paragraph even if alone,
-% so ensure that are doing paragraph handling:
-% \begin{macrocode}
-\LWR@ensuredoingapar%
-\begingroup%
-\LWR@includegraphicsb%
-}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macrocode}
-\end{warpHTML}
-% \end{macrocode}
% \codeprint
%
@@ -19565,182 +19476,8 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
% \end{macrocode}
-% \subsection{\cs{rotatebox}, \cs{scalebox}, \cs{reflectbox}}
-% \codehtml
-% \begin{macrocode}
-\begin{warpHTML}
-% \end{macrocode}
-% \begin{macro}{\LWR@rotboxorigin} Holds the origin key letters.
-% \begin{macrocode}
-\newcommand*{\LWR@rotboxorigin}{}
-% \end{macrocode}
-% \end{macro}
-%
-%
-% \begin{macro}{\LWR@originname} \marg{letter}
-%
-% Given one \LaTeX{} origin key value,
-% translate into an \HTML\ origin word:
-% \begin{macrocode}
-\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}{}%
-}
-% \end{macrocode}
-% \end{macro}
-%
-%
-% \begin{macro}{\LWR@originnames} \marg{letters}
-%
-% Given one- or two-letter \LaTeX{} origin key values,
-% translate into \HTML\ origin words:
-% \begin{macrocode}
-\newcommand*{\LWR@originnames}[1]{%
-\StrChar{#1}{1}[\LWR@strresult]%
-\LWR@originname{\LWR@strresult}
-\StrChar{#1}{2}[\LWR@strresult]%
-\LWR@originname{\LWR@strresult}
-}
-% \end{macrocode}
-% \end{macro}
-%
-%
-% Handle the origin key for \cs{rotatebox}:
-% \begin{macrocode}
-\define@key{krotbox}{origin}{%
-\renewcommand*{\LWR@rotboxorigin}{#1}%
-}
-% \end{macrocode}
-% These keys are ignored:
-% \begin{macrocode}
-\define@key{krotbox}{x}{}
-\define@key{krotbox}{y}{}
-\define@key{krotbox}{units}{}
-% \end{macrocode}
-%
-%
-% \begin{macro}{\rotatebox} \oarg{keyval list} \marg{angle} \marg{text}
-%
-% Will \cs{let}\cs{rotatebox}\cs{LWR@rotatebox} at \cs{LWR@LwarpStart},
-% in case \cs{rotatebox} was over-written by a later package load.
-% \begin{macrocode}
-\LetLtxMacro\LWR@origrotatebox\rotatebox
-
-\NewDocumentCommand{\LWR@rotatebox}{O{} m +m}{%
-% \end{macrocode}
-% Reset the origin to ``none-given'':
-% \begin{macrocode}
-\renewcommand*{\LWR@rotboxorigin}{}
-% \end{macrocode}
-% Process the optional keys, which may set \cs{LWR@rotateboxorigin}:
-% \begin{macrocode}
-\setkeys{krotbox}{#1}%
-% \end{macrocode}
-% Select |inline-block| so that \HTML\ will transform this span:
-% \begin{macrocode}
-\LWR@htmltagc{span style="display: inline-block; %
-% \end{macrocode}
-% If an origin was given, translate and print the origin information:
-% \begin{macrocode}
-\ifthenelse{\NOT\equal{\LWR@rotboxorigin}{}}%
-{transform-origin: \LWR@originnames{\LWR@rotboxorigin};\LWR@origtilde}{}%
-% \end{macrocode}
-% Print the rotation information:
-% \begin{macrocode}
-\LWR@rotstyle{-ms-}{#2} %
-\LWR@rotstyle{-webkit-}{#2} %
-\LWR@rotstyle{}{#2} %
-"{}}\LWR@orignewline%
-% \end{macrocode}
-% Print the text to be rotated:
-% \begin{macrocode}
-\begin{LWR@nestspan}%
-#3%
-% \end{macrocode}
-% Close the span:
-% \begin{macrocode}
-\LWR@htmltagc{/span}%
-\end{LWR@nestspan}%
-}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macro}{\scalebox} \marg{h-scale} \oarg{v-scale} \marg{text}
-%
-% Will \cs{let}\cs{scalebox}\cs{LWR@scalebox} at \cs{LWR@LwarpStart},
-% in case \cs{scalebox} was over-written by a later package load.
-% \begin{macrocode}
-\LetLtxMacro\LWR@origscalebox\scalebox
-
-\NewDocumentCommand{\LWR@scalebox}{m o m}{%
-% \end{macrocode}
-% Select |inline-block| so that \HTML\ will transform this span:
-% \begin{macrocode}
-\LWR@htmltagc{span style="display: inline-block; %
-% \end{macrocode}
-% Print the scaling information:
-% \begin{macrocode}
-\LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-\LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-\LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
-"{}}%
-% \end{macrocode}
-% Print the text to be scaled:
-% \begin{macrocode}
-\begin{LWR@nestspan}%
-#3%
-% \end{macrocode}
-% Close the span:
-% \begin{macrocode}
-\LWR@htmltagc{/span}%
-\end{LWR@nestspan}%
-}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macro}{\reflectbox} \marg{text}
-%
-% Will \cs{let}\cs{reflectbox}\cs{LWR@reflectbox} at \cs{LWR@LwarpStart},
-% in case \\
-% \cs{reflectbox} was over-written by a later package load.
-% \begin{macrocode}
-\let\LWR@origreflectbox\reflectbox
-
-\newcommand{\LWR@reflectbox}[1]{\LWR@scalebox{-1}[1]{#1}}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macrocode}
-\end{warpHTML}
-% \end{macrocode}
-
-
-% \subsection{Null functions}
-%
-% These functions are not supported by \pkg{lwarp}'s \HTML\ conversion.
-
-% \codehtml
-% \begin{macrocode}
-\begin{warpHTML}
-% \end{macrocode}
-
-
-% \begin{macro}{\resizebox} \marg{h-length} \marg{v-length} \marg{text}
-%
-% Simply prints its text argument.
-% \begin{macrocode}
-\renewcommand{\resizebox}[3]{#3}
-% \end{macrocode}
-% \end{macro}
-
-% \begin{macrocode}
-\end{warpHTML}
-% \end{macrocode}
@@ -19958,6 +19695,8 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
% \DescribePackage{cleveref}
% \pkg{cleveref} package is used as-is with minor patches.
%
+% \limitscpageref
+%
% \pkg{cleveref} and the following associated macro patches are
% \margintag{loading order}
% automatically preloaded at the end of the preamble via \cs{AtEndPreamble}
@@ -19969,7 +19708,7 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
% \cs{crefname}, then \pkg{cleveref} may be loaded in the user's preamble near the
% end, and \pkg{lwarp}'s additional loading of \pkg{cleveref} will have no effect.
%
-% \Cref{tab:crossrefdata} on \pageref{tab:crossrefdata}
+% \Cref{tab:crossrefdata} on page \pageref{tab:crossrefdata}
% shows the data structure of the label/reference system
% as revised by \pkg{lwarp} and \pkg{cleveref}.
@@ -20033,7 +19772,7 @@ img src="\thisgraphicspath\LWR@strresult\LWR@imageextension" \LWR@orignewline
% ^^A \cref@getpageref{#2}{\@temppage}#1{\@temppage}{}{}}
-
+% \label{sec:cpagereffor}
% \begin{macro}{\cpagerefFor} Redefinable word between ``page(s)'' and the page numbers.
%
% \changes{v0.20}{2017/01/03}{User-redefinable word for page references.}
@@ -20287,7 +20026,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}}%
% \end{macrocode}
% \LaTeX{} wants to start a paragraph for the new minipage, then start a paragraph again
% for the contents of the minipage, so cancel the paragraph tag handling
@@ -20320,7 +20059,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} ; }%
"{}}%
% \end{macrocode}
% Finish with an empty line to start \LaTeX{} minipage processing on a new line.
@@ -20551,11 +20290,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}%
}
@@ -20820,6 +20559,7 @@ width:\rndprintlength{\LWR@tempwidth}%
% \begin{macro}{\LWR@nullfonts} Removes formatting during filename operations.
% \changes{v0.34}{2017/08/05}{Improved font control.}
% \changes{v0.36}{2017/08/15}{Fix: Filenames while using MathJax.}
+% \changes{v0.40}{2017/09/21}{Fix: Long arguments for expandable command.}
% \begin{macrocode}
\newcommand*{\LWR@nullfonts}{%
\LetLtxMacro{\emph}{\LWR@nullemph}%
@@ -20852,8 +20592,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}%
}
% \end{macrocode}
% \end{macro}
@@ -20966,6 +20707,15 @@ width:\rndprintlength{\LWR@tempwidth}%
% \end{macro}
+% \begin{macro}{\underline} \marg{text}
+% \changes{v0.40}{2017/09/12}{Added.}
+% \begin{macrocode}
+\renewcommand{\underline}[1]{\InlineClass{underline}{#1}}
+% \end{macrocode}
+% \end{macro}
+
+
+
% \begin{macro}{\hfill}
% \changes{v0.20}{2016/12/12}{Inserts a \cs{qquad}.}
% \begin{macrocode}
@@ -21015,6 +20765,7 @@ width:\rndprintlength{\LWR@tempwidth}%
\let\LWR@origvspace\vspace
\let\LWR@origrule\rule
\let\LWR@origmedskip\medskip
+\let\LWR@origtextellipsis\textellipsis
% \end{macrocode}
% Direct-formatting space commands become \HTML\ entities:
@@ -21393,7 +21144,7 @@ width:\rndprintlength{\LWR@tempwidth}%
% limits the allowable syntax. To do:\ A superior method would compute a
% ratio of \LaTeX\ ex height, then print that to \HTML\ with an ex unit.
% \begin{macrocode}
- \IfValueTF{#1}%
+ \IfValueT{#1}%
{%
\setlength{\LWR@tempraise}{0pt-#1}%
\setlength{\LWR@tempraise}{\LWR@tempraise*2}%
@@ -21404,7 +21155,7 @@ width:\rndprintlength{\LWR@tempwidth}%
\LWR@orignewline%
transform: translate(0pt,\printlength{\LWR@tempraise}); %
\LWR@orignewline%
- }{}%
+ }%
% \end{macrocode}
% Display inline-block to place the span inline with the text:
% \begin{macrocode}
@@ -21494,6 +21245,8 @@ width:\rndprintlength{\LWR@tempwidth}%
% |latexlogofont| is a \CSS\ class used to select the font for the rest of the logo in
% \LaTeX, \LuaTeX, \ConTeXt, etc.
% \begin{macrocode}
+\let\LWR@origTeX\TeX
+
\newcommand*{\LWR@TeX}
{\InlineClass{latexlogofont}%
{\InlineClass{latexlogo}{T\textsubscript{e}X}}}
@@ -21503,11 +21256,15 @@ width:\rndprintlength{\LWR@tempwidth}%
% \begin{macro}{\LaTeX}
% \begin{macro}{\LaTeXe} \LaTeX, \LaTeXe
% \begin{macrocode}
+\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}}}}}
@@ -21875,6 +21632,81 @@ width:\rndprintlength{\LWR@tempwidth}%
%
%
%
+% \iffalse
+%<*adjmulticol>
+% \fi
+%
+% \part{lwarp-adjmulticol.sty}
+%
+% \section{adjmulticol}
+%
+% \DescribePackage{adjmulticol}
+% \pkg{adjmulticol} is emulated.
+%
+% Emulation similar to \pkg{multicols} is used, with adjusted margins.
+% If the number of columns is specified as 1, it is set so, but if
+% two or greater are used, \pkg{lwarp} allows a variable number of columns
+% up to three.
+%
+% \changes{v0.40}{2017/09/06}{\pkg{adjmulticol}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{adjmulticol}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\RequirePackage{multicol}
+% \end{macrocode}
+% Used to compute margins:
+% \begin{macrocode}
+\newlength{\LWR@templengthone}%
+\newlength{\LWR@templengthtwo}%
+% \end{macrocode}
+% * \marg{numcols} \marg{left margi} \marg{right margin}
+% \marginpar{\hfill\env{adjmulticols}}
+% \begin{macrocode}
+\NewDocumentEnvironment{adjmulticols}{s m m m}
+{%
+% \end{macrocode}
+% Compute the margins, and limit to positive only:
+% \begin{macrocode}
+\setlength{\LWR@templengthone}{#3}%
+\ifdimcomp{\LWR@templengthone}{<}{0pt}{\setlength{\LWR@templengthone}{0pt}}{}%
+\setlength{\LWR@templengthtwo}{#4}
+\ifdimcomp{\LWR@templengthtwo}{<}{0pt}{\setlength{\LWR@templengthtwo}{0pt}}{}%
+% \end{macrocode}
+% If one column is specified, use a \element{div} of class \attribute{singlecolumn},
+% else use \attribute{multicols}:
+% \begin{macrocode}
+\newcommand*{\LWR@mcolstype}{multicols}%
+\ifnumcomp{#2}{=}{1}{\renewcommand*{\LWR@mcolstype}{singlecolumn}}{}%
+% \end{macrocode}
+% Help avoid page overflow:
+% \begin{macrocode}
+\LWR@forcenewpage%
+% \end{macrocode}
+% Print margins in points:
+% \begin{macrocode}
+\uselengthunit{PT}%
+% \end{macrocode}
+% Create the \element{div} with the given margin and class:
+% \begin{macrocode}
+\BlockClass[%
+margin-left:\rndprintlength{\LWR@templengthone} ; %
+margin-right:\rndprintlength{\LWR@templengthtwo}%
+]{\LWR@mcolstype}%
+}
+{\endBlockClass}
+% \end{macrocode}
+%
+% \iffalse
+%</adjmulticol>
+% \fi
+%
+%
+%
%
% \iffalse
%<*addlines>
@@ -22190,6 +22022,49 @@ span style="width:\rndprintlength{\ALG@thistlm}; display:inline-block;"%
%
%
% \iffalse
+%<*anonchap>
+% \fi
+%
+% \part{lwarp-anonchap.sty}
+%
+% \section{anonchap}
+%
+% \DescribePackage{anonchap}
+% \pkg{anonchap} is emulated.
+%
+% \limitstocloft
+%
+% The code is shared by \pkg{tocbibind}.
+%
+% \changes{v0.40}{2017/09/12}{\pkg{anonchap}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{anonchap}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcommand{\simplechapter}[1][\@empty]{%
+ \def\@chapcntformat##1{%
+ #1~\csname the##1\endcsname\simplechapterdelim\protect\quad%
+ }%
+}
+
+\newcommand{\restorechapter}{%
+\let\@chapcntformat\@seccntformat%
+}
+% \end{macrocode}
+%
+% \iffalse
+%</anonchap>
+% \fi
+%
+%
+%
+%
+%
+% \iffalse
%<*anysize>
% \fi
%
@@ -22388,6 +22263,7 @@ span style="width:\rndprintlength{\ALG@thistlm}; display:inline-block;"%
% \part{lwarp-bigdelim.sty}
%
% \section{bigdelim}
+% \label{sec:bigdelim}
%
% \DescribePackage{bigdelim}
% \pkg{bigdelim} is used as-is for print or \env{lateximage}, and
@@ -22399,10 +22275,21 @@ span style="width:\rndprintlength{\ALG@thistlm}; display:inline-block;"%
% The delimiter character is given a \element{span} class of \attribute{ldelim} or
% \attribute{rdelim}, and the default \CSS\ sets this to \attribute{font-size:200\%}
%
+% \limitsbigdelim
+%
% \changes{v0.39}{2017/08/31}{\pkg{bigdelim}: Added.}
+% \changes{v0.40}{2017/09/09}{\pkg{bigdelim}: Improved documentation.}
%
% \codehtml
%
+% First, remove the temporary definitions of \cs{ldelim} and \cs{rdelim}, which were
+% previously defined for tabular scanning in case \pkg{bigdelim} was not loaded:
+% \begin{macrocode}
+\let\ldelim\relax
+\let\rdelim\relax
+% \end{macrocode}
+%
+% Next, load the package's new definitions:
% \begin{macrocode}
\LWR@ProvidesPackagePass{bigdelim}
% \end{macrocode}
@@ -22847,6 +22734,40 @@ span style="width:\rndprintlength{\ALG@thistlm}; display:inline-block;"%
%
%
% \iffalse
+%<*cuted>
+% \fi
+%
+% \part{lwarp-cuted.sty}
+%
+% \section{cuted}
+%
+% \DescribePackage{cuted}
+% \pkg{cuted} is emulated.
+%
+% \changes{v0.40}{2017/09/07}{\pkg{cuted}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{cuted}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newenvironment{strip}{}{}
+\newskip\stripsep
+\def\oldcolsbreak#1{}
+% \end{macrocode}
+%
+% \iffalse
+%</cuted>
+% \fi
+%
+%
+%
+%
+%
+%
+% \iffalse
%<*cutwin>
% \fi
%
@@ -22903,6 +22824,44 @@ span style="width:\rndprintlength{\ALG@thistlm}; display:inline-block;"%
%
%
% \iffalse
+%<*dblfnote>
+% \fi
+%
+% \part{lwarp-dblfnote.sty}
+%
+% \section{dblfnote}
+%
+% \DescribePackage{dblfnote}
+% \pkg{dblfnote} is emulated.
+%
+% \changes{v0.40}{2017/09/06}{\pkg{dblfnote}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{dblfnote}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcounter{DFNsloppiness}
+\newdimen\DFNcolumnsep
+\newdimen\DFNcolumnwidth
+\def\DFNallowcbreak{}
+\def\DFNinhibitcbreak{}
+\def\DFNtrysingle{}
+\def\DFNalwaysdouble{}
+\def\DFNruleboth{}
+\def\DFNruleleft{}
+% \end{macrocode}
+%
+% \iffalse
+%</dblfnote>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*dcolumn>
% \fi
%
@@ -24257,8 +24216,8 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
}
% \end{macrocode}
-% ^^A \begin{macro}{\floatbox}
-% \cs{floatbox} \oarg{1 preamble} \marg{2 captype}
+% \begin{noindmacro}{\floatbox}
+% \oarg{1 preamble} \marg{2 captype}
% \oarg{3 width} \oarg{4 height} \oarg{5 vert pos}
% \marg{6 caption} \marg{7 object}
%
@@ -24331,7 +24290,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
}% assume subfig
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% Not used:
@@ -24351,8 +24310,8 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \end{macrocode}
-% ^^A \begin{macro}{\newfloatcommand} \marg{1 command} \marg{2 captype}
-% ^^A \oarg{3 preamble} \oarg{4 default width}
+% \begin{noindmacro}{\newfloatcommand} \marg{1 command} \marg{2 captype}
+% \oarg{3 preamble} \oarg{4 default width}
%
% Preamble and default width are ignored.
% \begin{macrocode}
@@ -24362,10 +24321,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\renewfloatcommand} \marg{1 command} \marg{2 captype}
-% ^^A \oarg{3 preamble} \oarg{4 default width}
+% \begin{noindmacro}{\renewfloatcommand} \marg{1 command} \marg{2 captype}
+% \oarg{3 preamble} \oarg{4 default width}
%
% Preamble and default width are ignored.
% \begin{macrocode}
@@ -24375,32 +24334,32 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\ffigbox} \oarg{width} \oarg{height} \oarg{vposn}
-% ^^A \marg{caption commands} \marg{contents}
+% \begin{noindmacro}{\ffigbox} \oarg{width} \oarg{height} \oarg{vposn}
+% \marg{caption commands} \marg{contents}
% \begin{macrocode}
\newfloatcommand{ffigbox}{figure}[\nocapbeside][]
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\ttabbox} \oarg{width} \oarg{height} \oarg{vposn}
-% ^^A \marg{caption commands} \marg{contents}
+% \begin{noindmacro}{\ttabbox} \oarg{width} \oarg{height} \oarg{vposn}
+% \marg{caption commands} \marg{contents}
% \changes{v0.15}{2016/03/31}{Fixed \& handling.}
% \begin{macrocode}
\newfloatcommand{ttabbox}{table}[\captop][\FBwidth]
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\fcapside} \oarg{width} \oarg{height} \oarg{vposn}
-% ^^A \marg{caption commands} \marg{contents}
+% \begin{noindmacro}{\fcapside} \oarg{width} \oarg{height} \oarg{vposn}
+% \marg{caption commands} \marg{contents}
% \begin{macrocode}
\newfloatcommand{fcapside}{figure}[\capbeside][]
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{environment}{floatrow} \oarg{numfloats}
+% \begin{noindenvironment}{floatrow} \oarg{numfloats}
% \changes{v0.20}{2016/08/20}{Fix: \cs{linewidth} in a floatrow.}
%
% The row of floats is placed into a \element{div} of class |floatrow|.
@@ -24420,7 +24379,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\endBlockClass
}
% \end{macrocode}
-% ^^A \end{environment}
+% \end{noindenvironment}
%
% Keys for \cs{DeclareNewFloatType}:
% \begin{macrocode}
@@ -24437,7 +24396,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\define@key{frowkeys}{relatedcapstyle}{}%
% \end{macrocode}
-% ^^A \begin{macro}{\DeclareNewFloatType} \marg{type} \marg{options}
+% \begin{noindmacro}{\DeclareNewFloatType} \marg{type} \marg{options}
%
% Use |\listof{type}{Title}| to print a list of the floats.
% \begin{macrocode}
@@ -24480,7 +24439,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
{\floatname{#1}{\LWR@frowkeyname}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% Not used:
% \begin{macrocode}
@@ -24495,7 +24454,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\NewDocumentCommand{\RawFloats}{o o}{}
% \end{macrocode}
-% ^^A \begin{macro}{\RawCaption} \marg{text}
+% \begin{noindmacro}{\RawCaption} \marg{text}
%
% \changes{v0.15}{2016/03/31}{Fix: steps counter}
%
@@ -24503,10 +24462,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \begin{macrocode}
\newcommand{\RawCaption}[1]{#1}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\floatfoot} \marg{text}
+% \begin{noindmacro}{\floatfoot} \marg{text}
%
% Places additional text inside a float,
% inside a \CSS\ \element{div} of class |floatfoot|.
@@ -24517,7 +24476,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\end{BlockClass}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% ^^A \DescribeBoolean{LWR@insubfloatrow}
@@ -24527,7 +24486,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\boolfalse{LWR@insubfloatrow}
% \end{macrocode}
-% ^^A \begin{environment}{subfloatrow} \oarg{num\_floats}
+% \begin{noindenvironment}{subfloatrow} \oarg{num\_floats}
% \changes{v0.15}{2016/04/01}{Added}
% \begin{macrocode}
\newenvironment*{subfloatrow}[1][2]
@@ -24550,7 +24509,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\boolfalse{LWR@insubfloatrow}
}
% \end{macrocode}
-% ^^A \end{environment}
+% \end{noindenvironment}
% \iffalse
%</floatrow>
@@ -24655,6 +24614,39 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
%
%
% \iffalse
+%<*fnpos>
+% \fi
+%
+% \part{lwarp-fnpos.sty}
+%
+% \section{fnpos}
+%
+% \DescribePackage{fnpos}
+% \pkg{fnpos} is emulated.
+%
+% \changes{v0.40}{2017/09/06}{\pkg{fnpos}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{fnpos}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcommand*{\makeFNbottom}{}
+\newcommand*{\makeFNmid}{}
+\newcommand*{\makeFNbelow}{}
+\newcommand*{\makeFNabove}{}
+% \end{macrocode}
+%
+% \iffalse
+%</fnpos>
+% \fi
+%
+%
+%
+%
+% \iffalse
%<*fontenc>
% \fi
%
@@ -25261,11 +25253,553 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \pkg{graphics} is emulated.
%
% \changes{v0.28}{2017/04/12}{\pkg{graphics}: Added.}
+% \changes{v0.40}{2017/09/07}{\pkg{graphics}: Moved out of the \pkg{lwarp} core.}
+% \changes{v0.40}{2017/09/07}{\pkg{graphics}: Restores \cs{includegraphics}
+% and \cs{DeclareGraphicsExtensions} in a \env{lateximage}.}
%
% \codehtml
% \begin{macrocode}
-\LWR@ProvidesPackageDrop{graphics}
+\LWR@ProvidesPackagePass{graphics}
% \end{macrocode}
+
+
+% \subsection{Graphics extensions}
+
+% \begin{macro}{\DeclareGraphicsExtensions} \marg{list}
+%
+% \cs{AtBeginDocument} allow \SVG\ files instead of \PDF:
+% \begin{macrocode}
+\AtBeginDocument{
+\DeclareGraphicsExtensions{.svg,.SVG,.gif,.GIF,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
+\DeclareGraphicsRule{.svg}{svg}{.svg}{}
+\DeclareGraphicsRule{.SVG}{svg}{.SVG}{}
+}
+% \end{macrocode}
+% Inside a \env{lateximage}, allow \PDF\ instead of \SVG:
+% \begin{macrocode}
+\appto\LWR@restoreorigformatting{%
+\DeclareGraphicsExtensions{.pdf,.PDF,.gif,.GIF,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}%
+}
+% \end{macrocode}
+% \end{macro}
+
+
+% \subsection{Length conversions and graphics options}
+%
+% A scaled image in \LaTeX{} by default takes only as much space
+% on the page as it
+% requires, but \HTML\ browsers use as much space as the
+% \watchout[whitespace]
+% original unscaled image would have taken,
+% with the scaled image over- or under-flowing the area.
+
+% \begin{macrocode}
+\AtBeginDocument{
+\renewcommand*{\unitspace}{}
+}
+% \end{macrocode}
+
+% Used to store the user's selected dimensions and \HTML\ class.
+%
+% The class defaults to ``inlineimage'' unless changed by a |class=xyx| option.
+% \begin{macrocode}
+\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}
+% \end{macrocode}
+
+% Set the actions of each of the key/value combinations for
+% \cs{includegraphics}. Many are ignored.
+%
+% If an optional width was given, set an \HTML\ style:
+% \begin{macrocode}
+\define@key{igraph}{width}{%
+\setlength{\LWR@igwidth}{#1}%
+\ifthenelse{\lengthtest{\LWR@igwidth > 0pt}}%
+{%
+% \end{macrocode}
+% Default to use the converted fixed length given:
+% \begin{macrocode}
+ \uselengthunit{PT}%
+ \renewcommand*{\LWR@igwidthstyle}{width:\rndprintlength{\LWR@igwidth}}%
+% \end{macrocode}
+% If ex or em dimensions were given, use those instead:
+% \begin{macrocode}
+ \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
+}
+% \end{macrocode}
+%
+% If an optional height was given, set an \HTML\ style:
+% \begin{macrocode}
+\define@key{igraph}{height}{%
+\setlength{\LWR@igheight}{#1}%
+\ifthenelse{\lengthtest{\LWR@igheight > 0pt}}%
+{%
+% \end{macrocode}
+% Default to use the converted fixed length given:
+% \begin{macrocode}
+ \uselengthunit{PT}%
+ \renewcommand*{\LWR@igheightstyle}{%
+ height:\rndprintlength{\LWR@igheight} %
+ }%
+% \end{macrocode}
+% If ex or em dimensions were given, use those instead:
+% \begin{macrocode}
+ \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
+}
+% \end{macrocode}
+%
+%
+% Handle origin key:
+% \begin{macrocode}
+\define@key{igraph}{origin}{%
+\renewcommand*{\LWR@igorigin}{#1}%
+}
+% \end{macrocode}
+%
+%
+% Handle angle key:
+% \begin{macrocode}
+\define@key{igraph}{angle}{\renewcommand*{\LWR@igangle}{#1}}
+% \end{macrocode}
+%
+%
+% Handle class key:
+% \begin{macrocode}
+\define@key{igraph}{class}{\renewcommand*{\LWR@igclass}{#1}}
+
+% \end{macrocode}
+% ^^A \define@key{igraph}{xscale}{\renewcommand*{\LWR@igxscale}{#1}}
+% ^^A \define@key{igraph}{yscale}{\renewcommand*{\LWR@igyscale}{#1}}
+% It appears that \pkg{graphicx} does not have separate keys for
+% |xscale| and |yscale|. |scale| adjusts both at the same time.
+% \begin{macrocode}
+\define@key{igraph}{scale}{%
+\renewcommand*{\LWR@igxscale}{#1}%
+\renewcommand*{\LWR@igyscale}{#1}}
+% \end{macrocode}
+%
+% Numerous ignored keys:
+% \begin{macrocode}
+\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}{}
+% \end{macrocode}
+
+
+% \begin{macro}{\LWR@rotstyle} \marg{prefix} \marg{degrees}
+%
+% Prints the rotate style with the given prefix.
+%
+% |prefix| is |-ms-| or |-webkit-| or nothing, and is used to generate
+% three versions of the |transform:rotate| style.
+% \begin{macrocode}
+\newcommand*{\LWR@rotstyle}[2]{%
+ #1transform:rotate(-#2deg);
+}
+% \end{macrocode}
+% \end{macro}
+
+
+% \begin{macro}{\LWR@scalestyle} \marg{prefix} \marg{xscale} \marg{yscale}
+%
+% Prints the scale style with the given prefix.
+%
+% |prefix| is |-ms-| or |-webkit-| or nothing, and is used to generate
+% three versions of the |transform:scale| style.
+% \begin{macrocode}
+\newcommand*{\LWR@scalestyle}[3]{%
+ #1transform:scale(#2,#3);
+}
+% \end{macrocode}
+% \end{macro}
+
+
+
+
+% \subsection{\cs{includegraphics}}
+
+% \DescribeBoolean{LWR@infloatrow}
+% Used to compute \cs{linewidth}.
+% \begin{macrocode}
+\newbool{LWR@infloatrow}
+\boolfalse{LWR@infloatrow}
+% \end{macrocode}
+
+% \cs{LWR@opacity} may be set by the \pkg{transparent} package.
+% For \HTML\ it is only used for \cs{includegraphics}.
+% \begin{macrocode}
+\def\LWR@opacity{1}
+% \end{macrocode}
+
+
+% \begin{macro}{\LWR@includegraphicsb} * \oarg{2: options} \oarg{3: options} \marg{4: filename}
+%
+% \pkg{graphics} syntax is \cs{includegraphics} * \oarg{llx,lly} \oarg{urx,ury} \marg{file}
+%
+% \pkg{graphicx} syntax is \cs{includegraphics} \oarg{key values} \marg{file}
+%
+% If |#3| is empty, only one optional argument was given, thus \pkg{graphicx} syntax.
+%
+% \changes{v0.18}{2016/04/14}{Improved \HTML\ output linebreaks.}
+% \changes{v0.18}{2016/05/17}{Fix: \cs{linewidth}, \cs{textwidth}, \cs{textheight}
+% inside a minipage.}
+% \changes{v0.18}{2016/05/17}{em, ex, \%, px dimensions preserved.}
+% \changes{v0.18}{2016/05/17}{Add: svgz file extension.}
+% \changes{v0.20}{2016/08/20}{Fix: \cs{linewidth} in a floatrow.}
+% \changes{v0.20}{2017/01/12}{Fix: Expands filename.}
+% \changes{v0.28}{2017/04/12}{Adapts to \pkg{graphics} syntax.}
+% \changes{v0.29}{2017/04/15}{Fix: Error when no optional arguments.}
+% \changes{v0.40}{2017/09/08}{Add: Full \cs{graphicspath} support.}
+% \begin{macrocode}
+\NewDocumentCommand{\LWR@includegraphicsb}{s o o m}
+{%
+\LWR@traceinfo{LWR@includegraphicsb #4}%
+% \end{macrocode}
+% Start the image tag on a new line, allow \PDF\ output word wrap:
+% \begin{macrocode}
+\LWR@origtilde \LWR@orignewline%
+% \end{macrocode}
+% Temporarily compute |\linewidth|, |\textwidth|, |\textheight| arguments with a 6x9 inch size
+% until the next |\endgroup|.
+% \begin{macrocode}
+\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}%
+ }%
+}{}%
+% \end{macrocode}
+% \begin{macrocode}
+\renewcommand*{\Gin@setfile}[3]{%
+\LWR@traceinfo{Gin@setfile ##3}%
+\xdef\LWR@parsedfilename{##3}%
+}%
+\Ginclude@graphics{\detokenize{#4}}%
+\filename@parse{\LWR@parsedfilename}%
+% \end{macrocode}
+%
+% For correct em sizing during the width and height conversions:
+% \begin{macrocode}
+\large%
+% \end{macrocode}
+% Reset some defaults, possibly will be changed below if options were given:
+% \begin{macrocode}
+\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}%
+% \end{macrocode}
+%
+% If |#3| is empty, only one optional argument was given, thus \pkg{graphicx} syntax:
+% \begin{macrocode}
+\IfValueF{#3}{%
+\IfValueTF{#2}%
+{\setkeys{igraph}{#2}}%
+{\setkeys{igraph}{}}%
+}%
+% \end{macrocode}
+% Create the \HTML\ reference with the graphicspath, filename, extension,
+% alt tag, style, and class.
+%
+% The \cs{LWR@origtilde} adds space between tags in case this
+% is being done inside a \cs{savebox} where \cs{newline} has no effect.
+% \begin{macrocode}
+\LWR@traceinfo{LWR@includegraphicsb: about to create href}%
+\href{\LWR@parsedfilename}%
+{% start of href
+\LWR@traceinfo{LWR@includegraphicsb: about to LWR@htmltag}%
+\LWR@htmltag{% start of image tags
+img src="\LWR@parsedfilename" \LWR@orignewline%
+\LWR@origtilde{} alt="[\filename@base]" \LWR@orignewline%
+% \end{macrocode}
+% Only include a style tag if a width, height, angle, or scale was given:
+% \begin{macrocode}
+\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}{}%
+% \end{macrocode}
+% Set the class:
+% \begin{macrocode}
+\LWR@origtilde{} class="\LWR@igclass" \LWR@orignewline%
+}% end of image tags
+}% end of href
+\endgroup
+% \end{macrocode}
+% Return to small-sized output:
+% \begin{macrocode}
+\LWR@origscriptsize
+\LWR@traceinfo{LWR@includegraphicsb done}%
+}
+% \end{macrocode}
+% \end{macro}
+
+% \begin{macro}{\includegraphics} \oarg{key=val} \marg{filename}
+
+% Handles width and height, converted to fixed width and heights.
+
+% Converts any |.pdf| references to |.svg| for \HTML\
+
+% The user should always refer to |.pdf| in the document source.
+
+% \begin{macrocode}
+\LetLtxMacro\LWR@origincludegraphics\includegraphics
+
+\AtBeginDocument{
+\renewcommand*{\includegraphics}
+{%
+% \end{macrocode}
+% This graphic should trigger an \HTML\ paragraph even if alone,
+% so ensure that are doing paragraph handling:
+% \begin{macrocode}
+\LWR@traceinfo{includegraphics}
+\LWR@ensuredoingapar%
+\begingroup%
+\catcode`\_=12%
+\LWR@includegraphicsb%
+}% includegraphics
+}% AtBeginDocument
+% \end{macrocode}
+% \end{macro}
+
+
+% \begin{macro}{\LWR@rotboxorigin} Holds the origin key letters.
+% \begin{macrocode}
+\newcommand*{\LWR@rotboxorigin}{}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\LWR@originname} \marg{letter}
+%
+% Given one \LaTeX{} origin key value,
+% translate into an \HTML\ origin word:
+% \begin{macrocode}
+\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}{}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% \begin{macro}{\LWR@originnames} \marg{letters}
+%
+% Given one- or two-letter \LaTeX{} origin key values,
+% translate into \HTML\ origin words:
+% \begin{macrocode}
+\newcommand*{\LWR@originnames}[1]{%
+\StrChar{#1}{1}[\LWR@strresult]%
+\LWR@originname{\LWR@strresult}
+\StrChar{#1}{2}[\LWR@strresult]%
+\LWR@originname{\LWR@strresult}
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
+% Handle the origin key for \cs{rotatebox}:
+% \begin{macrocode}
+\define@key{krotbox}{origin}{%
+\renewcommand*{\LWR@rotboxorigin}{#1}%
+}
+% \end{macrocode}
+% These keys are ignored:
+% \begin{macrocode}
+\define@key{krotbox}{x}{}
+\define@key{krotbox}{y}{}
+\define@key{krotbox}{units}{}
+% \end{macrocode}
+%
+%
+% \begin{macro}{\rotatebox} \oarg{keyval list} \marg{angle} \marg{text}
+% \begin{macrocode}
+\LetLtxMacro\LWR@origrotatebox\rotatebox
+
+\AtBeginDocument{
+\RenewDocumentCommand{\rotatebox}{O{} m +m}{%
+% \end{macrocode}
+% Reset the origin to ``none-given'':
+% \begin{macrocode}
+\renewcommand*{\LWR@rotboxorigin}{}
+% \end{macrocode}
+% Process the optional keys, which may set \cs{LWR@rotateboxorigin}:
+% \begin{macrocode}
+\setkeys{krotbox}{#1}%
+% \end{macrocode}
+% Select |inline-block| so that \HTML\ will transform this span:
+% \begin{macrocode}
+\LWR@htmltagc{span style="display: inline-block; %
+% \end{macrocode}
+% If an origin was given, translate and print the origin information:
+% \begin{macrocode}
+\ifthenelse{\NOT\equal{\LWR@rotboxorigin}{}}%
+{transform-origin: \LWR@originnames{\LWR@rotboxorigin};\LWR@origtilde}{}%
+% \end{macrocode}
+% Print the rotation information:
+% \begin{macrocode}
+\LWR@rotstyle{-ms-}{#2} %
+\LWR@rotstyle{-webkit-}{#2} %
+\LWR@rotstyle{}{#2} %
+"{}}\LWR@orignewline%
+% \end{macrocode}
+% Print the text to be rotated:
+% \begin{macrocode}
+\begin{LWR@nestspan}%
+#3%
+% \end{macrocode}
+% Close the span:
+% \begin{macrocode}
+\LWR@htmltagc{/span}%
+\end{LWR@nestspan}%
+}
+}% AtBeginDocument
+% \end{macrocode}
+% \end{macro}
+
+% \begin{macro}{\scalebox} \marg{h-scale} \oarg{v-scale} \marg{text}
+% \begin{macrocode}
+\LetLtxMacro\LWR@origscalebox\scalebox
+
+\AtBeginDocument{
+\RenewDocumentCommand{\scalebox}{m o m}{%
+% \end{macrocode}
+% Select |inline-block| so that \HTML\ will transform this span:
+% \begin{macrocode}
+\LWR@htmltagc{span style="display: inline-block; %
+% \end{macrocode}
+% Print the scaling information:
+% \begin{macrocode}
+\LWR@scalestyle{-ms-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
+\LWR@scalestyle{-webkit-}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
+\LWR@scalestyle{}{#1}{\IfNoValueTF{#2}{#1}{#2}} %
+"{}}%
+% \end{macrocode}
+% Print the text to be scaled:
+% \begin{macrocode}
+\begin{LWR@nestspan}%
+#3%
+% \end{macrocode}
+% Close the span:
+% \begin{macrocode}
+\LWR@htmltagc{/span}%
+\end{LWR@nestspan}%
+}
+}% AtBeginDocument
+% \end{macrocode}
+% \end{macro}
+
+% \begin{macro}{\reflectbox} \marg{text}
+% \begin{macrocode}
+\let\LWR@origreflectbox\reflectbox
+
+\AtBeginDocument{
+\renewcommand{\reflectbox}[1]{\scalebox{-1}[1]{#1}}
+}
+% \end{macrocode}
+% \end{macro}
+
+
+
+% \begin{macro}{\resizebox} \marg{h-length} \marg{v-length} \marg{text}
+%
+% Simply prints its text argument.
+% \begin{macrocode}
+\LetLtxMacro\LWR@origresizebox\resizebox
+
+\AtBeginDocument{
+\renewcommand{\resizebox}[3]{#3}
+}
+% \end{macrocode}
+% \end{macro}
+
+
%
% \iffalse
%</graphics>
@@ -25286,12 +25820,19 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \DescribePackage{graphicx}
% \pkg{graphicx} is emulated.
%
+% \pkg{graphicx} loads \pkg{graphics}, which also loads \pkg{lwarp-graphics},
+% which remembers the original graphics definitions for use inside a \env{lateximage},
+% and then patches them \cs{AtBeginDocument} for \HTML\ output.
+%
+% \pkg{lwarp-graphics} handles the syntax of either \pkg{graphics} or \pkg{graphicx}.
+%
+% \changes{v0.40}{2017/09/07}{\pkg{graphicx}: Moved out of the \pkg{lwarp} core.}
+%
% \codehtml
% \begin{macrocode}
-\LWR@ProvidesPackageDrop{graphicx}
+\LWR@ProvidesPackagePass{graphicx}
% \end{macrocode}
-
% \iffalse
%</graphicx>
% \fi
@@ -25313,24 +25854,17 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \DescribePackage{grffile}
% \limitsgrffile
%
+% \pkg{lwarp-grffile} now exists as a placeholder since \pkg{grffile}
+% used to be emulated by \pkg{lwarp}, and thus older versions of \pkg{lwarp-grffile}
+% may exist and should be overwritten by this newer version.
+%
% \changes{v0.38}{2017/08/25}{\pkg{grffile}: Added.}
+% \changes{v0.40}{2017/09/25}{\pkg{grffile}: Directly supported.}
%
% \codehtml
%
% \begin{macrocode}
-\LWR@ProvidesPackageDrop{grffile}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\define@key{igraph}{multidot}{}
-\define@key{igraph}{babel}{}
-\define@key{igraph}{extendedchars}{}
-\define@key{igraph}{encoding}{}
-\define@key{igraph}{inputencoding}{}
-\define@key{igraph}{filenameencoding}{}
-\define@key{igraph}{space}{}
-
-\newcommand*{\grffilesetup}[1]{}
+\LWR@ProvidesPackagePass{grffile}
% \end{macrocode}
%
% \iffalse
@@ -25373,7 +25907,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
-% ^^A \begin{macro}{\hyperimage} \marg{url} \marg{alt text}
+% \begin{noindmacro}{\hyperimage} \marg{url} \marg{alt text}
%
% Insert an image with alt text:
% \begin{macrocode}
@@ -25389,10 +25923,12 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\LWR@hyperimageb%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\hyperdef} \marg{1: category} \marg{2: name} \marg{3: text}
+% \begin{noindmacro}{\hyperdef}
+% \marg{1: category} \marg{2: name} \marg{3: text}
+%
% Creates an \HTML\ anchor to |category.name| with the given text.
%
% \begin{macrocode}
@@ -25402,11 +25938,11 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
#3%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\LWR@hyperrefb} \marg{1: URL} \marg{2: category}
-% ^^A \marg{3: name} \marg{4: text}
+% \begin{noindmacro}{\LWR@hyperrefb} \marg{1: URL} \marg{2: category}
+% \marg{3: name} \marg{4: text}
%
% Creates an \HTML\ link to |URL#category.name| with the given text.
% \begin{macrocode}
@@ -25417,9 +25953,9 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\endgroup%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\LWR@hyperrefc} \oarg{label} \marg{text}
+% \begin{noindmacro}{\LWR@hyperrefc} \oarg{label} \marg{text}
%
% Creates text as an \HTML\ link to the \LaTeX\ label.
% \begin{macrocode}
@@ -25430,12 +25966,11 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\endgroup%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\hyperref}
-% ^^A \marg{1: URL} \marg{2: category} \marg{3: name} \marg{4: text} \quad -or-
-%
-% ^^A \oarg{1: label} \marg{2: text}
+% \begin{noindmacro}{\hyperref}
+% \marg{1: URL} \marg{2: category} \marg{3: name} \marg{4: text} \quad ---\,or\,--- \\
+% \oarg{1: label} \marg{2: text}
%
% \begin{macrocode}
\newcommand{\hyperref}{%
@@ -25444,11 +25979,12 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\@ifnextchar[\LWR@hyperrefc\LWR@hyperrefb%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\hypertarget} \marg{name} \marg{text}
+% \begin{noindmacro}{\hypertarget} \marg{name} \marg{text}
+%
% Creates an anchor to |name| with the given text.
%
% \begin{macrocode}
@@ -25457,10 +25993,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
#2%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\hyperlink} \marg{name} \marg{text}
+% \begin{noindmacro}{\hyperlink} \marg{name} \marg{text}
%
% Creates a link to the anchor created by hypertarget,
% with the given link text.
@@ -25470,10 +26006,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\hyperref[#1]{#2}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\autoref} * \marg{label}
+% \begin{noindmacro}{\autoref} * \marg{label}
%
% For \HTML, \cs{cleveref} is used instead.
%
@@ -25482,10 +26018,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\IfBooleanTF{#1}{\ref{#2}}{\cref{#2}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\autopageref} \marg{label}
+% \begin{noindmacro}{\autopageref} \marg{label}
%
% For \HTML, \cs{cleveref} is used instead.
%
@@ -25494,59 +26030,59 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\IfBooleanTF{#1}{\cpageref{#2}}{\cref{#2}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\pdfstringdef} \marg{macroname} \marg{\TeX{}string}
+% \begin{noindmacro}{\pdfstringdef} \marg{macroname} \marg{\TeX{}string}
%
% \begin{macrocode}
\newcommand{\pdfstringdef}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\pdfbookmark} \oarg{level} \marg{text} \marg{name}
+% \begin{noindmacro}{\pdfbookmark} \oarg{level} \marg{text} \marg{name}
%
% \begin{macrocode}
\newcommand{\pdfbookmark}[3][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\currentpdfbookmark} \marg{text} \marg{name}
+% \begin{noindmacro}{\currentpdfbookmark} \marg{text} \marg{name}
%
% \begin{macrocode}
\newcommand{\currentpdfbookmark}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\subpdfbookmark} \marg{text} \marg{name}
+% \begin{noindmacro}{\subpdfbookmark} \marg{text} \marg{name}
%
% \begin{macrocode}
\newcommand{\subpdfbookmark}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\belowpdfbookmark} \marg{text} \marg{name}
+% \begin{noindmacro}{\belowpdfbookmark} \marg{text} \marg{name}
%
% \begin{macrocode}
\newcommand{\belowpdfbookmark}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\texorpdfstring} \marg{\TeX{}string} \marg{PDFstring}
+% \begin{noindmacro}{\texorpdfstring} \marg{\TeX{}string} \marg{PDFstring}
%
% \begin{macrocode}
\newcommand{\texorpdfstring}[2]{#2}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\hypercalcbp} \marg{dimen} \quad
+% \begin{noindmacro}{\hypercalcbp} \marg{dimen} \quad
% From \pkg{hyperref}.
%
% \begin{macrocode}
@@ -25554,127 +26090,127 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\strip@pt\dimexpr 0.99626401\dimexpr(#1)\relax\relax
}%
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\Acrobatmenu} \marg{menuoption} \marg{text}
+% \begin{noindmacro}{\Acrobatmenu} \marg{menuoption} \marg{text}
%
% \begin{macrocode}
\newcommand{\Acrobatmenu}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\TextField} \oarg{parameters} \marg{label}
+% \begin{noindmacro}{\TextField} \oarg{parameters} \marg{label}
%
% \begin{macrocode}
\newcommand*{\TextField}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\CheckBox} \oarg{parameters} \marg{label}
+% \begin{noindmacro}{\CheckBox} \oarg{parameters} \marg{label}
%
% \begin{macrocode}
\newcommand*{\CheckBox}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\ChoiceMenu} \oarg{parameters} \marg{label} \marg{choices}
+% \begin{noindmacro}{\ChoiceMenu} \oarg{parameters} \marg{label} \marg{choices}
%
% \begin{macrocode}
\newcommand{\ChoiceMenu}[3][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\PushButton} \oarg{parameters} \marg{label}
+% \begin{noindmacro}{\PushButton} \oarg{parameters} \marg{label}
%
% \begin{macrocode}
\newcommand*{\PushButton}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\Submit} \oarg{parameters} \marg{label}
+% \begin{noindmacro}{\Submit} \oarg{parameters} \marg{label}
%
% \begin{macrocode}
\newcommand*{\Submit}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\Reset} \oarg{parameters} \marg{label}
+% \begin{noindmacro}{\Reset} \oarg{parameters} \marg{label}
%
% \begin{macrocode}
\newcommand*{\Reset}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\LayoutTextField} \marg{label} \marg{field}
+% \begin{noindmacro}{\LayoutTextField} \marg{label} \marg{field}
%
% \begin{macrocode}
\newcommand*{\LayoutTextField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\LayoutChoiceField} \marg{label} \marg{field}
+% \begin{noindmacro}{\LayoutChoiceField} \marg{label} \marg{field}
%
% \begin{macrocode}
\newcommand*{\LayoutChoiceField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\LayoutCheckField} \marg{label} \marg{field}
+% \begin{noindmacro}{\LayoutCheckField} \marg{label} \marg{field}
%
% \begin{macrocode}
\newcommand*{\LayoutCheckField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\MakeRadioField} \marg{width} \marg{height}
+% \begin{noindmacro}{\MakeRadioField} \marg{width} \marg{height}
%
% \begin{macrocode}
\newcommand*{\MakeRadioField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\MakeCheckField} \marg{width} \marg{height}
+% \begin{noindmacro}{\MakeCheckField} \marg{width} \marg{height}
%
% \begin{macrocode}
\newcommand*{\MakeCheckField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\MakeTextField} \marg{width} \marg{height}
+% \begin{noindmacro}{\MakeTextField} \marg{width} \marg{height}
%
% \begin{macrocode}
\newcommand*{\MakeTextField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\MakeChoiceField} \marg{width} \marg{height}
+% \begin{noindmacro}{\MakeChoiceField} \marg{width} \marg{height}
%
% \begin{macrocode}
\newcommand*{\MakeChoiceField}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\MakeFieldButton} \marg{text}
+% \begin{noindmacro}{\MakeFieldButton} \marg{text}
%
% \begin{macrocode}
\newcommand{\MakeFieldButton}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \iffalse
%</hyperref>
@@ -26208,7 +26744,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
% \end{macrocode}
%
%
-% ^^A \begin{macro}{\lst@Init} \marg{backslash-processing}
+% \begin{noindmacro}{\lst@Init} \marg{backslash-processing} \quad
% Done at the start of a listing.
% \begin{macrocode}
\renewcommand{\lst@Init}[1]{%
@@ -26241,10 +26777,10 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\fi%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\lst@DeInit} Done at the end of a listing.
+% \begin{noindmacro}{\lst@DeInit} \quad Done at the end of a listing.
% \begin{macrocode}
\renewcommand*{\lst@DeInit}{%
\lst@ifdisplaystyle%
@@ -26271,11 +26807,11 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\LWR@origlst@DeInit%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
%
-% ^^A \begin{macro}{\lst@MakeCaption} \marg{t/b}
+% \begin{noindmacro}{\lst@MakeCaption} \marg{t/b}
%
% This is called BOTH at the top and at the bottom of each listing.
%
@@ -26368,7 +26904,7 @@ border#1: \strip@pt\dimexpr \FV@FrameRule\relax\relax pt solid \#\LWR@tempcolor
\LWR@traceinfo{DONE WITH CAPTION at #1}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
% Patched to keep left line numbers outside of the left margin, and
@@ -26779,7 +27315,7 @@ endinnercode={\LWR@stoppars},
% \end{macrocode}
%
%
-% ^^A \begin{macro}{\LWR@mdfprintcolor} \marg{mdfcolorkey}
+% \begin{noindmacro}{\LWR@mdfprintcolor} \marg{mdfcolorkey}
%
% Given the \pkg{mdframed} key, print the color.
% \begin{macrocode}
@@ -26788,9 +27324,9 @@ endinnercode={\LWR@stoppars},
\#\LWR@tempcolor
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\LWR@mdfprintlength} \marg{mdflengthkey}
+% \begin{noindmacro}{\LWR@mdfprintlength} \marg{mdflengthkey}
%
% Given the \pkg{mdframed} key, print the length.
% \begin{macrocode}
@@ -26798,10 +27334,10 @@ endinnercode={\LWR@stoppars},
\rndprintlength{\csuse{mdf@#1@length}}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\LWR@mdframedstart}
+% \begin{noindmacro}{\LWR@mdframedstart}
% Actions before an mdframe starts.
%
% Encapsulate a frame inside a \element{div} of the desired |class|.
@@ -26859,9 +27395,9 @@ border-radius: \LWR@mdfprintlength{roundcorner} ; \LWR@orignewline
\LetLtxMacro\makebox\LWR@origmakebox%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\LWR@mdframedend}
+% \begin{noindmacro}{\LWR@mdframedend}
% Actions after an mdframe ends.
%
% After closing the \element{div}, globally restore to the default environment type:
@@ -26881,10 +27417,10 @@ border-radius: \LWR@mdfprintlength{roundcorner} ; \LWR@orignewline
\LWR@startpars%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\mdfframedtitleenv} \marg{title}
+% \begin{noindmacro}{\mdfframedtitleenv} \marg{title}
%
% Encapsulation of the original which places the title
% inside a \element{span} of class |mdframedtitle|:
@@ -26951,10 +27487,11 @@ border-radius:
}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\LWR@mdfsubtitlecommon} \marg{sub -or subsub} \oarg{options} \marg{title}
+% \begin{noindmacro}{\LWR@mdfsubtitlecommon}
+% \marg{sub -or- subsub} \oarg{options} \marg{title}
%
% Common code for \cs{LWR@mdfsubtitle} and \cs{LWR@mdfsubsubtitle}.
%
@@ -27022,9 +27559,9 @@ background:
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\LWR@mdfsubtitle} \oarg{options} \marg{title}
+% \begin{noindmacro}{\LWR@mdfsubtitle} \oarg{options} \marg{title}
% \begin{macrocode}
\let\LWR@origmdfsubtitle\mdfsubtitle
@@ -27033,10 +27570,10 @@ background:
}
\let\mdfsubtitle\LWR@mdfsubtitle
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\LWR@mdfsubsubtitle} \oarg{options} \marg{title}
+% \begin{noindmacro}{\LWR@mdfsubsubtitle} \oarg{options} \marg{title}
% \begin{macrocode}
\let\LWR@origmdfsubsubtitle\mdfsubsubtitle
@@ -27045,19 +27582,19 @@ background:
}
\let\mdfsubsubtitle\LWR@mdfsubsubtitle
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
%
-% ^^A \begin{macro}{\LWR@mdthisenv}
+% \begin{noindmacro}{\LWR@mdthisenv}
% Stores the environment of the frame about to be created:
% \begin{macrocode}
\newcommand*{\LWR@mdthisenv}{mdframed}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\newmdenv} \oarg{options} \marg{env-name}
+% \begin{noindmacro}{\newmdenv} \oarg{options} \marg{env-name}
%
% Modified from the original to remember the environment.
% \begin{macrocode}
@@ -27071,9 +27608,9 @@ background:
{\end{mdframed}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
-% ^^A \begin{macro}{\surroundwithmdframed} \oarg{options} \marg{environment}
+% \begin{noindmacro}{\surroundwithmdframed} \oarg{options} \marg{environment}
%
% Modified from the original to remember the environment.
% \begin{macrocode}
@@ -27084,10 +27621,10 @@ background:
\AfterEndEnvironment{#2}{\end{mdframed}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\mdtheorem} \oarg{mdframed-options}{envname}
+% \begin{noindmacro}{\mdtheorem} \oarg{mdframed-options}{envname}
% \oarg{numberedlike} \marg{caption} \oarg{within}
%
% Modified from the original to remember the environment.
@@ -27184,19 +27721,20 @@ background:
}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
%
%
-% ^^A \begin{macro}{\newmdtheoremenv} \oarg{mdframed-options}{envname}
+% \begin{noindmacro}{\newmdtheoremenv} \oarg{mdframed-options}{envname}
% \oarg{numberedlike} \marg{caption} \oarg{within}
%
% Modified from the original to remember the environment.
% \begin{macrocode}
\DeclareDocumentCommand\newmdtheoremenv{O{} m o m o }{%
\ifboolexpr{ test {\IfNoValueTF {#3}} and test {\IfNoValueTF {#5}} }%
- {\newtheorem{#2}{#4}}{%
- \IfValueTF{#3}{\newtheorem{#2}[#3]{#4}}{}%
- \IfValueTF{#5}{\newtheorem{#2}{#4}[#5]}{}%
+ {\newtheorem{#2}{#4}}%
+ {%
+ \IfValueT{#3}{\newtheorem{#2}[#3]{#4}}%
+ \IfValueT{#5}{\newtheorem{#2}{#4}[#5]}%
}%
\BeforeBeginEnvironment{#2}{%
\renewcommand*{\LWR@mdthisenv}{md#2}%
@@ -27205,7 +27743,7 @@ background:
\end{mdframed}}%
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \iffalse
%</mdframed>
@@ -27315,6 +27853,36 @@ background:
%
%
%
+% \iffalse
+%<*midfloat>
+% \fi
+%
+% \part{lwarp-midfloat.sty}
+%
+% \section{midfloat}
+%
+% \DescribePackage{midfloat}
+% \pkg{midfloat} is emulated.
+%
+% \changes{v0.40}{2017/09/07}{\pkg{midfloat}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{midfloat}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newenvironment{strip}[1][]{}{}
+\newskip\stripsep
+% \end{macrocode}
+%
+% \iffalse
+%</midfloat>
+% \fi
+%
+%
+%
%
%
% \iffalse
@@ -27493,7 +28061,7 @@ background:
\begin{warpHTML}
% \end{macrocode}
-% ^^A \begin{environment}{multicols} * \marg{numcols} \oarg{heading}
+% \begin{noindenvironment}{multicols} * \marg{numcols} \oarg{heading}
% \begin{macrocode}
\NewDocumentEnvironment{multicols}{s m o}
% \end{macrocode}
@@ -27505,13 +28073,13 @@ background:
% \end{macrocode}
% Optional \HTML\ \element{div} class for the heading:
% \begin{macrocode}
-\IfValueTF{#3}{\begin{BlockClass}{multicolsheading}#3\end{BlockClass}}{}}
+\IfValueT{#3}{\begin{BlockClass}{multicolsheading}#3\end{BlockClass}}}
% \end{macrocode}
% When done with the environment, close the \element{div}:
% \begin{macrocode}
{\endBlockClass}
% \end{macrocode}
-% ^^A \end{environment}
+% \end{noindenvironment}
% Emulated null functions which are not used in \HTML:
% \begin{macrocode}
@@ -27593,6 +28161,7 @@ background:
% \changes{v0.39}{2017/08/30}{Add: New optional \protect\texttt{vpos} argument.}
% \changes{v0.39}{2017/08/30}{Add: Supports left/right border for \pkg{bigdelim}.}
% \changes{v0.39}{2017/08/30}{Fix: Long text argument.}
+% \changes{v0.40}{2017/09/22}{Improved \pkg{bigdelim} borders.}
% \begin{macrocode}
\RenewDocumentCommand{\multirow}{O{c} m o m o +m}%
{%
@@ -27613,7 +28182,8 @@ background:
% The left/right border, if given:
% \begin{macrocode}
\ifdefvoid{\LWR@multirowborder}{}{%
-style="border-\LWR@multirowborder: 2px solid black" %
+style="border-\LWR@multirowborder: 2px dotted black ; %
+padding-\LWR@multirowborder: 2px" %
}
% \end{macrocode}
% A class adds the column spec and the rule:
@@ -27658,7 +28228,7 @@ class="td%
% \changes{v0.39}{2017/08/30}{Added.}
%
% \begin{macrocode}
-\RenewDocumentCommand{\multicolumnrow}{m m O{} m O{} m O{} +m}{%
+\NewDocumentCommand{\multicolumnrow}{m m O{} m O{} m O{} +m}{%
% \end{macrocode}
% Figure out how many extra \HTML\ columns to add for |@| and |!| columns:
% \begin{macrocode}
@@ -27942,24 +28512,24 @@ class="td%
\LWR@ProvidesPackageDrop{nowidow}
% \end{macrocode}
-% ^^A \begin{macro}{\nowidow} \oarg{lines}
-% ^^A \begin{macro}{\setnowidow} \oarg{lines}
+% \begin{noindmacro}{\nowidow} \oarg{lines}
+% \begin{noindmacro}{\setnowidow} \oarg{lines}
% \begin{macrocode}
\newcommand*{\nowidow}[1][]{}
\newcommand*{\setnowidow}[1][]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-
-% ^^A \begin{macro}{\noclub} \oarg{lines}
-% ^^A \begin{macro}{\setnoclub} \oarg{lines}
+% \end{noindmacro}
+% \end{noindmacro}
+%
+% \begin{noindmacro}{\noclub} \oarg{lines}
+% \begin{noindmacro}{\setnoclub} \oarg{lines}
% \begin{macrocode}
\newcommand*{\noclub}[1][]{}
\newcommand*{\setnoclub}[1][]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-
+% \end{noindmacro}
+% \end{noindmacro}
+%
% \iffalse
%</nowidow>
% \fi
@@ -28702,6 +29272,37 @@ class="td%
%
%
%
+%
+%
+% \iffalse
+%<*pfnote>
+% \fi
+%
+% \part{lwarp-pfnote.sty}
+%
+% \section{pfnote}
+%
+% \DescribePackage{pfnote}
+% \pkg{pfnote} is emulated.
+%
+% \limitspfnote
+%
+% \changes{v0.40}{2017/09/06}{\pkg{pfnote}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{pfnote}
+% \end{macrocode}
+%
+% \iffalse
+%</pfnote>
+% \fi
+%
+%
+%
+%
+%
% \iffalse
%<*placeins>
% \fi
@@ -28769,6 +29370,85 @@ class="td%
%
%
%
+% \iffalse
+%<*quotchap>
+% \fi
+%
+% \part{lwarp-quotchap.sty}
+%
+% \section{quotchap}
+%
+% \DescribePackage{quotchap}
+% \pkg{quotchap} is emulated.
+%
+% \credits{Karsten Tinnefeld, Jan Klever}
+%
+% \changes{v0.40}{2017/09/22}{\pkg{quotchap}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{quotchap}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcommand{\@quotchap}{}
+\newlength{\LWR@quotchapwidth}
+
+\let\@printcites\relax
+
+\newcommand*{\@iprintcites}{%
+% \end{macrocode}
+% Place the quotes inside a \element{div}
+% of class \attribute{quotchap},
+% of the maximum selected width:
+% \begin{macrocode}
+\uselengthunit{PT}%
+\begin{BlockClass}[max-width: \rndprintlength{\LWR@quotchapwidth}]{quotchap}
+%\begin{minipage}{\LWR@quotchapwidth}
+\@quotchap
+%\end{minipage}
+\end{BlockClass}
+% \end{macrocode}
+% Deactivate the quote printing:
+% \begin{macrocode}
+\global\let\@printcites\relax
+}
+
+\NewEnviron{savequote}[1][\linewidth]{%
+% \end{macrocode}
+% Remember the width, adjusted for \HTML,
+% and make the length assignment global, per: \\
+%\href{https://tex.stackexchange.com/questions/300823/why-is-setlength-ineffective-inside-a-tabular-environment}
+%{\ttfamily https://tex.stackexchange.com/questions/300823/ \\
+% \hspace*{2em} why-is-setlength-ineffective-inside-a-tabular-environment}
+% \begin{macrocode}
+\setlength{\LWR@quotchapwidth}{#1*2}%
+\global\LWR@quotchapwidth=\LWR@quotchapwidth%
+% \end{macrocode}
+% Remember the body, and activate the quote printing:
+% \begin{macrocode}
+\global\let\@quotchap\BODY
+\global\let\@printcites\@iprintcites%
+}
+% \end{macrocode}
+% The quotation author is placed inside a \element{div}
+% of class \attribute{qauthor}:
+% \begin{macrocode}
+\newcommand{\qauthor}[1]{\begin{BlockClass}{qauthor}{#1}\end{BlockClass}}
+% \end{macrocode}
+% \cs{qsetcnfont} is ignored:
+% \begin{macrocode}
+\newcommand{\qsetcnfont}[1]{}
+% \end{macrocode}
+%
+% \iffalse
+%</quotchap>
+% \fi
+%
+%
+%
+%
%
% \iffalse
%<*ragged2e>
@@ -29195,6 +29875,56 @@ class="td%
%
%
%
+% \iffalse
+%<*sectsty>
+% \fi
+%
+% \part{lwarp-sectsty.sty}
+%
+% \section{sectsty}
+%
+% \DescribePackage{sectsty}
+% \pkg{sectsty} is emulated.
+%
+% \changes{v0.40}{2017/09/12}{\pkg{sectsty}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{sectsty}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newcommand*{\partfont} [1] {}
+\newcommand*{\partnumberfont} [1] {}
+\newcommand*{\parttitlefont} [1] {}
+\newcommand*{\chapterfont} [1] {}
+\newcommand*{\chapternumberfont} [1] {}
+\newcommand*{\chaptertitlefont} [1] {}
+\newcommand*{\sectionfont} [1] {}
+\newcommand*{\subsectionfont} [1] {}
+\newcommand*{\subsubsectionfont} [1] {}
+\newcommand*{\paragraphfont} [1] {}
+\newcommand*{\subparagraphfont} [1] {}
+\newcommand*{\minisecfont} [1] {}
+\newcommand*{\allsectionsfont}[1] {}
+\newcommand{\nohang}{}
+% \end{macrocode}
+% \cs{sectionrule} is only to be used in |*font| commands, thus it is ignored.
+% \begin{macrocode}
+\newcommand*{\sectionrule}[5]{}
+
+\def\ulemheading#1#2{}
+% \end{macrocode}
+%
+% \iffalse
+%</sectsty>
+% \fi
+%
+%
+%
+%
+%
%
%
% \iffalse
@@ -29673,6 +30403,56 @@ class="td%
%
%
%
+% \iffalse
+%<*stabular>
+% \fi
+%
+% \part{lwarp-stabular.sty}
+%
+% \section{stabular}
+%
+% \DescribePackage{stabular}
+% \pkg{stabular} is emulated.
+%
+% \changes{v0.40}{2017/09/07}{\pkg{stabular}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{stabular}
+% \end{macrocode}
+%
+% \oarg{vpos} \marg{colspec}
+% \marginpar{\hfill {\footnotesize Env} \env{stabular}}
+% \begin{macrocode}
+\newenvironment{stabular}[2][c]
+{
+\renewcommand{\noalign}[1]{}
+\begin{tabular}[#1]{#2}
+}
+{\end{tabular}}
+% \end{macrocode}
+%
+% \marg{width} \oarg{vpos} \marg{colspec}
+% \marginpar{\hfill {\footnotesize Env} \env{stabular}}
+% \begin{macrocode}
+\NewDocumentEnvironment{stabular*}{m o m}
+{
+\renewcommand{\noalign}[1]{}
+\begin{tabular}[#2]{#3}
+}
+{\end{tabular}}
+% \end{macrocode}
+%
+% \iffalse
+%</stabular>
+% \fi
+%
+%
+%
+%
+%
+%
%
% \iffalse
%<*subfig>
@@ -30098,6 +30878,39 @@ class="td%
%
%
%
+% \iffalse
+%<*tabls>
+% \fi
+%
+% \part{lwarp-tabls.sty}
+%
+% \section{tabls}
+%
+% \DescribePackage{tabls}
+% \pkg{tabls} is emulated.
+% \cs{LWR@hline} is used to handle the optional argument when
+% \pkg{tabls} is loaded.
+%
+% \changes{v0.40}{2017/09/06}{\pkg{tabls}: Added.}
+%
+% \codehtml
+%
+% \begin{macrocode}
+\LWR@ProvidesPackageDrop{tabls}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\newdimen\tablinesep
+\newdimen\arraylinesep
+\newdimen\extrarulesep
+% \end{macrocode}
+%
+% \iffalse
+%</tabls>
+% \fi
+%
+%
+%
%
%
% \iffalse
@@ -30234,6 +31047,8 @@ class="td%
%
% \changes{v0.37}{2017/08/18}{\pkg{textcomp}: Improved support.}
% \changes{v0.38}{2017/08/21}{\pkg{textcomp}: Removed from \pkg{lwarp} core.}
+% \changes{v0.40}{2017/09/07}{\pkg{textcomp}: Additional symbols,
+% improved XeLaTeX and LuaLaTeX support.}
%
% \codehtml
%
@@ -30242,13 +31057,25 @@ class="td%
% \end{macrocode}
%
%
-%
% The following are restored for print when inside a \env{lateximage}:
% \begin{macrocode}
\let\LWR@origtextdegree\textdegree
\let\LWR@origtextcelsius\textcelsius
\let\LWR@origtextohm\textohm
\let\LWR@origtextmu\textmu
+\let\LWR@origtextlquill\textlquill
+\let\LWR@origtextrquill\textrquill
+\let\LWR@origtextcircledP\textcircledP
+\let\LWR@origtexttwelveudash\texttwelveudash
+\let\LWR@origtextthreequartersemdash\textthreequartersemdash
+\let\LWR@origtextmho\textmho
+\let\LWR@origtextnaira\textnaira
+\let\LWR@origtextpeso\textpeso
+\let\LWR@origtextrecipe\textrecipe
+\let\LWR@origtextpertenthousand\textpertenthousand
+\let\LWR@origtextbaht\textbaht
+\let\LWR@origtextdiscount\textdiscount
+\let\LWR@origtextservicemark\textservicemark
\LetLtxMacro\LWR@origcapitalcedilla\capitalcedilla
\LetLtxMacro\LWR@origcapitalogonek\capitalogonek
\LetLtxMacro\LWR@origcapitalgrave\capitalgrave
@@ -30264,18 +31091,51 @@ class="td%
\LetLtxMacro\LWR@origcapitaldotaccent\capitaldotaccent
\LetLtxMacro\LWR@origtextcircled\textcircled
% \end{macrocode}
-% For \HTML, use \HTML\ entities or direct Unicode, depending on the engine:
+% For \HTML, use \HTML\ entities or direct Unicode, depending on the engine.
+%
+% \cs{AtBeginDocument} improves support for \LuaLaTeX\ and \XeLaTeX.
% \begin{macrocode}
+\AtBeginDocument{
\ifPDFTeX
\renewcommand*{\textdegree}{\HTMLentity{deg}}
-\renewcommand*{\textcelsius}{\HTMLentity{deg}\,C}
+\renewcommand*{\textcelsius}{\HTMLunicode{2103}}
\renewcommand*{\textohm}{\HTMLunicode{2126}}
\renewcommand*{\textmu}{\HTMLunicode{00B5}}
+\renewcommand*{\textlquill}{\HTMLunicode{2045}}
+\renewcommand*{\textrquill}{\HTMLunicode{2046}}
+\renewcommand*{\textcircledP}{\HTMLunicode{2117}}
+\renewcommand*{\texttwelveudash}{\HTMLunicode{2014}}% emdash
+\renewcommand*{\textthreequartersemdash}{\HTMLunicode{2014}}% emdash
+\renewcommand*{\textmho}{\HTMLunicode{2127}}
+\renewcommand*{\textnaira}{\HTMLunicode{20A6}}
+\renewcommand*{\textpeso}{\HTMLunicode{20B1}}
+\renewcommand*{\textrecipe}{\HTMLunicode{211E}}
+\renewcommand*{\textpertenthousand}{\HTMLunicode{2031}}
+\renewcommand*{\textbaht}{\HTMLunicode{0E3F}}
+\renewcommand*{\textdiscount}{\%}
+\renewcommand*{\textservicemark}{\HTMLunicode{2120}}
\else
+% \end{macrocode}
+% NOTE: Some of the following do not print well in the listing.
+% Consult the .dtx or .sty file for the actual characters.
+% \begin{macrocode}
\renewcommand*{\textdegree}{°}
-\renewcommand*{\textcelsius}{°C}
+\renewcommand*{\textcelsius}{℃}
\renewcommand*{\textohm}{Ω}
-\renewcommand*{\textmu}{μ}
+\renewcommand*{\textmu}{µ}
+\renewcommand*{\textlquill}{⁅}
+\renewcommand*{\textrquill}{⁆}
+\renewcommand*{\textcircledP}{℗}
+\renewcommand*{\texttwelveudash}{—}% emdash
+\renewcommand*{\textthreequartersemdash}{—}% emdash
+\renewcommand*{\textmho}{℧}
+\renewcommand*{\textnaira}{₦}
+\renewcommand*{\textpeso}{₱}
+\renewcommand*{\textrecipe}{℞}
+\renewcommand*{\textpertenthousand}{‱}
+\renewcommand*{\textbaht}{฿}
+\renewcommand*{\textdiscount}{\%}
+\renewcommand*{\textservicemark}{℠}
\fi
% \end{macrocode}
% For \HTML, Unicode diacritical marks are used:
@@ -30299,6 +31159,7 @@ class="td%
\renewcommand*{\textcircled}[1]{%
\InlineClass[border: 1px solid \LWR@currenttextcolor]{textcircled}{#1}%
}
+}% AtBeginDocument
% \end{macrocode}
%
% When a \env{lateximage} is begun:
@@ -30308,6 +31169,19 @@ class="td%
\let\textcelsius\LWR@origtextcelsius%
\let\textohm\LWR@origtextohm%
\let\textmu\LWR@origtextmu%
+\let\textlquill\LWR@origtextlquill%
+\let\textrquill\LWR@origtextrquill%
+\let\textcircledP\LWR@origtextcircledP%
+\let\texttwelveudash\LWR@origtexttwelveudash%
+\let\textthreequartersemdash\LWR@origtextthreequartersemdash%
+\let\textmho\LWR@origtextmho%
+\let\textnaira\LWR@origtextnaira%
+\let\textpeso\LWR@origtextpeso%
+\let\textrecipe\LWR@origtextrecipe%
+\let\textpertenthousand\LWR@origtextpertenthousand%
+\let\textbaht\LWR@origtextbaht%
+\let\textdiscount\LWR@origtextdiscount%
+\let\textservicemark\LWR@origtextservicemark%
\LetLtxMacro\capitalcedilla\LWR@origcapitalcedilla%
\LetLtxMacro\capitalogonek\LWR@origcapitalogonek%
\LetLtxMacro\capitalgrave\LWR@origcapitalgrave%
@@ -30633,24 +31507,24 @@ class="td%
-% ^^A \begin{macro}{\LWR@printtablenote} \marg{text}
+% \begin{noindmacro}{\LWR@printtablenote} \marg{text}
%
% Prints the table note item header inside a \CSS\ class of |tnoteitemheader|.
% \begin{macrocode}
\newcommand{\LWR@printtablenote}[1]{\InlineClass{tnoteitemheader}{#1}}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{environment}{threeparttable} \oarg{alignment}
+% \begin{noindenvironment}{threeparttable} \oarg{alignment}
% To emulate threeparttable:
% \begin{macrocode}
\newenvironment*{threeparttable}[1][b]{}{}
% \end{macrocode}
-% ^^A \end{environment}
+% \end{noindenvironment}
-% ^^A \begin{environment}{tablenotes} \oarg{options}
+% \begin{noindenvironment}{tablenotes} \oarg{options}
% \changes{v0.19}{2016/06/01}{CSS for table note item.}
% \begin{macrocode}
\newenvironment*{tablenotes}[1][]
@@ -30667,12 +31541,13 @@ class="td%
\endBlockClass%
}
% \end{macrocode}
-% ^^A \end{environment}
-% ^^A \begin{macro}{\tnote}
+% \end{noindenvironment}
+%
+% \begin{noindmacro}{\tnote} \marg{text}
% \begin{macrocode}
\newcommand{\tnote}[1]{\LWR@htmlspan{sup}{#1}}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \iffalse
%</threeparttable>
@@ -30798,75 +31673,75 @@ class="td%
%
% \cs{pagestyle} and \cs{thispagestyle} are already disabled in the \pkg{lwarp} code.
%
-% ^^A \begin{macro}{\newpagestyle} \marg{name} \oarg{style} \marg{commands}
-% ^^A \begin{macro}{\renewpagestyle} \marg{name} \oarg{style} \marg{commands}
+% \begin{noindmacro}{\newpagestyle} \marg{name} \oarg{style} \marg{commands}
+% \begin{noindmacro}{\renewpagestyle} \marg{name} \oarg{style} \marg{commands}
% \begin{macrocode}
\NewDocumentCommand{\newpagestyle}{m o m}{}
\NewDocumentCommand{\renewpagestyle}{m o m}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\sethead} \oarg{el} \oarg{ec} \oarg{er} \marg{ol} \marg{oc} \marg{or}
-% ^^A \begin{macro}{\setfoot} \oarg{el} \oarg{ec} \oarg{er} \marg{ol} \marg{oc} \marg{or}
+% \begin{noindmacro}{\sethead} \oarg{el} \oarg{ec} \oarg{er} \marg{ol} \marg{oc} \marg{or}
+% \begin{noindmacro}{\setfoot} \oarg{el} \oarg{ec} \oarg{er} \marg{ol} \marg{oc} \marg{or}
% \begin{macrocode}
\NewDocumentCommand{\sethead}{o o o m m m}{}
\NewDocumentCommand{\setfoot}{o o o m m m}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\settitlemarks} * \marg{names}
+% \begin{noindmacro}{\settitlemarks} * \marg{names}
% \begin{macrocode}
\NewDocumentCommand{\settitlemarks}{s m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\headrule}
-% ^^A \begin{macro}{\footrule}
+% \begin{noindmacro}{\headrule}
+% \begin{noindmacro}{\footrule}
% \begin{macrocode}
\newcommand*{\headrule}{}
\newcommand*{\footrule}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\setheadrule} \marg{length}
-% ^^A \begin{macro}{\setfootrule} \marg{length}
+% \begin{noindmacro}{\setheadrule} \marg{length}
+% \begin{noindmacro}{\setfootrule} \marg{length}
% \begin{macrocode}
\newcommand*{\setheadrule}[1]{}
\newcommand*{\setfootrule}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\makeheadrule}
-% ^^A \begin{macro}{\makefootrule}
+% \begin{noindmacro}{\makeheadrule}
+% \begin{noindmacro}{\makefootrule}
% \begin{macrocode}
\newcommand*{\makeheadrule}{}
\newcommand*{\makefootrule}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\setmarkboth} \marg{code}
+% \begin{noindmacro}{\setmarkboth} \marg{code}
% \begin{macrocode}
\newcommand{\setmarkboth}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\widenhead}
+% \begin{noindmacro}{\widenhead}
% \begin{macrocode}
\NewDocumentCommand{\widenhead}{s o o m m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\bottitlemarks}
-% ^^A \begin{macro}{\toptitlemarks}
-% ^^A \begin{macro}{\firsttitlemarks}
-% ^^A \begin{macro}{\nexttitlemarks}
-% ^^A \begin{macro}{\outertitlemarks}
-% ^^A \begin{macro}{\innertitlemarks}
+% \begin{noindmacro}{\bottitlemarks}
+% \begin{noindmacro}{\toptitlemarks}
+% \begin{noindmacro}{\firsttitlemarks}
+% \begin{noindmacro}{\nexttitlemarks}
+% \begin{noindmacro}{\outertitlemarks}
+% \begin{noindmacro}{\innertitlemarks}
% \begin{macrocode}
\newcommand*{\bottitlemarks}{}
\newcommand*{\toptitlemarks}{}
@@ -30875,67 +31750,67 @@ class="td%
\newcommand*{\outertitlemarks}{}
\newcommand*{\innertitlemarks}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\newtitlemark} * \marg{name}
+% \begin{noindmacro}{\newtitlemark} * \marg{name}
% \begin{macrocode}
\NewDocumentCommand{\newtitlemark}{s m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\pretitlemark} * \marg{section} \marg{text}
+% \begin{noindmacro}{\pretitlemark} * \marg{section} \marg{text}
% \begin{macrocode}
\NewDocumentCommand{\pretitlemark}{s m m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\ifsamemark} \marg{group} \marg{command} \marg{true} \marg{false}
+% \begin{noindmacro}{\ifsamemark} \marg{group} \marg{command} \marg{true} \marg{false}
% \begin{macrocode}
\newcommand{\ifsamemark}[4]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\setfloathead} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
-% ^^A \begin{macro}{\setfloatfoot} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
+% \begin{noindmacro}{\setfloathead} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
+% \begin{noindmacro}{\setfloatfoot} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
% \begin{macrocode}
\NewDocumentCommand{\setfloathead}{s o o o m m m m m}{}
\NewDocumentCommand{\setfloatfoot}{s o o o m m m m m}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\nextfloathead} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
-% ^^A \begin{macro}{\nextfloatfoot} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
+% \begin{noindmacro}{\nextfloathead} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
+% \begin{noindmacro}{\nextfloatfoot} * \oarg{.} \oarg{.} \oarg{.} \marg{.} \marg{.} \marg{.} \marg{extra} \oarg{which}
% \begin{macrocode}
\NewDocumentCommand{\nextfloathead}{s o o o m m m m m}{}
\NewDocumentCommand{\nextfloatfoot}{s o o o m m m m m}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\newmarkset} \marg{markset}
+% \begin{noindmacro}{\newmarkset} \marg{markset}
% \begin{macrocode}
\newcommand{\newmarkset}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\newextramark} * \marg{markset} \marg{macro-name}
+% \begin{noindmacro}{\newextramark} * \marg{markset} \marg{macro-name}
% \begin{macrocode}
\NewDocumentCommand{\newextramarkset}{s m m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\botextramarks} \marg{markset}
-% ^^A \begin{macro}{\topextramarks} \marg{markset}
-% ^^A \begin{macro}{\firstextramarks} \marg{markset}
-% ^^A \begin{macro}{\nextextramarks} \marg{markset}
-% ^^A \begin{macro}{\outerextramarks} \marg{markset}
-% ^^A \begin{macro}{\innerextramarks} \marg{markset}
+% \begin{noindmacro}{\botextramarks} \marg{markset}
+% \begin{noindmacro}{\topextramarks} \marg{markset}
+% \begin{noindmacro}{\firstextramarks} \marg{markset}
+% \begin{noindmacro}{\nextextramarks} \marg{markset}
+% \begin{noindmacro}{\outerextramarks} \marg{markset}
+% \begin{noindmacro}{\innerextramarks} \marg{markset}
% \begin{macrocode}
\newcommand{\botextramarks}[1]{}
\newcommand{\topextramarks}[1]{}
@@ -30944,12 +31819,12 @@ class="td%
\newcommand{\outerextramarks}[1]{}
\newcommand{\innerextramarks}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
% \iffalse
%</titleps>
@@ -31013,16 +31888,16 @@ class="td%
\LWR@ProvidesPackageDrop{titlesec}
% \end{macrocode}
-% ^^A \begin{macro}{\titlelabel} \marg{label-format}
+% \begin{noindmacro}{\titlelabel} \marg{label-format}
% \begin{macrocode}
\newcommand*{\titlelabel}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\titleformat*} \marg{command} \marg{format}
+% \begin{noindmacro}{\titleformat*} \marg{command} \marg{format}
%
-% ^^A \begin{macro}{\titleformat} \marg{command} \oarg{shape} \marg{format}
-% ^^A \marg{label} \marg{sep} \marg{begfore} \oarg{after}
+% \begin{noindmacro}{\titleformat} \marg{command} \oarg{shape} \marg{format}
+% \marg{label} \marg{sep} \marg{begfore} \oarg{after}
% \begin{macrocode}
\newcommand\titleformat{%
\@ifstar{\ttl@format@s}%
@@ -31030,30 +31905,30 @@ class="td%
\newcommand{\ttl@format@s}[1]{}
\NewDocumentCommand{\ttl@format@i}{m o m m m m o}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\chaptertitlename}
+% \begin{noindmacro}{\chaptertitlename}
% \begin{macrocode}
\@ifundefined{@chapapp}{\let\@chapapp\chaptername}{}
\newcommand\chaptertitlename{\@chapapp}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\titlespacing} * \marg{command} \marg{left} \marg{before} \marg{after} \oarg{right}
+% \begin{noindmacro}{\titlespacing} * \marg{command} \marg{left} \marg{before} \marg{after} \oarg{right}
%
% \begin{macrocode}
\NewDocumentCommand{\titlespacing}{s m m m m o}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\filright}
-% ^^A \begin{macro}{\filcenter}
-% ^^A \begin{macro}{\filleft}
-% ^^A \begin{macro}{\fillast}
-% ^^A \begin{macro}{\filinner}
-% ^^A \begin{macro}{\filouter}
+% \begin{noindmacro}{\filright}
+% \begin{noindmacro}{\filcenter}
+% \begin{noindmacro}{\filleft}
+% \begin{noindmacro}{\fillast}
+% \begin{noindmacro}{\filinner}
+% \begin{noindmacro}{\filouter}
% \begin{macrocode}
\newcommand*{\filright}{}
\newcommand*{\filcenter}{}
@@ -31062,45 +31937,45 @@ class="td%
\newcommand*{\filinner}{}
\newcommand*{\filouter}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\wordsep}
+% \begin{noindmacro}{\wordsep}
% \begin{macrocode}
\newcommand\wordsep{\fontdimen\tw@\font \@plus
\fontdimen\thr@@\font \@minus \fontdimen4\font}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\titleline} * \oarg{align} \marg{material}
+% \begin{noindmacro}{\titleline} * \oarg{align} \marg{material}
% \begin{macrocode}
\NewDocumentCommand{\titleline}{s o m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\titlerule} \oarg{height}
+% \begin{noindmacro}{\titlerule} \oarg{height}
% \begin{macrocode}
\providecommand*\titlerule{\@ifstar{\ttl@row}{\ttl@rule}}
\newcommand*{\ttl@rule}[1][]{}
\newcommand*{\ttl@row}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\iftitlemeasuring} \marg{true} \marg{false}
-% ^^A \begin{macro}{\assignpagestyle} \marg{command} \marg{pagestyle}
-% ^^A \begin{macro}{\titleclass} \marg{name} \oarg{startlevel} \marg{class} \oarg{cmd}
+% \begin{noindmacro}{\iftitlemeasuring} \marg{true} \marg{false}
+% \begin{noindmacro}{\assignpagestyle} \marg{command} \marg{pagestyle}
+% \begin{noindmacro}{\titleclass} \marg{name} \oarg{startlevel} \marg{class} \oarg{cmd}
% \begin{macrocode}
\newcommand{\iftitlemeasuring}[2]{#2}
\newcommand{\assignpagestyle}[2]{#2}
\NewDocumentCommand{\titleclass}{m o m o}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
% \iffalse
%</titlesec>
@@ -31135,93 +32010,93 @@ class="td%
% \end{macrocode}
%
-% ^^A \begin{macro}{\dottedcontents} \marg{section} \oarg{left} \marg{above} \marg{label} \marg{leader}
+% \begin{noindmacro}{\dottedcontents} \marg{section} \oarg{left} \marg{above} \marg{label} \marg{leader}
% \begin{macrocode}
\NewDocumentCommand{\dottedcontents}{m o m m m}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\titlecontents} * \marg{section} \oarg{left} \marg{above}
-% ^^A \marg{numbered} \marg{numberless} \marg{filler}
-% ^^A \oarg{below or begin} \oarg{separator} \oarg{end}
+% \begin{noindmacro}{\titlecontents} * \marg{section} \oarg{left} \marg{above}
+% \marg{numbered} \marg{numberless} \marg{filler}
+% \oarg{below or begin} \oarg{separator} \oarg{end}
% \begin{macrocode}
\newcommand{\titlecontents}{\@ifstar{\ttl@tcstar}{\ttl@tcnostar}}
\NewDocumentCommand{\ttl@tcstar}{m o m m m m o o o}{}
\NewDocumentCommand{\ttl@tcnostar}{m o m m m m o}{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\contentsmargin} \oarg{correction} \marg{right}
+% \begin{noindmacro}{\contentsmargin} \oarg{correction} \marg{right}
% \begin{macrocode}
\newcommand{\contentsmargin}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\thecontentslabel}
-% ^^A \begin{macro}{\thecontentspage}
+% \begin{noindmacro}{\thecontentslabel}
+% \begin{noindmacro}{\thecontentspage}
% \begin{macrocode}
\newcommand*{\thecontentslabel}{thecontentslabel}
\newcommand*{\thecontentspage}{thecontentspage}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\contentslabel} \oarg{format} \marg{space}
-% ^^A \begin{macro}{\contentspage} \oarg{format}
+% \begin{noindmacro}{\contentslabel} \oarg{format} \marg{space}
+% \begin{noindmacro}{\contentspage} \oarg{format}
% \begin{macrocode}
\newcommand{\contentslabel}[2][]{\thecontentslabel}
\newcommand{\contentspage}[1][]{\thecontentspage}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\contentspush} \marg{text}
+% \begin{noindmacro}{\contentspush} \marg{text}
% \begin{macrocode}
\newcommand{\contentspush}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\contentsuse} \marg{name} \marg{text}
+% \begin{noindmacro}{\contentsuse} \marg{name} \marg{text}
% \begin{macrocode}
\newcommand{\contentsuse}[2]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\startcontents} \oarg{name}
-% ^^A \begin{macro}{\stopcontents} \oarg{name}
-% ^^A \begin{macro}{\resumecontents} \oarg{name}
+% \begin{noindmacro}{\startcontents} \oarg{name}
+% \begin{noindmacro}{\stopcontents} \oarg{name}
+% \begin{noindmacro}{\resumecontents} \oarg{name}
% \begin{macrocode}
\newcommand*{\startcontents}[1][]{}
\newcommand*{\stopcontents}[1][]{}
\newcommand*{\resumecontents}[1][]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\printcontents} \oarg{name} \marg{prefix} \marg{start} \marg{code}
+% \begin{noindmacro}{\printcontents} \oarg{name} \marg{prefix} \marg{start} \marg{code}
% \begin{macrocode}
\newcommand{\printcontents}[4][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\startlist} \oarg{name} \marg{list}
-% ^^A \begin{macro}{\stoplist} \oarg{name} \marg{list}
-% ^^A \begin{macro}{\resumelist} \oarg{name} \marg{list}
+% \begin{noindmacro}{\startlist} \oarg{name} \marg{list}
+% \begin{noindmacro}{\stoplist} \oarg{name} \marg{list}
+% \begin{noindmacro}{\resumelist} \oarg{name} \marg{list}
% \begin{macrocode}
\newcommand{\startlist}[2][]{}
\newcommand{\stoplist}[2][]{}
\newcommand{\resumelist}[2][]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\printlist} \oarg{name} \marg{list} \marg{prefix} \marg{code}
+% \begin{noindmacro}{\printlist} \oarg{name} \marg{list} \marg{prefix} \marg{code}
% \begin{macrocode}
\newcommand{\printlist}[4][]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \iffalse
@@ -31539,15 +32414,21 @@ class="td%
% \part{lwarp-tocbibind.sty}
% \section{tocbibind}
+% \label{sec:tocbibind}
%
% \DescribePackage{tocbibind}
% \pkg{tocbibind} is patched for use by \pkg{lwarp}.
%
+% \limitsindex
+%
% \changes{v0.38}{2017/08/22}{\pkg{tocbibind}: Added.}
+% \changes{v0.40}{2017/09/12}{\pkg{tocbibind}: Improved for \cs{simplechapter}.}
%
% \codehtml
%
% \begin{macrocode}
+\let\simplechapterdelim\relax
+
\LWR@ProvidesPackagePass{tocbibind}
% \end{macrocode}
@@ -31583,14 +32464,26 @@ class="td%
}
% \end{macrocode}
%
+% The following code is shared by \pkg{anonchap}.
+%
+% \begin{macrocode}
+\renewcommand{\simplechapter}[1][\@empty]{%
+ \def\@chapcntformat##1{%
+ #1~\csname the##1\endcsname\simplechapterdelim\protect\quad%
+ }%
+}
+
+\renewcommand{\restorechapter}{%
+\let\@chapcntformat\@seccntformat%
+}
+% \end{macrocode}
+%
% \iffalse
%</tocbibind>
% \fi
%
%
%
-
-
%
%
%
@@ -31607,7 +32500,9 @@ class="td%
% \pkg{tocloft} is emulated.
% Most user options and macros are ignored and disabled.
% \cs{newlistof} and \cs{cftchapterprecis} are supported.
-
+%
+% \limitstocloft
+%
% \changes{v0.20}{2017/01/03}{\pkg{tocloft}: Added.}
%
%
@@ -31619,24 +32514,24 @@ class="td%
% \end{macrocode}
%
-% ^^A \begin{macro}{\tocloftpagestyle} \marg{style}
+% \begin{noindmacro}{\tocloftpagestyle} \marg{style}
% \begin{macrocode}
\newcommand{\tocloftpagestyle}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\cftmarktoc}
-% ^^A \begin{macro}{\cfttoctitlefont}
-% ^^A \begin{macro}{\cftaftertoctitle}
+% \begin{noindmacro}{\cftmarktoc}
+% \begin{noindmacro}{\cfttoctitlefont}
+% \begin{noindmacro}{\cftaftertoctitle}
% \begin{macrocode}
\newcommand*{\cftmarktoc}{}
\newcommand*{\cfttoctitlefont}{}
\newcommand*{\cftaftertoctitle}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
% \begin{macrocode}
\newlength{\cftbeforetoctitleskip}
@@ -31644,17 +32539,17 @@ class="td%
% \end{macrocode}
-% ^^A \begin{macro}{\cftmarklof}
-% ^^A \begin{macro}{\cftloftitlefont}
-% ^^A \begin{macro}{\cftafterloftitle}
+% \begin{noindmacro}{\cftmarklof}
+% \begin{noindmacro}{\cftloftitlefont}
+% \begin{noindmacro}{\cftafterloftitle}
% \begin{macrocode}
\newcommand*{\cftmarklof}{}
\newcommand*{\cftloftitlefont}{}
\newcommand*{\cftafterloftitle}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
% \begin{macrocode}
\newlength{\cftbeforeloftitleskip}
@@ -31662,17 +32557,17 @@ class="td%
% \end{macrocode}
-% ^^A \begin{macro}{\cftmarklot}
-% ^^A \begin{macro}{\cftlottitlefont}
-% ^^A \begin{macro}{\cftafterlottitle}
+% \begin{noindmacro}{\cftmarklot}
+% \begin{noindmacro}{\cftlottitlefont}
+% \begin{noindmacro}{\cftafterlottitle}
% \begin{macrocode}
\newcommand*{\cftmarklot}{}
\newcommand*{\cftlottitlefont}{}
\newcommand*{\cftafterlottitle}{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
% \begin{macrocode}
\newlength{\cftbeforelottitleskip}
@@ -31680,34 +32575,38 @@ class="td%
% \end{macrocode}
-% ^^A \begin{macro}{\cftdot}
-% ^^A \begin{macro}{\cftdotsep}
-% ^^A \begin{macro}{\cftnodots}
+% \begin{noindmacro}{\cftdot}
+% \begin{noindmacro}{\cftdotsep}
+% \begin{noindmacro}{\cftnodots}
% \begin{macrocode}
\newcommand*{\cftdot}{.}
\providecommand*{\cftdotsep}{1}
\newcommand*{\cftnodots}{5000}
+% \end{macrocode}
+% \end{noindmacro}
+% \end{noindmacro}
+% \end{noindmacro}
+% \begin{noindmacro}{\cftdotfill} \marg{sep}
+% \begin{macrocode}
\providecommand{\cftdotfill}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\cftsetpnumwidth} \marg{length}
-% ^^A \begin{macro}{\cftsetrmarg} \marg{length}
+% \begin{noindmacro}{\cftsetpnumwidth} \marg{length}
+% \begin{noindmacro}{\cftsetrmarg} \marg{length}
% \begin{macrocode}
\newcommand*{\cftsetpnumwidth}[1]{}
\newcommand*{\cftsetrmarg}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
-% ^^A \end{macro}
+% \end{noindmacro}
+% \end{noindmacro}
-% ^^A \begin{macro}{\cftpnumalign} \marg{alignment}
+% \begin{noindmacro}{\cftpnumalign} \marg{alignment}
% \begin{macrocode}
\newcommand*{\cftpnumalign}[1]{}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \begin{macrocode}
\newlength{\cftparskip}
@@ -31879,7 +32778,7 @@ class="td%
% \end{macrocode}
-% ^^A \begin{macro}{\newlistof} \oarg{within} \marg{type} \marg{ext} \marg{listofname}
+% \begin{noindmacro}{\newlistof} \oarg{within} \marg{type} \marg{ext} \marg{listofname}
%
% Emulated through the \cs{newfloat} mechanism.
% \begin{macrocode}
@@ -31903,7 +32802,7 @@ class="td%
\@namedef{cft#2afterpnum}{}
}
% \end{macrocode}
-% ^^A \end{macro}
+% \end{noindmacro}
% \cs{cftchapterprecis} from \pkg{tocloft}:
@@ -32651,7 +33550,7 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; %
%
%
% Inside a \env{lateximage} the following gets restored to their print-mode actions:
-% \margintag{\cs{LWR@restoreorigformatting}}
+% \margintag{\small\cs{LWR@restoreorigformatting}}
% \begin{macrocode}
\appto{\LWR@restoreorigformatting}{%
\LetLtxMacro\textcolor\LWRprint@textcolor%
@@ -32663,20 +33562,18 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; %
}
% \end{macrocode}
%
-%
+% \begin{noindmacro}{\LWR@tempcolor}
% The color converted to \HTML\ colorspace.
-% \margintag{\cs{LWR@tempcolor}}
% \begin{macrocode}
\newcommand*{\LWR@tempcolor}{}
\newcommand*{\LWR@tempcolortwo}{}
% \end{macrocode}
-% ^^A \end{macro}
-%
+% \end{noindmacro}
%
%
%
+% \begin{noindmacro}{\LWR@colorstyle}
% \marg{1: styletext} \marg{2: model} \marg{3: color}
-% \margintag{\cs{LWR@colorstyle}}
%
% \changes{v0.19}{2016/06/01}{Supports colored \cs{rule}.}
% \changes{v0.36}{2017/08/11}{\pkg{xcolor}: Refactored \cs{LWR@colorstyle}.}
@@ -32698,9 +33595,10 @@ style="width:\rndprintlength{\LWR@wrapwidth} ; %
\endgroup%
}
% \end{macrocode}
+% \end{noindmacro}
%
%
-% \begin{macro}{\LWR@borderpadding} \marg{colorstyle} \marg{color}
+% \begin{noindmacro}{\LWR@borderpadding} \marg{colorstyle} \marg{color}
% Prints the \HTML attributes for a black border and padding.
%
% \cs{LWR@forceminwidth} must be used first in order to set the border width.
@@ -32712,7 +33610,7 @@ border:\rndprintlength{\LWR@atleastonept} solid \LWR@colorstyle{#1}{#2} ; %
padding:\rndprintlength{\fboxsep}%
}
% \end{macrocode}
-% \end{macro}
+% \end{noindmacro}
%
%
%
@@ -32877,38 +33775,37 @@ padding:\rndprintlength{\fboxsep}%
% \label{sec:fcolorminipage}
-% \begin{environment}{fcolorminipage}
-% \oarg{1:framemodel} \marg{2:framecolor} \oarg{3:boxmodel} \marg{4:boxcolor}
-% \oarg{5:align} \oarg{6:height} \oarg{7:inner-align} \marg{8:width}
-%
% Creates a framed \HTML\ \element{div} around its contents.
%
% A print-output version is defined in the \pkg{lwarp} core: \cref{sec:xcolorpatches}
%
% \changes{v0.34}{2017/07/31}{Added.}
%
+% \begin{noindmacro}{\LWR@subfcolorminipage}
% \marg{framemodel} \marg{framecolor} \marg{background tag} \marg{height}
-% \margintag{\cs{LWR@subfcolorminipage}}
% \begin{macrocode}
\NewDocumentCommand{\LWR@subfcolorminipage}{m m m m}{%
\begin{BlockClass}[%
#3%
\LWR@borderpadding{#1}{#2} ; %
-\IfValueTF{#4}{height:\rndprintlength{\LWR@tempheight} ; }{}%
+\IfValueT{#4}{height:\rndprintlength{\LWR@tempheight} ; }%
width:\rndprintlength{\LWR@tempwidth}%
]{fcolorminipage}%
}
% \end{macrocode}
+% \end{noindmacro}
+%
+%
+% \begin{environment}{fcolorminipage}
+% \oarg{1:framemodel} \marg{2:framecolor} \oarg{3:boxmodel} \marg{4:boxcolor}
+% \oarg{5:align} \oarg{6:height} \oarg{7:inner-align} \marg{8:width}
%
-% \oarg{1:framestyle} \marg{2:framecolor} \oarg{3:bkgcolorstyle} \marg{4:bkgcolor}
-% \margintag{\env{fcolorminipage}}
-% \oarg{5:align} \oarg{6:height} \oarg{7:inneralign} \marg{8:width}
% \begin{macrocode}
\NewDocumentEnvironment{fcolorminipage}{O{named} m O{named} m O{c} o o m}
{%
\LWR@FBcancel%
\setlength{\LWR@tempwidth}{#8}%
-\IfValueTF{#6}{\setlength{\LWR@tempheight}{#6}}{}%
+\IfValueT{#6}{\setlength{\LWR@tempheight}{#6}}%
\uselengthunit{PT}%
\LWR@forceminwidth{\fboxrule}%
\convertcolorspec{#1}{#2}{HTML}\LWR@tempcolor%
@@ -33074,6 +33971,7 @@ denominator-format = {%
% \begin{macrocode}
scaling = false
}
+
\DeclareInstance{xfrac}{lmr}{text}{
numerator-format = {%
\LetLtxMacro{\scalebox}{\LWR@noscalebox}%
@@ -33086,6 +33984,7 @@ denominator-format = {%
% \begin{macrocode}
scaling = false
}
+
\DeclareInstance{xfrac}{lmss}{text}{
numerator-format = {%
\LetLtxMacro{\scalebox}{\LWR@noscalebox}%
@@ -33098,6 +33997,7 @@ denominator-format = {%
% \begin{macrocode}
scaling = false
}
+
\DeclareInstance{xfrac}{lmtt}{text}{
numerator-format = {%
\LetLtxMacro{\scalebox}{\LWR@noscalebox}%
@@ -33139,6 +34039,7 @@ scaling = false
% \credits{Will Robertson, Jonathan Kew}
%
% \changes{v0.38}{2017/08/25}{\pkg{xltxtra}: Added.}
+% \changes{v0.40}{2017/09/07}{\pkg{xltxtra}: Fix for \cs{showhyphens} with XeLaTeX.}
%
% \codehtml
%
@@ -33165,7 +34066,7 @@ scaling = false
\newcommand\xxt@namedglyph@fallback[1]{[#1]}
-\newcommand{\showhyphens}[1]{}
+\DeclareDocumentCommand{\showhyphens}{m}{}
% \end{macrocode}
%
% \iffalse
diff --git a/Master/texmf-dist/source/latex/lwarp/lwarp.ins b/Master/texmf-dist/source/latex/lwarp/lwarp.ins
index 0b4e7b197b0..d13f0495ae2 100644
--- a/Master/texmf-dist/source/latex/lwarp/lwarp.ins
+++ b/Master/texmf-dist/source/latex/lwarp/lwarp.ins
@@ -37,11 +37,13 @@ version 2005/12/01 or later.
\file{lwarp-a4wide.sty}{\from{lwarp.dtx}{a4wide}}
\file{lwarp-a5comb.sty}{\from{lwarp.dtx}{a5comb}}
\file{lwarp-abstract.sty}{\from{lwarp.dtx}{abstract}}
+\file{lwarp-adjmulticol.sty}{\from{lwarp.dtx}{adjmulticol}}
\file{lwarp-addlines.sty}{\from{lwarp.dtx}{addlines}}
\file{lwarp-afterpage.sty}{\from{lwarp.dtx}{afterpage}}
\file{lwarp-algorithmicx.sty}{\from{lwarp.dtx}{algorithmicx}}
\file{lwarp-alltt.sty}{\from{lwarp.dtx}{alltt}}
\file{lwarp-amsthm.sty}{\from{lwarp.dtx}{amsthm}}
+\file{lwarp-anonchap.sty}{\from{lwarp.dtx}{anonchap}}
\file{lwarp-anysize.sty}{\from{lwarp.dtx}{anysize}}
\file{lwarp-appendix.sty}{\from{lwarp.dtx}{appendix}}
\file{lwarp-arabicfront.sty}{\from{lwarp.dtx}{arabicfront}}
@@ -59,7 +61,9 @@ version 2005/12/01 or later.
\file{lwarp-chappg.sty}{\from{lwarp.dtx}{chappg}}
\file{lwarp-color.sty}{\from{lwarp.dtx}{color}}
\file{lwarp-crop.sty}{\from{lwarp.dtx}{crop}}
+\file{lwarp-cuted.sty}{\from{lwarp.dtx}{cuted}}
\file{lwarp-cutwin.sty}{\from{lwarp.dtx}{cutwin}}
+\file{lwarp-dblfnote.sty}{\from{lwarp.dtx}{dblfnote}}
\file{lwarp-dcolumn.sty}{\from{lwarp.dtx}{dcolumn}}
\file{lwarp-draftwatermark.sty}{\from{lwarp.dtx}{draftwatermark}}
\file{lwarp-ebook.sty}{\from{lwarp.dtx}{ebook}}
@@ -84,6 +88,7 @@ version 2005/12/01 or later.
\file{lwarp-floatrow.sty}{\from{lwarp.dtx}{floatrow}}
\file{lwarp-flushend.sty}{\from{lwarp.dtx}{flushend}}
\file{lwarp-fncychap.sty}{\from{lwarp.dtx}{fncychap}}
+\file{lwarp-fnpos.sty}{\from{lwarp.dtx}{fnpos}}
\file{lwarp-footmisc.sty}{\from{lwarp.dtx}{footmisc}}
\file{lwarp-footnote.sty}{\from{lwarp.dtx}{footnote}}
\file{lwarp-footnotehyper.sty}{\from{lwarp.dtx}{footnotehyper}}
@@ -118,6 +123,7 @@ version 2005/12/01 or later.
\file{lwarp-mcaption.sty}{\from{lwarp.dtx}{mcaption}}
\file{lwarp-mdframed.sty}{\from{lwarp.dtx}{mdframed}}
\file{lwarp-microtype.sty}{\from{lwarp.dtx}{microtype}}
+\file{lwarp-midfloat.sty}{\from{lwarp.dtx}{midfloat}}
\file{lwarp-metalogo.sty}{\from{lwarp.dtx}{metalogo}}
\file{lwarp-moreverb.sty}{\from{lwarp.dtx}{moreverb}}
\file{lwarp-mparhack.sty}{\from{lwarp.dtx}{mparhack}}
@@ -137,8 +143,10 @@ version 2005/12/01 or later.
\file{lwarp-parskip.sty}{\from{lwarp.dtx}{parskip}}
\file{lwarp-pdflscape.sty}{\from{lwarp.dtx}{pdflscape}}
\file{lwarp-pdfsync.sty}{\from{lwarp.dtx}{pdfsync}}
+\file{lwarp-pfnote.sty}{\from{lwarp.dtx}{pfnote}}
\file{lwarp-placeins.sty}{\from{lwarp.dtx}{placeins}}
\file{lwarp-prelim2e.sty}{\from{lwarp.dtx}{prelim2e}}
+\file{lwarp-quotchap.sty}{\from{lwarp.dtx}{quotchap}}
\file{lwarp-ragged2e.sty}{\from{lwarp.dtx}{ragged2e}}
\file{lwarp-realscripts.sty}{\from{lwarp.dtx}{realscripts}}
\file{lwarp-relsize.sty}{\from{lwarp.dtx}{relsize}}
@@ -148,6 +156,7 @@ version 2005/12/01 or later.
\file{lwarp-rotfloat.sty}{\from{lwarp.dtx}{rotfloat}}
\file{lwarp-savetrees.sty}{\from{lwarp.dtx}{savetrees}}
\file{lwarp-scalefnt.sty}{\from{lwarp.dtx}{scalefnt}}
+\file{lwarp-sectsty.sty}{\from{lwarp.dtx}{sectsty}}
\file{lwarp-setspace.sty}{\from{lwarp.dtx}{setspace}}
\file{lwarp-shadow.sty}{\from{lwarp.dtx}{shadow}}
\file{lwarp-showidx.sty}{\from{lwarp.dtx}{idx}}
@@ -156,11 +165,13 @@ version 2005/12/01 or later.
\file{lwarp-sidenotes.sty}{\from{lwarp.dtx}{sidenotes}}
\file{lwarp-siunitx.sty}{\from{lwarp.dtx}{siunitx}}
\file{lwarp-soul.sty}{\from{lwarp.dtx}{soul}}
+\file{lwarp-stabular.sty}{\from{lwarp.dtx}{stabular}}
\file{lwarp-subfig.sty}{\from{lwarp.dtx}{subfig}}
\file{lwarp-supertabular.sty}{\from{lwarp.dtx}{supertabular}}
\file{lwarp-syntonly.sty}{\from{lwarp.dtx}{syntonly}}
\file{lwarp-tabularx.sty}{\from{lwarp.dtx}{tabularx}}
\file{lwarp-tabulary.sty}{\from{lwarp.dtx}{tabulary}}
+\file{lwarp-tabls.sty}{\from{lwarp.dtx}{tabls}}
\file{lwarp-textarea.sty}{\from{lwarp.dtx}{textarea}}
\file{lwarp-textcomp.sty}{\from{lwarp.dtx}{textcomp}}
\file{lwarp-textpos.sty}{\from{lwarp.dtx}{textpos}}