| 1 |
%% |
| 2 |
%% This is file `lwarp.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `package') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\NeedsTeXFormat{LaTeX2e}[1999/12/01] |
| 19 |
\ProvidesPackage{lwarp} |
| 20 |
[2026/02/24 v0.921 Allows LaTeX to directly produce HTML5 output.] |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
%% |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
\NeedsTeXFormat{LaTeX2e}[2021/06/01] |
| 31 |
\RequirePackage{iftex}[2019/11/07] |
| 32 |
\RequirePackage{ifpdf} |
| 33 |
\RequirePackage{ifptex}% in case TL2019 or earlier |
| 34 |
|
| 35 |
\newif\ifxetexorluatex |
| 36 |
|
| 37 |
\ifXeTeX |
| 38 |
\xetexorluatextrue |
| 39 |
\else |
| 40 |
\ifLuaTeX |
| 41 |
\xetexorluatextrue |
| 42 |
\else |
| 43 |
\xetexorluatexfalse |
| 44 |
\fi |
| 45 |
\fi |
| 46 |
\RequirePackage{etoolbox}[2020/10/05]% |
| 47 |
|
| 48 |
\long\def\etb@carsquare#1#2#3\@nil{#1#2}% |
| 49 |
|
| 50 |
\RequirePackage{verifycommand} |
| 51 |
|
| 52 |
\RequirePackage{xpatch} |
| 53 |
|
| 54 |
\RequirePackage{ifplatform}% sense op-system platform |
| 55 |
\RequirePackage{letltxmacro} |
| 56 |
\newcommand*{\LWR@loadafter}[1]{% |
| 57 |
\IfPackageLoadedTF{#1} |
| 58 |
{ |
| 59 |
\PackageError{lwarp} |
| 60 |
{% |
| 61 |
Package #1,\MessageBreak |
| 62 |
or one which uses #1,\MessageBreak |
| 63 |
must be loaded after Lwarp.\MessageBreak |
| 64 |
Enter 'H' for possible solutions% |
| 65 |
} |
| 66 |
{% |
| 67 |
Move ``\protect\usepackage{#1}'' after |
| 68 |
``\protect\usepackage{lwarp}''.\MessageBreak |
| 69 |
Package #1 may also be loaded by something else,\MessageBreak |
| 70 |
which must also be moved after Lwarp.% |
| 71 |
} |
| 72 |
} |
| 73 |
{\relax} |
| 74 |
} |
| 75 |
|
| 76 |
\IfClassLoadedTF{memoir} |
| 77 |
{\newcommand*{\LWR@notmemoirloadafter}[1]{}} |
| 78 |
{\LetLtxMacro\LWR@notmemoirloadafter\LWR@loadafter} |
| 79 |
|
| 80 |
\LetLtxMacro\LWR@notltjloadafter\LWR@loadafter |
| 81 |
|
| 82 |
\IfClassLoadedTF{ltjarticle}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 83 |
\IfClassLoadedTF{ltjbook}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 84 |
\IfClassLoadedTF{ltjreport}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 85 |
\IfClassLoadedTF{ltjsarticle}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 86 |
\IfClassLoadedTF{ltjsbook}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 87 |
\IfClassLoadedTF{ltjsreport}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 88 |
\IfClassLoadedTF{ltjspf}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 89 |
\IfClassLoadedTF{ltjskiyou}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 90 |
\IfClassLoadedTF{ltjtarticle}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 91 |
\IfClassLoadedTF{ltjtbook}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 92 |
\IfClassLoadedTF{ltjtreport}{\renewcommand*{\LWR@notltjloadafter}[1]{}}{} |
| 93 |
|
| 94 |
\newcommand*{\LWR@loadbefore}[1]{% |
| 95 |
\IfPackageLoadedTF{#1} |
| 96 |
{\relax} |
| 97 |
{ |
| 98 |
\PackageError{lwarp} |
| 99 |
{% |
| 100 |
Package #1 must be loaded before lwarp.\MessageBreak |
| 101 |
Enter 'H' for possible solutions% |
| 102 |
} |
| 103 |
{Move ``\protect\usepackage{#1}'' before ``\protect\usepackage{lwarp}''.} |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
\newcommand*{\LWR@checkloadbefore}[1]{% |
| 108 |
\ifdefstring{\LWR@tempone}{#1}{% |
| 109 |
\LWR@loadbefore{#1}% |
| 110 |
}{}% |
| 111 |
} |
| 112 |
|
| 113 |
\newcommand*{\LWR@loadnever}[2]{% |
| 114 |
\PackageError{lwarp} |
| 115 |
{% |
| 116 |
Package #1 is not yet supported\MessageBreak |
| 117 |
by lwarp's HTML conversion% |
| 118 |
\ifblank{#2}{}{% |
| 119 |
.\MessageBreak |
| 120 |
Package(s)\MessageBreak |
| 121 |
\space\space#2\MessageBreak |
| 122 |
may be useful instead% |
| 123 |
}% |
| 124 |
} |
| 125 |
{% |
| 126 |
Package #1 might conflict with lwarp in some way,\MessageBreak |
| 127 |
or is superceded by another package.% |
| 128 |
\ifblank{#2}{}{% |
| 129 |
\MessageBreak |
| 130 |
For possible alternatives, see package(s) #2.% |
| 131 |
}% |
| 132 |
} |
| 133 |
} |
| 134 |
\newcommand*{\LWR@afterloadnever}[2]{% |
| 135 |
\ifdefstring{\LWR@tempone}{#1}{% |
| 136 |
\LWR@loadnever{#1}{#2}% |
| 137 |
}{}% |
| 138 |
} |
| 139 |
\newcommand*{\LWR@earlyloadnever}[2]{% |
| 140 |
\IfPackageLoadedTF{#1}{% |
| 141 |
\LWR@loadnever{#1}{#2}% |
| 142 |
}{}% |
| 143 |
} |
| 144 |
\newcommand*{\LWR@earlyclassloadnever}[2]{% |
| 145 |
\IfClassLoadedTF{#1}{% |
| 146 |
\PackageError{lwarp} |
| 147 |
{% |
| 148 |
Class #1 is not supported\MessageBreak |
| 149 |
by lwarp's HTML conversion% |
| 150 |
\ifblank{#2}{}{% |
| 151 |
.\MessageBreak |
| 152 |
#2 may be useful instead% |
| 153 |
}% |
| 154 |
} |
| 155 |
{% |
| 156 |
Class #1 might conflict with lwarp in some way,\MessageBreak |
| 157 |
or is superceded by another class.% |
| 158 |
\ifblank{#2}{}{% |
| 159 |
\MessageBreak |
| 160 |
For a possible alternative, see #2.% |
| 161 |
}% |
| 162 |
} |
| 163 |
}{\relax}% |
| 164 |
} |
| 165 |
\newcommand*{\LWR@checkloadnevers}{ |
| 166 |
\LWR@checkloadnever{ae}{cm-super, lmodern} |
| 167 |
\LWR@checkloadnever{aecompl}{cm-super, lmodern} |
| 168 |
\LWR@checkloadnever{aecc}{cm-super, lmodern} |
| 169 |
\LWR@checkloadnever{alg}{algorithm2e, algorithmicx} |
| 170 |
\LWR@checkloadnever{algorithmic}{algorithm2e, algorithmicx} |
| 171 |
\LWR@checkloadnever{bitfield}{bytefield} |
| 172 |
\LWR@checkloadnever{bxcjkjatype}{upLaTeX, bxjsarticle, ujarticle, utarticle} |
| 173 |
\LWR@checkloadnever{caption2}{caption} |
| 174 |
\LWR@checkloadnever{colortab}{colortbl} |
| 175 |
\LWR@checkloadnever{csvtools}{datatool} |
| 176 |
\LWR@checkloadnever{doublespace}{setspace} |
| 177 |
\LWR@checkloadnever{fancyheadings}{fancyhdr} |
| 178 |
\LWR@checkloadnever{fncylab}{cleveref} |
| 179 |
\LWR@checkloadnever{formula}{siunitx} |
| 180 |
\LWR@checkloadnever{glossary}{glossaries} |
| 181 |
\LWR@checkloadnever{hangul}{kotex, xetexko, luatexko} |
| 182 |
\LWR@checkloadnever{hyper}{hyperref} |
| 183 |
\LWR@checkloadnever{libgreek}{libertinust1math, newtx} |
| 184 |
\LWR@checkloadnever{newthm}{ntheorem} |
| 185 |
\LWR@checkloadnever{pdfcprot}{microtype} |
| 186 |
\LWR@checkloadnever{picins}{floatflt, wrapfig, wrapfig2} |
| 187 |
\LWR@checkloadnever{rplain}{fancyhdr} |
| 188 |
\LWR@checkloadnever{si}{siunitx} |
| 189 |
\LWR@checkloadnever{sistyle}{siunitx} |
| 190 |
\LWR@checkloadnever{slashbox}{diagbox} |
| 191 |
\LWR@checkloadnever{statex}{statex2} |
| 192 |
\LWR@checkloadnever{t1enc}{fontenc, inputenc, inputenx} |
| 193 |
\LWR@checkloadnever{ucs}{inputenc, inputencx} |
| 194 |
\LWR@checkloadnever{wasysym}{textcomp, amssymb, amsfonts, mnsymbol, fdsymbol} |
| 195 |
\LWR@checkloadnever{animate}{} |
| 196 |
\LWR@checkloadnever{auto-pst-pdf}{} |
| 197 |
\LWR@checkloadnever{auto-pst-pdf-lua}{} |
| 198 |
\LWR@checkloadnever{algorithms}{} |
| 199 |
\LWR@checkloadnever{arraycols}{} |
| 200 |
\LWR@checkloadnever{bidi}{} |
| 201 |
\LWR@checkloadnever{cals}{} |
| 202 |
\LWR@checkloadnever{cellspace}{tabls} |
| 203 |
\LWR@checkloadnever{cgloss4e}{} |
| 204 |
\LWR@checkloadnever{collcell}{} |
| 205 |
\LWR@checkloadnever{colophon}{} |
| 206 |
\LWR@checkloadnever{cooltooltips}{} |
| 207 |
\LWR@checkloadnever{covington}{} |
| 208 |
\LWR@checkloadnever{crbox}{} |
| 209 |
\LWR@checkloadnever{decision-table}{} |
| 210 |
\LWR@checkloadnever{dvgloss}{} |
| 211 |
\LWR@checkloadnever{ednotes}{} |
| 212 |
\LWR@checkloadnever{edfnotes}{} |
| 213 |
\LWR@checkloadnever{eledform}{} |
| 214 |
\LWR@checkloadnever{eledmac}{} |
| 215 |
\LWR@checkloadnever{embedfile}{} |
| 216 |
\LWR@checkloadnever{endnotes-hy}{endnotes} |
| 217 |
\LWR@checkloadnever{expex}{} |
| 218 |
\LWR@checkloadnever{fancytooltips}{} |
| 219 |
\LWR@checkloadnever{fixocgx}{} |
| 220 |
\LWR@checkloadnever{flowfram}{} |
| 221 |
\LWR@checkloadnever{gb4e}{} |
| 222 |
\LWR@checkloadnever{gmverse}{} |
| 223 |
\LWR@checkloadnever{graphbox}{} |
| 224 |
\LWR@checkloadnever{graphicxbox}{} |
| 225 |
\LWR@checkloadnever{hvfloat}{} |
| 226 |
\LWR@checkloadnever{inline-images}{} |
| 227 |
\LWR@checkloadnever{isorot}{rotating} |
| 228 |
\LWR@checkloadnever{ledmac}{} |
| 229 |
\LWR@checkloadnever{linguex}{} |
| 230 |
\LWR@checkloadnever{longdiv}{} |
| 231 |
\LWR@checkloadnever{longfigure}{} |
| 232 |
\LWR@checkloadnever{longtabu}{} |
| 233 |
\LWR@checkloadnever{mdwenv}{} |
| 234 |
\LWR@checkloadnever{mdwlist}{} |
| 235 |
\LWR@checkloadnever{mdwtab}{} |
| 236 |
\LWR@checkloadnever{navigator}{} |
| 237 |
\LWR@checkloadnever{nccpic}{} |
| 238 |
\LWR@checkloadnever{nccsect}{} |
| 239 |
\LWR@checkloadnever{newvbtm}{} |
| 240 |
\LWR@checkloadnever{ocg-p}{} |
| 241 |
\LWR@checkloadnever{ocgtools}{} |
| 242 |
\LWR@checkloadnever{ocgx}{} |
| 243 |
\LWR@checkloadnever{ocgx2}{} |
| 244 |
\LWR@checkloadnever{parrun}{} |
| 245 |
\LWR@checkloadnever{poemscol}{} |
| 246 |
\LWR@checkloadnever{poetry}{} |
| 247 |
\LWR@checkloadnever{program}{} |
| 248 |
\LWR@checkloadnever{proofread}{} |
| 249 |
\LWR@checkloadnever{pst-pdf}{} |
| 250 |
\LWR@checkloadnever{refstyle}{} |
| 251 |
\LWR@checkloadnever{robustindex}{} |
| 252 |
\LWR@checkloadnever{robustglossary}{} |
| 253 |
\LWR@checkloadnever{semioneside}{} |
| 254 |
\LWR@checkloadnever{slemph}{} |
| 255 |
\LWR@checkloadnever{snotez}{sidenotes} |
| 256 |
\LWR@checkloadnever{spacingtricks}{} |
| 257 |
\LWR@checkloadnever{sverb}{verbatim, fancyvrb} |
| 258 |
\LWR@checkloadnever{syntax}{} |
| 259 |
\LWR@checkloadnever{tablists}{} |
| 260 |
\LWR@checkloadnever{tabto}{} |
| 261 |
\LWR@checkloadnever{tabu}{} |
| 262 |
\LWR@checkloadnever{tabularht}{} |
| 263 |
\LWR@checkloadnever{tabularkv}{} |
| 264 |
\LWR@checkloadnever{thumby}{} |
| 265 |
\LWR@checkloadnever{titles}{} |
| 266 |
\LWR@checkloadnever{typehtml}{} |
| 267 |
\LWR@checkloadnever{unicode-bidi}{} |
| 268 |
\LWR@checkloadnever{vcell}{} |
| 269 |
\LWR@checkloadnever{xhfill}{} |
| 270 |
} |
| 271 |
\LetLtxMacro\LWR@checkloadnever\LWR@earlyloadnever |
| 272 |
\LWR@checkloadnevers |
| 273 |
\IfPackageLoadedTF{xeCJK}{}{ |
| 274 |
\LWR@checkloadnever{CJK}{ctex, xeCJK} |
| 275 |
\LWR@checkloadnever{CJKutf8}{ctex, xeCJK} |
| 276 |
} |
| 277 |
\LWR@earlyclassloadnever{beamer}{beamerarticle} |
| 278 |
\LWR@earlyclassloadnever{jarticle}{ujarticle} |
| 279 |
\LWR@earlyclassloadnever{jbook}{ujbook} |
| 280 |
\LWR@earlyclassloadnever{jreport}{ujreport} |
| 281 |
\LWR@earlyclassloadnever{tarticle}{utarticle} |
| 282 |
\LWR@earlyclassloadnever{tbook}{utbook} |
| 283 |
\LWR@earlyclassloadnever{treport}{utreport} |
| 284 |
\LWR@earlyclassloadnever{novel}{} |
| 285 |
\LWR@earlyclassloadnever{powerdot}{} |
| 286 |
\LWR@loadafter{2in1} |
| 287 |
\LWR@loadafter{2up} |
| 288 |
\LWR@loadafter{a4} |
| 289 |
\LWR@loadafter{a4wide} |
| 290 |
\LWR@loadafter{a5comb} |
| 291 |
\LWR@notmemoirloadafter{abstract} |
| 292 |
\LWR@loadafter{academicons} |
| 293 |
\LWR@loadafter{accents} |
| 294 |
\LWR@loadafter{accessibility} |
| 295 |
\LWR@loadafter{accsupp} |
| 296 |
\LWR@loadafter{acro} |
| 297 |
\LWR@loadafter{acronym} |
| 298 |
\LWR@loadafter{adjmulticol} |
| 299 |
\LWR@loadafter{addlines} |
| 300 |
\LWR@loadafter{afterpage} |
| 301 |
\LWR@loadafter{algorithm2e} |
| 302 |
\LWR@loadafter{algorithmicx} |
| 303 |
\LWR@loadafter{alltt} |
| 304 |
\LWR@loadafter{amscdx} |
| 305 |
\LWR@loadafter{anonchap} |
| 306 |
\LWR@loadafter{anysize} |
| 307 |
\LWR@notmemoirloadafter{appendix} |
| 308 |
\LWR@loadafter{apxproof} |
| 309 |
\LWR@loadafter{ar} |
| 310 |
\LWR@loadafter{arabicfront} |
| 311 |
\LWR@loadafter{arydshln} |
| 312 |
\LWR@loadafter{asymptote} |
| 313 |
\LWR@loadafter{attachfile} |
| 314 |
\LWR@loadafter{attachfile2} |
| 315 |
\LWR@loadafter{authblk} |
| 316 |
\LWR@loadafter{authoraftertitle}% Supported as-is, but must be loaded after. |
| 317 |
\LWR@loadafter{autobreak} |
| 318 |
\LWR@loadafter{autonum} |
| 319 |
\LWR@loadafter{awesomebox} |
| 320 |
\LWR@loadafter{axessibility} |
| 321 |
\LWR@loadafter{axodraw2} |
| 322 |
\LWR@loadafter{backnaur} |
| 323 |
\LWR@loadafter{backref} |
| 324 |
\LWR@loadafter{balance} |
| 325 |
\LWR@loadafter{bbding} |
| 326 |
\LWR@loadafter{beamerarticle} |
| 327 |
\LWR@loadafter{bigdelim} |
| 328 |
\LWR@loadafter{bigfoot} |
| 329 |
\LWR@loadafter{bigstrut} |
| 330 |
\LWR@loadafter{bitpattern} |
| 331 |
\LWR@loadafter{blowup} |
| 332 |
\LWR@loadafter{bm} |
| 333 |
\LWR@loadafter{booklet} |
| 334 |
\LWR@loadafter{bookmark} |
| 335 |
\LWR@notmemoirloadafter{booktabs} |
| 336 |
\LWR@loadafter{bophook} |
| 337 |
\LWR@loadafter{bounddvi} |
| 338 |
\LWR@loadafter{boxedminipage} |
| 339 |
\LWR@loadafter{boxedminipage2e} |
| 340 |
\LWR@loadafter{braket} |
| 341 |
\LWR@loadafter{breakurl} |
| 342 |
\LWR@loadafter{breqn} |
| 343 |
\LWR@loadafter{bsheaders} |
| 344 |
\LWR@loadafter{bussproofs} |
| 345 |
\LWR@loadafter{bxpapersize} |
| 346 |
\LWR@loadafter{bytefield} |
| 347 |
\LWR@loadafter{ccicons} |
| 348 |
\LWR@loadafter{cancel} |
| 349 |
\LWR@loadafter{canoniclayout} |
| 350 |
\LWR@loadafter{caption} |
| 351 |
\LWR@loadafter{caption2} |
| 352 |
\LWR@loadafter{caption3} |
| 353 |
\LWR@loadafter{cases} |
| 354 |
\LWR@loadafter{centerlastline} |
| 355 |
\LWR@loadafter{changebar} |
| 356 |
\LWR@loadafter{changelayout} |
| 357 |
\LWR@notmemoirloadafter{changepage} |
| 358 |
\LWR@loadafter{changes} |
| 359 |
\LWR@loadafter{chappg} |
| 360 |
\LWR@loadafter{chapterbib} |
| 361 |
\LWR@loadafter{chemfig} |
| 362 |
\LWR@loadafter{chemformula} |
| 363 |
\LWR@loadafter{chemgreek} |
| 364 |
\LWR@loadafter{chemmacros} |
| 365 |
\LWR@loadafter{chemnum} |
| 366 |
\LWR@loadafter{chkfloat} |
| 367 |
\LWR@notmemoirloadafter{chngpage} |
| 368 |
\LWR@loadafter{cite} |
| 369 |
\LWR@loadafter{citeref} |
| 370 |
\LWR@loadafter{classicthesis} |
| 371 |
\LWR@loadafter{cleveref} |
| 372 |
\LWR@loadafter{cmdtrack} |
| 373 |
\LWR@loadafter{colonequals} |
| 374 |
\LWR@loadafter{color} |
| 375 |
\LWR@loadafter{colortbl} |
| 376 |
\LWR@loadafter{continue} |
| 377 |
\LWR@loadafter{copyrightbox} |
| 378 |
\LWR@notmemoirloadafter{crop} |
| 379 |
\LWR@loadafter{ctable} |
| 380 |
\LWR@loadafter{cuted} |
| 381 |
\LWR@loadafter{cutwin} |
| 382 |
\LWR@loadafter{dblfloatfix} |
| 383 |
\LWR@loadafter{dblfnote} |
| 384 |
\LWR@notmemoirloadafter{dcolumn} |
| 385 |
\LWR@loadafter{decimal} |
| 386 |
\LWR@loadafter{decorule} |
| 387 |
\LWR@loadafter{diagbox} |
| 388 |
\LWR@loadafter{dingbat} |
| 389 |
\LWR@loadafter{doipubmed} |
| 390 |
\LWR@loadafter{DotArrow} |
| 391 |
\LWR@loadafter{dotlessi} |
| 392 |
\LWR@loadafter{dprogress} |
| 393 |
\LWR@loadafter{draftcopy} |
| 394 |
\LWR@loadafter{draftfigure} |
| 395 |
\LWR@loadafter{draftwatermark} |
| 396 |
\LWR@loadafter{drftcite} |
| 397 |
\LWR@loadafter{easy-todo} |
| 398 |
\LWR@loadafter{ebook} |
| 399 |
\LWR@loadafter{econometrics} |
| 400 |
\LWR@loadafter{ed} |
| 401 |
\LWR@loadafter{ellipsis} |
| 402 |
\LWR@loadafter{embrac} |
| 403 |
\LWR@loadafter{emptypage} |
| 404 |
\LWR@loadafter{endfloat} |
| 405 |
\LWR@loadafter{endheads} |
| 406 |
\LWR@loadafter{endnotes} |
| 407 |
\LWR@loadafter{engtlc} |
| 408 |
\LWR@loadafter{enotez} |
| 409 |
\LWR@notmemoirloadafter{enumerate} |
| 410 |
\LWR@loadafter{enumitem} |
| 411 |
\LWR@notmemoirloadafter{epigraph} |
| 412 |
\LWR@loadafter{epsf} |
| 413 |
\LWR@loadafter{epsfig} |
| 414 |
\LWR@loadafter{epstopdf} |
| 415 |
\LWR@loadafter{epstopdf-base} |
| 416 |
\LWR@loadafter{eqlist} |
| 417 |
\LWR@loadafter{eqparbox} |
| 418 |
\LWR@loadafter{errata} |
| 419 |
\LWR@loadafter{eso-pic} |
| 420 |
\LWR@loadafter{esvect} |
| 421 |
\LWR@loadafter{etoc} |
| 422 |
\LWR@loadafter{eurosym} |
| 423 |
\LWR@loadafter{everypage} |
| 424 |
\LWR@loadafter{extarrows} |
| 425 |
\LWR@loadafter{extramarks} |
| 426 |
\LWR@loadafter{fancybox} |
| 427 |
\LWR@loadafter{fancyhdr} |
| 428 |
\LWR@loadafter{fancypar} |
| 429 |
\LWR@loadafter{fancyref} |
| 430 |
\LWR@loadafter{fancytabs} |
| 431 |
\LWR@loadafter{fancyvrb} |
| 432 |
\LWR@loadafter{fbox} |
| 433 |
\LWR@loadafter{fewerfloatpages} |
| 434 |
\LWR@loadafter{figcaps} |
| 435 |
\LWR@loadafter{figsize} |
| 436 |
\LWR@loadafter{fitbox} |
| 437 |
\LWR@loadafter{fix2col} |
| 438 |
\LWR@loadafter{fixmath} |
| 439 |
\LWR@loadafter{fixme} |
| 440 |
\LWR@loadafter{fixmetodonotes} |
| 441 |
\LWR@loadafter{flafter} |
| 442 |
\LWR@loadafter{flippdf} |
| 443 |
\LWR@loadafter{float} |
| 444 |
\LWR@loadafter{floatflt} |
| 445 |
\LWR@loadafter{floatpag} |
| 446 |
\LWR@loadafter{floatrow} |
| 447 |
\LWR@loadafter{fltrace} |
| 448 |
\LWR@loadafter{flushend} |
| 449 |
\LWR@loadafter{fnbreak} |
| 450 |
\LWR@loadafter{fncychap} |
| 451 |
\LWR@loadafter{fnlineno} |
| 452 |
\LWR@loadafter{fnpara} |
| 453 |
\LWR@loadafter{fnpos} |
| 454 |
\LWR@loadafter{fontawesome} |
| 455 |
\LWR@loadafter{fontawesome5} |
| 456 |
\LWR@loadafter{footmisc} |
| 457 |
\LWR@loadafter{footnote} |
| 458 |
\LWR@loadafter{footnotebackref} |
| 459 |
\LWR@loadafter{footnotehyper} |
| 460 |
\LWR@loadafter{footnoterange} |
| 461 |
\LWR@loadafter{footnpag} |
| 462 |
\LWR@loadafter{foreign} |
| 463 |
\LWR@loadafter{forest} |
| 464 |
\LWR@loadafter{fouridx} |
| 465 |
\LWR@loadafter{framed} |
| 466 |
\LWR@loadafter{froufrou} |
| 467 |
\LWR@loadafter{ftcap} |
| 468 |
\LWR@loadafter{ftnright} |
| 469 |
\LWR@loadafter{fullminipage} |
| 470 |
\LWR@loadafter{fullpage} |
| 471 |
\LWR@loadafter{fullwidth} |
| 472 |
\LWR@loadafter{fvextra} |
| 473 |
\LWR@loadafter{fwlw} |
| 474 |
\LWR@loadafter{gensymb} |
| 475 |
\LWR@loadafter{gentombow} |
| 476 |
\LWR@loadafter{ghsystem} |
| 477 |
\LWR@loadafter{gindex} |
| 478 |
\LWR@loadafter{glossaries} |
| 479 |
\LWR@loadafter{gmeometric} |
| 480 |
\LWR@loadafter{gloss} |
| 481 |
\LWR@loadafter{glossary} |
| 482 |
\LWR@loadafter{grffile} |
| 483 |
\LWR@loadafter{grid} |
| 484 |
\LWR@loadafter{grid-system} |
| 485 |
\LWR@loadafter{gridset} |
| 486 |
\LWR@loadafter{hang} |
| 487 |
\LWR@loadafter{hanging} |
| 488 |
\LWR@loadafter{hepunits} |
| 489 |
\LWR@loadafter{hhline} |
| 490 |
\LWR@loadafter{hhtensor} |
| 491 |
\LWR@loadafter{hypbmsec} |
| 492 |
\LWR@loadafter{hypcap} |
| 493 |
\LWR@loadafter{hypdestopt} |
| 494 |
\LWR@loadafter{hypernat} |
| 495 |
\LWR@loadafter{hyperref} |
| 496 |
\LWR@loadafter{hyperxmp} |
| 497 |
\LWR@loadafter{hyphenat} |
| 498 |
\LWR@loadafter{idxlayout} |
| 499 |
\LWR@loadafter{ifoddpage} |
| 500 |
\LWR@loadafter{imakeidx} |
| 501 |
\LWR@loadafter{impnattypo} |
| 502 |
\LWR@notmemoirloadafter{index} |
| 503 |
\LWR@loadafter{intopdf} |
| 504 |
\LWR@loadafter{isomath} |
| 505 |
\LWR@loadafter{isotope} |
| 506 |
\LWR@loadafter{jurabib} |
| 507 |
\LWR@loadafter{karnaugh-map} |
| 508 |
\LWR@loadafter{keyfloat} |
| 509 |
\LWR@loadafter{keystroke} |
| 510 |
\LWR@loadafter{layaureo} |
| 511 |
\LWR@loadafter{layout} |
| 512 |
\LWR@loadafter{layouts} |
| 513 |
\LWR@loadafter{leading} |
| 514 |
\LWR@loadafter{leftidx} |
| 515 |
\LWR@loadafter{letterspace} |
| 516 |
\LWR@loadafter{lettrine} |
| 517 |
\LWR@loadafter{lineno} |
| 518 |
\LWR@loadafter{lips} |
| 519 |
\LWR@loadafter{listings} |
| 520 |
\LWR@loadafter{listliketab} |
| 521 |
\LWR@loadafter{lltjp-siunitx} |
| 522 |
\LWR@loadafter{lltjp-tascmac} |
| 523 |
\LWR@loadafter{longtable} |
| 524 |
\LWR@loadafter{lpic} |
| 525 |
\LWR@loadafter{lscape} |
| 526 |
\LWR@loadafter{ltablex} |
| 527 |
\LWR@loadafter{ltcaption} |
| 528 |
\LWR@loadafter{ltxgrid} |
| 529 |
\LWR@loadafter{ltxtable} |
| 530 |
\LWR@loadafter{lua-check-hyphen} |
| 531 |
\LWR@loadafter{lua-visual-debug} |
| 532 |
\LWR@loadafter{luacolor} |
| 533 |
\LWR@loadafter{luamplib} |
| 534 |
\LWR@loadafter{luatodonotes} |
| 535 |
\LWR@loadafter{luavlna} |
| 536 |
\LWR@loadafter{lyluatex} |
| 537 |
\LWR@loadafter{magaz} |
| 538 |
\LWR@notmemoirloadafter{makeidx} |
| 539 |
\LWR@loadafter{manyfoot} |
| 540 |
\LWR@loadafter{marginfit} |
| 541 |
\LWR@loadafter{marginfix} |
| 542 |
\LWR@loadafter{marginnote} |
| 543 |
\LWR@loadafter{marvosym} |
| 544 |
\LWR@loadafter{mathastext} |
| 545 |
\LWR@loadafter{mathcomp} |
| 546 |
\LWR@loadafter{mathdesign} |
| 547 |
\LWR@loadafter{mathdots} |
| 548 |
\LWR@loadafter{mathfixs} |
| 549 |
\LWR@loadafter{mathpazo} |
| 550 |
\LWR@loadafter{mathptmx} |
| 551 |
\LWR@loadafter{mathspec} |
| 552 |
\LWR@loadafter{mathtools} |
| 553 |
\LWR@loadafter{mattens} |
| 554 |
\LWR@loadafter{maybemath} |
| 555 |
\LWR@loadafter{mcaption} |
| 556 |
\LWR@loadafter{mdframed} |
| 557 |
\LWR@loadafter{mdwmath} |
| 558 |
\LWR@loadafter{media9} |
| 559 |
\LWR@loadafter{memhfixc} |
| 560 |
\LWR@loadafter{menukeys} |
| 561 |
\LWR@loadafter{metalogo} |
| 562 |
\LWR@loadafter{metalogox} |
| 563 |
\LWR@loadafter{mhchem} |
| 564 |
\LWR@loadafter{microtype} |
| 565 |
\LWR@loadafter{midfloat} |
| 566 |
\LWR@loadafter{midpage} |
| 567 |
\LWR@loadafter{minibox} |
| 568 |
\LWR@loadafter{minitoc} |
| 569 |
\LWR@loadafter{minted} |
| 570 |
\LWR@loadafter{mismath} |
| 571 |
\LWR@loadafter{mleftright} |
| 572 |
\LWR@notmemoirloadafter{moreverb} |
| 573 |
\LWR@notmemoirloadafter{movie15} |
| 574 |
\LWR@notmemoirloadafter{mparhack} |
| 575 |
\LWR@loadafter{multibib} |
| 576 |
\LWR@loadafter{multicap} |
| 577 |
\LWR@loadafter{multicolrule} |
| 578 |
\LWR@loadafter{multimedia} |
| 579 |
\LWR@loadafter{multiobjective} |
| 580 |
\LWR@loadafter{multirow} |
| 581 |
\LWR@loadafter{multitoc} |
| 582 |
\LWR@loadafter{musicography} |
| 583 |
\LWR@loadafter{mwe} |
| 584 |
\LWR@loadafter{nameauth} |
| 585 |
\LWR@loadafter{natbib} |
| 586 |
\LWR@notmemoirloadafter{nccfancyhdr} |
| 587 |
\LWR@loadafter{nccfoots} |
| 588 |
\LWR@loadafter{nccmath} |
| 589 |
\LWR@notmemoirloadafter{needspace} |
| 590 |
\LWR@notmemoirloadafter{nextpage} |
| 591 |
\LWR@loadafter{nicefrac} |
| 592 |
\LWR@loadafter{niceframe} |
| 593 |
\LWR@loadafter{nicematrix} |
| 594 |
\LWR@loadafter{noitcrul} |
| 595 |
\LWR@loadafter{nolbreaks} |
| 596 |
\LWR@loadafter{nomencl} |
| 597 |
\LWR@loadafter{nonfloat} |
| 598 |
\LWR@loadafter{nonumonpart} |
| 599 |
\LWR@loadafter{nopageno} |
| 600 |
\LWR@loadafter{notes} |
| 601 |
\LWR@loadafter{notespages} |
| 602 |
\LWR@loadafter{nowidow} |
| 603 |
\LWR@loadafter{ntheorem} |
| 604 |
\LWR@loadafter{octave} |
| 605 |
\LWR@loadafter{orcidlink} |
| 606 |
\LWR@loadafter{overpic} |
| 607 |
\LWR@loadafter{pagegrid} |
| 608 |
\LWR@notmemoirloadafter{pagenote} |
| 609 |
\LWR@loadafter{pagesel} |
| 610 |
\LWR@loadafter{paralist} |
| 611 |
\LWR@loadafter{parallel} |
| 612 |
\LWR@loadafter{parcolumns} |
| 613 |
\LWR@loadafter{parnotes} |
| 614 |
\LWR@notmemoirloadafter{parskip} |
| 615 |
\LWR@loadafter{pbalance} |
| 616 |
\LWR@loadafter{pbox} |
| 617 |
\LWR@loadafter{pdfcol} |
| 618 |
\LWR@loadafter{pdfcolfoot} |
| 619 |
\LWR@loadafter{pdfcolmk} |
| 620 |
\LWR@loadafter{pdfcolparallel} |
| 621 |
\LWR@loadafter{pdfcolparcolumns} |
| 622 |
\LWR@loadafter{pdfcomment} |
| 623 |
\LWR@loadafter{pdfcrypt} |
| 624 |
\LWR@loadafter{pdflscape} |
| 625 |
\LWR@loadafter{pdfmarginpar} |
| 626 |
\LWR@loadafter{pdfpages} |
| 627 |
\LWR@loadafter{pdfprivacy} |
| 628 |
\LWR@loadafter{pdfrender} |
| 629 |
\LWR@loadafter{pdfsync} |
| 630 |
\LWR@loadafter{pdftricks} |
| 631 |
\LWR@loadafter{pdfx} |
| 632 |
\LWR@loadafter{perpage} |
| 633 |
\LWR@loadafter{pfnote} |
| 634 |
\LWR@loadafter{phfqit} |
| 635 |
\LWR@loadafter{physics} |
| 636 |
\LWR@loadafter{physunits} |
| 637 |
\LWR@loadafter{picinpar} |
| 638 |
\LWR@loadafter{pifont} |
| 639 |
\LWR@loadafter{pinlabel} |
| 640 |
\LWR@loadafter{placeins} |
| 641 |
\LWR@loadafter{plarray} |
| 642 |
\LWR@loadafter{plarydshln} |
| 643 |
\LWR@loadafter{plextarray} |
| 644 |
\LWR@loadafter{plextarydshln} |
| 645 |
\LWR@loadafter{plcolortbl} |
| 646 |
\LWR@loadafter{plextdelarray} |
| 647 |
\LWR@loadafter{plimsoll} |
| 648 |
\LWR@loadafter{prelim2e} |
| 649 |
\LWR@loadafter{prettyref} |
| 650 |
\LWR@loadafter{preview} |
| 651 |
\LWR@loadafter{psfrag} |
| 652 |
\LWR@loadafter{psfragx} |
| 653 |
\LWR@loadafter{pst-eps} |
| 654 |
\LWR@loadafter{pstool} |
| 655 |
\LWR@loadafter{pstricks} |
| 656 |
\LWR@loadafter{pxeveryshi} |
| 657 |
\LWR@loadafter{pxftnright} |
| 658 |
\LWR@loadafter{pxjahyper} |
| 659 |
\LWR@loadafter{pythontex} |
| 660 |
\LWR@loadafter{quotchap} |
| 661 |
\LWR@loadafter{quoting} |
| 662 |
\LWR@loadafter{ragged2e} |
| 663 |
\LWR@loadafter{refcheck} |
| 664 |
\LWR@loadafter{register} |
| 665 |
\LWR@loadafter{relsize} |
| 666 |
\LWR@loadafter{repeatindex} |
| 667 |
\LWR@loadafter{resizegather} |
| 668 |
\LWR@loadafter{returntogrid} |
| 669 |
\LWR@loadafter{rlepsf} |
| 670 |
\LWR@loadafter{rmathbr} |
| 671 |
\LWR@loadafter{rmpage} |
| 672 |
\LWR@loadafter{romanbar} |
| 673 |
\LWR@loadafter{romanbarpagenumber} |
| 674 |
\LWR@loadafter{rotating} |
| 675 |
\LWR@loadafter{rotfloat} |
| 676 |
\LWR@loadafter{rviewport} |
| 677 |
\LWR@loadafter{savetrees} |
| 678 |
\LWR@loadafter{scalerel} |
| 679 |
\LWR@loadafter{schemata} |
| 680 |
\LWR@loadafter{scrextend} |
| 681 |
\LWR@loadafter{scrhack} |
| 682 |
\LWR@loadafter{scrlayer} |
| 683 |
\LWR@loadafter{scrlayer-notecolumn} |
| 684 |
\LWR@loadafter{scrlayer-scrpage} |
| 685 |
\LWR@loadafter{scrpage2} |
| 686 |
\LWR@loadafter{section} |
| 687 |
\LWR@loadafter{sectionbreak} |
| 688 |
\LWR@loadafter{sectsty} |
| 689 |
\LWR@loadafter{selectp} |
| 690 |
\LWR@loadafter{semantic-markup} |
| 691 |
\LWR@notmemoirloadafter{setspace} |
| 692 |
\LWR@loadafter{shadow} |
| 693 |
\LWR@loadafter{shapepar} |
| 694 |
\LWR@notmemoirloadafter{showidx} |
| 695 |
\LWR@loadafter{showlabels} |
| 696 |
\LWR@loadafter{showkeys} |
| 697 |
\LWR@loadafter{showtags} |
| 698 |
\LWR@loadafter{shuffle} |
| 699 |
\LWR@loadafter{sidecap} |
| 700 |
\LWR@loadafter{sidenotes} |
| 701 |
\LWR@loadafter{simplebnf} |
| 702 |
\LWR@loadafter{SIunits} |
| 703 |
\LWR@loadafter{siunitx} |
| 704 |
\LWR@loadafter{siunitx-v2} |
| 705 |
\LWR@loadafter{skmath} |
| 706 |
\LWR@loadafter{slantsc} |
| 707 |
\LWR@loadafter{slashed} |
| 708 |
\LWR@loadafter{soul} |
| 709 |
\LWR@loadafter{soulpos} |
| 710 |
\LWR@loadafter{soulutf8} |
| 711 |
\LWR@loadafter{splitbib} |
| 712 |
\LWR@loadafter{splitidx} |
| 713 |
\LWR@loadafter{srcltx} |
| 714 |
\LWR@loadafter{srctex} |
| 715 |
\LWR@loadafter{stabular} |
| 716 |
\LWR@loadafter{stackengine} |
| 717 |
\LWR@loadafter{stackrel} |
| 718 |
\LWR@loadafter{statex2} |
| 719 |
\LWR@loadafter{statistics} |
| 720 |
\LWR@loadafter{statmath} |
| 721 |
\LWR@loadafter{steinmetz} |
| 722 |
\LWR@notltjloadafter{stfloats} |
| 723 |
\LWR@loadafter{struktex} |
| 724 |
\LWR@loadafter{subcaption} |
| 725 |
\LWR@loadafter{subfig} |
| 726 |
\LWR@loadafter{subfigure} |
| 727 |
\LWR@loadafter{subsupscripts} |
| 728 |
\LWR@loadafter{supertabular} |
| 729 |
\LWR@loadafter{svg} |
| 730 |
\LWR@loadafter{swfigure} |
| 731 |
\LWR@loadafter{sympytex} |
| 732 |
\LWR@loadafter{syntonly} |
| 733 |
\LWR@loadafter{t1inc} |
| 734 |
\LWR@loadafter{tabfigures} |
| 735 |
\LWR@loadafter{tabls} |
| 736 |
\LWR@loadafter{tablefootnote} |
| 737 |
\LWR@notmemoirloadafter{tabularx} |
| 738 |
\LWR@loadafter{tabulary} |
| 739 |
\LWR@loadafter{tascmac} |
| 740 |
\LWR@loadafter{tcolorbox} |
| 741 |
\LWR@loadafter{tensor} |
| 742 |
\LWR@loadafter{termcal} |
| 743 |
\LWR@loadafter{textarea} |
| 744 |
\LWR@loadafter{textfit} |
| 745 |
\LWR@loadafter{textpos} |
| 746 |
\LWR@loadafter{theorem} |
| 747 |
\LWR@loadafter{thinsp} |
| 748 |
\LWR@loadafter{thm-listof} |
| 749 |
\LWR@loadafter{thm-restate} |
| 750 |
\LWR@loadafter{thmbox} |
| 751 |
\LWR@loadafter{thmtools} |
| 752 |
\LWR@loadafter{threadcol} |
| 753 |
\LWR@loadafter{threeparttable} |
| 754 |
\LWR@loadafter{threeparttablex} |
| 755 |
\LWR@loadafter{thumb} |
| 756 |
\LWR@loadafter{thumbs} |
| 757 |
\LWR@loadafter{tikz} |
| 758 |
\LWR@loadafter{tikz-imagelabels} |
| 759 |
\LWR@loadafter{titleps} |
| 760 |
\LWR@loadafter{titlesec} |
| 761 |
\LWR@loadafter{titletoc} |
| 762 |
\LWR@notmemoirloadafter{titling} |
| 763 |
\LWR@notmemoirloadafter{tocbibind} |
| 764 |
\LWR@loadafter{tocdata} |
| 765 |
\LWR@loadafter{tocenter} |
| 766 |
\LWR@notmemoirloadafter{tocloft} |
| 767 |
\LWR@loadafter{tocstyle} |
| 768 |
\LWR@loadafter{todo} |
| 769 |
\LWR@loadafter{todonotes} |
| 770 |
\LWR@loadafter{topcapt} |
| 771 |
\LWR@loadafter{tram} |
| 772 |
\LWR@loadafter{transparent} |
| 773 |
\LWR@loadafter{trimclip} |
| 774 |
\LWR@loadafter{trivfloat} |
| 775 |
\LWR@loadafter{truncate} |
| 776 |
\LWR@loadafter{turnthepage} |
| 777 |
\LWR@loadafter{twoup} |
| 778 |
\LWR@loadafter{typicons} |
| 779 |
\LWR@loadafter{umoline} |
| 780 |
\LWR@loadafter{underscore} |
| 781 |
\LWR@loadafter{units} |
| 782 |
\LWR@loadafter{unitsdef} |
| 783 |
\LWR@loadafter{upgreek} |
| 784 |
\LWR@loadafter{upref} |
| 785 |
\LWR@loadafter{url} |
| 786 |
\LWR@loadafter{ushort} |
| 787 |
\LWR@loadafter{uspace} |
| 788 |
\LWR@loadafter{varioref} |
| 789 |
\LWR@notmemoirloadafter{verse} |
| 790 |
\LWR@loadafter{versonotes} |
| 791 |
\LWR@loadafter{vertbars} |
| 792 |
\LWR@loadafter{vmargin} |
| 793 |
\LWR@loadafter{vowel} |
| 794 |
\LWR@loadafter{vpe} |
| 795 |
\LWR@loadafter{vwcol} |
| 796 |
\LWR@loadafter{wallpaper} |
| 797 |
\LWR@loadafter{watermark} |
| 798 |
\LWR@loadafter{widetable} |
| 799 |
\LWR@loadafter{widows-and-orphans} |
| 800 |
\LWR@loadafter{witharrows} |
| 801 |
\LWR@loadafter{wrapfig} |
| 802 |
\LWR@loadafter{wrapfig2} |
| 803 |
\LWR@loadafter{xbmks} |
| 804 |
\LWR@loadafter{xcolor} |
| 805 |
\LWR@loadafter{xechangebar} |
| 806 |
\LWR@loadafter{xellipsis} |
| 807 |
\LWR@loadafter{xevlna} |
| 808 |
\LWR@loadafter{xfakebold} |
| 809 |
\LWR@loadafter{xfrac} |
| 810 |
\LWR@loadafter{xltabular} |
| 811 |
\LWR@loadafter{xltxtra} |
| 812 |
\LWR@loadafter{xmpincl} |
| 813 |
\LWR@loadafter{xpiano} |
| 814 |
\LWR@loadafter{xpinyin} |
| 815 |
\LWR@loadafter{xr} |
| 816 |
\LWR@loadafter{xr-hyper} |
| 817 |
\LWR@loadafter{xtab} |
| 818 |
\LWR@loadafter{xurl} |
| 819 |
\LWR@loadafter{xy} |
| 820 |
\LWR@loadafter{zwpagelayout} |
| 821 |
\newcommand{\LWR@mdfive}[1]{% |
| 822 |
\PackageError{lwarp} |
| 823 |
{No MD5 macro was found} |
| 824 |
{% |
| 825 |
Lwarp must find the macros \protect\pdfmdfivesum\space |
| 826 |
or \protect\mdfivesum.% |
| 827 |
} |
| 828 |
} |
| 829 |
\ifdef{\pdfmdfivesum} |
| 830 |
{\let\LWR@mdfive\pdfmdfivesum} |
| 831 |
{} |
| 832 |
\ifLuaTeX |
| 833 |
\RequirePackage{pdftexcmds} |
| 834 |
\let\LWR@mdfive\pdf@mdfivesum |
| 835 |
\fi |
| 836 |
\ifXeTeX |
| 837 |
\@ifundefined{pdffivesum}{} |
| 838 |
{\let\LWR@mdfive\pdfmdfivesum} |
| 839 |
\@ifundefined{mdfivesum}{} |
| 840 |
{\let\LWR@mdfive\mdfivesum} |
| 841 |
\fi |
| 842 |
\newcommand*{\LWR@pdfencoding}{% |
| 843 |
\RequirePackage[T1]{fontenc} |
| 844 |
|
| 845 |
\IfPackageLoadedTF{inputenc}{}{ |
| 846 |
\IfPackageLoadedTF{inputenx}{}{ |
| 847 |
\RequirePackage[utf8]{inputenc} |
| 848 |
} |
| 849 |
} |
| 850 |
} |
| 851 |
\ifPDFTeX% pdflatex or dvi latex |
| 852 |
\LWR@pdfencoding |
| 853 |
\fi |
| 854 |
|
| 855 |
\ifpTeX |
| 856 |
\LWR@pdfencoding |
| 857 |
\fi |
| 858 |
\ifpTeX |
| 859 |
\else |
| 860 |
\RequirePackage{newunicodechar} |
| 861 |
|
| 862 |
\newunicodechar{⨯}{\texttimes} |
| 863 |
|
| 864 |
\ifPDFTeX% pdflatex or dvi latex |
| 865 |
\newunicodechar{ff}{ff}% Here, the first arguments are ligatures. |
| 866 |
\newunicodechar{fi}{fi} |
| 867 |
\newunicodechar{fl}{fl} |
| 868 |
\newunicodechar{ffi}{ffi} |
| 869 |
\newunicodechar{ffl}{ffl} |
| 870 |
\newunicodechar{—}{---} |
| 871 |
\newunicodechar{–}{--} |
| 872 |
\fi |
| 873 |
|
| 874 |
\fi |
| 875 |
\ifxetexorluatex |
| 876 |
\else |
| 877 |
\ifdefstring{\f@family}{cmr}{ |
| 878 |
\IfFileExists{type1ec.sty}% found in cm-super |
| 879 |
{} |
| 880 |
{% cm-super not installed |
| 881 |
\IfFileExists{lmodern.sty}{ |
| 882 |
\PackageInfo{lwarp}{cm-super not installed, loading lmodern} |
| 883 |
\RequirePackage{lmodern} |
| 884 |
}{ |
| 885 |
\PackageError{lwarp} |
| 886 |
{% |
| 887 |
Lwarp requires a vector font.\MessageBreak |
| 888 |
Install and load cm-super, lmodern, or another\MessageBreak |
| 889 |
Type-1 vector font before loading lwarp.\MessageBreak |
| 890 |
Enter 'H' for possible solutions% |
| 891 |
} |
| 892 |
{% |
| 893 |
Install cm-super or lmodern.\MessageBreak |
| 894 |
If lmodern, load it before lwarp:\MessageBreak |
| 895 |
\space\space\protect\usepackage{lmodern}\MessageBreak |
| 896 |
\space\space\protect\usepackage{lwarp}% |
| 897 |
} |
| 898 |
} |
| 899 |
}% cm-super not installed |
| 900 |
}{}% f@family |
| 901 |
\fi |
| 902 |
\ifPDFTeX |
| 903 |
\RequirePackage{upquote} |
| 904 |
\fi |
| 905 |
|
| 906 |
\ifpTeX |
| 907 |
\RequirePackage{upquote} |
| 908 |
\fi |
| 909 |
\ifxetexorluatex |
| 910 |
\AtBeginDocument{ |
| 911 |
\IfPackageLoadedTF{kpfonts}{ |
| 912 |
\PackageError{lwarp} |
| 913 |
{% |
| 914 |
When using XeLaTeX or LuaLaTeX,\MessageBreak |
| 915 |
use kpfonts-otf instead of kpfonts% |
| 916 |
} |
| 917 |
{% |
| 918 |
Replace: \protect\usepackage{kpfonts}\MessageBreak |
| 919 |
with: \protect\usepackage{kpfonts-otf} |
| 920 |
} |
| 921 |
}{} |
| 922 |
} |
| 923 |
\fi |
| 924 |
\newlength{\LWR@templengthone} |
| 925 |
\newlength{\LWR@templengthtwo} |
| 926 |
\newlength{\LWR@templengththree} |
| 927 |
\newcounter{LWR@tempcountone} |
| 928 |
\newcommand*\LWR@providelength[1]{% |
| 929 |
\ifdeflength{#1}{}{\newlength{#1}}% |
| 930 |
} |
| 931 |
\newcommand*{\LWR@convertto}[2]{\strip@pt\dimexpr #2*65536/\number\dimexpr 1#1} |
| 932 |
|
| 933 |
\newcommand*{\LWR@printpercentlength}[2]{% |
| 934 |
\setcounter{LWR@tempcountone}{100*\ratio{#1}{#2}}% |
| 935 |
\arabic{LWR@tempcountone}% |
| 936 |
} |
| 937 |
|
| 938 |
|
| 939 |
\providecommand*{\defaddtocounter}[2]{% |
| 940 |
\defcounter{#1}{\value{#1}+#2}% |
| 941 |
} |
| 942 |
|
| 943 |
\newcommand*{\LWR@typeoutbool}[2]{% |
| 944 |
\ifblank{#1}% |
| 945 |
{% |
| 946 |
\PackageError{lwarp}% |
| 947 |
{% |
| 948 |
Boolean not given.\MessageBreak |
| 949 |
Usage: \protect\LWR@printbool{boolean}{message}% |
| 950 |
}% |
| 951 |
{No more info.}% |
| 952 |
}% |
| 953 |
{% |
| 954 |
\ifbool{#1}% |
| 955 |
{\typeout{****** #2 #1 TRUE}}% |
| 956 |
{\typeout{****** #2 #1 FALSE}}% |
| 957 |
}% |
| 958 |
} |
| 959 |
|
| 960 |
\newcommand*{\LWR@printbool}[2]{% |
| 961 |
\ifblank{#1}% |
| 962 |
{% |
| 963 |
\PackageError{lwarp}% |
| 964 |
{% |
| 965 |
Boolean not given.\MessageBreak |
| 966 |
Usage: \protect\LWR@printbool{boolean}{message}% |
| 967 |
}% |
| 968 |
{No more info.}% |
| 969 |
}% |
| 970 |
{% |
| 971 |
\ifbool{#1}% |
| 972 |
{*** #2 #1 TRUE ***}% |
| 973 |
{*** #2 #1 FALSE ***}% |
| 974 |
}% |
| 975 |
} |
| 976 |
|
| 977 |
|
| 978 |
\newcommand*{\LWR@patcherror}[2]{% |
| 979 |
\PackageError{lwarp}% |
| 980 |
{% |
| 981 |
Unable to patch package #1,\MessageBreak |
| 982 |
macro \LWRbackslash #2.\MessageBreak |
| 983 |
Lwarp or #1 may need to be updated% |
| 984 |
}% |
| 985 |
{Please contact the maintainer of the Lwarp package.}% |
| 986 |
} |
| 987 |
\providecommand*{\csNewCommandCopycs}[2]{% |
| 988 |
\expandafter\NewCommandCopy\csname#1\expandafter\endcsname% |
| 989 |
\csname#2\endcsname% |
| 990 |
} |
| 991 |
\providecommand*{\NewEnvironmentCopy}[2]{% |
| 992 |
\csNewCommandCopycs{#1}{#2}% |
| 993 |
\csNewCommandCopycs{end#1}{end#2}% |
| 994 |
} |
| 995 |
\newcommand{\LWR@isolate}[1]{#1}% |
| 996 |
|
| 997 |
\IfPackageLoadedTF{ctexpatch}{ |
| 998 |
\renewcommand{\LWR@isolate}[1]{\null#1\null}% |
| 999 |
}{} |
| 1000 |
|
| 1001 |
\IfPackageLoadedTF{xeCJK}{ |
| 1002 |
\renewcommand{\LWR@isolate}[1]{\null#1\null}% |
| 1003 |
}{} |
| 1004 |
\newcommand*{\LWR@disablepinyin}{} |
| 1005 |
\newcommand*{\LWR@forceemptyline}{% |
| 1006 |
\LWR@origrule{0pt}{1\baselineskip}% |
| 1007 |
\LWR@orignewline% |
| 1008 |
} |
| 1009 |
\long\def\LWR@thirdofthree#1#2#3{#3}% |
| 1010 |
\long\def\LWR@fourthoffour#1#2#3#4{#4}% |
| 1011 |
|
| 1012 |
\long\def\LWR@firstoffive#1#2#3#4#5{#1} |
| 1013 |
\long\def\LWR@secondoffive#1#2#3#4#5{#2} |
| 1014 |
\long\def\LWR@thirdoffive#1#2#3#4#5{#3} |
| 1015 |
\long\def\LWR@fourthoffive#1#2#3#4#5{#4} |
| 1016 |
\long\def\LWR@fifthoffive#1#2#3#4#5{#5} |
| 1017 |
\long\def\LWR@edeffirstoffive#1#2#3#4#5{% |
| 1018 |
\edef\@tempa{#1}% |
| 1019 |
}% |
| 1020 |
|
| 1021 |
\newcounter{LWR@texboxdepth} |
| 1022 |
\setcounter{LWR@texboxdepth}{0} |
| 1023 |
\newcommand*{\LWR@maybe@orignewpage}{% |
| 1024 |
\LWR@traceinfo{LWR@maybe@orignewpage}% |
| 1025 |
\ifnumgreater{\value{LWR@texboxdepth}}{0}% |
| 1026 |
{}% |
| 1027 |
{\LWR@orignewpage}% |
| 1028 |
\LWR@traceinfo{LWR@maybe@orignewpage done}% |
| 1029 |
} |
| 1030 |
\DeclareRobustCommand\LWR@gsavebox[1]{% |
| 1031 |
\@ifnextchar(%) |
| 1032 |
{\LWR@@gsavepicbox#1}{\@ifnextchar[{\LWR@@gsavebox#1}{\LWR@gsbox#1}}}% |
| 1033 |
\long\def\LWR@gsbox#1#2{\global\setbox#1\hbox{% |
| 1034 |
\color@setgroup#2\color@endgroup}} |
| 1035 |
\def\LWR@@gsavebox#1[#2]{% |
| 1036 |
\@ifnextchar [{\LWR@@igsavebox#1[#2]}{\LWR@@igsavebox#1[#2][c]}} |
| 1037 |
\long\def\LWR@@igsavebox#1[#2][#3]#4{% |
| 1038 |
\LWR@gsbox#1{\@imakebox[#2][#3]{#4}}} |
| 1039 |
\def\LWR@@gsavepicbox#1(#2,#3){% |
| 1040 |
\@ifnextchar[%] |
| 1041 |
{\LWR@@igsavepicbox#1(#2,#3)}{\LWR@@igsavepicbox#1(#2,#3)[]}} |
| 1042 |
\long\def\LWR@@igsavepicbox#1(#2,#3)[#4]#5{% |
| 1043 |
\LWR@gsbox#1{\@imakepicbox(#2,#3)[#4]{#5}}} |
| 1044 |
|
| 1045 |
\def\LWR@glrbox#1{% |
| 1046 |
\edef\reserved@a{% |
| 1047 |
\endgroup |
| 1048 |
\global\setbox#1\hbox{% |
| 1049 |
\begingroup\aftergroup}% |
| 1050 |
\def\noexpand\@currenvir{\@currenvir}% |
| 1051 |
\def\noexpand\@currenvline{\on@line}}% |
| 1052 |
\reserved@a |
| 1053 |
\@endpefalse |
| 1054 |
\color@setgroup |
| 1055 |
\ignorespaces} |
| 1056 |
\let\LWR@endglrbox\LWR@endlrbox |
| 1057 |
\newcommand*{\macrotocsname}[1]{% |
| 1058 |
\ifcat\relax\noexpand#1% |
| 1059 |
\expandafter\expandafter\expandafter\@gobble\expandafter\string |
| 1060 |
\fi |
| 1061 |
#1% |
| 1062 |
} |
| 1063 |
\ExplSyntaxOn |
| 1064 |
\newcommand*{\LWRtexttitlecase}[1]{% |
| 1065 |
\text_titlecase:n{#1}% |
| 1066 |
} |
| 1067 |
\ExplSyntaxOff |
| 1068 |
\newcommand*{\LWR@LetLtxMacrocs}[2]{% |
| 1069 |
\expandafter\LetLtxMacro\csname #1\expandafter\endcsname% |
| 1070 |
\csname#2\endcsname% |
| 1071 |
} |
| 1072 |
\newcommand*{\LWR@absorbstar}[1]{% |
| 1073 |
\LWR@LetLtxMacrocs{LWR@origns@#1}{#1}% |
| 1074 |
\csdef{#1}{\@ifstar{\csuse{LWR@origns@#1}}{\csuse{LWR@origns@#1}}} |
| 1075 |
\expandafter\robustify\csname #1\endcsname |
| 1076 |
} |
| 1077 |
\let\LWRpercent\@percentchar |
| 1078 |
\catcode`\$=12 |
| 1079 |
\def\LWRdollar{$} |
| 1080 |
\def\LWRdollar{$}% syntax highlighting |
| 1081 |
\catcode`\$=3 |
| 1082 |
\catcode`\&=12 |
| 1083 |
\def\LWRamp{&} |
| 1084 |
\catcode`\&=4 |
| 1085 |
\catcode`\&=0 |
| 1086 |
&catcode`&\=12 |
| 1087 |
&def&LWRbackslash{\} |
| 1088 |
&catcode`&\=0 |
| 1089 |
\catcode`\&=4 |
| 1090 |
\catcode`\&=1 |
| 1091 |
\catcode`\{=12 |
| 1092 |
\def\LWRleftbrace&{} |
| 1093 |
\catcode`\{=1 |
| 1094 |
\catcode`\&=4 |
| 1095 |
\catcode`\&=2 |
| 1096 |
\catcode`\}=12 |
| 1097 |
\def\LWRrightbrace{}& |
| 1098 |
\catcode`\}=2 |
| 1099 |
\catcode`\&=4 |
| 1100 |
\catcode`\#=12 |
| 1101 |
\def\LWRhash{#} |
| 1102 |
\catcode`\#=6 |
| 1103 |
\def\LWRopquote{'} |
| 1104 |
\def\LWRopseq{\space\LWRamp\LWRamp\space\space} |
| 1105 |
\newbool{usingOSWindows} |
| 1106 |
\boolfalse{usingOSWindows} |
| 1107 |
|
| 1108 |
|
| 1109 |
\newcommand*{\OSPathSymbol}{/} |
| 1110 |
|
| 1111 |
|
| 1112 |
\newcommand*{\LWR@setOSWindows} |
| 1113 |
{ |
| 1114 |
\booltrue{usingOSWindows} |
| 1115 |
\renewcommand*{\OSPathSymbol}{\@backslashchar} |
| 1116 |
\def\LWRopquote{"} |
| 1117 |
\def\LWRopseq{\space\LWRamp\space\space} |
| 1118 |
} |
| 1119 |
\ifwindows |
| 1120 |
\LWR@setOSWindows |
| 1121 |
\fi |
| 1122 |
|
| 1123 |
|
| 1124 |
\RequirePackage{kvoptions} |
| 1125 |
\SetupKeyvalOptions{family=LWR,prefix=LWR@} |
| 1126 |
|
| 1127 |
\newcommand{\lwarpsetup}[1]{\setkeys{LWR}{#1}} |
| 1128 |
|
| 1129 |
\newbool{warpingprint} |
| 1130 |
\newbool{warpingHTML} |
| 1131 |
\newbool{warpingdisabled} |
| 1132 |
\newbool{mathjax} |
| 1133 |
\newbool{LWR@origmathjax} |
| 1134 |
\booltrue{warpingprint}% |
| 1135 |
\boolfalse{warpingHTML}% |
| 1136 |
\boolfalse{warpingdisabled}% |
| 1137 |
\boolfalse{mathjax}% |
| 1138 |
\DeclareVoidOption{warpprint}{% |
| 1139 |
\PackageInfo{lwarp}{Using option 'warpprint'} |
| 1140 |
\booltrue{warpingprint}% |
| 1141 |
\boolfalse{warpingHTML}% |
| 1142 |
} |
| 1143 |
|
| 1144 |
\DeclareVoidOption{warpHTML}{% |
| 1145 |
\PackageInfo{lwarp}{Using option 'warpHTML'}% |
| 1146 |
\booltrue{warpingHTML}% |
| 1147 |
\boolfalse{warpingprint}% |
| 1148 |
} |
| 1149 |
\DeclareVoidOption{warpdisable}{% |
| 1150 |
\PackageInfo{lwarp}{Using option 'warpdisable'} |
| 1151 |
\booltrue{warpingdisabled}% |
| 1152 |
} |
| 1153 |
|
| 1154 |
\DeclareVoidOption{mathsvg}{% |
| 1155 |
\PackageInfo{lwarp}{Using option 'mathsvg'} |
| 1156 |
\boolfalse{mathjax}% |
| 1157 |
\boolfalse{LWR@origmathjax}% |
| 1158 |
} |
| 1159 |
\DeclareVoidOption{mathjax}{% |
| 1160 |
\PackageInfo{lwarp}{Using option 'mathjax'} |
| 1161 |
\booltrue{mathjax}% |
| 1162 |
\booltrue{LWR@origmathjax}% |
| 1163 |
} |
| 1164 |
|
| 1165 |
|
| 1166 |
\DeclareStringOption[\jobname]{BaseJobname} |
| 1167 |
|
| 1168 |
\DeclareStringOption[\BaseJobname-images]{ImagesDirectory} |
| 1169 |
|
| 1170 |
\DeclareStringOption[image-]{ImagesName} |
| 1171 |
|
| 1172 |
\DeclareStringOption[lwarp.ist]{makeindexStyle} |
| 1173 |
|
| 1174 |
\DeclareStringOption[lwarp.xdy]{xindyStyle} |
| 1175 |
|
| 1176 |
\DeclareStringOption[english]{xindyLanguage} |
| 1177 |
|
| 1178 |
\DeclareStringOption[utf8]{xindyCodepage} |
| 1179 |
|
| 1180 |
|
| 1181 |
\DeclareStringOption[]{xindexConfig} |
| 1182 |
|
| 1183 |
\DeclareStringOption[UTF-8]{pdftotextEnc} |
| 1184 |
|
| 1185 |
\newbool{LWR@creatinglwarpmk} |
| 1186 |
\boolfalse{LWR@creatinglwarpmk} |
| 1187 |
|
| 1188 |
\DeclareVoidOption{lwarpmk}{ |
| 1189 |
\PackageInfo{lwarp}{Using option 'lwarpmk'} |
| 1190 |
\booltrue{LWR@creatinglwarpmk} |
| 1191 |
} |
| 1192 |
|
| 1193 |
\DeclareVoidOption{OSWindows}{ |
| 1194 |
\PackageInfo{lwarp}{Using option 'OSWindows'} |
| 1195 |
\LWR@setOSWindows |
| 1196 |
} |
| 1197 |
|
| 1198 |
\DeclareStringOption[]{HomeHTMLFilename} |
| 1199 |
|
| 1200 |
\DeclareStringOption[]{HTMLFilename} |
| 1201 |
|
| 1202 |
\DeclareStringOption[]{PrintLatexCmd} |
| 1203 |
|
| 1204 |
\DeclareStringOption[]{HTMLLatexCmd} |
| 1205 |
|
| 1206 |
\DeclareStringOption[]{PrintIndexCmd} |
| 1207 |
|
| 1208 |
\DeclareStringOption[]{HTMLIndexCmd} |
| 1209 |
|
| 1210 |
\DeclareStringOption[]{LatexmkIndexCmd} |
| 1211 |
|
| 1212 |
\DeclareBoolOption[false]{makeindex} |
| 1213 |
|
| 1214 |
\DeclareBoolOption[false]{xindy} |
| 1215 |
|
| 1216 |
\DeclareBoolOption[false]{xindex} |
| 1217 |
|
| 1218 |
\DeclareStringOption[cref]{IndexRef} |
| 1219 |
|
| 1220 |
\DeclareStringOption[makeglossaries]{GlossaryCmd} |
| 1221 |
|
| 1222 |
\DeclareBoolOption[false]{latexmk} |
| 1223 |
|
| 1224 |
\DeclareBoolOption[false]{dvips} |
| 1225 |
|
| 1226 |
\DeclareBoolOption[false]{dvipdfm} |
| 1227 |
|
| 1228 |
\DeclareBoolOption[false]{dvipdfmx} |
| 1229 |
|
| 1230 |
\ProcessKeyvalOptions*\relax |
| 1231 |
|
| 1232 |
\ifbool{warpingdisabled} |
| 1233 |
{ |
| 1234 |
\booltrue{warpingprint} |
| 1235 |
\boolfalse{warpingHTML} |
| 1236 |
\boolfalse{mathjax} |
| 1237 |
}{} |
| 1238 |
|
| 1239 |
|
| 1240 |
\providecommand*{\BaseJobname}{\LWR@BaseJobname} |
| 1241 |
|
| 1242 |
\ifcsempty{LWR@HomeHTMLFilename}{ |
| 1243 |
\newcommand*{\HomeHTMLFilename}{\BaseJobname} |
| 1244 |
}{ |
| 1245 |
\csedef{HomeHTMLFilename}{\LWR@HomeHTMLFilename} |
| 1246 |
} |
| 1247 |
|
| 1248 |
\csedef{HTMLFilename}{\LWR@HTMLFilename} |
| 1249 |
\newcommand*{\LWR@sanitized}{} |
| 1250 |
|
| 1251 |
\newcommand*{\LWR@sanitize}[1]{% |
| 1252 |
\edef\LWR@sanitized{#1}% |
| 1253 |
\edef\LWR@sanitized{\detokenize\expandafter{\LWR@sanitized}}% |
| 1254 |
} |
| 1255 |
|
| 1256 |
\LWR@sanitize{\LWR@BaseJobname} |
| 1257 |
\edef\LWR@BaseJobname{\LWR@sanitized} |
| 1258 |
|
| 1259 |
\LWR@sanitize{\LWR@ImagesDirectory} |
| 1260 |
\edef\LWR@ImagesDirectory{\LWR@sanitized} |
| 1261 |
|
| 1262 |
\LWR@sanitize{\LWR@ImagesName} |
| 1263 |
\edef\LWR@ImagesName{\LWR@sanitized} |
| 1264 |
\ifdefempty{\LWR@PrintIndexCmd}{ |
| 1265 |
\renewcommand{\LWR@PrintIndexCmd}{% |
| 1266 |
makeindex -s \LWR@makeindexStyle \space \jobname.idx% |
| 1267 |
} |
| 1268 |
\ifbool{LWR@xindy}{ |
| 1269 |
\renewcommand{\LWR@PrintIndexCmd}{% |
| 1270 |
xindy |
| 1271 |
-M \LWR@xindyStyle \space |
| 1272 |
-L \LWR@xindyLanguage \space |
| 1273 |
-C \LWR@xindyCodepage \space |
| 1274 |
\jobname.idx% |
| 1275 |
} |
| 1276 |
}{} |
| 1277 |
\ifbool{LWR@xindex}{ |
| 1278 |
\ifdefvoid{\LWR@xindexConfig}{ |
| 1279 |
\renewcommand{\LWR@PrintIndexCmd}{% |
| 1280 |
xindex |
| 1281 |
\jobname.idx% |
| 1282 |
} |
| 1283 |
}{ |
| 1284 |
\renewcommand{\LWR@PrintIndexCmd}{% |
| 1285 |
xindex |
| 1286 |
-c \LWR@xindexConfig \space |
| 1287 |
\jobname.idx% |
| 1288 |
} |
| 1289 |
} |
| 1290 |
}{} |
| 1291 |
}{} |
| 1292 |
|
| 1293 |
\ifdefempty{\LWR@HTMLIndexCmd}{ |
| 1294 |
\renewcommand{\LWR@HTMLIndexCmd}{% |
| 1295 |
makeindex -s \LWR@makeindexStyle \space \jobname_html.idx% |
| 1296 |
} |
| 1297 |
\ifbool{LWR@xindy}{ |
| 1298 |
\renewcommand{\LWR@HTMLIndexCmd}{% |
| 1299 |
xindy |
| 1300 |
-M \LWR@xindyStyle \space |
| 1301 |
-L \LWR@xindyLanguage \space |
| 1302 |
-C \LWR@xindyCodepage \space |
| 1303 |
\jobname_html.idx% |
| 1304 |
} |
| 1305 |
}{} |
| 1306 |
\ifbool{LWR@xindex}{ |
| 1307 |
\ifdefvoid{\LWR@xindexConfig}{ |
| 1308 |
\renewcommand{\LWR@HTMLIndexCmd}{% |
| 1309 |
xindex |
| 1310 |
\jobname_html.idx% |
| 1311 |
} |
| 1312 |
}{ |
| 1313 |
\renewcommand{\LWR@HTMLIndexCmd}{% |
| 1314 |
xindex |
| 1315 |
-c \LWR@xindexConfig \space |
| 1316 |
\jobname_html.idx% |
| 1317 |
} |
| 1318 |
} |
| 1319 |
}{} |
| 1320 |
}{} |
| 1321 |
|
| 1322 |
\ifdefempty{\LWR@LatexmkIndexCmd}{ |
| 1323 |
\renewcommand{\LWR@LatexmkIndexCmd}{% |
| 1324 |
makeindex -s \LWR@makeindexStyle% |
| 1325 |
} |
| 1326 |
\ifbool{LWR@xindy}{ |
| 1327 |
\renewcommand{\LWR@LatexmkIndexCmd}{% |
| 1328 |
xindy |
| 1329 |
-M \LWR@xindyStyle \space |
| 1330 |
-L \LWR@xindyLanguage \space |
| 1331 |
-C \LWR@xindyCodepage% |
| 1332 |
} |
| 1333 |
}{} |
| 1334 |
\ifbool{LWR@xindex}{ |
| 1335 |
\ifdefvoid{\LWR@xindexConfig}{ |
| 1336 |
\renewcommand{\LWR@LatexmkIndexCmd}{% |
| 1337 |
xindex |
| 1338 |
} |
| 1339 |
}{ |
| 1340 |
\renewcommand{\LWR@LatexmkIndexCmd}{% |
| 1341 |
xindex |
| 1342 |
-c \LWR@xindexConfig |
| 1343 |
} |
| 1344 |
} |
| 1345 |
}{} |
| 1346 |
}{} |
| 1347 |
\newcommand{\warpprintonly}[1]{\ifbool{warpingprint}{#1}{}} |
| 1348 |
\newcommand{\warpHTMLonly}[1]{\ifbool{warpingHTML}{#1}{}} |
| 1349 |
\RequirePackage{comment} |
| 1350 |
|
| 1351 |
\def\LWR@includecomment |
| 1352 |
#1#2{\message{Lwarp: Including comment '#1'}% |
| 1353 |
\csarg\def{After#1Comment}{% |
| 1354 |
\CloseAndInputCutFile% |
| 1355 |
\csundef{LWR@#1commentused}% |
| 1356 |
} |
| 1357 |
\csarg\def{#1}{% |
| 1358 |
\endgroup |
| 1359 |
\ifcsdef{LWR@#1commentused}{ |
| 1360 |
\PackageError{lwarp}% |
| 1361 |
{Nested #1 environment}% |
| 1362 |
{% |
| 1363 |
Environment #1 cannot be nested.\MessageBreak |
| 1364 |
This can happen when a package is loaded |
| 1365 |
from inside a\MessageBreak |
| 1366 |
#1 environment.% |
| 1367 |
}% |
| 1368 |
}{\relax} |
| 1369 |
\csdef{LWR@#1commentused}{} |
| 1370 |
\message{Including '#1' comment.}% |
| 1371 |
\def\CommentCutFile{comment_#2.cut} |
| 1372 |
\SetUpCutFile |
| 1373 |
\ProcessComment{#1} |
| 1374 |
}% |
| 1375 |
\CommentEndDef{#1} |
| 1376 |
} |
| 1377 |
|
| 1378 |
\def\LWR@excludecomment |
| 1379 |
#1#2{\message{Lwarp: Excluding comment '#1'}% |
| 1380 |
\csarg\def{#1}{ |
| 1381 |
\endgroup |
| 1382 |
\message{Excluding '#1' comment.}% |
| 1383 |
\begingroup |
| 1384 |
\def\CommentCutFile{comment_#2.cut} |
| 1385 |
\def\ProcessCutFile{}% |
| 1386 |
\def\ThisComment####1{}% |
| 1387 |
\ProcessComment{#1} |
| 1388 |
}% |
| 1389 |
\csarg\def{After#1Comment}{\CloseAndInputCutFile \endgroup} |
| 1390 |
\CommentEndDef{#1}} |
| 1391 |
|
| 1392 |
\LWR@includecomment{warpall}{all} |
| 1393 |
|
| 1394 |
\ifbool{warpingHTML} |
| 1395 |
{\LWR@includecomment{warpHTML}{html}} |
| 1396 |
{\LWR@excludecomment{warpHTML}{html}} |
| 1397 |
|
| 1398 |
\ifbool{warpingprint} |
| 1399 |
{\LWR@includecomment{warpprint}{print}} |
| 1400 |
{\LWR@excludecomment{warpprint}{print}} |
| 1401 |
|
| 1402 |
\begin{warpprint} |
| 1403 |
\LWR@excludecomment{warpMathJax}{mathjax} |
| 1404 |
\end{warpprint} |
| 1405 |
|
| 1406 |
\begin{warpHTML} |
| 1407 |
\ifbool{mathjax} |
| 1408 |
{\LWR@includecomment{warpMathJax}{mathjax}} |
| 1409 |
{\LWR@excludecomment{warpMathJax}{mathjax}} |
| 1410 |
\end{warpHTML} |
| 1411 |
|
| 1412 |
\begin{warpprint} |
| 1413 |
\LWR@includecomment{warpsvg}{mathsvg} |
| 1414 |
\end{warpprint} |
| 1415 |
|
| 1416 |
\begin{warpHTML} |
| 1417 |
\ifbool{mathjax} |
| 1418 |
{\LWR@excludecomment{warpsvg}{mathsvg}} |
| 1419 |
{\LWR@includecomment{warpsvg}{mathsvg}} |
| 1420 |
\end{warpHTML} |
| 1421 |
|
| 1422 |
\ifbool{LWR@creatinglwarpmk} |
| 1423 |
{\LWR@includecomment{LWRcreatelwarpmk}{lwarpmk}} |
| 1424 |
{\LWR@excludecomment{LWRcreatelwarpmk}{lwarpmk}} |
| 1425 |
|
| 1426 |
\begin{warpHTML} |
| 1427 |
\IfPackageLoadedTF{tagpdf-base}% *88* |
| 1428 |
{% |
| 1429 |
\PackageError{lwarp} |
| 1430 |
{% |
| 1431 |
PDF tagging is not supported yet.\MessageBreak% |
| 1432 |
Comment out \string\DocumentMetadata\space for HTML% |
| 1433 |
} |
| 1434 |
{Still in development!} |
| 1435 |
} |
| 1436 |
{} |
| 1437 |
\end{warpHTML} |
| 1438 |
|
| 1439 |
|
| 1440 |
\begin{warpHTML} |
| 1441 |
\ifxetexorluatex |
| 1442 |
\IfPackageLoadedTF{fontspec}{}{ |
| 1443 |
\usepackage[no-math]{fontspec} |
| 1444 |
} |
| 1445 |
\defaultfontfeatures[\rmfamily]{Ligatures={NoCommon,TeX}} |
| 1446 |
\defaultfontfeatures[\sffamily]{Ligatures={NoCommon,TeX}} |
| 1447 |
\defaultfontfeatures[\ttfamily]{Ligatures=NoCommon} |
| 1448 |
\else |
| 1449 |
|
| 1450 |
|
| 1451 |
\RequirePackage{microtype} |
| 1452 |
|
| 1453 |
\microtypesetup{ |
| 1454 |
protrusion=false, |
| 1455 |
expansion=false, |
| 1456 |
tracking=false, |
| 1457 |
kerning=false, |
| 1458 |
spacing=false} |
| 1459 |
\renewcommand\leftprotrusion[1]{#1} |
| 1460 |
\renewcommand\rightprotrusion[1]{#1} |
| 1461 |
\DisableLigatures{encoding = *,family = tt*} |
| 1462 |
\fi |
| 1463 |
\end{warpHTML} |
| 1464 |
|
| 1465 |
\begin{warpHTML} |
| 1466 |
\IfPackageLoadedTF{geometry} |
| 1467 |
{}{ |
| 1468 |
\RequirePackage[ |
| 1469 |
reset, |
| 1470 |
paperwidth=\paperwidth, |
| 1471 |
paperheight=\paperheight, |
| 1472 |
textwidth=\textwidth, |
| 1473 |
textheight=\textheight, |
| 1474 |
left=\oddsidemargin, |
| 1475 |
top=\topmargin, |
| 1476 |
marginparsep=\marginparsep, |
| 1477 |
marginparwidth=\marginparwidth, |
| 1478 |
]{geometry} |
| 1479 |
} |
| 1480 |
\LetLtxMacro\LWR@origgeometry\geometry |
| 1481 |
\LetLtxMacro\LWR@orignewgeometry\newgeometry |
| 1482 |
\LetLtxMacro\LWR@origrestoregeometry\restoregeometry |
| 1483 |
\LetLtxMacro\LWR@origsavegeometry\savegeometry |
| 1484 |
\LetLtxMacro\LWR@origloadgeometry\loadgeometry |
| 1485 |
\newbool{LWR@allowanothergeometry} |
| 1486 |
\booltrue{LWR@allowanothergeometry} |
| 1487 |
\AtEndPreamble{ |
| 1488 |
\LWR@origsavegeometry{LWR@usergeometry} |
| 1489 |
%% \begin{macrocode} |
| 1490 |
\newlength{\LWR@userspaperwidth} |
| 1491 |
\setlength{\LWR@userspaperwidth}{\paperwidth} |
| 1492 |
|
| 1493 |
\newlength{\LWR@userspaperheight} |
| 1494 |
\setlength{\LWR@userspaperheight}{\paperheight} |
| 1495 |
|
| 1496 |
\newlength{\LWR@usersmarginparwidth} |
| 1497 |
\setlength{\LWR@usersmarginparwidth}{\marginparwidth} |
| 1498 |
|
| 1499 |
\newlength{\LWR@userstextwidth} |
| 1500 |
\setlength{\LWR@userstextwidth}{\textwidth} |
| 1501 |
|
| 1502 |
\newlength{\LWR@userstextheight} |
| 1503 |
\setlength{\LWR@userstextwidth}{\textheight} |
| 1504 |
\LWR@origgeometry{ |
| 1505 |
reset, |
| 1506 |
paperheight=190in, |
| 1507 |
paperwidth=20in, |
| 1508 |
left=2in, |
| 1509 |
right=6in, |
| 1510 |
top=1in, |
| 1511 |
bottom=1in, |
| 1512 |
heightrounded,% |
| 1513 |
} |
| 1514 |
\LWR@origsavegeometry{LWR@lwarpgeometry} |
| 1515 |
\boolfalse{LWR@allowanothergeometry}% |
| 1516 |
\setlength{\textheight}{0.8\paperheight} |
| 1517 |
\setlength{\textwidth}{0.7\paperwidth} |
| 1518 |
|
| 1519 |
\@twosidefalse |
| 1520 |
\@mparswitchfalse |
| 1521 |
}% \AtEndPreamble |
| 1522 |
|
| 1523 |
\end{warpHTML} |
| 1524 |
|
| 1525 |
\begin{warpall} |
| 1526 |
|
| 1527 |
\IfFormatAtLeastTF{2020-10-01}{}{\RequirePackage{xparse}} |
| 1528 |
|
| 1529 |
|
| 1530 |
\RequirePackage{calc} |
| 1531 |
|
| 1532 |
\end{warpall} |
| 1533 |
|
| 1534 |
\begin{warpHTML} |
| 1535 |
|
| 1536 |
\RequirePackage{expl3} |
| 1537 |
|
| 1538 |
|
| 1539 |
|
| 1540 |
\RequirePackage{gettitlestring} |
| 1541 |
|
| 1542 |
\end{warpHTML} |
| 1543 |
|
| 1544 |
\begin{warpall} |
| 1545 |
|
| 1546 |
\@ifundefined{filec@ntents@opt}{% older kernel, discard optional args |
| 1547 |
|
| 1548 |
\RequirePackage{filecontents} |
| 1549 |
|
| 1550 |
\LetLtxMacro\LWR@orig@filec@ntents\filec@ntents |
| 1551 |
|
| 1552 |
\IfPackageAtLeastTF{filecontents}{2011/10/08} |
| 1553 |
{ |
| 1554 |
\renewcommand*{\filec@ntents}[1][]{\LWR@orig@filec@ntents} |
| 1555 |
} |
| 1556 |
{% patch older package for morewrites |
| 1557 |
\newwrite\fcwrite |
| 1558 |
\renewcommand*{\filec@ntents}[1][]{% |
| 1559 |
\def\chardef##1\write{\let\reserved@c\fcwrite}% |
| 1560 |
\LWR@orig@filec@ntents% |
| 1561 |
} |
| 1562 |
} |
| 1563 |
|
| 1564 |
}% older kernel |
| 1565 |
{% newer kernel |
| 1566 |
}% newer kernel, filecontents env accepts optional args, do not load package |
| 1567 |
|
| 1568 |
\end{warpall} |
| 1569 |
|
| 1570 |
\begin{warpHTML} |
| 1571 |
|
| 1572 |
\RequirePackage{xifthen} |
| 1573 |
|
| 1574 |
\RequirePackage{verbatim} |
| 1575 |
|
| 1576 |
\RequirePackage{refcount} |
| 1577 |
|
| 1578 |
\RequirePackage{newfloat} |
| 1579 |
|
| 1580 |
|
| 1581 |
\end{warpHTML} |
| 1582 |
|
| 1583 |
\begin{warpall} |
| 1584 |
|
| 1585 |
\RequirePackage{xstring}[2019/02/01] |
| 1586 |
|
| 1587 |
\RequirePackage{environ} |
| 1588 |
|
| 1589 |
\end{warpall} |
| 1590 |
|
| 1591 |
\begin{warpHTML} |
| 1592 |
|
| 1593 |
|
| 1594 |
\RequirePackage{printlen} |
| 1595 |
|
| 1596 |
\newrobustcmd*{\LWR@printlength}[1]{% |
| 1597 |
\begingroup% |
| 1598 |
\uselengthunit{PT}% |
| 1599 |
\renewcommand*{\unitspace}{}% |
| 1600 |
\ifdimless{#1}{10pt}{% |
| 1601 |
\printlength{#1}% |
| 1602 |
}{% |
| 1603 |
\rndprintlength{#1}% |
| 1604 |
}% |
| 1605 |
\endgroup% |
| 1606 |
} |
| 1607 |
|
| 1608 |
\end{warpHTML} |
| 1609 |
|
| 1610 |
\begin{warpall} |
| 1611 |
\LetLtxMacro\LWR@origRequirePackage\RequirePackage |
| 1612 |
\LetLtxMacro\LWR@origRequirePackageWithOptions\RequirePackageWithOptions |
| 1613 |
|
| 1614 |
\newcommand*{\LWR@requirepackagenames}{} |
| 1615 |
|
| 1616 |
\newcommand*{\LWR@parsedrequirepackagenames}{} |
| 1617 |
|
| 1618 |
\newcommand*{\LWR@nullifycomment}{% |
| 1619 |
\PackageInfo{lwarp}% |
| 1620 |
{Nullifying the comment environment before loading \LWR@strresulttwo,}% |
| 1621 |
\let\comment\relax% |
| 1622 |
\let\endcomment\relax% |
| 1623 |
} |
| 1624 |
|
| 1625 |
\newcommand*\LWR@findword[3][,]{% |
| 1626 |
\StrBetween[#3,\numexpr#3+1]{#1#2#1}{#1}{#1}% |
| 1627 |
} |
| 1628 |
\LetLtxMacro\LWR@checkloadnever\LWR@afterloadnever |
| 1629 |
|
| 1630 |
\newcommand*{\LWR@checkloadfilename}[1]{% |
| 1631 |
\edef\LWR@tempone{#1}% |
| 1632 |
\LWR@checkloadnevers |
| 1633 |
\LWR@checkloadbefore{ctex} |
| 1634 |
\LWR@checkloadbefore{fontspec} |
| 1635 |
\LWR@checkloadbefore{inputenc} |
| 1636 |
\LWR@checkloadbefore{inputenx} |
| 1637 |
\LWR@checkloadbefore{nfssext-cfr} |
| 1638 |
\LWR@checkloadbefore{fontaxes} |
| 1639 |
\LWR@checkloadbefore{kotex} |
| 1640 |
\LWR@checkloadbefore{kpfonts}% textcomp option clash |
| 1641 |
\LWR@checkloadbefore{luatexja} |
| 1642 |
\LWR@checkloadbefore{luatexja-fontspec} |
| 1643 |
\LWR@checkloadbefore{luatexko} |
| 1644 |
\LWR@checkloadbefore{morewrites} |
| 1645 |
\LWR@checkloadbefore{newclude} |
| 1646 |
\LWR@checkloadbefore{newunicodechar} |
| 1647 |
\LWR@checkloadbefore{plext} |
| 1648 |
\LWR@checkloadbefore{xeCJK} |
| 1649 |
\LWR@checkloadbefore{xetexko} |
| 1650 |
\LWR@checkloadbefore{zxjatype} |
| 1651 |
} |
| 1652 |
|
| 1653 |
\newcommand*{\LWR@lookforpackagename}[1]{% |
| 1654 |
\LWR@findword{\LWR@requirepackagenames}{#1}[\LWR@strresult]% |
| 1655 |
\StrSubstitute[100]{\LWR@strresult}{ }{}[\LWR@strresulttwo]% |
| 1656 |
\IfStrEq{\LWR@strresulttwo}{}% |
| 1657 |
{}% no filename |
| 1658 |
{% yes filename was found |
| 1659 |
\ifdefstring{\LWR@strresulttwo}{easyReview}{\LWR@nullifycomment}{}% |
| 1660 |
\ifdefstring{\LWR@strresulttwo}{changes}{\LWR@nullifycomment}{}% |
| 1661 |
\ifbool{warpingHTML}{\LWR@checkloadfilename{\LWR@strresulttwo}}{}% |
| 1662 |
\ifboolexpr{ |
| 1663 |
bool{warpingHTML} and |
| 1664 |
test{\IfFileExists{lwarp-\[email protected]}} |
| 1665 |
}% |
| 1666 |
{% lwarp-* file found |
| 1667 |
\ifdefvoid{\LWR@parsedrequirepackagenames}{% |
| 1668 |
\edef\LWR@parsedrequirepackagenames{lwarp-\LWR@strresulttwo}% |
| 1669 |
}{% |
| 1670 |
\edef\LWR@parsedrequirepackagenames{% |
| 1671 |
\LWR@parsedrequirepackagenames,lwarp-\LWR@strresulttwo% |
| 1672 |
}% |
| 1673 |
}% |
| 1674 |
}% |
| 1675 |
{% lwarp-* file not found |
| 1676 |
\ifdefvoid{\LWR@parsedrequirepackagenames}{% |
| 1677 |
\edef\LWR@parsedrequirepackagenames{\LWR@strresulttwo}% |
| 1678 |
}{% |
| 1679 |
\edef\LWR@parsedrequirepackagenames{% |
| 1680 |
\LWR@parsedrequirepackagenames,\LWR@strresulttwo% |
| 1681 |
}% |
| 1682 |
}% |
| 1683 |
}% no lwarp-* file |
| 1684 |
}% yes filename |
| 1685 |
} |
| 1686 |
|
| 1687 |
\RenewDocumentCommand{\RequirePackage}{o m o}{% |
| 1688 |
\renewcommand*{\LWR@requirepackagenames}{#2}% |
| 1689 |
\renewcommand*{\LWR@parsedrequirepackagenames}{}% |
| 1690 |
\LWR@lookforpackagename{1}% |
| 1691 |
\LWR@lookforpackagename{2}% |
| 1692 |
\LWR@lookforpackagename{3}% |
| 1693 |
\LWR@lookforpackagename{4}% |
| 1694 |
\LWR@lookforpackagename{5}% |
| 1695 |
\LWR@lookforpackagename{6}% |
| 1696 |
\LWR@lookforpackagename{7}% |
| 1697 |
\LWR@lookforpackagename{8}% |
| 1698 |
\LWR@lookforpackagename{9}% |
| 1699 |
\LWR@lookforpackagename{10}% |
| 1700 |
\LWR@lookforpackagename{11}% |
| 1701 |
\LWR@lookforpackagename{12}% |
| 1702 |
\LWR@lookforpackagename{13}% |
| 1703 |
\LWR@lookforpackagename{14}% |
| 1704 |
\LWR@lookforpackagename{15}% |
| 1705 |
\LWR@lookforpackagename{16}% |
| 1706 |
\LWR@lookforpackagename{17}% |
| 1707 |
\LWR@lookforpackagename{18}% |
| 1708 |
\LWR@lookforpackagename{19}% |
| 1709 |
\LWR@lookforpackagename{20}% |
| 1710 |
\IfSubStr{\detokenize\expandafter{#1}}{\LWRleftbrace}% |
| 1711 |
{% |
| 1712 |
\PackageError{lwarp}{% |
| 1713 |
You used:\MessageBreak |
| 1714 |
\protect\usepackage[#1]{#2}\MessageBreak |
| 1715 |
Braces in the package options will fail with Lwarp.\MessageBreak |
| 1716 |
Instead, use:\MessageBreak |
| 1717 |
\protect\PassOptionsToPackage{#1}{#2}\MessageBreak |
| 1718 |
\protect\usepackage{#2}\MessageBreak |
| 1719 |
near the line number given below.\MessageBreak |
| 1720 |
Enter 'h' for more info% |
| 1721 |
}% |
| 1722 |
{% |
| 1723 |
See the Lwarp manual troubleshooting index entry for\MessageBreak |
| 1724 |
``package, options with braces''% |
| 1725 |
}% |
| 1726 |
}% |
| 1727 |
{}% no brace |
| 1728 |
\IfValueTF{#1}% |
| 1729 |
{% options given |
| 1730 |
\edef\LWR@packageoptions{#1}% |
| 1731 |
\IfValueTF{#3}% version given? |
| 1732 |
{% |
| 1733 |
\expandafter\LWR@origRequirePackage% |
| 1734 |
\expandafter[\LWR@packageoptions]% |
| 1735 |
{\LWR@parsedrequirepackagenames}[#3]% |
| 1736 |
}% |
| 1737 |
{% |
| 1738 |
\expandafter\LWR@origRequirePackage% |
| 1739 |
\expandafter[\LWR@packageoptions]% |
| 1740 |
{\LWR@parsedrequirepackagenames}% |
| 1741 |
}% |
| 1742 |
}% |
| 1743 |
{% no options given |
| 1744 |
\IfValueTF{#3}% version given? |
| 1745 |
{\LWR@origRequirePackage{\LWR@parsedrequirepackagenames}[#3]}% |
| 1746 |
{\LWR@origRequirePackage{\LWR@parsedrequirepackagenames}}% |
| 1747 |
}% |
| 1748 |
} |
| 1749 |
\LetLtxMacro\usepackage\RequirePackage |
| 1750 |
\@onlypreamble\RequirePackage |
| 1751 |
\@onlypreamble\usepackage |
| 1752 |
|
| 1753 |
\end{warpall} |
| 1754 |
|
| 1755 |
\begin{warpHTML} |
| 1756 |
|
| 1757 |
\NewDocumentCommand{\LWR@ProvidesPackagePass}{m o}{ |
| 1758 |
\PackageInfo{lwarp}{% |
| 1759 |
Using package `#1',\MessageBreak |
| 1760 |
and adding lwarp modifications, including options,\MessageBreak% |
| 1761 |
}% |
| 1762 |
\IfValueTF{#2}% |
| 1763 |
{\ProvidesPackage{lwarp-#1}[#2]}% |
| 1764 |
{\ProvidesPackage{lwarp-#1}}% |
| 1765 |
\DeclareOption*{% |
| 1766 |
\PassOptionsToPackage{\CurrentOption}{#1}% |
| 1767 |
}% |
| 1768 |
\ProcessOptions\relax% |
| 1769 |
\IfPackageLoadedTF{#1}{% |
| 1770 |
\edef\LWR@tempone{\csuse{opt@#1.sty}}% |
| 1771 |
\IfValueTF{#2}% |
| 1772 |
{% |
| 1773 |
\expandafter\LWR@origRequirePackage% |
| 1774 |
\expandafter[\LWR@tempone]{#1}[#2]% |
| 1775 |
}% |
| 1776 |
{% |
| 1777 |
\expandafter\LWR@origRequirePackage% |
| 1778 |
\expandafter[\LWR@tempone]{#1}% |
| 1779 |
}% |
| 1780 |
}{% |
| 1781 |
\IfValueTF{#2}% |
| 1782 |
{\LWR@origRequirePackage{#1}[#2]}% |
| 1783 |
{\LWR@origRequirePackage{#1}}% |
| 1784 |
}% |
| 1785 |
\DeclareOption*{}% |
| 1786 |
\ProcessOptions\relax% |
| 1787 |
} |
| 1788 |
|
| 1789 |
\newcommand*{\LWR@ProvidesPackageDropA}[2]{% |
| 1790 |
\PackageInfo{lwarp}{% |
| 1791 |
Replacing package `#1' with the lwarp version,\MessageBreak |
| 1792 |
and discarding options,% |
| 1793 |
}% |
| 1794 |
\IfValueTF{#2} |
| 1795 |
{\ProvidesPackage{lwarp-#1}[#2]} |
| 1796 |
{\ProvidesPackage{lwarp-#1}} |
| 1797 |
} |
| 1798 |
\newcommand*{\LWR@ProvidesPackageDropB}{% |
| 1799 |
\let\ds@\@empty% from the original \ProcessOptions |
| 1800 |
\edef\@curroptions{}% lwarp modification to \ProcessOptions |
| 1801 |
\@process@ptions\relax% from the original \ProcessOptions |
| 1802 |
} |
| 1803 |
\NewDocumentCommand{\LWR@ProvidesPackageDrop}{m o}{ |
| 1804 |
\LWR@ProvidesPackageDropA{#1}{#2} |
| 1805 |
\DeclareOption*{} |
| 1806 |
\LWR@ProvidesPackageDropB |
| 1807 |
} |
| 1808 |
|
| 1809 |
\end{warpHTML} |
| 1810 |
|
| 1811 |
|
| 1812 |
|
| 1813 |
|
| 1814 |
\begin{warpall} |
| 1815 |
|
| 1816 |
\newwrite\LWR@quickfile% |
| 1817 |
|
| 1818 |
\end{warpall} |
| 1819 |
|
| 1820 |
\begin{warpHTML} |
| 1821 |
|
| 1822 |
\newwrite\LWR@lateximagesfile |
| 1823 |
|
| 1824 |
\end{warpHTML} |
| 1825 |
|
| 1826 |
\begin{warpHTML} |
| 1827 |
|
| 1828 |
\def\@include#1 {% |
| 1829 |
\immediate\openout\LWR@quickfile #1_html_inc.tex% lwarp |
| 1830 |
\immediate\write\LWR@quickfile{\string\input{#1.tex}}% lwarp |
| 1831 |
\immediate\closeout\LWR@quickfile% lwarp |
| 1832 |
\LWR@maybe@orignewpage% changed from clearpage |
| 1833 |
\if@filesw |
| 1834 |
\immediate\write\@mainaux{\string\@input{#1_html_inc.aux}}% changed |
| 1835 |
\fi |
| 1836 |
\@tempswatrue |
| 1837 |
\if@partsw |
| 1838 |
\@tempswafalse |
| 1839 |
\edef\reserved@b{#1}% |
| 1840 |
\@for\reserved@a:=\@partlist\do |
| 1841 |
{\ifx\reserved@a\reserved@b\@tempswatrue\fi}% |
| 1842 |
\fi |
| 1843 |
\if@tempswa |
| 1844 |
\let\@auxout\@partaux |
| 1845 |
\if@filesw |
| 1846 |
\immediate\openout\@partaux #1_html_inc.aux % changed |
| 1847 |
\immediate\write\@partaux{\relax}% |
| 1848 |
\fi |
| 1849 |
\@input@{#1_html_inc.tex}% changed |
| 1850 |
\LWR@maybe@orignewpage% changed from clearpage |
| 1851 |
\@writeckpt{#1}% |
| 1852 |
\if@filesw |
| 1853 |
\immediate\closeout\@partaux |
| 1854 |
\fi |
| 1855 |
\else |
| 1856 |
\deadcycles\z@ |
| 1857 |
\@nameuse{cp@#1}% |
| 1858 |
\fi |
| 1859 |
\let\@auxout\@mainaux% |
| 1860 |
} |
| 1861 |
|
| 1862 |
\end{warpHTML} |
| 1863 |
|
| 1864 |
|
| 1865 |
\begin{warpHTML} |
| 1866 |
|
| 1867 |
\newwrite\LWR@copyoutfile % open the file to write to |
| 1868 |
\newread\LWR@copyinfile % open the file to read from |
| 1869 |
|
| 1870 |
\newcommand*{\LWR@copyfile}[2]{% |
| 1871 |
\LWR@traceinfo{LWR@copyfile: copying #1 to #2} |
| 1872 |
|
| 1873 |
\immediate\openout\LWR@copyoutfile=#2 |
| 1874 |
\openin\LWR@copyinfile=#1 |
| 1875 |
\begingroup\endlinechar=-1 |
| 1876 |
\makeatletter |
| 1877 |
|
| 1878 |
\LWR@traceinfo{LWR@copyfile: about to loop} |
| 1879 |
|
| 1880 |
\loop\unless\ifeof\LWR@copyinfile |
| 1881 |
\LWR@traceinfo{LWR@copyfile: one line} |
| 1882 |
\read\LWR@copyinfile to\LWR@fileline % Read one line and store it into \LWR@fileline |
| 1883 |
\immediate\write\LWR@copyoutfile{\unexpanded\expandafter{\LWR@fileline}}% |
| 1884 |
\repeat |
| 1885 |
\immediate\closeout\LWR@copyoutfile |
| 1886 |
\LWR@traceinfo{LWR@copyfile: done} |
| 1887 |
\endgroup |
| 1888 |
} |
| 1889 |
|
| 1890 |
\end{warpHTML} |
| 1891 |
|
| 1892 |
\begin{warpall} |
| 1893 |
|
| 1894 |
\newbool{LWR@tracinglwarp} |
| 1895 |
\newcommand{\tracinglwarp}{\booltrue{LWR@tracinglwarp}} |
| 1896 |
\newcommand{\LWR@traceinfo}[1]{% |
| 1897 |
\ifbool{LWR@tracinglwarp}% |
| 1898 |
{% |
| 1899 |
\typeout{*** lwarp: #1}% |
| 1900 |
}% |
| 1901 |
{}% |
| 1902 |
} |
| 1903 |
|
| 1904 |
\newbool{HTMLDebugComments} |
| 1905 |
\boolfalse{HTMLDebugComments} |
| 1906 |
|
| 1907 |
\AfterEndPreamble{ |
| 1908 |
\LWR@traceinfo{AfterEndPreamble} |
| 1909 |
} |
| 1910 |
|
| 1911 |
\AtBeginDocument{ |
| 1912 |
\LWR@traceinfo{AtBeginDocument} |
| 1913 |
} |
| 1914 |
|
| 1915 |
\end{warpall} |
| 1916 |
|
| 1917 |
|
| 1918 |
|
| 1919 |
|
| 1920 |
|
| 1921 |
\begin{warpall} |
| 1922 |
|
| 1923 |
\newcommand*{\LWR@formatted}[1]{} |
| 1924 |
\newcommand*{\LWR@expandableformatted}[1]{} |
| 1925 |
\newcommand*{\LWR@formattedenv}[1]{} |
| 1926 |
\newcommand*{\LWR@expandableformattedenv}[1]{} |
| 1927 |
|
| 1928 |
\end{warpall} |
| 1929 |
|
| 1930 |
|
| 1931 |
\begin{warpHTML} |
| 1932 |
\newcommand*{\LWR@formatting}{HTML} |
| 1933 |
\newcommand*{\LWR@formatted@checkname}[1]{% |
| 1934 |
\ifcsundef{#1}{% |
| 1935 |
\ifcsundef{LWR@print@#1}{% |
| 1936 |
\PackageError{lwarp} |
| 1937 |
{% |
| 1938 |
\LWRbackslash#1 or \protect\LWR@print@#1\MessageBreak |
| 1939 |
must be defined before using \protect\LWR@formatted, etc% |
| 1940 |
} |
| 1941 |
{Perhaps #1 is misspelled.} |
| 1942 |
}{\relax}% |
| 1943 |
}{\relax}% |
| 1944 |
\ifcsundef{LWR@HTML@#1}{% |
| 1945 |
\PackageError{lwarp} |
| 1946 |
{% |
| 1947 |
\protect\LWR@HTML@#1 must be defined |
| 1948 |
before using \protect\LWR@formatted, etc% |
| 1949 |
} |
| 1950 |
{Perhaps #1 is misspelled.} |
| 1951 |
}{\relax}% |
| 1952 |
} |
| 1953 |
\newcommand*{\LWR@formatted@checkendname}[1]{% |
| 1954 |
\ifcsundef{end#1}{% |
| 1955 |
\ifcsundef{endLWR@print@#1}{% |
| 1956 |
\PackageError{lwarp} |
| 1957 |
{% |
| 1958 |
\protect\end#1 or \protect\endLWR@print@#1\MessageBreak |
| 1959 |
must be defined before using \protect\LWR@formatted, etc% |
| 1960 |
} |
| 1961 |
{Perhaps #1 is misspelled.} |
| 1962 |
}{\relax}% |
| 1963 |
}{\relax}% |
| 1964 |
\ifcsundef{endLWR@HTML@#1}{% |
| 1965 |
\PackageError{lwarp} |
| 1966 |
{% |
| 1967 |
\protect\endLWR@HTML@#1 must be defined |
| 1968 |
before using \protect\LWR@formatted, etc% |
| 1969 |
} |
| 1970 |
{Perhaps #1 is misspelled.} |
| 1971 |
}{\relax}% |
| 1972 |
} |
| 1973 |
\renewcommand*{\LWR@formatted}[1]{% |
| 1974 |
\LWR@formatted@checkname{#1}% |
| 1975 |
\ifcsundef{LWR@print@#1}{% |
| 1976 |
\csNewCommandCopycs{LWR@print@#1}{#1}% |
| 1977 |
}{}% |
| 1978 |
\ifcsundef{#1}{% |
| 1979 |
\expandafter\newrobustcmd\csname #1\endcsname{% |
| 1980 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 1981 |
}% |
| 1982 |
}{% |
| 1983 |
\expandafter\renewrobustcmd\csname #1\endcsname{% |
| 1984 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 1985 |
}% |
| 1986 |
}% |
| 1987 |
} |
| 1988 |
\renewcommand*{\LWR@expandableformatted}[1]{% |
| 1989 |
\LWR@formatted@checkname{#1}% |
| 1990 |
\ifcsundef{LWR@print@#1}{% |
| 1991 |
\csNewCommandCopycs{LWR@print@#1}{#1}% |
| 1992 |
}{}% |
| 1993 |
\ifcsundef{#1}{% |
| 1994 |
\expandafter\newcommand\csname #1\endcsname{% |
| 1995 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 1996 |
}% |
| 1997 |
}{% |
| 1998 |
\expandafter\renewcommand\csname #1\endcsname{% |
| 1999 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 2000 |
}% |
| 2001 |
}% |
| 2002 |
} |
| 2003 |
\renewcommand*{\LWR@formattedenv}[1]{% |
| 2004 |
\LWR@formatted@checkname{#1}% |
| 2005 |
\LWR@formatted@checkendname{#1}% |
| 2006 |
\ifcsundef{LWR@print@#1}{% |
| 2007 |
\NewEnvironmentCopy{LWR@print@#1}{#1}% |
| 2008 |
}{}% |
| 2009 |
\DeclareDocumentEnvironment{#1}{}% |
| 2010 |
{% |
| 2011 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 2012 |
}% |
| 2013 |
{% |
| 2014 |
\@nameuse{endLWR@\LWR@formatting @#1}% |
| 2015 |
}% |
| 2016 |
} |
| 2017 |
\renewcommand*{\LWR@expandableformattedenv}[1]{% |
| 2018 |
\LWR@formatted@checkname{#1}% |
| 2019 |
\LWR@formatted@checkendname{#1}% |
| 2020 |
\ifcsundef{LWR@print@#1}{% |
| 2021 |
\NewEnvironmentCopy{LWR@print@#1}{#1}% |
| 2022 |
}{}% |
| 2023 |
\DeclareExpandableDocumentEnvironment{#1}{}% |
| 2024 |
{% |
| 2025 |
\@nameuse{LWR@\LWR@formatting @#1}% |
| 2026 |
}% |
| 2027 |
{% |
| 2028 |
\@nameuse{endLWR@\LWR@formatting @#1}% |
| 2029 |
}% |
| 2030 |
} |
| 2031 |
\end{warpHTML} |
| 2032 |
|
| 2033 |
\begin{warpall} |
| 2034 |
\newbool{FormatEPUB} |
| 2035 |
\boolfalse{FormatEPUB} |
| 2036 |
\newbool{FormatWP} |
| 2037 |
\boolfalse{FormatWP} |
| 2038 |
\newbool{WPMarkFloats} |
| 2039 |
\boolfalse{WPMarkFloats} |
| 2040 |
|
| 2041 |
\newbool{WPMarkMinipages} |
| 2042 |
\boolfalse{WPMarkMinipages} |
| 2043 |
|
| 2044 |
\newbool{WPMarkTOC} |
| 2045 |
\booltrue{WPMarkTOC} |
| 2046 |
|
| 2047 |
\newbool{WPMarkLOFT} |
| 2048 |
\boolfalse{WPMarkLOFT} |
| 2049 |
|
| 2050 |
\newbool{WPMarkMath} |
| 2051 |
\boolfalse{WPMarkMath} |
| 2052 |
|
| 2053 |
\newbool{WPTitleHeading} |
| 2054 |
\boolfalse{WPTitleHeading} |
| 2055 |
|
| 2056 |
\end{warpall} |
| 2057 |
|
| 2058 |
\begin{warpHTML} |
| 2059 |
\AtBeginDocument{ |
| 2060 |
\LWR@traceinfo{AtBeginDocument tags} |
| 2061 |
\ifbool{FormatWP}{ |
| 2062 |
\@ifundefined{chapter}{ |
| 2063 |
\ifbool{WPTitleHeading}{% part and section starting at h2 |
| 2064 |
\renewcommand*{\LWR@tagtitle}{h1} |
| 2065 |
\renewcommand*{\LWR@tagtitleend}{/h1} |
| 2066 |
\renewcommand*{\LWR@tagpart}{h2} |
| 2067 |
\renewcommand*{\LWR@tagpartend}{/h2} |
| 2068 |
\renewcommand*{\LWR@tagsection}{h3} |
| 2069 |
\renewcommand*{\LWR@tagsectionend}{/h3} |
| 2070 |
\renewcommand*{\LWR@tagsubsection}{h4} |
| 2071 |
\renewcommand*{\LWR@tagsubsectionend}{/h4} |
| 2072 |
\renewcommand*{\LWR@tagsubsubsection}{h5} |
| 2073 |
\renewcommand*{\LWR@tagsubsubsectionend}{/h5} |
| 2074 |
\renewcommand*{\LWR@tagparagraph}{h6} |
| 2075 |
\renewcommand*{\LWR@tagparagraphend}{/h6} |
| 2076 |
\renewcommand*{\LWR@tagsubparagraph}{% |
| 2077 |
span class=\textquotedbl{}subparagraph\textquotedbl% |
| 2078 |
} |
| 2079 |
\renewcommand*{\LWR@tagsubparagraphend}{/span} |
| 2080 |
}% WPTitleHeading |
| 2081 |
{% not WPTitleHeading, part and section starting at h1 |
| 2082 |
\renewcommand*{\LWR@tagtitle}{div class=\textquotedbl{}title\textquotedbl} |
| 2083 |
\renewcommand*{\LWR@tagtitleend}{/div} |
| 2084 |
\renewcommand*{\LWR@tagpart}{h1} |
| 2085 |
\renewcommand*{\LWR@tagpartend}{/h1} |
| 2086 |
\renewcommand*{\LWR@tagsection}{h2} |
| 2087 |
\renewcommand*{\LWR@tagsectionend}{/h2} |
| 2088 |
\renewcommand*{\LWR@tagsubsection}{h3} |
| 2089 |
\renewcommand*{\LWR@tagsubsectionend}{/h3} |
| 2090 |
\renewcommand*{\LWR@tagsubsubsection}{h4} |
| 2091 |
\renewcommand*{\LWR@tagsubsubsectionend}{/h4} |
| 2092 |
\renewcommand*{\LWR@tagparagraph}{h5} |
| 2093 |
\renewcommand*{\LWR@tagparagraphend}{/h5} |
| 2094 |
\renewcommand*{\LWR@tagsubparagraph}{h6} |
| 2095 |
\renewcommand*{\LWR@tagsubparagraphend}{/h6} |
| 2096 |
}% not WPTitleHeading |
| 2097 |
}% chapter undefined |
| 2098 |
{% chapter defined |
| 2099 |
\ifbool{WPTitleHeading}{} |
| 2100 |
{% not WPTitleHeading, part and chapter starting at h1 |
| 2101 |
\renewcommand*{\LWR@tagtitle}{div class=\textquotedbl{}title\textquotedbl} |
| 2102 |
\renewcommand*{\LWR@tagtitleend}{/div} |
| 2103 |
\renewcommand*{\LWR@tagpart}{h1} |
| 2104 |
\renewcommand*{\LWR@tagpartend}{/h1} |
| 2105 |
\renewcommand*{\LWR@tagchapter}{h2} |
| 2106 |
\renewcommand*{\LWR@tagchapterend}{/h2} |
| 2107 |
\renewcommand*{\LWR@tagsection}{h3} |
| 2108 |
\renewcommand*{\LWR@tagsectionend}{/h3} |
| 2109 |
\renewcommand*{\LWR@tagsubsection}{h4} |
| 2110 |
\renewcommand*{\LWR@tagsubsectionend}{/h4} |
| 2111 |
\renewcommand*{\LWR@tagsubsubsection}{h5} |
| 2112 |
\renewcommand*{\LWR@tagsubsubsectionend}{/h5} |
| 2113 |
\renewcommand*{\LWR@tagparagraph}{h6} |
| 2114 |
\renewcommand*{\LWR@tagparagraphend}{/h6} |
| 2115 |
\renewcommand*{\LWR@tagsubparagraph}{span class=\textquotedbl{}subparagraph\textquotedbl} |
| 2116 |
\renewcommand*{\LWR@tagsubparagraphend}{/span} |
| 2117 |
}% not WPTitleHeading |
| 2118 |
}% chapter defined |
| 2119 |
}{}% FormatWP |
| 2120 |
}% AtBeginDocument |
| 2121 |
|
| 2122 |
\end{warpHTML} |
| 2123 |
|
| 2124 |
|
| 2125 |
\begin{warpHTML} |
| 2126 |
|
| 2127 |
\chardef\LWR@origpound=`\# |
| 2128 |
\let\LWR@origcomma\, |
| 2129 |
\LetLtxMacro\LWR@origtilde~ |
| 2130 |
\LetLtxMacro\LWR@orignobreakspace\nobreakspace |
| 2131 |
\let\LWR@orighfil\hfil |
| 2132 |
\let\LWR@orighss\hss |
| 2133 |
\let\LWR@origllap\llap |
| 2134 |
\let\LWR@origrlap\rlap |
| 2135 |
\let\LWR@orighfilneg\hfilneg |
| 2136 |
\let\LWR@orighspace\hspace |
| 2137 |
|
| 2138 |
\let\LWR@origrule\rule |
| 2139 |
|
| 2140 |
\let\LWR@origmedskip\medskip |
| 2141 |
\let\LWR@origbigskip\bigskip |
| 2142 |
\LetLtxMacro\LWR@orig@@textquotedbl\textquotedbl |
| 2143 |
\LetLtxMacro\LWR@orig@textquotedbl\LWR@orig@@textquotedbl |
| 2144 |
|
| 2145 |
\AtEndPreamble{ |
| 2146 |
\IfPackageLoadedTF{libertinus-otf}{ |
| 2147 |
\renewcommand{\LWR@orig@textquotedbl}{\LWR@orig@@textquotedbl\kern-.15em} |
| 2148 |
\LetLtxMacro\textquotedbl\LWR@orig@textquotedbl |
| 2149 |
}{} |
| 2150 |
} |
| 2151 |
\LetLtxMacro\LWR@origttfamily\ttfamily |
| 2152 |
|
| 2153 |
\LetLtxMacro\LWR@origem\em |
| 2154 |
|
| 2155 |
\LetLtxMacro\LWR@orignormalfont\normalfont |
| 2156 |
|
| 2157 |
\let\LWR@origonecolumn\onecolumn |
| 2158 |
|
| 2159 |
\let\LWR@origsp\sp |
| 2160 |
\let\LWR@origsb\sb |
| 2161 |
|
| 2162 |
\LetLtxMacro\LWR@origunderline\underline |
| 2163 |
\let\LWR@orignewpage\newpage |
| 2164 |
|
| 2165 |
\let\LWR@origpagestyle\pagestyle |
| 2166 |
\let\LWR@origthispagestyle\thispagestyle |
| 2167 |
\LetLtxMacro\LWR@origpagenumbering\pagenumbering |
| 2168 |
|
| 2169 |
\let\LWR@orignewline\newline |
| 2170 |
|
| 2171 |
\AtBeginDocument{% in case packages change definitions |
| 2172 |
\LWR@traceinfo{AtBeginDocument lists} |
| 2173 |
\let\LWR@orig@trivlist\@trivlist |
| 2174 |
\let\LWR@origtrivlist\trivlist |
| 2175 |
\let\LWR@origendtrivlist\endtrivlist |
| 2176 |
\LetLtxMacro\LWR@origitem\item |
| 2177 |
\LetLtxMacro\LWR@origitemize\itemize |
| 2178 |
\LetLtxMacro\LWR@endorigitemize\enditemize |
| 2179 |
\LetLtxMacro\LWR@origenumerate\enumerate |
| 2180 |
\LetLtxMacro\LWR@endorigenumerate\endenumerate |
| 2181 |
\LetLtxMacro\LWR@origdescription\description |
| 2182 |
\LetLtxMacro\LWR@endorigdescription\enddescription |
| 2183 |
\let\LWR@orig@mklab\@mklab |
| 2184 |
\let\LWR@origmakelabel\makelabel |
| 2185 |
\let\LWR@orig@donoparitem\@donoparitem |
| 2186 |
\LetLtxMacro\LWR@orig@item\@item |
| 2187 |
\let\LWR@orig@nbitem\@nbitem |
| 2188 |
} |
| 2189 |
|
| 2190 |
\let\LWR@origpar\par |
| 2191 |
|
| 2192 |
\LetLtxMacro\LWR@origfootnote\footnote |
| 2193 |
\let\LWR@orig@mpfootnotetext\@mpfootnotetext |
| 2194 |
|
| 2195 |
\AtBeginDocument{% in case packages change definition |
| 2196 |
\LetLtxMacro\LWR@orighline\hline% |
| 2197 |
\LetLtxMacro\LWR@origcline\cline% |
| 2198 |
} |
| 2199 |
|
| 2200 |
\end{warpHTML} |
| 2201 |
|
| 2202 |
\begin{warpHTML} |
| 2203 |
\AtBeginDocument{ |
| 2204 |
\LWR@traceinfo{AtBeginDocument accents} |
| 2205 |
\LetLtxMacro\LWR@origtie\t |
| 2206 |
\ifPDFTeX% pdflatex or dvi latex |
| 2207 |
\LetLtxMacro\LWR@origgraveaccent\` |
| 2208 |
\LetLtxMacro\LWR@origacuteaccent\' |
| 2209 |
\LetLtxMacro\LWR@origcircumflexaccent\^ |
| 2210 |
\LetLtxMacro\LWR@origtildeaccent\~ |
| 2211 |
\LetLtxMacro\LWR@origmacronaccent\= |
| 2212 |
\LetLtxMacro\LWR@origbreve\u |
| 2213 |
\LetLtxMacro\LWR@origdotaccent\. |
| 2214 |
\LetLtxMacro\LWR@origdiaeresisaccent\" |
| 2215 |
\LetLtxMacro\LWR@origdoubleacuteaccent\H |
| 2216 |
\LetLtxMacro\LWR@origcaronaccent\v |
| 2217 |
\LetLtxMacro\LWR@origdotbelowaccent\d |
| 2218 |
\LetLtxMacro\LWR@origcedillaaccent\c |
| 2219 |
\LetLtxMacro\LWR@origmacronbelowaccent\b |
| 2220 |
\renewcommand*{\`}[1]{#1\HTMLunicode{0300}} |
| 2221 |
\renewcommand*{\'}[1]{#1\HTMLunicode{0301}} |
| 2222 |
\renewcommand*{\^}[1]{#1\HTMLunicode{0302}} |
| 2223 |
\renewcommand*{\~}[1]{#1\HTMLunicode{0303}} |
| 2224 |
\renewcommand*{\=}[1]{#1\HTMLunicode{0304}} |
| 2225 |
\renewcommand*{\u}[1]{#1\HTMLunicode{0306}} |
| 2226 |
\renewcommand*{\.}[1]{#1\HTMLunicode{0307}} |
| 2227 |
\renewcommand*{\"}[1]{#1\HTMLunicode{0308}} |
| 2228 |
\renewcommand*{\H}[1]{#1\HTMLunicode{030B}} |
| 2229 |
\renewcommand*{\v}[1]{#1\HTMLunicode{030C}} |
| 2230 |
\renewcommand*{\d}[1]{#1\HTMLunicode{0323}} |
| 2231 |
\renewcommand*{\c}[1]{#1\HTMLunicode{0327}} |
| 2232 |
\renewcommand*{\b}[1]{#1\HTMLunicode{0331}} |
| 2233 |
\fi |
| 2234 |
\def\LWR@t#1#2{#1\HTMLunicode{0361}#2} |
| 2235 |
\renewcommand*{\t}[1]{\LWR@t#1} |
| 2236 |
\ifPDFTeX% pdflatex or dvi latex |
| 2237 |
\newcommand*{\LWR@restoreorigaccents}{% |
| 2238 |
\LetLtxMacro\`\LWR@origgraveaccent% |
| 2239 |
\LetLtxMacro\'\LWR@origacuteaccent% |
| 2240 |
\LetLtxMacro\^\LWR@origcircumflexaccent% |
| 2241 |
\LetLtxMacro\~\LWR@origtildeaccent% |
| 2242 |
\LetLtxMacro\=\LWR@origmacronaccent% |
| 2243 |
\LetLtxMacro\u\LWR@origbreve% |
| 2244 |
\LetLtxMacro\.\LWR@origdotaccent% |
| 2245 |
\LetLtxMacro\"\LWR@origdiaeresisaccent% |
| 2246 |
\LetLtxMacro\H\LWR@origdoubleacuteaccent% |
| 2247 |
\LetLtxMacro\v\LWR@origcaronaccent% |
| 2248 |
\LetLtxMacro\t\LWR@origtie% |
| 2249 |
\LetLtxMacro\d\LWR@origdotbelowaccent% |
| 2250 |
\LetLtxMacro\c\LWR@origcedillaaccent% |
| 2251 |
\LetLtxMacro\b\LWR@origmacronbelowaccent% |
| 2252 |
}% |
| 2253 |
\else% XeLaTeX, LuaLaTeX: |
| 2254 |
\newcommand*{\LWR@restoreorigaccents}{% |
| 2255 |
\LetLtxMacro\t\LWR@origtie% |
| 2256 |
}% |
| 2257 |
\fi% |
| 2258 |
}% AtBeginDocument |
| 2259 |
\end{warpHTML} |
| 2260 |
|
| 2261 |
|
| 2262 |
|
| 2263 |
|
| 2264 |
\LWR@excludecomment{LWRwriteconf}{writeconf} |
| 2265 |
\begin{warpprint} |
| 2266 |
\fullexpandarg% |
| 2267 |
\IfSubStr*{\jobname}{-pstool} |
| 2268 |
{ |
| 2269 |
\PackageInfo{lwarp}{% |
| 2270 |
Jobname with -pstool is found.\MessageBreak |
| 2271 |
Not generating lwarp configuration files,% |
| 2272 |
} |
| 2273 |
} |
| 2274 |
{ |
| 2275 |
\ifbool{warpingdisabled} |
| 2276 |
{} |
| 2277 |
{ |
| 2278 |
\PackageInfo{lwarp}{Generating lwarp configuration files,}% |
| 2279 |
\LWR@includecomment{LWRwriteconf}{writeconf}% |
| 2280 |
} |
| 2281 |
} |
| 2282 |
\end{warpprint} |
| 2283 |
|
| 2284 |
\begin{LWRwriteconf} |
| 2285 |
\immediate\openout\LWR@quickfile=\jobname_html.tex |
| 2286 |
\immediate\write\LWR@quickfile{% |
| 2287 |
\detokenize{\PassOptionsToPackage}% |
| 2288 |
{warpHTML,BaseJobname=\jobname}{lwarp}% |
| 2289 |
} |
| 2290 |
\immediate\write\LWR@quickfile{% |
| 2291 |
\detokenize{\input}\string{\jobname.tex\string }% |
| 2292 |
} |
| 2293 |
\immediate\closeout\LWR@quickfile |
| 2294 |
\end{LWRwriteconf} |
| 2295 |
|
| 2296 |
|
| 2297 |
\begin{LWRwriteconf} |
| 2298 |
|
| 2299 |
\newcommand*{\LWR@lwarpconfversion}{2}% also in lwarpmk.lua |
| 2300 |
\ifshellescape |
| 2301 |
\def\LWR@shellescapecmd{--shell-escape } |
| 2302 |
\else |
| 2303 |
\def\LWR@shellescapecmd{} |
| 2304 |
\fi |
| 2305 |
\newcommand*{\LWR@compilecmd}[2]{% |
| 2306 |
#1 \LWR@shellescapecmd \jobname#2% |
| 2307 |
} |
| 2308 |
\newcommand*{\LWR@addcompilecmd}[2]{% |
| 2309 |
\LWRopseq |
| 2310 |
#1 \jobname#2% |
| 2311 |
} |
| 2312 |
\newcommand*{\LWR@unknownengine}{% |
| 2313 |
\PackageError{lwarp}% |
| 2314 |
{Unknown LaTeX engine}% |
| 2315 |
{% |
| 2316 |
Lwarp only knows about pdflatex, DVI latex, |
| 2317 |
xelatex, lualatex, and upLateX.% |
| 2318 |
}% |
| 2319 |
} |
| 2320 |
\newcommand*{\LWR@latexmkvar}[2]{% |
| 2321 |
-e |
| 2322 |
\LWRopquote% |
| 2323 |
\LWRdollar #1=q/#2/% |
| 2324 |
\LWRopquote |
| 2325 |
} |
| 2326 |
\newcommand*{\LWR@latexmkcmd}[1]{% |
| 2327 |
latexmk \space \LWR@shellescapecmd \space #1 \space |
| 2328 |
-recorder \space |
| 2329 |
\LWR@latexmkvar{makeindex}{\LWR@LatexmkIndexCmd}% |
| 2330 |
} |
| 2331 |
\newcommand*{\LWR@latexmkdvipdfm}[1]{% |
| 2332 |
-pdfdvi \space |
| 2333 |
\LWR@latexmkvar{dvipdf}{% |
| 2334 |
#1 |
| 2335 |
\@percentchar O |
| 2336 |
-o \@percentchar D |
| 2337 |
\@percentchar S% |
| 2338 |
} |
| 2339 |
} |
| 2340 |
\newcommand*{\LWR@compileuplatex}{ |
| 2341 |
\def\LWR@tempprintlatexcmd{% |
| 2342 |
\LWR@compilecmd{uplatex}{} |
| 2343 |
\LWR@addcompilecmd{dvipdfmx}{} |
| 2344 |
} |
| 2345 |
\def\LWR@tempHTMLlatexcmd{% |
| 2346 |
\LWR@compilecmd{uplatex}{_html} |
| 2347 |
\LWR@addcompilecmd{dvipdfmx}{_html} |
| 2348 |
} |
| 2349 |
} |
| 2350 |
\ifbool{LWR@latexmk}{ |
| 2351 |
\ifpdf |
| 2352 |
\ifPDFTeX |
| 2353 |
\def\LWR@latexcmd{\LWR@latexmkcmd{-pdf -dvi- -ps-}} |
| 2354 |
\else |
| 2355 |
\ifLuaTeX |
| 2356 |
\def\LWR@latexcmd{\LWR@latexmkcmd{-lualatex}} |
| 2357 |
\else |
| 2358 |
\LWR@unknownengine |
| 2359 |
\fi |
| 2360 |
\fi |
| 2361 |
\else% \ifpdf |
| 2362 |
\ifXeTeX |
| 2363 |
\def\LWR@latexcmd{\LWR@latexmkcmd{-xelatex}} |
| 2364 |
\else% \ifXeTeX |
| 2365 |
\ifbool{LWR@dvipdfm}{ |
| 2366 |
\def\LWR@latexcmd{% |
| 2367 |
\LWR@latexmkcmd{% |
| 2368 |
\LWR@latexmkdvipdfm{dvipdfm}% |
| 2369 |
} |
| 2370 |
} |
| 2371 |
}{ |
| 2372 |
\ifbool{LWR@dvipdfmx}{ |
| 2373 |
\def\LWR@latexcmd{% |
| 2374 |
\LWR@latexmkcmd{% |
| 2375 |
\LWR@latexmkdvipdfm{dvipdfmx}% |
| 2376 |
} |
| 2377 |
} |
| 2378 |
}{ |
| 2379 |
\def\LWR@latexcmd{\LWR@latexmkcmd{-pdfps}} |
| 2380 |
} |
| 2381 |
} |
| 2382 |
\fi |
| 2383 |
\fi% \ifpdf |
| 2384 |
\def\LWR@tempprintlatexcmd{\LWR@latexcmd \space \jobname} |
| 2385 |
\def\LWR@tempHTMLlatexcmd{\LWR@latexcmd \space \jobname_html} |
| 2386 |
}% latexmk |
| 2387 |
{% not latexmk |
| 2388 |
\ifpdf |
| 2389 |
\ifPDFTeX |
| 2390 |
\def\LWR@tempprintlatexcmd{\LWR@compilecmd{pdflatex}{}} |
| 2391 |
\def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{pdflatex}{_html}} |
| 2392 |
\else |
| 2393 |
\ifLuaTeX |
| 2394 |
\def\LWR@tempprintlatexcmd{\LWR@compilecmd{lualatex}{}} |
| 2395 |
\def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{lualatex}{_html}} |
| 2396 |
\else |
| 2397 |
\LWR@unknownengine |
| 2398 |
\fi |
| 2399 |
\fi |
| 2400 |
\else% \ifpdf |
| 2401 |
\ifXeTeX |
| 2402 |
\def\LWR@tempprintlatexcmd{\LWR@compilecmd{xelatex}{}} |
| 2403 |
\def\LWR@tempHTMLlatexcmd{\LWR@compilecmd{xelatex}{_html}} |
| 2404 |
\else |
| 2405 |
\ifbool{LWR@dvipdfm}{ |
| 2406 |
\def\LWR@tempprintlatexcmd{% |
| 2407 |
\LWR@compilecmd{latex}{} |
| 2408 |
\LWR@addcompilecmd{dvipdfm}{} |
| 2409 |
} |
| 2410 |
\def\LWR@tempHTMLlatexcmd{% |
| 2411 |
\LWR@compilecmd{latex}{_html} |
| 2412 |
\LWR@addcompilecmd{dvipdfm}{_html} |
| 2413 |
} |
| 2414 |
}{ |
| 2415 |
\ifbool{LWR@dvipdfmx}{ |
| 2416 |
\def\LWR@tempprintlatexcmd{% |
| 2417 |
\LWR@compilecmd{latex}{} |
| 2418 |
\LWR@addcompilecmd{dvipdfmx}{} |
| 2419 |
} |
| 2420 |
\def\LWR@tempHTMLlatexcmd{% |
| 2421 |
\LWR@compilecmd{latex}{_html} |
| 2422 |
\LWR@addcompilecmd{dvipdfmx}{_html} |
| 2423 |
} |
| 2424 |
}{% dvips |
| 2425 |
\def\LWR@tempprintlatexcmd{% |
| 2426 |
\LWR@compilecmd{latex}{} |
| 2427 |
\LWR@addcompilecmd{dvips}{} |
| 2428 |
\LWR@addcompilecmd{ps2pdf -dALLOWPSTRANSPARENCY}{}.ps |
| 2429 |
} |
| 2430 |
\def\LWR@tempHTMLlatexcmd{% |
| 2431 |
\LWR@compilecmd{latex}{_html} |
| 2432 |
\LWR@addcompilecmd{dvips}{_html} |
| 2433 |
\LWR@addcompilecmd{ps2pdf -dALLOWPSTRANSPARENCY}{_html}.ps |
| 2434 |
} |
| 2435 |
} |
| 2436 |
} |
| 2437 |
\fi% \ifXeTeX |
| 2438 |
\fi% \ifpdf |
| 2439 |
}% latexmk |
| 2440 |
\IfClassLoadedTF{ujarticle}{\LWR@compileuplatex}{} |
| 2441 |
\IfClassLoadedTF{ujbook}{\LWR@compileuplatex}{} |
| 2442 |
\IfClassLoadedTF{ujreport}{\LWR@compileuplatex}{} |
| 2443 |
\IfClassLoadedTF{utarticle}{\LWR@compileuplatex}{} |
| 2444 |
\IfClassLoadedTF{utbook}{\LWR@compileuplatex}{} |
| 2445 |
\IfClassLoadedTF{utreport}{\LWR@compileuplatex}{} |
| 2446 |
\ifdefempty{\LWR@PrintLatexCmd}{ |
| 2447 |
\def\LWR@PrintLatexCmd{\LWR@tempprintlatexcmd} |
| 2448 |
}{} |
| 2449 |
\ifdefempty{\LWR@HTMLLatexCmd}{ |
| 2450 |
\def\LWR@HTMLLatexCmd{\LWR@tempHTMLlatexcmd} |
| 2451 |
}{} |
| 2452 |
\newcommand{\LWR@writeconf}[1]{ |
| 2453 |
\ifcsdef{LWR@quickfile}{}{\newwrite{\LWR@quickfile}} |
| 2454 |
\immediate\openout\LWR@quickfile=#1 |
| 2455 |
\immediate\write\LWR@quickfile{confversion = [[\LWR@lwarpconfversion]]} |
| 2456 |
\ifbool{usingOSWindows}{ |
| 2457 |
\immediate\write\LWR@quickfile{opsystem = [[Windows]]} |
| 2458 |
}{ |
| 2459 |
\immediate\write\LWR@quickfile{opsystem = [[Unix]]} |
| 2460 |
} |
| 2461 |
\immediate\write\LWR@quickfile{sourcename = [[\jobname]]} |
| 2462 |
\immediate\write\LWR@quickfile{homehtmlfilename = [[\HomeHTMLFilename]]} |
| 2463 |
\immediate\write\LWR@quickfile{htmlfilename = [[\HTMLFilename]]} |
| 2464 |
\immediate\write\LWR@quickfile{imagesdirectory = [[\LWR@ImagesDirectory]]} |
| 2465 |
\immediate\write\LWR@quickfile{imagesname = [[\LWR@ImagesName]]} |
| 2466 |
\immediate\write\LWR@quickfile{latexmk = [[\ifbool{LWR@latexmk}{true}{false}]]} |
| 2467 |
\immediate\write\LWR@quickfile{printlatexcmd = [[\LWR@PrintLatexCmd]]} |
| 2468 |
\immediate\write\LWR@quickfile{HTMLlatexcmd = [[\LWR@HTMLLatexCmd]]} |
| 2469 |
\immediate\write\LWR@quickfile{printindexcmd = [[\LWR@PrintIndexCmd]]} |
| 2470 |
\immediate\write\LWR@quickfile{HTMLindexcmd = [[\LWR@HTMLIndexCmd]]} |
| 2471 |
\immediate\write\LWR@quickfile{latexmkindexcmd = [[\LWR@LatexmkIndexCmd]]} |
| 2472 |
\immediate\write\LWR@quickfile{glossarycmd = [[\LWR@GlossaryCmd]]} |
| 2473 |
\immediate\write\LWR@quickfile{pdftotextenc = [[\LWR@pdftotextEnc]]} |
| 2474 |
\immediate\closeout\LWR@quickfile |
| 2475 |
} |
| 2476 |
|
| 2477 |
|
| 2478 |
\end{LWRwriteconf} |
| 2479 |
|
| 2480 |
\begin{LWRwriteconf} |
| 2481 |
|
| 2482 |
\AtBeginDocument{% |
| 2483 |
\LWR@traceinfo{AtBeginDocument writing lwarpmk.conf} |
| 2484 |
\LWR@writeconf{lwarpmk.conf}% |
| 2485 |
} |
| 2486 |
|
| 2487 |
\end{LWRwriteconf} |
| 2488 |
|
| 2489 |
\begin{LWRwriteconf} |
| 2490 |
|
| 2491 |
\AtBeginDocument{% |
| 2492 |
\LWR@traceinfo{AtBeginDocument writing jobname.lwarpmkconf} |
| 2493 |
\LWR@writeconf{\jobname.lwarpmkconf}% |
| 2494 |
} |
| 2495 |
|
| 2496 |
\end{LWRwriteconf} |
| 2497 |
|
| 2498 |
|
| 2499 |
\begin{LWRwriteconf} |
| 2500 |
\begin{filecontents*}[overwrite]{lwarp.css} |
| 2501 |
/* |
| 2502 |
CSS stylesheet for the LaTeX Lwarp package |
| 2503 |
Copyright 2016-2026 Brian Dunn |
| 2504 |
*/ |
| 2505 |
|
| 2506 |
/* Page layout */ |
| 2507 |
|
| 2508 |
@supports (display: grid) { |
| 2509 |
body { |
| 2510 |
overflow-y: hidden ; |
| 2511 |
height: 100vh ; |
| 2512 |
} |
| 2513 |
} |
| 2514 |
|
| 2515 |
@supports (display: grid) { |
| 2516 |
div.homepagegrid { |
| 2517 |
display: grid ; |
| 2518 |
grid-template-areas: |
| 2519 |
"header" |
| 2520 |
"body" |
| 2521 |
"footer" ; |
| 2522 |
grid-template-columns: 1fr ; |
| 2523 |
grid-template-rows: |
| 2524 |
max-content |
| 2525 |
max-content |
| 2526 |
max-content ; |
| 2527 |
max-height: 100vh ; |
| 2528 |
overflow-y: auto ; |
| 2529 |
} |
| 2530 |
} |
| 2531 |
|
| 2532 |
@supports (display: grid) { |
| 2533 |
div.pagegrid { |
| 2534 |
display: grid ; |
| 2535 |
grid-template-areas: |
| 2536 |
"topnav topnav" |
| 2537 |
"header header" |
| 2538 |
"sidetoc body" |
| 2539 |
"footer footer" |
| 2540 |
"botnav botnav" ; |
| 2541 |
grid-template-columns: minmax(15em,1fr) 4fr ; |
| 2542 |
grid-template-rows: |
| 2543 |
max-content |
| 2544 |
max-content |
| 2545 |
1fr |
| 2546 |
max-content |
| 2547 |
max-content ; |
| 2548 |
max-height: 100vh ; |
| 2549 |
overflow-y: none ; |
| 2550 |
} |
| 2551 |
} |
| 2552 |
|
| 2553 |
div.sidetoccontainer { |
| 2554 |
font-family: "DejaVu Serif", "Bitstream Vera Serif", |
| 2555 |
"Lucida Bright", Georgia, serif; |
| 2556 |
margin: 0pt 0em 1ex 0pt ; |
| 2557 |
border-right: 1px solid silver; |
| 2558 |
border-bottom: 1px solid silver; |
| 2559 |
background: #FAF7F4 ; |
| 2560 |
font-size:.9em ; |
| 2561 |
border-radius: 0px 0px 20px 0px ; |
| 2562 |
/* room for border-right next to 80% main */ |
| 2563 |
float: left ; |
| 2564 |
width: 19%; |
| 2565 |
max-height: 100vh ; |
| 2566 |
overflow-y: auto ; |
| 2567 |
} |
| 2568 |
|
| 2569 |
@supports (display: grid) { |
| 2570 |
div.sidetoccontainer { |
| 2571 |
grid-area: sidetoc ; |
| 2572 |
float: none ; |
| 2573 |
width: 100% ; |
| 2574 |
overflow-y: auto ; |
| 2575 |
} |
| 2576 |
} |
| 2577 |
|
| 2578 |
nav.sidetoc { |
| 2579 |
} |
| 2580 |
|
| 2581 |
div.sidetoccontents { |
| 2582 |
width: 100% ; |
| 2583 |
} |
| 2584 |
|
| 2585 |
nav.sidetoc p { |
| 2586 |
line-height:1.2 ; |
| 2587 |
margin: 1ex .5em 1ex .5em ; |
| 2588 |
text-indent: 0 ; |
| 2589 |
} |
| 2590 |
|
| 2591 |
nav.sidetoc p a {color:black ; font-size: .7em ;} |
| 2592 |
|
| 2593 |
div.sidetoctitle {font-size: 1.2em; font-weight:bold; text-align:center; |
| 2594 |
border-bottom: 1px solid silver ; } |
| 2595 |
|
| 2596 |
nav.sidetoc a:hover {text-decoration: underline ; } |
| 2597 |
|
| 2598 |
main.bodycontainer { |
| 2599 |
float: left ; |
| 2600 |
width: 80% ; |
| 2601 |
} |
| 2602 |
|
| 2603 |
div.homepagegrid main.bodycontainer { |
| 2604 |
float: none ; |
| 2605 |
width: 100% ; |
| 2606 |
} |
| 2607 |
|
| 2608 |
@supports (display: grid) { |
| 2609 |
main.bodycontainer { |
| 2610 |
grid-area: body ; |
| 2611 |
float: none ; |
| 2612 |
width: 100% ; |
| 2613 |
overflow-y: auto ; |
| 2614 |
} |
| 2615 |
} |
| 2616 |
|
| 2617 |
nav.topnavigation{ |
| 2618 |
grid-area: topnav ; |
| 2619 |
text-align: left ; |
| 2620 |
padding: 0.5ex 1em 0.5ex 1em ; |
| 2621 |
/* margin: 2ex 0em 3ex 0em ; */ |
| 2622 |
margin: 0 ; |
| 2623 |
border-bottom: 1px solid silver ; |
| 2624 |
border-top: 1px solid silver ; |
| 2625 |
clear:both ; |
| 2626 |
} |
| 2627 |
|
| 2628 |
nav.botnavigation{ |
| 2629 |
grid-area: botnav ; |
| 2630 |
text-align: left ; |
| 2631 |
padding: 0.5ex 1em 0.5ex 1em ; |
| 2632 |
/* margin: 3ex 0em 2ex 0em ; */ |
| 2633 |
margin: 0 ; |
| 2634 |
border-top: 1px solid silver ; |
| 2635 |
border-bottom: 1px solid silver ; |
| 2636 |
clear:both ; |
| 2637 |
} |
| 2638 |
|
| 2639 |
header { |
| 2640 |
grid-area: header ; |
| 2641 |
line-height: 1.2 ; |
| 2642 |
font-size: 1em ; |
| 2643 |
border-bottom: 1px solid silver ; |
| 2644 |
margin: 0px ; |
| 2645 |
padding: 1ex 1em 1ex 1em ; |
| 2646 |
text-align:left ; |
| 2647 |
} |
| 2648 |
|
| 2649 |
footer { |
| 2650 |
grid-area: footer ; |
| 2651 |
font-size: .85em ; |
| 2652 |
line-height: 1.2 ; |
| 2653 |
margin-top: 1ex ; |
| 2654 |
border-top: 1px solid silver ; |
| 2655 |
padding: 1ex 1em 1ex 1em ; |
| 2656 |
clear:both ; |
| 2657 |
text-align:left ; |
| 2658 |
} |
| 2659 |
|
| 2660 |
/* a fix for older browsers: */ |
| 2661 |
header, section, footer, aside, nav, main, |
| 2662 |
article, figure { display: block; } |
| 2663 |
|
| 2664 |
A:link {color:#000080 ; text-decoration: none ; } |
| 2665 |
A:visited {color:#800000 ; } |
| 2666 |
A:hover {color:#000080 ; text-decoration: underline ;} |
| 2667 |
A:active {color:#800000 ; } |
| 2668 |
|
| 2669 |
a.tocbook {display: inline-block ; margin-left: 0em ; |
| 2670 |
font-weight: bold ; margin-top: 1ex ; margin-bottom: 1ex ; } |
| 2671 |
a.tocpart {display: inline-block ; margin-left: 0em ; |
| 2672 |
font-weight: bold ;} |
| 2673 |
a.tocchapter {display: inline-block ; margin-left: 0em ; |
| 2674 |
font-weight: bold ;} |
| 2675 |
a.tocsection {display: inline-block ; margin-left: 1em ; |
| 2676 |
text-indent: -.5em ; font-weight: bold ; } |
| 2677 |
a.tocsubsection {display: inline-block ; margin-left: 2em ; |
| 2678 |
text-indent: -.5em ; } |
| 2679 |
a.tocsubsubsection {display: inline-block ; margin-left: 3em ; |
| 2680 |
text-indent: -.5em ; } |
| 2681 |
a.tocparagraph {display: inline-block ; margin-left: 4em ; |
| 2682 |
text-indent: -.5em ; } |
| 2683 |
a.tocsubparagraph {display: inline-block ; margin-left: 5em ; |
| 2684 |
text-indent: -.5em ; } |
| 2685 |
a.tocfigure {margin-left: 0em} |
| 2686 |
a.tocsubfigure {margin-left: 2em} |
| 2687 |
a.toctable {margin-left: 0em} |
| 2688 |
a.tocsubtable {margin-left: 2em} |
| 2689 |
a.toctheorem {margin-left: 0em} |
| 2690 |
a.toclstlisting {margin-left: 0em} |
| 2691 |
|
| 2692 |
body { |
| 2693 |
font-family: "DejaVu Serif", "Bitstream Vera Serif", |
| 2694 |
"Lucida Bright", Georgia, serif; |
| 2695 |
background: #FAF7F4 ; |
| 2696 |
color: black ; |
| 2697 |
margin:0em ; |
| 2698 |
padding:0em ; |
| 2699 |
font-size: 100% ; |
| 2700 |
line-height: 1.2 ; |
| 2701 |
} |
| 2702 |
|
| 2703 |
p {margin: 1.5ex 0em 1.5ex 0em ; text-indent: 0em; } |
| 2704 |
table p {margin: .5ex 0em .5ex 0em ; text-indent: 0em ;} |
| 2705 |
|
| 2706 |
/* Holds a section number */ |
| 2707 |
span.sectionnumber { margin-right: 0em } |
| 2708 |
|
| 2709 |
/* Inserted in front of index lines */ |
| 2710 |
span.indexitem {margin-left: 0em} |
| 2711 |
span.indexsubitem {margin-left: 2em} |
| 2712 |
span.indexsubsubitem {margin-left: 4em} |
| 2713 |
div.indexheading {margin-top: 2ex ; font-weight: bold} |
| 2714 |
|
| 2715 |
div.hidden, span.hidden { display: none ; } |
| 2716 |
|
| 2717 |
kbd, span.texttt, p span.texttt { |
| 2718 |
font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console", |
| 2719 |
"Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono", |
| 2720 |
"Courier New", monospace; |
| 2721 |
font-size: 100% ; |
| 2722 |
} |
| 2723 |
|
| 2724 |
pre { padding: 3pt ; } |
| 2725 |
|
| 2726 |
span.strong, span.textbf, div.strong, div.textbf, table td.tdbfseries { font-weight: bold; } |
| 2727 |
|
| 2728 |
span.textit, div.textit, table td.tditshape { font-style: italic; } |
| 2729 |
|
| 2730 |
table td.tdbfit { font-weight: bold ; font-style:italic } |
| 2731 |
|
| 2732 |
span.textnormal, div.textnormal { |
| 2733 |
font-weight: normal; |
| 2734 |
font-style: normal; |
| 2735 |
font-variant: normal; |
| 2736 |
font-variant-numeric: normal ; |
| 2737 |
font-family: "DejaVu Serif", "Bitstream Vera Serif", |
| 2738 |
"Lucida Bright", Georgia, serif; |
| 2739 |
} |
| 2740 |
|
| 2741 |
span.textmd, div.textmd { font-weight: normal; } |
| 2742 |
|
| 2743 |
span.textup, div.textup { |
| 2744 |
font-style: normal; |
| 2745 |
font-variant: normal; |
| 2746 |
font-variant-numeric: normal ; |
| 2747 |
} |
| 2748 |
|
| 2749 |
/* For complex number i,j symbols */ |
| 2750 |
span.ijit {font-style: italic; font-variant: normal} |
| 2751 |
span.ijup {font-style: normal; font-variant: normal} |
| 2752 |
|
| 2753 |
span.textsc, div.textsc { |
| 2754 |
font-variant: small-caps; |
| 2755 |
font-variant-numeric: oldstyle-nums ; |
| 2756 |
} |
| 2757 |
|
| 2758 |
span.textulc, div.textulc { |
| 2759 |
font-variant: normal ; |
| 2760 |
font-variant-numeric: normal ; |
| 2761 |
} |
| 2762 |
|
| 2763 |
span.textsl, div.textsl { font-style: oblique; } |
| 2764 |
|
| 2765 |
span.textrm, div.textrm { |
| 2766 |
font-family: "DejaVu Serif", "Bitstream Vera Serif", |
| 2767 |
"Lucida Bright", Georgia, serif; |
| 2768 |
} |
| 2769 |
|
| 2770 |
span.textsf, div.textsf { |
| 2771 |
font-family: "DejaVu Sans", "Bitstream Vera Sans", |
| 2772 |
Geneva, Verdana, sans-serif ; |
| 2773 |
} |
| 2774 |
|
| 2775 |
/* nfssext-cfr lining figures */ |
| 2776 |
span.textln, div.textln { |
| 2777 |
font-variant-numeric: lining-nums ; |
| 2778 |
} |
| 2779 |
|
| 2780 |
/* nfssext-cfr proportional figures */ |
| 2781 |
span.textp, div.textp { |
| 2782 |
font-variant-numeric: proportional-nums ; |
| 2783 |
} |
| 2784 |
|
| 2785 |
/* nfssext-cfr tabular figures */ |
| 2786 |
span.textt, div.textt { |
| 2787 |
font-variant-numeric: tabular-nums ; |
| 2788 |
} |
| 2789 |
|
| 2790 |
/* nfssext-cfr font weights */ |
| 2791 |
span.textdb, div.textdb { |
| 2792 |
font-weight: 500 ; |
| 2793 |
} |
| 2794 |
|
| 2795 |
span.textsb, div.textsb { |
| 2796 |
font-weight: 600 ; |
| 2797 |
} |
| 2798 |
|
| 2799 |
span.texteb, div.texteb { |
| 2800 |
font-weight: 800 ; |
| 2801 |
} |
| 2802 |
|
| 2803 |
span.textub, div.textub { |
| 2804 |
font-weight: 900 ; |
| 2805 |
} |
| 2806 |
|
| 2807 |
span.textlg, div.textlg { |
| 2808 |
font-weight: 300 ; |
| 2809 |
} |
| 2810 |
|
| 2811 |
span.textel, div.textel { |
| 2812 |
font-weight: 200 ; |
| 2813 |
} |
| 2814 |
|
| 2815 |
span.textul, div.textul { |
| 2816 |
font-weight: 100 ; |
| 2817 |
} |
| 2818 |
|
| 2819 |
span.textcircled { border: 1px solid black ; border-radius: 1ex ; } |
| 2820 |
|
| 2821 |
span.underline { |
| 2822 |
text-decoration: underline ; |
| 2823 |
text-decoration-skip: auto ; |
| 2824 |
} |
| 2825 |
|
| 2826 |
span.overline { |
| 2827 |
text-decoration: overline ; |
| 2828 |
text-decoration-skip: auto ; |
| 2829 |
} |
| 2830 |
|
| 2831 |
div.hrule { border-top: 1px solid silver } |
| 2832 |
|
| 2833 |
/* for vertical text: */ |
| 2834 |
div.verticalrl { writing-mode: vertical-rl } |
| 2835 |
div.horizontaltb { writing-mode: horizontal-tb } |
| 2836 |
|
| 2837 |
/* for diagbox */ |
| 2838 |
div.diagboxtitleN { border-bottom: 1px solid gray } |
| 2839 |
div.diagboxtitleS { border-top: 1px solid gray } |
| 2840 |
|
| 2841 |
div.diagboxE { |
| 2842 |
padding-left: 2em ; |
| 2843 |
text-align: right ; |
| 2844 |
} |
| 2845 |
|
| 2846 |
div.diagboxW { |
| 2847 |
padding-right: 2em ; |
| 2848 |
text-align: left ; |
| 2849 |
} |
| 2850 |
|
| 2851 |
/* For realscripts */ |
| 2852 |
.supsubscript { |
| 2853 |
display: inline-block; |
| 2854 |
text-align:left ; |
| 2855 |
} |
| 2856 |
|
| 2857 |
.supsubscript sup, |
| 2858 |
.supsubscript sub { |
| 2859 |
position: relative; |
| 2860 |
display: block; |
| 2861 |
font-size: .7em; |
| 2862 |
line-height: 1; |
| 2863 |
} |
| 2864 |
|
| 2865 |
.supsubscript sup { |
| 2866 |
top: .3em; |
| 2867 |
} |
| 2868 |
|
| 2869 |
.supsubscript sub { |
| 2870 |
top: .3em; |
| 2871 |
} |
| 2872 |
|
| 2873 |
div.attribution p { |
| 2874 |
text-align: right ; |
| 2875 |
font-size: 80% |
| 2876 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 2877 |
text-indent: 0em ; |
| 2878 |
} |
| 2879 |
|
| 2880 |
span.poemtitle { |
| 2881 |
font-size: 120% ; font-weight: bold; |
| 2882 |
} |
| 2883 |
|
| 2884 |
pre.tabbing { |
| 2885 |
font-family: "Linux Libertine Mono O", "Lucida Console", |
| 2886 |
"Droid Sans Mono", "DejaVu Mono", "Bitstream Vera Mono", |
| 2887 |
"Liberation Mono", "FreeMono", "Andale Mono", |
| 2888 |
"Nimbus Mono L", "Courier New", monospace; |
| 2889 |
} |
| 2890 |
|
| 2891 |
blockquote { |
| 2892 |
display: block ; |
| 2893 |
margin-left: 2em ; |
| 2894 |
margin-right: 2em ; |
| 2895 |
} |
| 2896 |
|
| 2897 |
/* quotchap is for the quotchap package */ |
| 2898 |
div.quotchap { |
| 2899 |
display: block ; |
| 2900 |
font-style: oblique ; |
| 2901 |
overflow-x: auto ; |
| 2902 |
margin-left: 2em ; |
| 2903 |
margin-right: 2em ; |
| 2904 |
} |
| 2905 |
|
| 2906 |
blockquote p, div.quotchap p { |
| 2907 |
line-height: 1.5; |
| 2908 |
text-align: left ; |
| 2909 |
font-size: .85em ; |
| 2910 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 2911 |
text-indent: 0em ; |
| 2912 |
} |
| 2913 |
|
| 2914 |
/* qauthor is for the quotchap package */ |
| 2915 |
div.qauthor { |
| 2916 |
display: block ; |
| 2917 |
text-align: right ; |
| 2918 |
margin-left: auto ; |
| 2919 |
margin-right: 2em ; |
| 2920 |
font-size: 80% ; |
| 2921 |
font-variant: small-caps; |
| 2922 |
} |
| 2923 |
|
| 2924 |
div.qauthor p { |
| 2925 |
text-align: right ; |
| 2926 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 2927 |
text-indent: 0em ; |
| 2928 |
} |
| 2929 |
|
| 2930 |
div.epigraph, div.dictum { |
| 2931 |
line-height: 1.2; |
| 2932 |
text-align: left ; |
| 2933 |
padding: 3ex 1em 0ex 1em ; |
| 2934 |
/* margin: 3ex auto 3ex auto ; */ /* Epigraph centered */ |
| 2935 |
margin: 3ex 1em 3ex auto ; /* Epigraph to the right */ |
| 2936 |
/* margin: 3ex 1em 3ex 1em ; */ /* Epigraph to the left */ |
| 2937 |
font-size: .85em ; |
| 2938 |
max-width: 27em ; |
| 2939 |
} |
| 2940 |
|
| 2941 |
div.epigraphsource, div.dictumauthor { |
| 2942 |
text-align:right ; |
| 2943 |
margin-left:auto ; |
| 2944 |
/* max-width: 50% ; */ |
| 2945 |
border-top: 1px solid #A0A0A0 ; |
| 2946 |
padding-bottom: 3ex ; |
| 2947 |
line-height: 1.2; |
| 2948 |
} |
| 2949 |
|
| 2950 |
div.epigraph p, div.dictum p { |
| 2951 |
padding: .5ex ; |
| 2952 |
margin: 0ex ; |
| 2953 |
text-indent: 0em ; |
| 2954 |
} |
| 2955 |
|
| 2956 |
div.epigraphsource p, div.dictumauthor p { |
| 2957 |
padding: .5ex 0ex 0ex 0ex ; |
| 2958 |
margin: 0ex ; |
| 2959 |
text-indent: 0em ; |
| 2960 |
} |
| 2961 |
|
| 2962 |
div.dictumauthor { font-style:italic } |
| 2963 |
|
| 2964 |
/* copyrightbox package: */ |
| 2965 |
div.copyrightbox { margin: .5ex .5em } |
| 2966 |
|
| 2967 |
div.copyrightbox p { |
| 2968 |
margin: 0px .5em ; |
| 2969 |
padding: 0px ; |
| 2970 |
text-indent: 0em ; |
| 2971 |
} |
| 2972 |
|
| 2973 |
div.copyrightboxnote {text-align: left ; font-size: 60%} |
| 2974 |
|
| 2975 |
/* lettrine package: */ |
| 2976 |
span.lettrine { font-size: 4ex ; float: left ; } |
| 2977 |
span.lettrinetext { font-variant: small-caps ; } |
| 2978 |
|
| 2979 |
/* ulem, soul, umoline packages: */ |
| 2980 |
span.uline { |
| 2981 |
text-decoration: underline ; |
| 2982 |
text-decoration-skip: auto ; |
| 2983 |
} |
| 2984 |
|
| 2985 |
span.uuline { |
| 2986 |
text-decoration: underline ; |
| 2987 |
text-decoration-skip: auto ; |
| 2988 |
text-decoration-style: double ; |
| 2989 |
} |
| 2990 |
|
| 2991 |
span.uwave { |
| 2992 |
text-decoration: underline ; |
| 2993 |
text-decoration-skip: auto ; |
| 2994 |
text-decoration-style: wavy ; |
| 2995 |
} |
| 2996 |
|
| 2997 |
span.sout { |
| 2998 |
text-decoration: line-through ; |
| 2999 |
} |
| 3000 |
|
| 3001 |
span.oline { |
| 3002 |
text-decoration: overline ; |
| 3003 |
text-decoration-skip: auto ; |
| 3004 |
} |
| 3005 |
|
| 3006 |
span.xout { |
| 3007 |
text-decoration: line-through ; |
| 3008 |
} |
| 3009 |
|
| 3010 |
span.dashuline { |
| 3011 |
text-decoration: underline ; |
| 3012 |
text-decoration-skip: auto ; |
| 3013 |
text-decoration-style: dashed ; |
| 3014 |
} |
| 3015 |
|
| 3016 |
span.dotuline { |
| 3017 |
text-decoration: underline ; |
| 3018 |
text-decoration-skip: auto ; |
| 3019 |
text-decoration-style: dotted ; |
| 3020 |
} |
| 3021 |
|
| 3022 |
span.letterspacing { letter-spacing: .2ex ; } |
| 3023 |
|
| 3024 |
span.capsspacing { |
| 3025 |
font-variant: small-caps ; |
| 3026 |
letter-spacing: .1ex ; |
| 3027 |
} |
| 3028 |
|
| 3029 |
span.highlight { background: #F8E800 ; } |
| 3030 |
|
| 3031 |
/* keystroke package: */ |
| 3032 |
span.keystroke { |
| 3033 |
border-style: outset ; |
| 3034 |
padding: 0pt .5em 0pt .5em ; |
| 3035 |
} |
| 3036 |
|
| 3037 |
html body { |
| 3038 |
margin: 0 ; |
| 3039 |
line-height: 1.2; |
| 3040 |
} |
| 3041 |
|
| 3042 |
body div { |
| 3043 |
margin: 0ex; |
| 3044 |
} |
| 3045 |
|
| 3046 |
div.book, h1, h2, h3, h4, h5, h6, span.paragraph, span.subparagraph |
| 3047 |
{ |
| 3048 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 3049 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 3050 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 3051 |
"Times New Roman", serif; |
| 3052 |
font-style: normal ; |
| 3053 |
font-weight: bold ; |
| 3054 |
text-align: left ; |
| 3055 |
} |
| 3056 |
|
| 3057 |
h1 { /* title of the entire website, used on each page */ |
| 3058 |
text-align: center ; |
| 3059 |
font-size: 2.5em ; |
| 3060 |
padding: .4ex 0em 0ex 0em ; |
| 3061 |
} |
| 3062 |
|
| 3063 |
div.book { |
| 3064 |
text-align: center ; |
| 3065 |
font-size: 2.325em ; |
| 3066 |
padding: .4ex 0em 0ex 0em ; |
| 3067 |
} |
| 3068 |
|
| 3069 |
h2 { font-size: 2.25em } |
| 3070 |
h3 { font-size: 2em } |
| 3071 |
h4 { font-size: 1.75em } |
| 3072 |
h5 { font-size: 1.5em } |
| 3073 |
h6 { font-size: 1.25em } |
| 3074 |
span.paragraph {font-size: 1em ; font-variant: normal ; |
| 3075 |
margin-right: 1em ; } |
| 3076 |
span.subparagraph {font-size: 1em ; font-variant: normal ; |
| 3077 |
margin-right: 1em ; } |
| 3078 |
|
| 3079 |
div.minisec { |
| 3080 |
font-family: "DejaVu Sans", "Bitstream Vera Sans", |
| 3081 |
Geneva, Verdana, sans-serif ; |
| 3082 |
font-style: normal ; |
| 3083 |
font-weight: bold ; |
| 3084 |
text-align: left ; |
| 3085 |
} |
| 3086 |
|
| 3087 |
h1 { |
| 3088 |
margin: 0ex 0em 0ex 0em ; |
| 3089 |
line-height: 1.3; |
| 3090 |
text-align: center ; |
| 3091 |
} |
| 3092 |
|
| 3093 |
h2 { |
| 3094 |
margin: 1ex 0em 1ex 0em ; |
| 3095 |
line-height: 1.3; |
| 3096 |
text-align: center ; |
| 3097 |
} |
| 3098 |
|
| 3099 |
h3 { |
| 3100 |
margin: 3ex 0em 1ex 0em ; |
| 3101 |
line-height: 1.3; |
| 3102 |
} |
| 3103 |
|
| 3104 |
h4 { |
| 3105 |
margin: 3ex 0em 1ex 0em ; |
| 3106 |
line-height: 1.3; |
| 3107 |
} |
| 3108 |
|
| 3109 |
h5 { |
| 3110 |
margin: 3ex 0em 1ex 0em ; |
| 3111 |
line-height: 1.3; |
| 3112 |
} |
| 3113 |
|
| 3114 |
h6 { |
| 3115 |
margin: 3ex 0em 1ex 0em ; |
| 3116 |
line-height: 1.3; |
| 3117 |
} |
| 3118 |
|
| 3119 |
div.titlepage { |
| 3120 |
text-align: center ; |
| 3121 |
} |
| 3122 |
|
| 3123 |
.footnotes { |
| 3124 |
text-align: left ; |
| 3125 |
font-size: .85em ; |
| 3126 |
margin: 3ex 2em 0ex 2em ; |
| 3127 |
border-top: 1px solid silver ; |
| 3128 |
} |
| 3129 |
|
| 3130 |
.marginpar, .marginparblock { |
| 3131 |
max-width: 50%; |
| 3132 |
float: right ; |
| 3133 |
clear: both ; |
| 3134 |
text-align: left ; |
| 3135 |
margin: 1ex 0.5em 1ex 1em ; |
| 3136 |
padding: 1ex 0.5em 1ex 0.5em ; |
| 3137 |
font-size: 85% ; |
| 3138 |
border-top: 1px solid silver ; |
| 3139 |
border-bottom: 1px solid silver ; |
| 3140 |
overflow-x: auto ; |
| 3141 |
} |
| 3142 |
|
| 3143 |
.marginpar br { margin-bottom: 2ex ; } |
| 3144 |
|
| 3145 |
div.marginblock, div.marginparblock { |
| 3146 |
max-width:50%; |
| 3147 |
min-width: 10em; /* room for caption */ |
| 3148 |
float:right; |
| 3149 |
text-align:left; |
| 3150 |
margin: 1ex 0.5em 1ex 1em ; |
| 3151 |
padding: 1ex 0.5em 1ex 0.5em ; |
| 3152 |
overflow-x: auto; |
| 3153 |
} |
| 3154 |
|
| 3155 |
div.marginblock div.minipage, |
| 3156 |
div.marginparblock div.minipage { |
| 3157 |
display: inline-block ; |
| 3158 |
margin: 0pt auto 0pt auto ; |
| 3159 |
} |
| 3160 |
|
| 3161 |
div.marginblock div.minipage p , |
| 3162 |
div.marginparblock div.minipage p |
| 3163 |
{ font-size: 85%} |
| 3164 |
|
| 3165 |
div.marginblock br , |
| 3166 |
div.marginparblock br |
| 3167 |
{ margin-bottom: 2ex ; } |
| 3168 |
|
| 3169 |
section.textbody div.footnotes{ |
| 3170 |
margin: 1ex 2em 2ex 2em ; |
| 3171 |
border-bottom: 2px solid silver ; |
| 3172 |
} |
| 3173 |
|
| 3174 |
.footnoteheader { |
| 3175 |
border-top: 2px solid silver ; |
| 3176 |
margin-top: 3ex ; |
| 3177 |
padding-top: 1ex ; |
| 3178 |
font-weight: bold ; |
| 3179 |
} |
| 3180 |
|
| 3181 |
.mpfootnotes { |
| 3182 |
text-align: left ; |
| 3183 |
font-size: .85em ; |
| 3184 |
margin-left: 1em ; |
| 3185 |
border-top: 1px solid silver ; |
| 3186 |
} |
| 3187 |
|
| 3188 |
/* Remove footnote top border in the title page. */ |
| 3189 |
div.titlepage div.mpfootnotes { |
| 3190 |
border-top: none ; |
| 3191 |
} |
| 3192 |
|
| 3193 |
ul, ol { |
| 3194 |
margin: 1ex 1em 1ex 0em; |
| 3195 |
line-height: 1.2; |
| 3196 |
} |
| 3197 |
|
| 3198 |
body dir, body menu { |
| 3199 |
margin: 3ex 1em 3ex 0em; |
| 3200 |
line-height: 1.2; |
| 3201 |
} |
| 3202 |
|
| 3203 |
li { margin: 0ex 0em 1ex 0em; } |
| 3204 |
|
| 3205 |
li.p { |
| 3206 |
display: inline ; |
| 3207 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 3208 |
text-indent: 0em; |
| 3209 |
} |
| 3210 |
|
| 3211 |
html { |
| 3212 |
margin: 0; |
| 3213 |
padding: 0; |
| 3214 |
} |
| 3215 |
|
| 3216 |
.programlisting { |
| 3217 |
font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console", |
| 3218 |
"Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono", |
| 3219 |
"Courier New", monospace; |
| 3220 |
margin: 1ex 0ex 1ex 0ex ; |
| 3221 |
padding: .5ex 0pt .5ex 0pt ; |
| 3222 |
overflow-x: auto; |
| 3223 |
} |
| 3224 |
|
| 3225 |
section.textbody>pre.programlisting { |
| 3226 |
border-top: 1px solid silver ; |
| 3227 |
border-bottom: 1px solid silver ; |
| 3228 |
} |
| 3229 |
|
| 3230 |
div.displaymath { |
| 3231 |
text-align: center ; |
| 3232 |
} |
| 3233 |
|
| 3234 |
div.displaymathnumbered { |
| 3235 |
text-align: right ; |
| 3236 |
margin-left: 5% ; |
| 3237 |
margin-right: 5% ; |
| 3238 |
min-width: 2.5in ; |
| 3239 |
} |
| 3240 |
|
| 3241 |
@media all and (min-width: 400px) { |
| 3242 |
div.displaymathnumbered { |
| 3243 |
margin-left: 10% ; |
| 3244 |
margin-right: 10% ; |
| 3245 |
} |
| 3246 |
} |
| 3247 |
|
| 3248 |
@media all and (min-width: 800px) { |
| 3249 |
div.displaymathnumbered { |
| 3250 |
margin-right: 20% ; |
| 3251 |
} |
| 3252 |
} |
| 3253 |
|
| 3254 |
@media all and (min-width: 1200px) { |
| 3255 |
div.displaymathnumbered { |
| 3256 |
margin-right: 30% ; |
| 3257 |
} |
| 3258 |
} |
| 3259 |
|
| 3260 |
.inlineprogramlisting { |
| 3261 |
font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console", |
| 3262 |
"Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono", |
| 3263 |
"Courier New", monospace; |
| 3264 |
overflow-x: auto; |
| 3265 |
} |
| 3266 |
|
| 3267 |
span.listinglabel { |
| 3268 |
display: inline-block ; |
| 3269 |
font-size: 70% ; |
| 3270 |
width: 4em ; |
| 3271 |
text-align: right ; |
| 3272 |
margin-right: 2em ; |
| 3273 |
} |
| 3274 |
|
| 3275 |
div.abstract { |
| 3276 |
margin: 2em 5% 2em 5% ; |
| 3277 |
padding: 1ex 1em 1ex 1em ; |
| 3278 |
/* font-weight: bold ; */ |
| 3279 |
font-size: 90% ; |
| 3280 |
text-align: left ; |
| 3281 |
} |
| 3282 |
|
| 3283 |
div.abstract dl {line-height:1.5;} |
| 3284 |
div.abstract dt {color:#304070;} |
| 3285 |
|
| 3286 |
div.abstracttitle{ |
| 3287 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 3288 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 3289 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 3290 |
font-weight:bold; |
| 3291 |
font-size:1.25em; |
| 3292 |
text-align: center ; |
| 3293 |
} |
| 3294 |
|
| 3295 |
span.abstractrunintitle{ |
| 3296 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 3297 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 3298 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 3299 |
font-weight:bold; |
| 3300 |
} |
| 3301 |
|
| 3302 |
.verbatim { |
| 3303 |
overflow-x: auto ; |
| 3304 |
} |
| 3305 |
|
| 3306 |
.alltt { |
| 3307 |
overflow-x: auto ; |
| 3308 |
} |
| 3309 |
|
| 3310 |
.bverbatim { |
| 3311 |
margin: 1ex 0pt 1ex 0pt ; |
| 3312 |
padding: .5ex 0pt .5ex 0pt ; |
| 3313 |
overflow-x: auto ; |
| 3314 |
} |
| 3315 |
|
| 3316 |
.lverbatim { |
| 3317 |
margin: 1ex 0pt 1ex 0pt ; |
| 3318 |
padding: .5ex 0pt .5ex 0pt ; |
| 3319 |
overflow-x: auto ; |
| 3320 |
} |
| 3321 |
|
| 3322 |
.fancyvrb { |
| 3323 |
margin: 3ex 0pt 3ex 0pt ; |
| 3324 |
font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console", |
| 3325 |
"Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono", |
| 3326 |
"Courier New", monospace; |
| 3327 |
} |
| 3328 |
|
| 3329 |
.fancyvrblabel { |
| 3330 |
font-size: .85em ; |
| 3331 |
text-align: center ; |
| 3332 |
font-weight: bold ; |
| 3333 |
margin-top: 1ex ; |
| 3334 |
margin-bottom: 1ex ; |
| 3335 |
} |
| 3336 |
|
| 3337 |
.verse { |
| 3338 |
font-family: "Linux Libertine Mono O", "Lucida Console", |
| 3339 |
"Droid Sans Mono", "DejaVu Mono", "Bitstream Vera Mono", |
| 3340 |
"Liberation Mono", "FreeMono", "Andale Mono", |
| 3341 |
"Nimbus Mono L", "Courier New", monospace; |
| 3342 |
margin-left: 1em ; |
| 3343 |
} |
| 3344 |
|
| 3345 |
div.singlespace { line-height: 1.2 ; } |
| 3346 |
div.onehalfspace { line-height: 1.5 ; } |
| 3347 |
div.doublespace { line-height: 2 ; } |
| 3348 |
|
| 3349 |
/* Word processor format output: */ |
| 3350 |
div.wpfigure { border: 1px solid red ; margin: .5ex ; padding: .5ex ; } |
| 3351 |
div.wptable { border: 1px solid blue ; margin: .5ex ; padding: .5ex ; } |
| 3352 |
div.wpminipage { border: 1px solid green ; margin: .5ex ; padding: .5ex ;} |
| 3353 |
|
| 3354 |
/* Minipage environments, vertically aligned to top, center, bottom: */ |
| 3355 |
.minipage, .fminipage, .fcolorminipage { |
| 3356 |
/* display: inline-block ; */ |
| 3357 |
/* Mini pages which follow each other will be tiled. */ |
| 3358 |
text-align:left; |
| 3359 |
margin: .25em .25em .25em .25em; |
| 3360 |
padding: .25em .25em .25em .25em; |
| 3361 |
display: inline-flex; |
| 3362 |
flex-direction: column ; |
| 3363 |
overflow: auto; |
| 3364 |
} |
| 3365 |
|
| 3366 |
.inlineminipage { |
| 3367 |
display: inline-block ; |
| 3368 |
text-align: left |
| 3369 |
} |
| 3370 |
|
| 3371 |
/* Paragraphs in the flexbox did not collapse their margins. */ |
| 3372 |
/* Have not yet researched this. */ |
| 3373 |
.minipage p {margin: .75ex 0em .75ex 0em ; text-indent: 0em ; } |
| 3374 |
|
| 3375 |
.fboxBlock .minipage, .colorbox .minipage, .colorboxBlock .minipage, |
| 3376 |
.fcolorbox .minipage, .fcolorboxBlock .minipage |
| 3377 |
{border: none ; background: none;} |
| 3378 |
|
| 3379 |
.fbox, .fboxBlock { border: 1px solid black ; padding: 4pt } |
| 3380 |
|
| 3381 |
.fbox, .fboxBlock, .fcolorbox, .fcolorboxBlock, .colorbox, .colorboxBlock, |
| 3382 |
.fminipage, .fcolorminipage |
| 3383 |
{display: inline-block} |
| 3384 |
|
| 3385 |
.shadowbox, .shabox { |
| 3386 |
border: 1px solid black; |
| 3387 |
box-shadow: 3px 3px 3px #808080 ; |
| 3388 |
border-radius: 0px ; |
| 3389 |
padding: .4ex .3em .4ex .3em ; |
| 3390 |
margin: 0pt .3ex 0pt .3ex ; |
| 3391 |
display: inline-block ; |
| 3392 |
} |
| 3393 |
|
| 3394 |
.doublebox { |
| 3395 |
border: 3px double black; |
| 3396 |
border-radius: 0px ; |
| 3397 |
padding: .4ex .3em .4ex .3em ; |
| 3398 |
margin: 0pt .3ex 0pt .3ex ; |
| 3399 |
display: inline-block ; |
| 3400 |
} |
| 3401 |
|
| 3402 |
.ovalbox, .Ovalbox { |
| 3403 |
border: 1px solid black; |
| 3404 |
border-radius: 1ex ; |
| 3405 |
padding: .4ex .3em .4ex .3em ; |
| 3406 |
margin: 0pt .3ex 0pt .3ex ; |
| 3407 |
display: inline-block ; |
| 3408 |
} |
| 3409 |
|
| 3410 |
.Ovalbox { border-width: 2px ; } |
| 3411 |
|
| 3412 |
.framebox { |
| 3413 |
border: 1px solid black; |
| 3414 |
border-radius: 0px ; |
| 3415 |
padding: .3ex .2em 0ex .2em ; |
| 3416 |
margin: 0pt .1ex 0pt .1ex ; |
| 3417 |
display: inline-block ; |
| 3418 |
} |
| 3419 |
|
| 3420 |
/* mdframed, tcolorbox, shadebox packages */ |
| 3421 |
.mdframed, .tcolorbox, .shadebox { |
| 3422 |
padding: 0ex ; |
| 3423 |
margin: 2ex 0em 2ex 0em ; |
| 3424 |
border: 1px solid black ; |
| 3425 |
} |
| 3426 |
|
| 3427 |
.tcolorbox { |
| 3428 |
border-radius: 10pt ; |
| 3429 |
margin: 2ex 1em 2ex 1em ; |
| 3430 |
} |
| 3431 |
|
| 3432 |
.mdframed p, .tcolorbox p { |
| 3433 |
padding: 0ex .5em 0ex .5em ; |
| 3434 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 3435 |
text-indent: 0em ; |
| 3436 |
} |
| 3437 |
|
| 3438 |
.mdframed dl, .tcolorbox dl { padding: 1ex .5em 0ex .5em ; } |
| 3439 |
|
| 3440 |
.mdframedtitle, .tcolorboxtitle { |
| 3441 |
padding: .5ex 0pt 0pt 0pt ; |
| 3442 |
border-radius: 10pt 10pt 0pt 0pt ; |
| 3443 |
display: block ; |
| 3444 |
margin-bottom: 1ex ; |
| 3445 |
border-bottom: 1px solid silver ; |
| 3446 |
} |
| 3447 |
|
| 3448 |
.tcolorboxsubtitle .tcolorbox { |
| 3449 |
margin: 2ex 0em 2ex 0em ; |
| 3450 |
border-radius: 0pt ; |
| 3451 |
} |
| 3452 |
|
| 3453 |
.mdframedsubtitle { |
| 3454 |
display: block ; |
| 3455 |
} |
| 3456 |
|
| 3457 |
.mdframedsubsubtitle { |
| 3458 |
display: block ; |
| 3459 |
} |
| 3460 |
|
| 3461 |
.mdtheorem { |
| 3462 |
padding: 0ex .5em 0ex .5em ; |
| 3463 |
margin: 3ex 5% 3ex 5% ; |
| 3464 |
} |
| 3465 |
|
| 3466 |
/* framed package */ |
| 3467 |
.framed, pre.boxedverbatim, fcolorbox { |
| 3468 |
margin: 3ex 0em 3ex 0em ; |
| 3469 |
border: 1px solid black; |
| 3470 |
border-radius: 0px ; |
| 3471 |
padding: .3ex 1em 0ex 1em ; |
| 3472 |
display: block ; |
| 3473 |
} |
| 3474 |
|
| 3475 |
.shaded { |
| 3476 |
margin: 3ex 0em 3ex 0em ; |
| 3477 |
padding: .3ex 1em .3ex 1em ; |
| 3478 |
display: block ; |
| 3479 |
} |
| 3480 |
|
| 3481 |
.snugframed { |
| 3482 |
margin: 3ex 0em 3ex 0em ; |
| 3483 |
border: 1px solid black; |
| 3484 |
border-radius: 0px ; |
| 3485 |
display: block ; |
| 3486 |
} |
| 3487 |
|
| 3488 |
.framedleftbar { |
| 3489 |
margin: 3ex 0em 3ex 0em ; |
| 3490 |
border-left: 3pt solid black; |
| 3491 |
border-radius: 0px ; |
| 3492 |
padding: .3ex .2em .3ex 1em ; |
| 3493 |
display: block ; |
| 3494 |
} |
| 3495 |
|
| 3496 |
.framedtitle { |
| 3497 |
margin: 0em ; |
| 3498 |
padding: 0em ; |
| 3499 |
font-size: 130% |
| 3500 |
} |
| 3501 |
|
| 3502 |
.framedtitle p { |
| 3503 |
padding: .3em ; |
| 3504 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 3505 |
text-indent: 0em ; |
| 3506 |
} |
| 3507 |
|
| 3508 |
/* For the niceframe package: */ |
| 3509 |
|
| 3510 |
div.niceframe, div.curlyframe, div.artdecoframe, div.generalframe { |
| 3511 |
padding: 1ex ; |
| 3512 |
margin: 2ex auto ; |
| 3513 |
border-radius: 2ex ; |
| 3514 |
} |
| 3515 |
|
| 3516 |
div.niceframe { |
| 3517 |
border: 6px groove black ; |
| 3518 |
} |
| 3519 |
|
| 3520 |
div.curlyframe { |
| 3521 |
border-left: 3px dotted black ; |
| 3522 |
border-right: 3px dotted black ; |
| 3523 |
border-radius: 6ex ; |
| 3524 |
} |
| 3525 |
|
| 3526 |
div.artdecoframe { |
| 3527 |
border-left: 10px double black ; |
| 3528 |
border-right: 10px double black ; |
| 3529 |
border-radius: 6ex ; |
| 3530 |
} |
| 3531 |
|
| 3532 |
div.generalframe { |
| 3533 |
border: 6px groove black ; |
| 3534 |
} |
| 3535 |
|
| 3536 |
/* For beamerarticle: */ |
| 3537 |
div.beamerframe { |
| 3538 |
margin: 3ex 1em 3ex 1em ; |
| 3539 |
border: 1px solid gray; |
| 3540 |
border-radius: 0px ; |
| 3541 |
padding: .3ex 1em 0ex 1em ; |
| 3542 |
display: block ; |
| 3543 |
} |
| 3544 |
|
| 3545 |
dl { |
| 3546 |
margin: 1ex 2em 1ex 0em; |
| 3547 |
line-height: 1.3; |
| 3548 |
} |
| 3549 |
|
| 3550 |
li dl { margin-left: 2em } |
| 3551 |
|
| 3552 |
dl dt { |
| 3553 |
display: block ; |
| 3554 |
float:left ; |
| 3555 |
font-weight: bold; |
| 3556 |
padding-right: 1em ; |
| 3557 |
} |
| 3558 |
|
| 3559 |
dl dd { display: block ; } |
| 3560 |
|
| 3561 |
dl dd:after { content: "" ; display: block ; clear: both } |
| 3562 |
|
| 3563 |
dl dd p { |
| 3564 |
margin: 0ex 0em 1.5ex 0em ; |
| 3565 |
text-indent: 0em ; |
| 3566 |
} |
| 3567 |
|
| 3568 |
dd ul, dd ol, dd dl { |
| 3569 |
clear: both ; |
| 3570 |
/* padding-top: 1ex ; */ |
| 3571 |
} |
| 3572 |
|
| 3573 |
nav { |
| 3574 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 3575 |
"DejaVu Sans", "Bitstream Vera Sans", |
| 3576 |
Geneva, Verdana, sans-serif ; |
| 3577 |
margin-bottom: 4ex ; |
| 3578 |
} |
| 3579 |
|
| 3580 |
nav p { |
| 3581 |
line-height: 1.2 ; |
| 3582 |
margin-top:.5ex ; |
| 3583 |
margin-bottom:.5ex; |
| 3584 |
font-size: .9em ; |
| 3585 |
text-indent: 0em ; |
| 3586 |
} |
| 3587 |
|
| 3588 |
img, img.hyperimage, img.borderimage { |
| 3589 |
max-width: 600px; |
| 3590 |
border: 1px solid silver; |
| 3591 |
box-shadow: 3px 3px 3px #808080 ; |
| 3592 |
padding: .5% ; |
| 3593 |
margin: .5% ; |
| 3594 |
background: none ; |
| 3595 |
} |
| 3596 |
|
| 3597 |
img.inlineimage{ |
| 3598 |
padding: 0px ; |
| 3599 |
box-shadow: none ; |
| 3600 |
border: none ; |
| 3601 |
background: none ; |
| 3602 |
margin: 0px ; |
| 3603 |
display: inline-block ; |
| 3604 |
border-radius: 0px ; |
| 3605 |
} |
| 3606 |
|
| 3607 |
img.logoimage{ |
| 3608 |
max-width: 300px ; |
| 3609 |
box-shadow: 3px 3px 3px #808080 ; |
| 3610 |
border: 1px solid black ; |
| 3611 |
background:none ; |
| 3612 |
padding:0 ; |
| 3613 |
margin:.5ex ; |
| 3614 |
border-radius: 10px ; |
| 3615 |
} |
| 3616 |
|
| 3617 |
.section { |
| 3618 |
/* |
| 3619 |
To have each section float relative to each other: |
| 3620 |
*/ |
| 3621 |
/* |
| 3622 |
display: block ; |
| 3623 |
float: left ; |
| 3624 |
position: relative ; |
| 3625 |
background: white ; |
| 3626 |
border: 1px solid silver ; |
| 3627 |
padding: .5em ; |
| 3628 |
*/ |
| 3629 |
margin: 0ex .5em 0ex .5em ; |
| 3630 |
padding: 0 ; |
| 3631 |
} |
| 3632 |
|
| 3633 |
figure { |
| 3634 |
margin: 5ex auto 5ex auto ; |
| 3635 |
padding: 1ex 1em 1ex 1em ; |
| 3636 |
overflow-x: auto ; |
| 3637 |
} |
| 3638 |
|
| 3639 |
/* To automatically center images in figures: */ |
| 3640 |
/* |
| 3641 |
figure img.inlineimage { |
| 3642 |
margin: 0ex auto 0ex auto ; |
| 3643 |
display: block ; |
| 3644 |
} |
| 3645 |
*/ |
| 3646 |
|
| 3647 |
/* To automatically center minipages in figures: */ |
| 3648 |
/* |
| 3649 |
figure div.minipage, figure div.minipage div.minipage { |
| 3650 |
margin: 1ex auto 1ex auto ; |
| 3651 |
display: block ; |
| 3652 |
} |
| 3653 |
*/ |
| 3654 |
|
| 3655 |
figure figure { margin: 0pt } |
| 3656 |
|
| 3657 |
figure div.minipage p { |
| 3658 |
font-size: 85% ; |
| 3659 |
margin: 1.5ex 0em 1.5ex 0em ; |
| 3660 |
text-indent: 0em ; |
| 3661 |
} |
| 3662 |
|
| 3663 |
figure.subfigure, figure.subtable { |
| 3664 |
display: inline-block ; margin: 3ex 1em 3ex 1em ; |
| 3665 |
} |
| 3666 |
|
| 3667 |
div.figurecaption .minipage { margin:0 ; padding: 0 } |
| 3668 |
|
| 3669 |
/* for subcaptions: */ |
| 3670 |
figure div.minipage div.figurecaption { |
| 3671 |
max-width: 100% ; /* fallback if min() does not work */ |
| 3672 |
max-width: min(30em,100%) |
| 3673 |
} |
| 3674 |
|
| 3675 |
div.minipage figure { border: none ; box-shadow: none ; } |
| 3676 |
div.minipage figure.table { margin: 0ex } |
| 3677 |
div.minipage div.footnotes { margin: 1ex 2em 0ex 2em } |
| 3678 |
|
| 3679 |
div.floatrow { text-align: center; } |
| 3680 |
|
| 3681 |
div.floatrow figure { display: inline-block ; margin: 1ex 2% ; } |
| 3682 |
|
| 3683 |
div.floatfoot { font-size: .85em ; |
| 3684 |
border-top: 1px solid silver ; line-height: 1.2 ; } |
| 3685 |
|
| 3686 |
/* Center if only one line, "start" align if more than one line: */ |
| 3687 |
div.figurecaption , .lstlistingtitle { |
| 3688 |
font-size: .85em ; |
| 3689 |
font-weight: bold ; |
| 3690 |
text-align: start ; |
| 3691 |
margin: 1ex auto; |
| 3692 |
width: max-content; |
| 3693 |
max-width: 100%; |
| 3694 |
} |
| 3695 |
|
| 3696 |
/* A marginblock is small, so always center and don't mess with the width. */ |
| 3697 |
div.marginblock div.figurecaption { |
| 3698 |
width: 100% ; |
| 3699 |
text-align: center ; |
| 3700 |
} |
| 3701 |
|
| 3702 |
figure.subfigure div.figurecaption, figure.subtable div.figurecaption { |
| 3703 |
border-bottom: none ; background: none ; |
| 3704 |
} |
| 3705 |
|
| 3706 |
div.nonfloatcaption { |
| 3707 |
margin: 1ex auto 1ex auto ; |
| 3708 |
font-size: .85em ; |
| 3709 |
text-align: center ; |
| 3710 |
font-weight: bold ; |
| 3711 |
} |
| 3712 |
|
| 3713 |
/* For a \RawCaption inside a minipage inside a figure's floatrow: */ |
| 3714 |
figure div.floatrow div.minipage div.figurecaption { |
| 3715 |
border: none ; |
| 3716 |
background: none ; |
| 3717 |
} |
| 3718 |
|
| 3719 |
/* For packages such as float, rotfloat, and algorithm2e: */ |
| 3720 |
|
| 3721 |
figure.boxed, figure.boxruled { |
| 3722 |
border: 1px solid black ; |
| 3723 |
} |
| 3724 |
|
| 3725 |
figure.ruled { |
| 3726 |
border-top: 1px solid black ; |
| 3727 |
border-bottom: 1px solid black ; |
| 3728 |
border-left: 0px ; |
| 3729 |
border-right: 0px ; |
| 3730 |
border-radius: 0px ; |
| 3731 |
background: none ; |
| 3732 |
box-shadow: none ; |
| 3733 |
} |
| 3734 |
|
| 3735 |
figure.ruled div.figurecaption, figure.boxruled div.figurecaption { |
| 3736 |
border-top: 1px solid silver ; |
| 3737 |
border-bottom: 1px solid silver ; |
| 3738 |
} |
| 3739 |
|
| 3740 |
table { |
| 3741 |
margin: 1ex auto 1ex auto ; |
| 3742 |
border-collapse: separate ; |
| 3743 |
border-spacing: 0px ; |
| 3744 |
line-height: 1.3 ; |
| 3745 |
} |
| 3746 |
|
| 3747 |
table > tbody > tr.hline > td {border-top: 1px solid #808080 ; margin-top: 0ex ; |
| 3748 |
margin-bottom: 0ex ; } /* for \hline */ |
| 3749 |
|
| 3750 |
tr.tbrule td {border-top: 1px solid black ; margin-top: 0ex ; |
| 3751 |
margin-bottom: 0ex ; } /* for \toprule, \bottomrule */ |
| 3752 |
|
| 3753 |
td {padding: .5ex .5em .5ex .5em ;} |
| 3754 |
|
| 3755 |
table td.tdl { text-align: left ; vertical-align: middle ; } |
| 3756 |
table td.tdc { text-align: center ; vertical-align: middle ; } |
| 3757 |
table td.tdat { text-align: center ; vertical-align: middle ; padding: 0px ; margin: 0px ; } |
| 3758 |
table td.tdbang { text-align: center ; vertical-align: middle ; } |
| 3759 |
table td.tdr { text-align: right ; vertical-align: middle ; } |
| 3760 |
table td.tdp { text-align: left ; vertical-align: bottom ; } |
| 3761 |
table td.tdm { text-align: left ; vertical-align: middle ; } |
| 3762 |
table td.tdb { text-align: left ; vertical-align: top ; } |
| 3763 |
|
| 3764 |
table td.tvertbarl { border-left: 1px solid black } |
| 3765 |
table td.tvertbarldouble { border-left: 4px double black } |
| 3766 |
table td.tvertbarr { border-right: 1px solid black } |
| 3767 |
table td.tvertbarrdouble { border-right: 4px double black } |
| 3768 |
|
| 3769 |
table td.tvertbarldash { border-left: 1px dashed black } |
| 3770 |
table td.tvertbarldoubledash { border-left: 2px dashed black } |
| 3771 |
table td.tvertbarrdash { border-right: 1px dashed black } |
| 3772 |
table td.tvertbarrdoubledash { border-right: 2px dashed black } |
| 3773 |
|
| 3774 |
table td.tdcenter { text-align: center} |
| 3775 |
table td.tdleft { text-align: left} |
| 3776 |
table td.tdright { text-align: right} |
| 3777 |
|
| 3778 |
/* for cmidrules: */ |
| 3779 |
table td.tdrule { |
| 3780 |
border-top: 1px solid #A0A0A0 ; |
| 3781 |
} |
| 3782 |
|
| 3783 |
table td.tdrulel { |
| 3784 |
border-top-left-radius:.5em ; |
| 3785 |
border-top: 1px solid #A0A0A0 ; |
| 3786 |
} |
| 3787 |
|
| 3788 |
table td.tdruler { |
| 3789 |
border-top-right-radius:.5em ; |
| 3790 |
border-top: 1px solid #A0A0A0 ; |
| 3791 |
} |
| 3792 |
|
| 3793 |
table td.tdrulelr { |
| 3794 |
border-top-left-radius:.5em ; |
| 3795 |
border-top-right-radius:.5em ; |
| 3796 |
border-top: 1px solid #A0A0A0 ; |
| 3797 |
} |
| 3798 |
|
| 3799 |
/* Margins of paragraphs inside table cells: */ |
| 3800 |
td.tdp p , td.tdprule p , td.tdP p , td.tdPrule p { |
| 3801 |
padding-top: 1ex ; |
| 3802 |
padding-bottom: 1ex ; |
| 3803 |
margin: 0ex ; |
| 3804 |
text-indent: 0em ; |
| 3805 |
} |
| 3806 |
td.tdm p , td.tmbrule p , td.tdM p , td.tdMrule p { |
| 3807 |
padding-top: 1ex ; |
| 3808 |
padding-bottom: 1ex ; |
| 3809 |
margin: 0ex ; |
| 3810 |
text-indent: 0em ; |
| 3811 |
} |
| 3812 |
td.tdb p , td.tdbrule p , td.tdB p , td.tdBrule p { |
| 3813 |
padding-top: 1ex ; |
| 3814 |
padding-bottom: 1ex ; |
| 3815 |
margin: 0ex ; |
| 3816 |
text-indent: 0em ; |
| 3817 |
} |
| 3818 |
|
| 3819 |
td.tdp , td.tdprule , td.tdP , td.tdPrule |
| 3820 |
{ padding: 0ex .5em 0ex .5em ; } |
| 3821 |
td.tdm , td.tdmrule , td.tdM , td.tdMrule |
| 3822 |
{ padding: 0ex .5em 0ex .5em ; } |
| 3823 |
td.tdb , td.tdbrule , td.tdB , td.tdBrule |
| 3824 |
{ padding: 0ex .5em 0ex .5em ; } |
| 3825 |
|
| 3826 |
/* table notes: */ |
| 3827 |
.tnotes { |
| 3828 |
margin: 0ex 5% 1ex 5% ; |
| 3829 |
padding: 0.5ex 1em 0.5ex 1em; |
| 3830 |
font-size:.80em; |
| 3831 |
text-align: left ; |
| 3832 |
} |
| 3833 |
|
| 3834 |
.minipage .tnotes { |
| 3835 |
margin: 0pt ; |
| 3836 |
padding: 0pt ; |
| 3837 |
} |
| 3838 |
|
| 3839 |
.tnotes dl dt p { |
| 3840 |
margin-bottom:0px; |
| 3841 |
text-indent: 0em ; |
| 3842 |
} |
| 3843 |
|
| 3844 |
.tnoteitemheader {margin-right: 1em;} |
| 3845 |
|
| 3846 |
/* for colortbl and cell color */ |
| 3847 |
div.cellcolor { |
| 3848 |
width: 100% ; |
| 3849 |
padding: .5ex .5em .5ex .5em ; |
| 3850 |
margin: -.5ex -.5em -.5ex -.5em ; |
| 3851 |
} |
| 3852 |
|
| 3853 |
/* for lyluatex */ |
| 3854 |
span.lyluatex { |
| 3855 |
display: inline-block ; |
| 3856 |
} |
| 3857 |
|
| 3858 |
div.lyluatex p span.lateximagesource img { |
| 3859 |
display: block ; |
| 3860 |
margin-top: 3ex ; |
| 3861 |
margin-bottom: 3ex ; |
| 3862 |
} |
| 3863 |
|
| 3864 |
/* for bigdelim */ |
| 3865 |
.ldelim, .rdelim { font-size: 200% } |
| 3866 |
|
| 3867 |
/* center, flushleft, flushright environments */ |
| 3868 |
div.center{text-align:center;} |
| 3869 |
div.center table {margin-left:auto;margin-right:auto;} |
| 3870 |
div.flushleft{text-align:left;} |
| 3871 |
div.flushleft table {margin-left:0em ; margin-right:auto;} |
| 3872 |
div.flushright{text-align:right;} |
| 3873 |
div.flushright table {margin-left:auto ; margin-right: 0em ;} |
| 3874 |
|
| 3875 |
/* Fancybox */ |
| 3876 |
div.Btrivlist table tr td { |
| 3877 |
padding: .2ex 0em ; |
| 3878 |
} |
| 3879 |
|
| 3880 |
/* program listing callouts: */ |
| 3881 |
span.callout { |
| 3882 |
font-family: "DejaVu Sans", "Bitstream Vera Sans", |
| 3883 |
Geneva, Verdana, sans-serif ; |
| 3884 |
border-radius: .5em; |
| 3885 |
background-color:black; |
| 3886 |
color:white; |
| 3887 |
padding:0px .25em 0px .25em; |
| 3888 |
margin: 0 ; |
| 3889 |
font-weight: bold; |
| 3890 |
font-size:.72em ; |
| 3891 |
} |
| 3892 |
|
| 3893 |
div.programlisting pre.verbatim span.callout{ |
| 3894 |
font-size: .85em ; |
| 3895 |
} |
| 3896 |
|
| 3897 |
span.verbatim, span.verb { |
| 3898 |
font-family: "DejaVu Mono", "Bitstream Vera Mono", "Lucida Console", |
| 3899 |
"Nimbus Mono L", "Liberation Mono", "FreeMono", "Andale Mono", |
| 3900 |
"Courier New", monospace; |
| 3901 |
} |
| 3902 |
|
| 3903 |
div.titlehead |
| 3904 |
{ |
| 3905 |
text-align: left ; |
| 3906 |
font-style: normal ; |
| 3907 |
font-weight: normal ; |
| 3908 |
font-style: normal ; |
| 3909 |
font-size: .8em ; |
| 3910 |
margin: 1ex 0em 1ex 0em ; |
| 3911 |
} |
| 3912 |
|
| 3913 |
div.subject |
| 3914 |
{ |
| 3915 |
text-align: center ; |
| 3916 |
font-style: normal ; |
| 3917 |
font-weight: bold ; |
| 3918 |
font-style: normal ; |
| 3919 |
font-size: .8em ; |
| 3920 |
margin: 1ex 0em 1ex 0em ; |
| 3921 |
} |
| 3922 |
|
| 3923 |
div.published |
| 3924 |
{ |
| 3925 |
text-align: center ; |
| 3926 |
font-variant: normal ; |
| 3927 |
font-style: italic ; |
| 3928 |
font-size: 1em ; |
| 3929 |
margin: 1ex 0em 1ex 0em ; |
| 3930 |
} |
| 3931 |
|
| 3932 |
div.subtitle |
| 3933 |
{ |
| 3934 |
text-align: center ; |
| 3935 |
font-variant: normal ; |
| 3936 |
font-style: italic ; |
| 3937 |
font-size: 1.25em ; |
| 3938 |
margin: 1ex 0em 1ex 0em ; |
| 3939 |
} |
| 3940 |
|
| 3941 |
div.subtitle p { |
| 3942 |
margin: 1ex ; |
| 3943 |
text-indent: 0em; |
| 3944 |
} |
| 3945 |
|
| 3946 |
div.author |
| 3947 |
{ |
| 3948 |
text-align: center ; |
| 3949 |
font-variant: normal ; |
| 3950 |
font-style: normal ; |
| 3951 |
font-size: 1em ; |
| 3952 |
margin: 1ex 0em 1ex 0em ; |
| 3953 |
} |
| 3954 |
|
| 3955 |
div.oneauthor { |
| 3956 |
display: inline-block ; |
| 3957 |
margin: 0ex 1em 0ex 1em ; |
| 3958 |
} |
| 3959 |
|
| 3960 |
/* |
| 3961 |
div.author table { |
| 3962 |
margin: 1ex auto 0ex auto ; |
| 3963 |
background: none ; |
| 3964 |
} |
| 3965 |
|
| 3966 |
div.author table tbody tr td { padding: .25ex ; } |
| 3967 |
*/ |
| 3968 |
|
| 3969 |
span.affiliation {font-size: .85em ; font-variant: small-caps; } |
| 3970 |
|
| 3971 |
div.titledate { |
| 3972 |
text-align: center ; |
| 3973 |
font-size: .85em ; |
| 3974 |
font-style: italic; |
| 3975 |
margin: 1ex 0em 1ex 0em ; |
| 3976 |
} |
| 3977 |
|
| 3978 |
/* for \LinkHome, \LinkPrevious, and \LinkNext: */ |
| 3979 |
a.linkhome { font-weight:bold ; font-size: 1em ;} |
| 3980 |
|
| 3981 |
div.lateximagesource { padding: 0px ; margin: 0px ; display: none; } |
| 3982 |
|
| 3983 |
img.lateximage{ |
| 3984 |
padding: 0pt ; |
| 3985 |
margin: 0pt ; |
| 3986 |
box-shadow: none ; |
| 3987 |
border: none ; |
| 3988 |
background: none ; |
| 3989 |
max-width: 100% ; |
| 3990 |
border-radius: 0ex ; |
| 3991 |
border: none ; |
| 3992 |
} |
| 3993 |
|
| 3994 |
section.textbody { margin: 0ex 1em 0ex 1em ;} |
| 3995 |
|
| 3996 |
div.multicolsheading { -webkit-column-span: all; |
| 3997 |
-moz-column-span: all; column-span: all; } |
| 3998 |
div.multicols { |
| 3999 |
-webkit-columns: 3 auto ; |
| 4000 |
-moz-columns: 3 auto ; |
| 4001 |
columns: 3 auto ; |
| 4002 |
} |
| 4003 |
div.multicols p { |
| 4004 |
margin-top: 0ex ; |
| 4005 |
text-indent: 0em ; |
| 4006 |
} |
| 4007 |
|
| 4008 |
/* Used for xfrac and nicefrac: */ |
| 4009 |
span.numerator { |
| 4010 |
font-size: 60% ; |
| 4011 |
vertical-align: .4em ; |
| 4012 |
} |
| 4013 |
|
| 4014 |
span.denominator { |
| 4015 |
font-size: 60% |
| 4016 |
} |
| 4017 |
|
| 4018 |
/* Used for algorithm2e: */ |
| 4019 |
div.alg2evline{ |
| 4020 |
margin-left: 1em ; |
| 4021 |
padding-left: 1em ; |
| 4022 |
border-left: 1px solid black ; |
| 4023 |
border-radius: 0px 0px 0px 1ex ; |
| 4024 |
} |
| 4025 |
|
| 4026 |
div.alg2evsline{ |
| 4027 |
margin-left: 1em ; |
| 4028 |
padding-left: 1em ; |
| 4029 |
border-left: 1px solid black ; |
| 4030 |
} |
| 4031 |
|
| 4032 |
div.alg2enoline{ |
| 4033 |
margin-left: 1em ; |
| 4034 |
padding-left: 1em ; |
| 4035 |
} |
| 4036 |
|
| 4037 |
span.alg2elinenumber{ |
| 4038 |
margin-right: .5em ; |
| 4039 |
font-size: 60% ; |
| 4040 |
color: red ; |
| 4041 |
} |
| 4042 |
|
| 4043 |
/* Used for algorithmicx: */ |
| 4044 |
span.floatright { float: right ; } |
| 4045 |
|
| 4046 |
/* keyfloat and tocdata: */ |
| 4047 |
.floatnotes { |
| 4048 |
margin: 0ex 5% 0ex 5% ; |
| 4049 |
padding: 0ex 1em 0ex 1em ; |
| 4050 |
font-size:.80em ; |
| 4051 |
text-align: left ; |
| 4052 |
} |
| 4053 |
|
| 4054 |
.authorartist{ |
| 4055 |
display:block ; |
| 4056 |
font-size:.70em ; |
| 4057 |
font-style: italic; |
| 4058 |
} |
| 4059 |
|
| 4060 |
nav .authorartist{ display:inline; } |
| 4061 |
|
| 4062 |
/* Native LaTeX theorems: */ |
| 4063 |
|
| 4064 |
.theoremcontents { |
| 4065 |
font-style: italic; margin-top: 3ex ; margin-bottom: 3ex ; |
| 4066 |
} |
| 4067 |
|
| 4068 |
.theoremlabel { |
| 4069 |
font-style: normal; font-weight: bold ; margin-right: .5em ; |
| 4070 |
} |
| 4071 |
|
| 4072 |
/* theorem, amsthm, and ntheorem packages */ |
| 4073 |
|
| 4074 |
span.theoremheader, |
| 4075 |
span.theoremheaderplain, |
| 4076 |
span.theoremheaderdefinition, |
| 4077 |
span.theoremheaderbreak, |
| 4078 |
span.theoremheadermarginbreak, |
| 4079 |
span.theoremheaderchangebreak, |
| 4080 |
span.theoremheaderchange, |
| 4081 |
span.theoremheadermargin |
| 4082 |
{ |
| 4083 |
font-style:normal ; font-weight: bold ; margin-right: 1em ; |
| 4084 |
} |
| 4085 |
|
| 4086 |
span.amsthmnameplain, |
| 4087 |
span.amsthmnamedefinition, |
| 4088 |
span.amsthmnumberplain, |
| 4089 |
span.amsthmnumberdefinition |
| 4090 |
{ |
| 4091 |
font-style:normal ; font-weight: bold ; |
| 4092 |
} |
| 4093 |
|
| 4094 |
span.amsthmnameremark, |
| 4095 |
span.amsthmnumberremark |
| 4096 |
{font-style:italic ; font-weight: normal ; } |
| 4097 |
|
| 4098 |
span.amsthmnoteplain, |
| 4099 |
span.amsthmnotedefinition |
| 4100 |
{font-style:normal ;} |
| 4101 |
|
| 4102 |
span.theoremheaderremark, |
| 4103 |
span.theoremheaderproof, |
| 4104 |
span.amsthmproofname |
| 4105 |
{font-style:italic ; font-weight: normal ; margin-right: 1em ; } |
| 4106 |
|
| 4107 |
span.theoremheadersc |
| 4108 |
{ |
| 4109 |
font-style:normal ; |
| 4110 |
font-variant: small-caps ; |
| 4111 |
font-weight: normal ; |
| 4112 |
margin-right: 1em ; |
| 4113 |
} |
| 4114 |
|
| 4115 |
.theoremendmark {float:right} |
| 4116 |
|
| 4117 |
div.amsthmbodyplain, div.theorembodyplain, div.theorembodynonumberplain, |
| 4118 |
div.theorembodybreak, div.theorembodynonumberbreak, |
| 4119 |
div.theorembodymarginbreak, |
| 4120 |
div.theorembodychangebreak, |
| 4121 |
div.theorembodychange, |
| 4122 |
div.theorembodymargin |
| 4123 |
{ |
| 4124 |
font-style:italic; |
| 4125 |
margin-top: 3ex ; margin-bottom: 3ex ; |
| 4126 |
} |
| 4127 |
|
| 4128 |
div.theorembodydefinition, div.theorembodyremark, div.theorembodyproof, |
| 4129 |
div.theorembodyplainupright, nonumberplainuprightsc, |
| 4130 |
div.amsthmbodydefinition, div.amsthmbodyremark, |
| 4131 |
div.amsthmproof |
| 4132 |
{ |
| 4133 |
font-style: normal ; |
| 4134 |
margin-top: 3ex ; margin-bottom: 3ex ; |
| 4135 |
} |
| 4136 |
|
| 4137 |
span.amsthmnoteremark {} |
| 4138 |
|
| 4139 |
/* thmbox */ |
| 4140 |
|
| 4141 |
.thmbox { |
| 4142 |
font-style: italic; margin-top: 3ex ; margin-bottom: 3ex ; |
| 4143 |
border: 1px solid gray ; |
| 4144 |
padding: 1ex ; |
| 4145 |
} |
| 4146 |
|
| 4147 |
.thmboxtitle { |
| 4148 |
font-style: normal; font-weight: bold ; margin-right: .5em ; |
| 4149 |
border-bottom: 1px solid gray ; |
| 4150 |
} |
| 4151 |
|
| 4152 |
span.thmboxproofname, span.thmboxexamplename { |
| 4153 |
font-weight: bold ; |
| 4154 |
} |
| 4155 |
|
| 4156 |
div.thmboxproof, div.thmboxexample { |
| 4157 |
font-size: 0.85em ; |
| 4158 |
margin: 2ex ; |
| 4159 |
} |
| 4160 |
|
| 4161 |
div.thmboxleftbar { |
| 4162 |
border-left: 2px solid black ; |
| 4163 |
padding-left: 1em ; |
| 4164 |
} |
| 4165 |
|
| 4166 |
/* For the backnaur package: */ |
| 4167 |
div.backnaur { |
| 4168 |
display: block ; |
| 4169 |
margin: 2ex 2em 2ex 2em ; |
| 4170 |
} |
| 4171 |
|
| 4172 |
div.backnaur p { |
| 4173 |
margin: .25ex 0ex .25ex 0ex ; |
| 4174 |
text-indent: 0em ; |
| 4175 |
} |
| 4176 |
|
| 4177 |
div.backnaurprod { |
| 4178 |
display: inline-block ; |
| 4179 |
min-width: 8em ; |
| 4180 |
text-align:right ; |
| 4181 |
} |
| 4182 |
|
| 4183 |
div.backnaurdesc { |
| 4184 |
display: inline-block ; |
| 4185 |
} |
| 4186 |
|
| 4187 |
/* For the notes package: */ |
| 4188 |
div.notesimportantnote, div.noteswarningnote, div.notesinformationnote { |
| 4189 |
clear: both ; |
| 4190 |
margin: 2ex 2em 2ex 2em ; |
| 4191 |
border: 1px solid silver ; |
| 4192 |
} |
| 4193 |
|
| 4194 |
div.notesicon { |
| 4195 |
float:left ; |
| 4196 |
display: inline-block ; |
| 4197 |
background: gold ; |
| 4198 |
padding: 0ex 1em 0ex 1em ; |
| 4199 |
margin-right: 1em ; |
| 4200 |
font-weight: bold ; |
| 4201 |
} |
| 4202 |
|
| 4203 |
div.notescontents { font-style: italic } |
| 4204 |
|
| 4205 |
/* nolbreaks package: */ |
| 4206 |
span.nolbreaks { white-space: nowrap ; } |
| 4207 |
|
| 4208 |
/* |
| 4209 |
For CSS LaTeX and related logos: |
| 4210 |
Based on spacing demonstrated by the metafont package. |
| 4211 |
|
| 4212 |
The subscripts are shrunk instead of lowered below the baseline, |
| 4213 |
to avoid browser rendering errors with the line height in lists, etc. |
| 4214 |
*/ |
| 4215 |
|
| 4216 |
.latexlogofont { |
| 4217 |
font-family: "Linux Libertine O", "Nimbus Roman No 9 L", |
| 4218 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4219 |
font-variant: normal ; |
| 4220 |
} |
| 4221 |
|
| 4222 |
.latexlogo { |
| 4223 |
font-family: "Linux Libertine O", "Nimbus Roman No 9 L", |
| 4224 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4225 |
} |
| 4226 |
|
| 4227 |
.latexlogosup { |
| 4228 |
text-transform: uppercase; |
| 4229 |
letter-spacing: .03em ; |
| 4230 |
font-size: 0.7em; |
| 4231 |
vertical-align: 0.25em; |
| 4232 |
margin-left: -0.4em; |
| 4233 |
margin-right: -0.15em; |
| 4234 |
} |
| 4235 |
|
| 4236 |
.latexlogosub { |
| 4237 |
text-transform: uppercase; |
| 4238 |
/* vertical-align: -0.27ex; */ |
| 4239 |
margin-left: -0.08em; |
| 4240 |
margin-right: -0.07em; |
| 4241 |
/* font-size: 1em; */ |
| 4242 |
font-size: .7em ; |
| 4243 |
} |
| 4244 |
|
| 4245 |
.latexlogotwoe { |
| 4246 |
text-transform: none ; |
| 4247 |
font-variant-numeric: oldstyle-nums ; |
| 4248 |
} |
| 4249 |
|
| 4250 |
.latexlogotwoesub { |
| 4251 |
font-style:italic ; |
| 4252 |
/* vertical-align: -0.27ex; */ |
| 4253 |
margin-left: -0.11em; |
| 4254 |
margin-right: -0.1em; |
| 4255 |
/* font-size: 1em; */ |
| 4256 |
font-size: .7em ; |
| 4257 |
} |
| 4258 |
|
| 4259 |
.xelatexlogo { |
| 4260 |
font-family: "Linux Libertine O", "Nimbus Roman No 9 L", |
| 4261 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4262 |
letter-spacing: .03em ; |
| 4263 |
} |
| 4264 |
|
| 4265 |
.xelatexlogosub { |
| 4266 |
/* vertical-align: -0.27ex; */ |
| 4267 |
margin-left: -0.0667em; |
| 4268 |
margin-right: -.05em; |
| 4269 |
/* font-size: 1em; */ |
| 4270 |
font-size: .7em ; |
| 4271 |
letter-spacing: .03em ; |
| 4272 |
} |
| 4273 |
|
| 4274 |
.amslogo { |
| 4275 |
font-family: "TeXGyreChorus","URW Chancery L", |
| 4276 |
"Apple Chancery","ITC Zapf Chancery","Monotype Corsiva", |
| 4277 |
"Linux Libertine O", "Nimbus Roman No 9 L", "FreeSerif", |
| 4278 |
"Hoefler Text", Times, "Times New Roman", serif ; |
| 4279 |
font-style: italic ; |
| 4280 |
} |
| 4281 |
|
| 4282 |
.lyxlogo { |
| 4283 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4284 |
"DejaVu Sans", "Bitstream Vera Sans", Geneva, |
| 4285 |
Verdana, sans-serif ; |
| 4286 |
} |
| 4287 |
|
| 4288 |
/* Only display top and bottom navigation if a small screen: */ |
| 4289 |
/* Hide the sidetoc if a small screen: */ |
| 4290 |
nav.topnavigation { display:none; } |
| 4291 |
nav.botnavigation { display:none; } |
| 4292 |
|
| 4293 |
/* Only display the sidetoc's webpage title if a small screen */ |
| 4294 |
span.sidetocthetitle { display: none } |
| 4295 |
|
| 4296 |
@media screen and (max-width: 100em) { |
| 4297 |
div.multicols { |
| 4298 |
-webkit-columns: 2 auto ; |
| 4299 |
-moz-columns: 2 auto ; |
| 4300 |
columns: 2 auto ; |
| 4301 |
} |
| 4302 |
} |
| 4303 |
|
| 4304 |
@media screen and (max-width: 50em) { |
| 4305 |
div.pagegrid { |
| 4306 |
display: grid ; |
| 4307 |
grid-template-columns: 1fr ; |
| 4308 |
grid-template-areas: |
| 4309 |
"topnav" |
| 4310 |
"header" |
| 4311 |
"sidetoc" |
| 4312 |
"body" |
| 4313 |
"footer" |
| 4314 |
"botnav" ; |
| 4315 |
overflow-y: auto ; |
| 4316 |
} |
| 4317 |
div.sidetoccontainer { |
| 4318 |
float: none ; |
| 4319 |
width: 100% ; |
| 4320 |
padding: 0 ; |
| 4321 |
border-radius: 0 ; |
| 4322 |
border-bottom: 1px solid black ; |
| 4323 |
border-top: 1px solid black ; |
| 4324 |
box-shadow: none ; |
| 4325 |
} |
| 4326 |
span.sidetocthetitle { display: inline } |
| 4327 |
nav.topnavigation { display:block } |
| 4328 |
nav.botnavigation { display:block } |
| 4329 |
main.bodycontainer { width: 100% } |
| 4330 |
.marginpar { |
| 4331 |
max-width: 100%; |
| 4332 |
float: none; |
| 4333 |
display:block ; |
| 4334 |
margin: 1ex 1em 1ex 1em ; |
| 4335 |
} |
| 4336 |
div.multicols { |
| 4337 |
-webkit-columns: 1 auto ; |
| 4338 |
-moz-columns: 1 auto ; |
| 4339 |
columns: 1 auto ; |
| 4340 |
} |
| 4341 |
} |
| 4342 |
|
| 4343 |
@media print { |
| 4344 |
div.pagegrid { |
| 4345 |
display: block ; |
| 4346 |
max-height: 100% ; |
| 4347 |
overflow-y: show ; |
| 4348 |
} |
| 4349 |
body { |
| 4350 |
font-family: "Linux Libertine O", |
| 4351 |
"DejaVu Serif", "Bitstream Vera Serif", |
| 4352 |
"Liberation Serif", "Nimbus Roman No 9 L", |
| 4353 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4354 |
} |
| 4355 |
div.sidetoccontainer { display:none; } |
| 4356 |
nav.topnavigation { display: none; } |
| 4357 |
nav.botnavigation { display: none; } |
| 4358 |
main.bodycontainer { width: 100% } |
| 4359 |
} |
| 4360 |
|
| 4361 |
@media handheld { |
| 4362 |
div.pagegrid { |
| 4363 |
display: block ; |
| 4364 |
max-height: auto ; |
| 4365 |
overflow-y: auto ; |
| 4366 |
} |
| 4367 |
div.sidetoccontainer { display:none; } |
| 4368 |
nav.topnavigation { display:block } |
| 4369 |
nav.botnavigation { display:block } |
| 4370 |
main.bodycontainer { width: 100% } |
| 4371 |
} |
| 4372 |
\end{filecontents*} |
| 4373 |
\end{LWRwriteconf} |
| 4374 |
|
| 4375 |
|
| 4376 |
\begin{LWRwriteconf} |
| 4377 |
\begin{filecontents*}[overwrite]{lwarp_sagebrush.css} |
| 4378 |
@import url("lwarp.css") ; |
| 4379 |
|
| 4380 |
A:link {color:#105030 ; text-decoration: none ; } |
| 4381 |
A:visited {color:#705030 ; text-shadow:1px 1px 2px #a0a0a0;} |
| 4382 |
A:hover {color:#006000 ; text-decoration: underline ; text-shadow:0px 0px 2px #a0a0a0;} |
| 4383 |
A:active {color:#00C000 ; text-shadow:1px 1px 2px #a0a0a0;} |
| 4384 |
|
| 4385 |
div.book, h1, h2, h3, h4, h5, h6, span.paragraph, span.subparagraph |
| 4386 |
{ |
| 4387 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4388 |
"Linux Libertine O", "Liberation Serif", |
| 4389 |
"Nimbus Roman No 9 L", "FreeSerif", |
| 4390 |
"Hoefler Text", Times, "Times New Roman", serif; |
| 4391 |
font-variant: small-caps ; |
| 4392 |
font-weight: normal ; |
| 4393 |
color: #304070 ; |
| 4394 |
text-shadow: 2px 2px 3px #808080; |
| 4395 |
} |
| 4396 |
|
| 4397 |
h1 { /* title of the entire website, used on each page */ |
| 4398 |
font-variant: small-caps ; |
| 4399 |
color: #304070 ; |
| 4400 |
text-shadow: 2px 2px 3px #808080; |
| 4401 |
background-color: #F7F7F0 ; |
| 4402 |
background-image: linear-gradient(to bottom, #F7F7F0, #C0C0C4); |
| 4403 |
} |
| 4404 |
|
| 4405 |
h1 { |
| 4406 |
border-bottom: 1px solid #304070; |
| 4407 |
/* border-top: 2px solid #304070; */ |
| 4408 |
} |
| 4409 |
|
| 4410 |
h2 { |
| 4411 |
border-bottom: 1px solid #304070; |
| 4412 |
/* border-top: 2px solid #304070; */ |
| 4413 |
background-color: #F7F7F0 ; |
| 4414 |
background-image: linear-gradient(to bottom, #F7F7F0, #DAD0C0); |
| 4415 |
} |
| 4416 |
|
| 4417 |
div.abstract { |
| 4418 |
background: #f5f5eb ; |
| 4419 |
background-image: linear-gradient(to bottom, #f5f5eb, #C8C8B8); |
| 4420 |
|
| 4421 |
border: 1px solid silver; |
| 4422 |
border-radius: 1em ; |
| 4423 |
} |
| 4424 |
|
| 4425 |
div.abstract dl {line-height:1.5;} |
| 4426 |
div.abstract dt {color:#304070;} |
| 4427 |
|
| 4428 |
div.abstracttitle{ |
| 4429 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4430 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 4431 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4432 |
font-weight:bold; |
| 4433 |
font-variant: small-caps ; |
| 4434 |
font-size:1.5em; |
| 4435 |
border-bottom: 1px solid silver ; |
| 4436 |
color: #304070 ; |
| 4437 |
text-align: center ; |
| 4438 |
text-shadow: 1px 1px 2px #808080; |
| 4439 |
} |
| 4440 |
|
| 4441 |
span.abstractrunintitle{ |
| 4442 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4443 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 4444 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4445 |
font-weight:bold; |
| 4446 |
} |
| 4447 |
|
| 4448 |
div.epigraph, div.dictum { |
| 4449 |
background: #f5f5eb ; |
| 4450 |
background-image: linear-gradient(to bottom, #f5f5eb, #C8C8B8); |
| 4451 |
|
| 4452 |
border: 1px solid silver ; |
| 4453 |
border-radius: 1ex ; |
| 4454 |
box-shadow: 3px 3px 3px #808080 ; |
| 4455 |
} |
| 4456 |
|
| 4457 |
.example { |
| 4458 |
background-color: #f5f5eb ; |
| 4459 |
background-image: linear-gradient(to bottom, #f5f5eb, #C8C8B8); |
| 4460 |
margin: 3ex 4em 2ex 4em ; |
| 4461 |
} |
| 4462 |
|
| 4463 |
div.exampletitle{ |
| 4464 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4465 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 4466 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4467 |
font-weight:bold; |
| 4468 |
font-variant: small-caps ; |
| 4469 |
border-bottom: 1px solid silver ; |
| 4470 |
color: #304070 ; |
| 4471 |
text-align: center ; |
| 4472 |
text-shadow: 1px 1px 2px #808080; |
| 4473 |
} |
| 4474 |
|
| 4475 |
.sidebar { |
| 4476 |
background-color: #f5f5eb ; |
| 4477 |
background-image: linear-gradient(to bottom, #f5f5eb, #C8C8B8); |
| 4478 |
margin: 3ex 4em 2ex 4em ; |
| 4479 |
} |
| 4480 |
|
| 4481 |
div.sidebartitle{ |
| 4482 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4483 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 4484 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4485 |
font-weight:bold; |
| 4486 |
font-variant: small-caps ; |
| 4487 |
border-bottom: 1px solid silver ; |
| 4488 |
color: #304070 ; |
| 4489 |
text-align: center ; |
| 4490 |
text-shadow: 1px 1px 2px #808080; |
| 4491 |
} |
| 4492 |
|
| 4493 |
.fancyvrblabel { |
| 4494 |
font-family: "URW Classico", Optima, "Linux Biolinum O", |
| 4495 |
"Linux Libertine O", "Liberation Serif", "Nimbus Roman No 9 L", |
| 4496 |
"FreeSerif", "Hoefler Text", Times, "Times New Roman", serif; |
| 4497 |
font-weight:bold; |
| 4498 |
font-variant: small-caps ; |
| 4499 |
font-size: 1.5em ; |
| 4500 |
color: #304070 ; |
| 4501 |
text-align: center ; |
| 4502 |
text-shadow: 1px 1px 2px #808080; |
| 4503 |
} |
| 4504 |
|
| 4505 |
div.minipage { |
| 4506 |
background-color: #eeeee7 ; |
| 4507 |
border: 1px solid silver ; |
| 4508 |
border-radius: 1ex ; |
| 4509 |
} |
| 4510 |
|
| 4511 |
table div.minipage { background: none ; border: none ; } |
| 4512 |
|
| 4513 |
div.framebox div.minipage {border:none ; background:none} |
| 4514 |
|
| 4515 |
section.textbody > div.minipage { |
| 4516 |
box-shadow: 3px 3px 3px #808080 ; |
| 4517 |
} |
| 4518 |
|
| 4519 |
div.fboxBlock div.minipage { box-shadow: none ; } |
| 4520 |
|
| 4521 |
.framed .minipage , .framedleftbar .minipage { |
| 4522 |
border: none ; |
| 4523 |
background: none ; |
| 4524 |
padding: 0ex ; |
| 4525 |
margin: 0ex ; |
| 4526 |
} |
| 4527 |
|
| 4528 |
figure.figure .minipage, div.figurecaption .minipage { border: none; } |
| 4529 |
|
| 4530 |
div.marginblock div.minipage , |
| 4531 |
div.marginparblock div.minipage |
| 4532 |
{ border: none; } |
| 4533 |
|
| 4534 |
figure , div.marginblock { |
| 4535 |
background-color: #eeeee7 ; |
| 4536 |
border: 1px solid silver ; |
| 4537 |
border-radius: 1ex ; |
| 4538 |
box-shadow: 3px 3px 3px #808080 ; |
| 4539 |
} |
| 4540 |
|
| 4541 |
figure figure { |
| 4542 |
border: 1px solid silver ; |
| 4543 |
margin: 0em ; |
| 4544 |
box-shadow: none ; |
| 4545 |
} |
| 4546 |
|
| 4547 |
/* |
| 4548 |
div.figurecaption { |
| 4549 |
border-top: 1px solid silver ; |
| 4550 |
border-bottom: 1px solid silver ; |
| 4551 |
background-color: #e8e8e8 ; |
| 4552 |
} |
| 4553 |
*/ |
| 4554 |
|
| 4555 |
div.table { |
| 4556 |
box-shadow: 3px 3px 3px #808080 ; |
| 4557 |
} |
| 4558 |
|
| 4559 |
/* |
| 4560 |
.tnotes { |
| 4561 |
background: #e8e8e8; |
| 4562 |
border: 1px solid silver; |
| 4563 |
} |
| 4564 |
*/ |
| 4565 |
|
| 4566 |
nav.topnavigation{ |
| 4567 |
background-color: #b0b8b0 ; |
| 4568 |
background-image: linear-gradient(to bottom,#e0e0e0,#b0b8b0) ; |
| 4569 |
} |
| 4570 |
|
| 4571 |
nav.botnavigation{ |
| 4572 |
background-color: #b0b8b0 ; |
| 4573 |
background-image: linear-gradient(to top,#e0e0e0,#b0b8b0) ; |
| 4574 |
} |
| 4575 |
|
| 4576 |
header{ |
| 4577 |
background-color: #F7F7F0 ; |
| 4578 |
background-image: linear-gradient(to top, #F7F7F0, #b0b8b0); |
| 4579 |
} |
| 4580 |
|
| 4581 |
footer{ |
| 4582 |
background-color: #F7F7F0 ; |
| 4583 |
background-image: linear-gradient(to bottom, #F7F7F0, #b0b8b0); |
| 4584 |
} |
| 4585 |
|
| 4586 |
div.sidetoccontainer { |
| 4587 |
background-color: #F7F7F0 ; |
| 4588 |
background-image: linear-gradient(to bottom, #F7F7F0, #C0C0C0); |
| 4589 |
box-shadow: 3px 3px 3px #808080 ; |
| 4590 |
} |
| 4591 |
|
| 4592 |
div.sidetoctitle {color: #304070 ; } |
| 4593 |
|
| 4594 |
nav.sidetoc a:hover { |
| 4595 |
color:#006000 ; |
| 4596 |
text-decoration: none ; |
| 4597 |
text-shadow:0px 0px 2px #a0a0a0; |
| 4598 |
} |
| 4599 |
|
| 4600 |
@media screen and (max-width: 45em) { |
| 4601 |
div.sidetoccontainer { border-radius: 0 ; } |
| 4602 |
} |
| 4603 |
|
| 4604 |
\end{filecontents*} |
| 4605 |
\end{LWRwriteconf} |
| 4606 |
|
| 4607 |
|
| 4608 |
\begin{LWRwriteconf} |
| 4609 |
\begin{filecontents*}[overwrite]{lwarp_formal.css} |
| 4610 |
@import url("lwarp.css") ; |
| 4611 |
|
| 4612 |
A:link {color:#802020 ; text-decoration:none; } |
| 4613 |
A:visited {color:#802020 ; text-shadow:none ;} |
| 4614 |
A:hover {color:#400000 ; text-shadow:none ;} |
| 4615 |
A:active {color:#C00000 ; text-shadow:none ;} |
| 4616 |
|
| 4617 |
body { |
| 4618 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4619 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4620 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4621 |
"Times New Roman", serif; |
| 4622 |
background: #fffcf5; |
| 4623 |
} |
| 4624 |
|
| 4625 |
span.textrm { |
| 4626 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4627 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4628 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4629 |
"Times New Roman", serif; |
| 4630 |
} |
| 4631 |
|
| 4632 |
span.textsf { |
| 4633 |
font-family: "DejaVu Sans", "Bitstream Vera Sans", |
| 4634 |
Geneva, Verdana, sans-serif ; |
| 4635 |
} |
| 4636 |
|
| 4637 |
div.book, h1, h2, h3, h4, h5, h6, span.paragraph, span.subparagraph |
| 4638 |
{ |
| 4639 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4640 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4641 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4642 |
"Times New Roman", serif; |
| 4643 |
color: #800000 ; |
| 4644 |
text-shadow: none ; |
| 4645 |
} |
| 4646 |
|
| 4647 |
h1, h2 { |
| 4648 |
background-color: #fffcf5 ; |
| 4649 |
background-image: none ; |
| 4650 |
border-bottom: 1px solid #808080; |
| 4651 |
/* border-top: 2px solid #808080; */ |
| 4652 |
} |
| 4653 |
|
| 4654 |
div.abstracttitle { |
| 4655 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4656 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4657 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4658 |
"Times New Roman", serif; |
| 4659 |
color: black ; |
| 4660 |
text-shadow: none ; |
| 4661 |
} |
| 4662 |
|
| 4663 |
span.abstractrunintitle { |
| 4664 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4665 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4666 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4667 |
"Times New Roman", serif; |
| 4668 |
color: black ; |
| 4669 |
text-shadow: none ; |
| 4670 |
} |
| 4671 |
|
| 4672 |
div.abstract { font-size: 100% } |
| 4673 |
|
| 4674 |
.sidebar { |
| 4675 |
background: #fffcf5; |
| 4676 |
background-image: none ; |
| 4677 |
margin: 2em 5% 2em 5%; |
| 4678 |
padding: 0.5em 1em; |
| 4679 |
border: none ; |
| 4680 |
border-top : 1px solid silver; |
| 4681 |
border-bottom : 1px solid silver; |
| 4682 |
font-size: 90% ; |
| 4683 |
} |
| 4684 |
|
| 4685 |
div.sidebartitle{ |
| 4686 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4687 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4688 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4689 |
"Times New Roman", serif; |
| 4690 |
color: #800000 ; |
| 4691 |
text-shadow: none ; |
| 4692 |
border: none ; |
| 4693 |
} |
| 4694 |
|
| 4695 |
.example { |
| 4696 |
background: #fffcf5; |
| 4697 |
background-image: none ; |
| 4698 |
margin: 2em 5% 2em 5%; |
| 4699 |
padding: 0.5em 1em; |
| 4700 |
border: none ; |
| 4701 |
border-top : 1px solid silver; |
| 4702 |
border-bottom : 1px solid silver; |
| 4703 |
} |
| 4704 |
|
| 4705 |
div.exampletitle{ |
| 4706 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4707 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4708 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4709 |
"Times New Roman", serif; |
| 4710 |
color: #800000 ; |
| 4711 |
text-shadow: none ; |
| 4712 |
border: none ; |
| 4713 |
} |
| 4714 |
|
| 4715 |
div.fancyvrblabel{ |
| 4716 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4717 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4718 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4719 |
"Times New Roman", serif; |
| 4720 |
color: #800000 ; |
| 4721 |
text-shadow: none ; |
| 4722 |
border: none ; |
| 4723 |
} |
| 4724 |
|
| 4725 |
figure { |
| 4726 |
margin: 5ex 5% 5ex 5% ; |
| 4727 |
padding: 1ex 1em 1ex 1em ; |
| 4728 |
background-color: #fffcf5 ; |
| 4729 |
overflow-x: auto ; |
| 4730 |
border: none ; |
| 4731 |
/* border-top: 1px solid silver; */ |
| 4732 |
/* border-bottom: 1px solid silver; */ |
| 4733 |
} |
| 4734 |
|
| 4735 |
div.figurecaption , .lstlisting { |
| 4736 |
border: none ; |
| 4737 |
/* border-top: 1px solid silver ; */ |
| 4738 |
/* border-bottom: 1px solid silver ; */ |
| 4739 |
background-color: #fffcf5 ; |
| 4740 |
} |
| 4741 |
|
| 4742 |
.tnotes { |
| 4743 |
background: #fffcf5 ; |
| 4744 |
border-top: 1px solid silver ; |
| 4745 |
border-bottom: 1px solid silver ; |
| 4746 |
} |
| 4747 |
|
| 4748 |
.theorem { |
| 4749 |
background: none ; |
| 4750 |
} |
| 4751 |
|
| 4752 |
.minipage { |
| 4753 |
background-color: #fffcf5 ; |
| 4754 |
border: none ; |
| 4755 |
} |
| 4756 |
|
| 4757 |
div.floatrow figure { border: none ; } |
| 4758 |
|
| 4759 |
figure figure { border: none ; } |
| 4760 |
|
| 4761 |
nav.toc, nav.lof, nav.lot, nav.lol { |
| 4762 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4763 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4764 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4765 |
"Times New Roman", serif; |
| 4766 |
} |
| 4767 |
|
| 4768 |
div.sidetoccontainer { |
| 4769 |
font-family: "Linux Libertine O", "Hoefler Text", "Garamond", |
| 4770 |
"Bembo", "Janson", "TeX Gyre Pagella", "Palatino", |
| 4771 |
"Liberation Serif", "Nimbus Roman No 9 L", "FreeSerif", Times, |
| 4772 |
"Times New Roman", serif; |
| 4773 |
background-image: linear-gradient(to bottom, #fffcf5, #C0C0C0); |
| 4774 |
} |
| 4775 |
|
| 4776 |
div.sidetoctitle{ |
| 4777 |
color: #800000 ; |
| 4778 |
} |
| 4779 |
|
| 4780 |
header{ |
| 4781 |
background-color: #e0e0e0 ; |
| 4782 |
background-image: linear-gradient(to top, #fffcf5, #b0b0b0); |
| 4783 |
text-align:center ; |
| 4784 |
} |
| 4785 |
|
| 4786 |
footer{ |
| 4787 |
background-color: #e0e0e0 ; |
| 4788 |
background-image: linear-gradient(to bottom, #fffcf5, #b0b0b0); |
| 4789 |
padding: 2ex 1em 2ex 1em ; |
| 4790 |
text-align:left ; |
| 4791 |
} |
| 4792 |
|
| 4793 |
nav.botnavigation { |
| 4794 |
background: #dedcd5 ; |
| 4795 |
border-top: 1px solid black ; |
| 4796 |
} |
| 4797 |
\end{filecontents*} |
| 4798 |
\end{LWRwriteconf} |
| 4799 |
|
| 4800 |
|
| 4801 |
\begin{LWRwriteconf} |
| 4802 |
\begin{filecontents*}[overwrite]{sample_project.css} |
| 4803 |
/* ( --- Start of sample_project.css --- ) */ |
| 4804 |
/* ( --- A sample project-specific CSS file for Lwarp --- ) */ |
| 4805 |
|
| 4806 |
/* Uncomment one of the following: */ |
| 4807 |
@import url("lwarp.css") ; |
| 4808 |
/* @import url("lwarp_formal.css") ; */ |
| 4809 |
/* @import url("lwarp_sagebrush.css") ; */ |
| 4810 |
|
| 4811 |
/* Project-specific CSS setting follow here. */ |
| 4812 |
/* . . . */ |
| 4813 |
|
| 4814 |
/* To use paragraph indents, uncomment the following: */ |
| 4815 |
/* |
| 4816 |
body p { |
| 4817 |
text-indent: 2em ; |
| 4818 |
margin-bottom: 0ex ; |
| 4819 |
margin-top: 0ex ; |
| 4820 |
} |
| 4821 |
*/ |
| 4822 |
|
| 4823 |
/* ( --- End of sample_project.css --- ) */ |
| 4824 |
\end{filecontents*} |
| 4825 |
\end{LWRwriteconf} |
| 4826 |
|
| 4827 |
|
| 4828 |
\begin{LWRwriteconf} |
| 4829 |
\begin{filecontents*}[overwrite]{lwarp.ist} |
| 4830 |
preamble |
| 4831 |
"\\begin{theindex} |
| 4832 |
\\providecommand*\\lettergroupDefault[1]{} |
| 4833 |
\\providecommand*\\lettergroup[1]{% |
| 4834 |
\\par\\textbf{#1}\\par |
| 4835 |
\\nopagebreak |
| 4836 |
} |
| 4837 |
" |
| 4838 |
headings_flag 1 |
| 4839 |
heading_prefix " |
| 4840 |
\\lettergroup{" |
| 4841 |
heading_suffix "}" |
| 4842 |
delim_0 ", \\hyperindexref{" |
| 4843 |
delim_1 ", \\hyperindexref{" |
| 4844 |
delim_2 ", \\hyperindexref{" |
| 4845 |
delim_n "}, \\hyperindexref{" |
| 4846 |
delim_r "} -- \\hyperindexref{" |
| 4847 |
delim_t "}" |
| 4848 |
page_compositor "." |
| 4849 |
\end{filecontents*} |
| 4850 |
\end{LWRwriteconf} |
| 4851 |
|
| 4852 |
|
| 4853 |
\begin{LWRwriteconf} |
| 4854 |
\begin{filecontents*}[overwrite]{lwarp.xdy} |
| 4855 |
(require "tex/inputenc/latin.xdy") |
| 4856 |
(merge-rule "\\PS *" "Postscript") |
| 4857 |
(require "texindy.xdy") |
| 4858 |
(require "page-ranges.xdy") |
| 4859 |
(require "book-order.xdy") |
| 4860 |
(define-location-class "arabic-page-numbers" |
| 4861 |
("arabic-numbers") :min-range-length 1) |
| 4862 |
(require "makeindex.xdy") |
| 4863 |
(define-attributes (("hyperindexref"))) |
| 4864 |
(markup-locref :open "\hyperindexref{" :close "}") |
| 4865 |
(markup-locref :open "\hyperindexref{" :close "}" :attr "hyperpage") |
| 4866 |
(markup-locref :open "\textbf{\hyperindexref{" :close "}}" :attr "textbf") |
| 4867 |
(markup-locref :open "\textit{\hyperindexref{" :close "}}" :attr "textit") |
| 4868 |
(define-location-class-order ("roman-page-numbers" |
| 4869 |
"arabic-page-numbers" |
| 4870 |
"alpha-page-numbers" |
| 4871 |
"Roman-page-numbers" |
| 4872 |
"Alpha-page-numbers" |
| 4873 |
"see" |
| 4874 |
"seealso")) |
| 4875 |
\end{filecontents*} |
| 4876 |
\end{LWRwriteconf} |
| 4877 |
|
| 4878 |
\begin{LWRwriteconf} |
| 4879 |
\immediate\openout\LWR@quickfile=lwarp_one_limage.txt |
| 4880 |
\immediate\write\LWR@quickfile{% |
| 4881 |
pdfseparate -f \LWRpercent 1 -l \LWRpercent 1 \LWRpercent 4_html.pdf % |
| 4882 |
\LWR@ImagesDirectory\OSPathSymbol lateximagetemp-\LWRpercent\LWRpercent d.pdf% |
| 4883 |
} |
| 4884 |
\immediate\write\LWR@quickfile{% |
| 4885 |
pdfcrop --hires --margins \LWRopquote0 1 0 0\LWRopquote\space % |
| 4886 |
\LWR@ImagesDirectory\OSPathSymbol lateximagetemp-\LWRpercent 1.pdf % |
| 4887 |
\LWR@ImagesDirectory\OSPathSymbol\LWRpercent 3.pdf% |
| 4888 |
} |
| 4889 |
\immediate\write\LWR@quickfile{% |
| 4890 |
pdftocairo -svg -noshrink \LWR@ImagesDirectory\OSPathSymbol\LWRpercent 3.pdf % |
| 4891 |
\LWR@ImagesDirectory\OSPathSymbol\LWRpercent 3.svg% |
| 4892 |
} |
| 4893 |
\immediate\write\LWR@quickfile{% |
| 4894 |
del \LWR@ImagesDirectory\OSPathSymbol\LWRpercent 3.pdf% |
| 4895 |
} |
| 4896 |
\immediate\write\LWR@quickfile{% |
| 4897 |
del \LWR@ImagesDirectory\OSPathSymbol lateximagetemp-\LWRpercent 1.pdf% |
| 4898 |
} |
| 4899 |
\immediate\write\LWR@quickfile{exit} |
| 4900 |
\immediate\closeout\LWR@quickfile |
| 4901 |
\end{LWRwriteconf} |
| 4902 |
|
| 4903 |
|
| 4904 |
|
| 4905 |
\begin{LWRwriteconf} |
| 4906 |
\begin{filecontents*}[overwrite]{lwarp_mathjax.txt} |
| 4907 |
<script> |
| 4908 |
// Lwarp MathJax emulation code |
| 4909 |
// |
| 4910 |
// Based on code by Davide P. Cervone. |
| 4911 |
// Equation numbering: https://github.com/mathjax/MathJax/issues/2427 |
| 4912 |
// Starred and ifnextchar macros: https://github.com/mathjax/MathJax/issues/2428 |
| 4913 |
// \left, \right delimiters: https://github.com/mathjax/MathJax/issues/2535 |
| 4914 |
// |
| 4915 |
// Modified by Brian Dunn to adjust equation numbering and add subequations. |
| 4916 |
// |
| 4917 |
// LaTeX can use \seteqnumber{subequations?}{section}{number} before each equation. |
| 4918 |
// subequations? is 0 usually, 1 if inside subequations. |
| 4919 |
// section is a string printed as-is, or empty. |
| 4920 |
// number is auto-incremented by MathJax between equations. |
| 4921 |
// |
| 4922 |
MathJax = { |
| 4923 |
subequations: "0", |
| 4924 |
section: "", |
| 4925 |
loader: { |
| 4926 |
load: ['[tex]/tagformat', '[tex]/textmacros'], |
| 4927 |
}, |
| 4928 |
startup: { |
| 4929 |
ready() { |
| 4930 |
// These would be replaced by import commands if you wanted to make |
| 4931 |
// a proper extension. |
| 4932 |
const Configuration = MathJax._.input.tex.Configuration.Configuration; |
| 4933 |
const CommandMap = MathJax._.input.tex.SymbolMap.CommandMap; |
| 4934 |
const Macro = MathJax._.input.tex.Symbol.Macro; |
| 4935 |
const TexError = MathJax._.input.tex.TexError.default; |
| 4936 |
const ParseUtil = MathJax._.input.tex.ParseUtil.default; |
| 4937 |
const expandable = MathJax._.util.Options.expandable; |
| 4938 |
|
| 4939 |
// Insert the replacement string into the TeX string, and check |
| 4940 |
// that there haven't been too many maxro substitutions (prevents |
| 4941 |
// infinite loops). |
| 4942 |
const useArgument = (parser, text) => { |
| 4943 |
parser.string = ParseUtil.addArgs(parser, text, parser.string.slice(parser.i)); |
| 4944 |
parser.i = 0; |
| 4945 |
if (++parser.macroCount > parser.configuration.options.maxMacros) { |
| 4946 |
throw new TexError('MaxMacroSub1', |
| 4947 |
'MathJax maximum macro substitution count exceeded; ' + |
| 4948 |
'is there a recursive macro call?'); |
| 4949 |
} |
| 4950 |
} |
| 4951 |
|
| 4952 |
// Create the command map for: |
| 4953 |
// \ifstar, \ifnextchar, \ifblank, \ifstrequal, \gsub, \seteqnumber |
| 4954 |
new CommandMap('Lwarp-macros', { |
| 4955 |
ifstar: 'IfstarFunction', |
| 4956 |
ifnextchar: 'IfnextcharFunction', |
| 4957 |
ifblank: 'IfblankFunction', |
| 4958 |
ifstrequal: 'IfstrequalFunction', |
| 4959 |
gsubstitute: 'GsubstituteFunction', |
| 4960 |
seteqnumber: 'SeteqnumberFunction' |
| 4961 |
}, { |
| 4962 |
// This function implements an ifstar macro. |
| 4963 |
IfstarFunction(parser, name) { |
| 4964 |
const resultstar = parser.GetArgument(name); |
| 4965 |
const resultnostar = parser.GetArgument(name); |
| 4966 |
const star = parser.GetStar(); // true if there is a * |
| 4967 |
useArgument(parser, star ? resultstar : resultnostar); |
| 4968 |
}, |
| 4969 |
|
| 4970 |
// This function implements an ifnextchar macro. |
| 4971 |
IfnextcharFunction(parser, name) { |
| 4972 |
let whichchar = parser.GetArgument(name); |
| 4973 |
if (whichchar.match(/^(?:0x[0-9A-F]+|[0-9]+)$/i)) { |
| 4974 |
// $ syntax highlighting |
| 4975 |
whichchar = String.fromCodePoint(parseInt(whichchar)); |
| 4976 |
} |
| 4977 |
const resultnextchar = parser.GetArgument(name); |
| 4978 |
const resultnotnextchar = parser.GetArgument(name); |
| 4979 |
const gotchar = (parser.GetNext() === whichchar); |
| 4980 |
useArgument(parser, gotchar ? resultnextchar : resultnotnextchar); |
| 4981 |
}, |
| 4982 |
|
| 4983 |
// This function implements an ifblank macro. |
| 4984 |
IfblankFunction(parser, name) { |
| 4985 |
const blankarg = parser.GetArgument(name); |
| 4986 |
const resultblank = parser.GetArgument(name); |
| 4987 |
const resultnotblank = parser.GetArgument(name); |
| 4988 |
const isblank = (blankarg.trim() == ""); |
| 4989 |
useArgument(parser, isblank ? resultblank : resultnotblank); |
| 4990 |
}, |
| 4991 |
|
| 4992 |
// This function implements an ifstrequal macro. |
| 4993 |
IfstrequalFunction(parser, name) { |
| 4994 |
const strequalfirst = parser.GetArgument(name); |
| 4995 |
const strequalsecond = parser.GetArgument(name); |
| 4996 |
const resultequal = parser.GetArgument(name); |
| 4997 |
const resultnotequal = parser.GetArgument(name); |
| 4998 |
const isequal = (strequalfirst == strequalsecond); |
| 4999 |
useArgument(parser, isequal ? resultequal : resultnotequal); |
| 5000 |
}, |
| 5001 |
|
| 5002 |
// This function implements a gsub macro. |
| 5003 |
GsubstituteFunction(parser, name) { |
| 5004 |
const gsubfirst = parser.GetArgument(name); |
| 5005 |
const gsubsecond = parser.GetArgument(name); |
| 5006 |
const gsubthird = parser.GetArgument(name); |
| 5007 |
let gsubresult=gsubfirst.replace(gsubsecond, gsubthird); |
| 5008 |
useArgument(parser, gsubresult); |
| 5009 |
}, |
| 5010 |
|
| 5011 |
// This function modifies the equation numbers. |
| 5012 |
SeteqnumberFunction(parser, name) { |
| 5013 |
// Get the macro parameters |
| 5014 |
const star = parser.GetStar(); // true if there is a * |
| 5015 |
const optBrackets = parser.GetBrackets(name); // contents of optional brackets |
| 5016 |
const newsubequations = parser.GetArgument(name); // the subequations argument |
| 5017 |
const neweqsection = parser.GetArgument(name); // the eq section argument |
| 5018 |
const neweqnumber = parser.GetArgument(name); // the eq number argument |
| 5019 |
MathJax.config.subequations=newsubequations ; // a string with boolean meaning |
| 5020 |
MathJax.config.section=neweqsection ; // a string with numeric meaning |
| 5021 |
parser.tags.counter = parser.tags.allCounter = neweqnumber ; |
| 5022 |
} |
| 5023 |
|
| 5024 |
}); |
| 5025 |
|
| 5026 |
// Create the Lwarp-macros package |
| 5027 |
Configuration.create('Lwarp-macros', { |
| 5028 |
handler: {macro: ['Lwarp-macros']} |
| 5029 |
}); |
| 5030 |
|
| 5031 |
MathJax.startup.defaultReady(); |
| 5032 |
|
| 5033 |
// For forward references: |
| 5034 |
MathJax.startup.input[0].preFilters.add(({math}) => { |
| 5035 |
if (math.inputData.recompile){ |
| 5036 |
MathJax.config.subequations = math.inputData.recompile.subequations; |
| 5037 |
MathJax.config.section = math.inputData.recompile.section; |
| 5038 |
} |
| 5039 |
}); |
| 5040 |
MathJax.startup.input[0].postFilters.add(({math}) => { |
| 5041 |
if (math.inputData.recompile){ |
| 5042 |
math.inputData.recompile.subequations = MathJax.config.subequations; |
| 5043 |
math.inputData.recompile.section = MathJax.config.section; |
| 5044 |
} |
| 5045 |
}); |
| 5046 |
|
| 5047 |
// For \left, \right with unicode-math: |
| 5048 |
const {DelimiterMap} = MathJax._.input.tex.SymbolMap; |
| 5049 |
const {Symbol} = MathJax._.input.tex.Symbol; |
| 5050 |
const {MapHandler} = MathJax._.input.tex.MapHandler; |
| 5051 |
const delimiter = MapHandler.getMap('delimiter'); |
| 5052 |
delimiter.add('\\lBrack', new Symbol('\\lBrack', '\u27E6')); |
| 5053 |
delimiter.add('\\rBrack', new Symbol('\\rBrack', '\u27E7')); |
| 5054 |
delimiter.add('\\lAngle', new Symbol('\\lAngle', '\u27EA')); |
| 5055 |
delimiter.add('\\rAngle', new Symbol('\\rAngle', '\u27EB')); |
| 5056 |
delimiter.add('\\lbrbrak', new Symbol('\\lbrbrak', '\u2772')); |
| 5057 |
delimiter.add('\\rbrbrak', new Symbol('\\rbrbrak', '\u2773')); |
| 5058 |
delimiter.add('\\lbag', new Symbol('\\lbag', '\u27C5')); |
| 5059 |
delimiter.add('\\rbag', new Symbol('\\rbag', '\u27C6')); |
| 5060 |
delimiter.add('\\llparenthesis', new Symbol('\\llparenthesis', '\u2987')); |
| 5061 |
delimiter.add('\\rrparenthesis', new Symbol('\\rrparenthesis', '\u2988')); |
| 5062 |
delimiter.add('\\llangle', new Symbol('\\llangle', '\u2989')); |
| 5063 |
delimiter.add('\\rrangle', new Symbol('\\rrangle', '\u298A')); |
| 5064 |
delimiter.add('\\Lbrbrak', new Symbol('\\Lbrbrak', '\u27EC')); |
| 5065 |
delimiter.add('\\Rbrbrak', new Symbol('\\Rbrbrak', '\u27ED')); |
| 5066 |
delimiter.add('\\lBrace', new Symbol('\\lBrace', '\u2983')); |
| 5067 |
delimiter.add('\\rBrace', new Symbol('\\rBrace', '\u2984')); |
| 5068 |
delimiter.add('\\lParen', new Symbol('\\lParen', '\u2985')); |
| 5069 |
delimiter.add('\\rParen', new Symbol('\\rParen', '\u2986')); |
| 5070 |
delimiter.add('\\lbrackubar', new Symbol('\\lbrackubar', '\u298B')); |
| 5071 |
delimiter.add('\\rbrackubar', new Symbol('\\rbrackubar', '\u298C')); |
| 5072 |
delimiter.add('\\lbrackultick', new Symbol('\\lbrackultick', '\u298D')); |
| 5073 |
delimiter.add('\\rbracklrtick', new Symbol('\\rbracklrtick', '\u298E')); |
| 5074 |
delimiter.add('\\lbracklltick', new Symbol('\\lbracklltick', '\u298F')); |
| 5075 |
delimiter.add('\\rbrackurtick', new Symbol('\\rbrackurtick', '\u2990')); |
| 5076 |
delimiter.add('\\langledot', new Symbol('\\langledot', '\u2991')); |
| 5077 |
delimiter.add('\\rangledot', new Symbol('\\rangledot', '\u2992')); |
| 5078 |
delimiter.add('\\lparenless', new Symbol('\\lparenless', '\u2993')); |
| 5079 |
delimiter.add('\\rparengtr', new Symbol('\\rparengtr', '\u2994')); |
| 5080 |
delimiter.add('\\Lparengtr', new Symbol('\\Lparengtr', '\u2995')); |
| 5081 |
delimiter.add('\\Rparenless', new Symbol('\\Rparenless', '\u2996')); |
| 5082 |
delimiter.add('\\lblkbrbrak', new Symbol('\\lblkbrbrak', '\u2997')); |
| 5083 |
delimiter.add('\\rblkbrbrak', new Symbol('\\rblkbrbrak', '\u2998')); |
| 5084 |
delimiter.add('\\lvzigzag', new Symbol('\\lvzigzag', '\u29D8')); |
| 5085 |
delimiter.add('\\rvzigzag', new Symbol('\\rvzigzag', '\u29D9')); |
| 5086 |
delimiter.add('\\Lvzigzag', new Symbol('\\Lvzigzag', '\u29DA')); |
| 5087 |
delimiter.add('\\Rvzigzag', new Symbol('\\Rvzigzag', '\u29DB')); |
| 5088 |
delimiter.add('\\lcurvyangle', new Symbol('\\lcurvyangle', '\u29FC')); |
| 5089 |
delimiter.add('\\rcurvyangle', new Symbol('\\rcurvyangle', '\u29FD')); |
| 5090 |
delimiter.add('\\Vvert', new Symbol('\\Vvert', '\u2980')); |
| 5091 |
} // ready |
| 5092 |
}, // startup |
| 5093 |
|
| 5094 |
tex: { |
| 5095 |
packages: {'[+]': ['tagformat', 'Lwarp-macros', 'textmacros']}, |
| 5096 |
tags: "ams", |
| 5097 |
tagformat: { |
| 5098 |
number: function (n) { |
| 5099 |
if(MathJax.config.subequations==0) |
| 5100 |
return(MathJax.config.section + n); |
| 5101 |
else |
| 5102 |
return(MathJax.config.section + String.fromCharCode(96+n)); |
| 5103 |
}, |
| 5104 |
}, |
| 5105 |
} |
| 5106 |
} |
| 5107 |
</script> |
| 5108 |
|
| 5109 |
<script |
| 5110 |
id="MathJax-script" |
| 5111 |
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js" |
| 5112 |
></script> |
| 5113 |
\end{filecontents*} |
| 5114 |
\end{LWRwriteconf} |
| 5115 |
|
| 5116 |
|
| 5117 |
|
| 5118 |
|
| 5119 |
\begin{LWRcreatelwarpmk} |
| 5120 |
\begin{filecontents*}[overwrite]{lwarpmk.lua} |
| 5121 |
#!/usr/bin/env texlua |
| 5122 |
|
| 5123 |
-- Copyright 2016-2026 Brian Dunn |
| 5124 |
|
| 5125 |
printversion = "v0.921" |
| 5126 |
requiredconfversion = "2" -- also at *lwarpmk.conf |
| 5127 |
|
| 5128 |
function printhelp () |
| 5129 |
print ("lwarpmk: Use lwarpmk -h or lwarpmk --help for help.") ; |
| 5130 |
end |
| 5131 |
|
| 5132 |
function printusage () |
| 5133 |
-- |
| 5134 |
-- Print the usage of the lwarpmk command: |
| 5135 |
-- |
| 5136 |
print ( [[ |
| 5137 |
|
| 5138 |
lwarpmk print [-p project]: Compile the print version if necessary. |
| 5139 |
lwarpmk print1 [-p project]: Forced single compile of the print version. |
| 5140 |
lwarpmk printindex [-p project]: Process print indexes. |
| 5141 |
lwarpmk printglossary [-p project]: Process the glossary for the print version. |
| 5142 |
lwarpmk html [-p project]: Compile the HTML version if necessary. |
| 5143 |
lwarpmk html1 [-p project]: Forced single compile of the HTML version. |
| 5144 |
lwarpmk htmlindex [-p project]: Process HTML indexes. |
| 5145 |
lwarpmk htmlglossary [-p project]: Process the glossary for the html version. |
| 5146 |
lwarpmk again [-p project]: Touch the source code to trigger recompiles. |
| 5147 |
lwarpmk limages [-p project]: Process the "lateximages" created by lwarp.sty. |
| 5148 |
lwarpmk pdftohtml [-p project]: |
| 5149 |
For use with latexmk or a Makefile: |
| 5150 |
Converts project_html.pdf to project_html.html and individual HTML files. |
| 5151 |
Finishes the HTML conversion even if there was a compile error. |
| 5152 |
lwarpmk pdftosvg <list of file names>: Converts each PDF file to SVG. |
| 5153 |
lwarpmk epstopdf <list of file names>: Converts each EPS file to PDF. |
| 5154 |
lwarpmk clean [-p project]: Remove *.aux, *.toc, *.lof/t, |
| 5155 |
*.idx, *.ind, *.bbl, *.log, *_html_inc.*, .gl*, |
| 5156 |
*_html.pdf, *_html.html, *_html.sidetoc |
| 5157 |
lwarpmk cleanall [-p project]: Remove auxiliary files, project.pdf, *.html |
| 5158 |
lwarpmk cleanlimages: Removes all images from the "lateximages" directory. |
| 5159 |
lwarpmk -v: Print the version number. |
| 5160 |
lwarpmk -h: Print this help message. |
| 5161 |
lwarpmk --help: Print this help message. |
| 5162 |
|
| 5163 |
]] ) |
| 5164 |
-- printconf () |
| 5165 |
end |
| 5166 |
|
| 5167 |
function splitfilename ( pathandfilename ) |
| 5168 |
-- |
| 5169 |
-- Separates out the path and extension from a filename. |
| 5170 |
-- Returns path, filename with extension, and extension. |
| 5171 |
-- Ex: thispath, thisfilename, thisextension = splitfilename ("path/to/filename.ext") |
| 5172 |
-- |
| 5173 |
-- https://www.fhug.org.uk/wiki/wiki/doku.php?id=plugins:code_snippets: |
| 5174 |
-- split_filename_in_to_path_filename_and_extension |
| 5175 |
-- |
| 5176 |
if lfs.attributes(pathandfilename,"mode") == "directory" then |
| 5177 |
local strPath = pathandfilename:gsub("[\\/]$","") -- $ (syntax highlighting) |
| 5178 |
return strPath.."\\","","" |
| 5179 |
end |
| 5180 |
pathandfilename = pathandfilename.."." |
| 5181 |
return pathandfilename:match("^(.-)([^\\/]-)%.([^\\/%.]-)%.?$") |
| 5182 |
end |
| 5183 |
|
| 5184 |
function splitfile (destfile,sourcefile) |
| 5185 |
-- |
| 5186 |
-- Split one large sourcefile into a number of files, |
| 5187 |
-- starting with destfile. |
| 5188 |
-- The file is split at each occurance of <!--|Start file|newfilename|* |
| 5189 |
-- If lwarp is in use, sets usinglwarp. |
| 5190 |
-- |
| 5191 |
usinglwarp = false ; |
| 5192 |
print ("lwarpmk: Splitting " .. sourcefile .. " into " .. destfile) ; |
| 5193 |
local sfile = io.open(sourcefile) |
| 5194 |
io.output(destfile) |
| 5195 |
for line in sfile:lines() do |
| 5196 |
i,j,copen,cstart,newfilename = string.find (line,"(.*)|(.*)|(.*)|") ; |
| 5197 |
if ( (i~= nil) and (copen == "<!--") and (cstart == "Start file")) then |
| 5198 |
-- split the file |
| 5199 |
io.output(newfilename) ; |
| 5200 |
else |
| 5201 |
if ( (i~= nil) and (copen == "<!--") and (cstart == "Using lwarp")) then |
| 5202 |
-- verified the use of \usepackage{lwarp} |
| 5203 |
usinglwarp = true ; |
| 5204 |
else |
| 5205 |
-- not a splitpoint |
| 5206 |
io.write (line .. "\n") ; |
| 5207 |
end end |
| 5208 |
end -- do |
| 5209 |
io.close(sfile) |
| 5210 |
if ( usinglwarp == false ) then |
| 5211 |
print ("lwarpmk: ===") |
| 5212 |
print ("lwarpmk: \\usepackage{lwarp} was not detected,") |
| 5213 |
print ("lwarpmk: or option warpdisable was used.") |
| 5214 |
print ("lwarpmk: The HTML output will not be correct,") |
| 5215 |
print ("lwarpmk: and references may be undefined.") |
| 5216 |
print ("lwarpmk: Ensured that \\usepackage{lwarp} is enabled,") |
| 5217 |
print ("lwarpmk: then lwarpmk print and lwarpmk html again.") |
| 5218 |
print ("lwarpmk: ===") |
| 5219 |
end |
| 5220 |
end -- function |
| 5221 |
|
| 5222 |
function cvalueerror ( line, linenum , cvalue ) |
| 5223 |
-- |
| 5224 |
-- Incorrect value, so print an error and exit. |
| 5225 |
-- |
| 5226 |
print ("lwarpmk: ===") |
| 5227 |
print ("lwarpmk: " .. linenum .. " : " .. line ) ; |
| 5228 |
print ( |
| 5229 |
"lwarpmk: incorrect variable value \"" .. cvalue .. |
| 5230 |
"\" in lwarpmk.conf.\n" |
| 5231 |
) ; |
| 5232 |
print ("lwarpmk: ===") |
| 5233 |
-- printconf () ; |
| 5234 |
os.exit(1) ; |
| 5235 |
end |
| 5236 |
|
| 5237 |
function printhowtorecompile () |
| 5238 |
-- Tells the user how to recompile to regenerate the configuration files. |
| 5239 |
print ("lwarpmk: The configuration files lwarpmk.conf and "..sourcename..".lwarpmkconf" ) |
| 5240 |
print ("lwarpmk: must be updated. To do so, recompile" ) |
| 5241 |
print ("lwarpmk: " , sourcename..".tex" ) |
| 5242 |
if ( printlatexcmd == "" ) then |
| 5243 |
print ("lwarpmk: using xe/lua/pdflatex," ) |
| 5244 |
else |
| 5245 |
print ("lwarpmk: using the command:") |
| 5246 |
print ("lwarpmk: " , printlatexcmd ) |
| 5247 |
end |
| 5248 |
print ("lwarpmk: then use lwarpmk again.") |
| 5249 |
end -- printhowtorecompile |
| 5250 |
|
| 5251 |
function ignoreconf () |
| 5252 |
-- Global argument index |
| 5253 |
argindex = 2 |
| 5254 |
end |
| 5255 |
|
| 5256 |
function loadconf () |
| 5257 |
-- |
| 5258 |
-- Load settings from the project's "lwarpmk.conf" file: |
| 5259 |
-- |
| 5260 |
-- Default configuration filename: |
| 5261 |
local conffile = "lwarpmk.conf" |
| 5262 |
local confroot = "lwarpmk" |
| 5263 |
-- Global argument index |
| 5264 |
argindex = 2 |
| 5265 |
-- Optional configuration filename: |
| 5266 |
if ( arg[argindex] == "-p" ) then |
| 5267 |
argindex = argindex + 1 |
| 5268 |
confroot = arg[argindex] |
| 5269 |
conffile = confroot..".lwarpmkconf" |
| 5270 |
argindex = argindex + 1 |
| 5271 |
end |
| 5272 |
-- Additional defaults: |
| 5273 |
confversion = "0" |
| 5274 |
opsystem = "Unix" |
| 5275 |
imagesdirectory = "lateximages" |
| 5276 |
imagesname = "image-" |
| 5277 |
latexmk = "false" |
| 5278 |
printlatexcmd = "" |
| 5279 |
HTMLlatexcmd = "" |
| 5280 |
printindexcmd = "" |
| 5281 |
HTMLindexcmd = "" |
| 5282 |
latexmkindexcmd = "" |
| 5283 |
-- to be removed: |
| 5284 |
-- indexprog = "makeindex" |
| 5285 |
-- makeindexstyle = "lwarp.ist" |
| 5286 |
-- xindylanguage = "english" |
| 5287 |
-- xindycodepage = "utf8" |
| 5288 |
-- xindystyle = "lwarp.xdy" |
| 5289 |
-- pdftotextenc = "UTF-8" |
| 5290 |
glossarycmd = "makeglossaries" |
| 5291 |
-- Verify the file exists: |
| 5292 |
if (lfs.attributes(conffile,"mode")==nil) then |
| 5293 |
-- file not exists |
| 5294 |
print ("lwarpmk: ===") |
| 5295 |
print ("lwarpmk: File \"" .. conffile .."\" does not exist.") |
| 5296 |
print ("lwarpmk: Move to the project's source directory,") |
| 5297 |
print ("lwarpmk: recompile using pdflatex, xelatex, or lualatex,") |
| 5298 |
print ("lwarpmk: then try using lwarpmk again.") |
| 5299 |
if ( arg[argindex] ~= nil ) then |
| 5300 |
print ( |
| 5301 |
"lwarpmk: (\"" .. confroot .. |
| 5302 |
"\" does not appear to be a project name.)" |
| 5303 |
) |
| 5304 |
end |
| 5305 |
print ("lwarpmk: ===") |
| 5306 |
printhelp () ; |
| 5307 |
os.exit(1) -- exit the entire lwarpmk script |
| 5308 |
else -- file exists |
| 5309 |
-- Read the file: |
| 5310 |
print ("lwarpmk: Reading " .. conffile ..".") |
| 5311 |
local cfile = io.open(conffile) |
| 5312 |
-- Scan each line, parsing each line as: name = [[string]] |
| 5313 |
local linenum = 0 |
| 5314 |
for line in cfile:lines() do -- scan lines |
| 5315 |
linenum = linenum + 1 |
| 5316 |
i,j,cvarname,cvalue = string.find (line,"([%w-_]*)%s*=%s*%[%[([^%]]*)%]%]") ; |
| 5317 |
-- Error if incorrect enclosing characters: |
| 5318 |
if ( i == nil ) then |
| 5319 |
print ("lwarpmk: ===") |
| 5320 |
print ("lwarpmk: " .. linenum .. " : " .. line ) ; |
| 5321 |
print ("lwarpmk: Incorrect entry in " .. conffile ..".\n" ) ; |
| 5322 |
print ("lwarpmk: ===") |
| 5323 |
-- printconf () ; |
| 5324 |
os.exit(1) ; |
| 5325 |
end -- nil |
| 5326 |
if ( cvarname == "confversion" ) then |
| 5327 |
confversion = cvalue |
| 5328 |
elseif ( cvarname == "opsystem" ) then |
| 5329 |
-- Verify choice of opsystem: |
| 5330 |
if ( (cvalue == "Unix") or (cvalue == "Windows") ) then |
| 5331 |
opsystem = cvalue |
| 5332 |
else |
| 5333 |
cvalueerror ( line, linenum , cvalue ) |
| 5334 |
end |
| 5335 |
elseif ( cvarname == "sourcename" ) then sourcename = cvalue |
| 5336 |
elseif ( cvarname == "homehtmlfilename" ) then homehtmlfilename = cvalue |
| 5337 |
elseif ( cvarname == "htmlfilename" ) then htmlfilename = cvalue |
| 5338 |
elseif ( cvarname == "imagesdirectory" ) then imagesdirectory = cvalue |
| 5339 |
elseif ( cvarname == "imagesname" ) then imagesname = cvalue |
| 5340 |
elseif ( cvarname == "latexmk" ) then latexmk = cvalue |
| 5341 |
elseif ( cvarname == "printlatexcmd" ) then printlatexcmd = cvalue |
| 5342 |
elseif ( cvarname == "HTMLlatexcmd" ) then HTMLlatexcmd = cvalue |
| 5343 |
elseif ( cvarname == "printindexcmd" ) then printindexcmd = cvalue |
| 5344 |
elseif ( cvarname == "HTMLindexcmd" ) then HTMLindexcmd = cvalue |
| 5345 |
elseif ( cvarname == "latexmkindexcmd" ) then latexmkindexcmd = cvalue |
| 5346 |
elseif ( cvarname == "glossarycmd" ) then glossarycmd = cvalue |
| 5347 |
elseif ( cvarname == "pdftotextenc" ) then pdftotextenc = cvalue |
| 5348 |
else |
| 5349 |
print ("lwarpmk: ===") |
| 5350 |
print ("lwarpmk: " .. linenum .. " : " .. line ) ; |
| 5351 |
print ( |
| 5352 |
"lwarpmk: Incorrect variable name \"" .. cvarname .. "\" in " .. |
| 5353 |
conffile ..".\n" |
| 5354 |
) ; |
| 5355 |
print ("lwarpmk: ===") |
| 5356 |
-- printconf () ; |
| 5357 |
os.exit(1) ; |
| 5358 |
end -- cvarname |
| 5359 |
end -- do scan lines |
| 5360 |
io.close(cfile) |
| 5361 |
end -- file exists |
| 5362 |
-- Error if sourcename is "lwarp". |
| 5363 |
-- This could happen if a local copy of lwarp has recently been recompiled. |
| 5364 |
if sourcename=="lwarp" then |
| 5365 |
print ("lwarpmk: ===") |
| 5366 |
print ("lwarpmk: lwarp.sty has recently been recompiled in this directory,") |
| 5367 |
print ("lwarpmk: and \"lwarpmk.conf\" is no longer set for your own project.") |
| 5368 |
print ("lwarpmk: (Perhaps you are not in your project's directory?)") |
| 5369 |
print ("lwarpmk: In your project directory, recompile your project") |
| 5370 |
print ("lwarpmk: using pdf/lua/xelatex <projectname>.") |
| 5371 |
print ("lwarpmk: After a recompile, \"lwarpmk.conf\" will be set for your project,") |
| 5372 |
print ("lwarpmk: and you may again use lwarpmk.") |
| 5373 |
print ("lwarpmk: ===") |
| 5374 |
os.exit(1) |
| 5375 |
end -- sourcename of "lwarp" |
| 5376 |
-- Select some operating-system commands: |
| 5377 |
if opsystem=="Unix" then -- For Unix / Linux / Mac OS: |
| 5378 |
rmname = "rm" |
| 5379 |
mvname = "mv" |
| 5380 |
cpname = "cp" |
| 5381 |
touchnamepre = "touch" |
| 5382 |
touchnamepost = "" |
| 5383 |
newtouchname = "touch" |
| 5384 |
dirslash = "/" |
| 5385 |
opquote= "\'" |
| 5386 |
cmdgroupopenname = " ( " |
| 5387 |
cmdgroupclosename = " ) " |
| 5388 |
seqname = " && " |
| 5389 |
bgname = " &" |
| 5390 |
elseif opsystem=="Windows" then -- For Windows |
| 5391 |
rmname = "DEL" |
| 5392 |
mvname = "MOVE" |
| 5393 |
cpname = "COPY" |
| 5394 |
touchnamepre = "COPY /b" |
| 5395 |
touchnamepost = "+,," |
| 5396 |
newtouchname = "echo empty >" |
| 5397 |
dirslash = "\\" |
| 5398 |
opquote= "\"" |
| 5399 |
cmdgroupopenname = "" |
| 5400 |
cmdgroupclosename = "" |
| 5401 |
seqname = " & " |
| 5402 |
bgname = "" |
| 5403 |
else |
| 5404 |
print ("lwarpmk: ===") |
| 5405 |
print ("lwarpmk: Select Unix or Windows for opsystem." ) |
| 5406 |
print ("lwarpmk: ===") |
| 5407 |
os.exit(1) |
| 5408 |
end --- for Windows |
| 5409 |
-- Warning if the operating system does not appear to be correct, |
| 5410 |
-- in case files were transferred to another system. |
| 5411 |
if ( (package.config:sub(1,1)) ~= dirslash ) then |
| 5412 |
print ("lwarpmk: ===") |
| 5413 |
print ("lwarpmk: It appears that lwarpmk.conf is for a different operating system." ) |
| 5414 |
printhowtorecompile () |
| 5415 |
print ("lwarpmk: ===") |
| 5416 |
os.exit(1) |
| 5417 |
end |
| 5418 |
-- Error if the configuration file's version is not current: |
| 5419 |
if ( confversion ~= requiredconfversion ) then |
| 5420 |
print ("lwarpmk: ===") |
| 5421 |
printhowtorecompile () |
| 5422 |
print ("lwarpmk: ===") |
| 5423 |
os.exit(1) |
| 5424 |
end |
| 5425 |
end -- loadconf |
| 5426 |
|
| 5427 |
function executecheckerror ( executecommands , errormessage ) |
| 5428 |
-- |
| 5429 |
-- Execute an operating system call, |
| 5430 |
-- and maybe exit with an error message. |
| 5431 |
-- |
| 5432 |
local err |
| 5433 |
err = os.execute ( executecommands ) |
| 5434 |
if ( err ~= 0 ) then |
| 5435 |
print ("lwarpmk: ===") |
| 5436 |
print ("lwarpmk: " .. errormessage ) |
| 5437 |
print ("lwarpmk: ===") |
| 5438 |
os.exit(1) |
| 5439 |
end |
| 5440 |
end -- executecheckerror |
| 5441 |
|
| 5442 |
function refreshdate () |
| 5443 |
os.execute(touchnamepre .. " " .. sourcename .. ".tex " .. touchnamepost) |
| 5444 |
end |
| 5445 |
|
| 5446 |
function reruntoget (filesource) |
| 5447 |
-- |
| 5448 |
-- Scan the LaTeX log file for the phrase "Rerun to get", |
| 5449 |
-- indicating that the file should be compiled again. |
| 5450 |
-- Return true if found. |
| 5451 |
-- |
| 5452 |
local fsource = io.open(filesource) |
| 5453 |
for line in fsource:lines() do |
| 5454 |
if ( string.find(line,"Rerun to get") ~= nil ) then |
| 5455 |
io.close(fsource) |
| 5456 |
return true |
| 5457 |
end -- if |
| 5458 |
end -- do |
| 5459 |
io.close(fsource) |
| 5460 |
return false |
| 5461 |
end |
| 5462 |
|
| 5463 |
function onetime (latexcmd, fsuffix) |
| 5464 |
-- |
| 5465 |
-- Compile one time, return true if should compile again. |
| 5466 |
-- fsuffix is "" for print, "_html" for HTML output. |
| 5467 |
-- |
| 5468 |
print("lwarpmk: Compiling with: " .. latexcmd) |
| 5469 |
executecheckerror ( |
| 5470 |
latexcmd , |
| 5471 |
"Compile error." |
| 5472 |
) |
| 5473 |
return (reruntoget(sourcename .. fsuffix .. ".log") ) ; |
| 5474 |
end |
| 5475 |
|
| 5476 |
function manytimes (latexcmd, fsuffix) |
| 5477 |
-- |
| 5478 |
-- Compile up to five times. |
| 5479 |
-- fsuffix is "" for print, "_html" for HTML output |
| 5480 |
-- |
| 5481 |
if onetime(latexcmd, fsuffix) == true then |
| 5482 |
if onetime(latexcmd, fsuffix) == true then |
| 5483 |
if onetime(latexcmd, fsuffix) == true then |
| 5484 |
if onetime(latexcmd, fsuffix) == true then |
| 5485 |
if onetime(latexcmd, fsuffix) == true then |
| 5486 |
end end end end end |
| 5487 |
end |
| 5488 |
|
| 5489 |
function verifyfileexists (filename) |
| 5490 |
-- |
| 5491 |
-- Exit if the given file does not exist. |
| 5492 |
-- |
| 5493 |
if (lfs.attributes ( filename , "modification" ) == nil ) then |
| 5494 |
print ("lwarpmk: ===") |
| 5495 |
print ("lwarpmk: " .. filename .. " not found." ) ; |
| 5496 |
print ("lwarpmk: ===") |
| 5497 |
os.exit (1) ; |
| 5498 |
end |
| 5499 |
end |
| 5500 |
|
| 5501 |
function pdftohtml () |
| 5502 |
-- |
| 5503 |
-- Convert <project>_html.pdf into HTML files: |
| 5504 |
-- |
| 5505 |
-- Convert to text: |
| 5506 |
print ("lwarpmk: Converting " .. sourcename |
| 5507 |
.."_html.pdf to " .. sourcename .. "_html.html") |
| 5508 |
err = os.execute("pdftotext -enc " .. pdftotextenc .. " -nopgbrk -layout " |
| 5509 |
.. sourcename .. "_html.pdf " .. sourcename .. "_html.html") |
| 5510 |
if ( err ~= 0 ) then |
| 5511 |
print ("lwarpmk: ===") |
| 5512 |
print ("lwarpmk: Ensure that the Poppler utilities are installed." ) |
| 5513 |
print ("lwarpmk: See the Lwarp manual: `Installing additional utilities'." ) |
| 5514 |
print ("lwarpmk: ===") |
| 5515 |
os.exit(1) |
| 5516 |
end |
| 5517 |
-- Split the result into individual HTML files: |
| 5518 |
splitfile (homehtmlfilename .. ".html" , sourcename .. "_html.html") |
| 5519 |
end |
| 5520 |
|
| 5521 |
function removeaux () |
| 5522 |
-- |
| 5523 |
-- Remove auxiliary files: |
| 5524 |
-- All .aux files are removed since there may be many bbl*.aux files. |
| 5525 |
-- Also removes sourcename_html.pdf, sourcename_html.html, |
| 5526 |
-- and sourcename_html.sidetoc, plus comment_*.cut. |
| 5527 |
-- |
| 5528 |
os.execute ( rmname .. " *.aux " .. |
| 5529 |
sourcename ..".toc " .. sourcename .. "_html.toc " .. |
| 5530 |
sourcename ..".lof " .. sourcename .. "_html.lof " .. |
| 5531 |
sourcename ..".lot " .. sourcename .. "_html.lot " .. |
| 5532 |
sourcename ..".bbl " .. sourcename .. "_html.bbl " .. |
| 5533 |
" *.idx " .. |
| 5534 |
" *.ind " .. |
| 5535 |
sourcename ..".ps " .. sourcename .."_html.ps " .. |
| 5536 |
sourcename ..".log " .. sourcename .. "_html.log " .. |
| 5537 |
sourcename ..".gl* " .. sourcename .. "_html.gl* " .. |
| 5538 |
sourcename .. "_html.pdf " .. |
| 5539 |
sourcename .. "_html.html " .. |
| 5540 |
sourcename .. "_html.sidetoc " .. |
| 5541 |
" *_html_inc.* " .. |
| 5542 |
" comment_*.cut" |
| 5543 |
) |
| 5544 |
end |
| 5545 |
|
| 5546 |
function checkhtmlpdfexists () |
| 5547 |
-- |
| 5548 |
-- Error if the HTML document does not exist. |
| 5549 |
-- The lateximages are drawn from the HTML PDF version of the document, |
| 5550 |
-- so "lwarpmk html" must be done before "lwarpmk limages". |
| 5551 |
-- |
| 5552 |
local htmlpdffile = io.open(sourcename .. "_html.pdf", "r") |
| 5553 |
if ( htmlpdffile == nil ) then |
| 5554 |
print ("") |
| 5555 |
print ("lwarpmk: ===") |
| 5556 |
print ("lwarpmk: The HTML version of the document does not exist.") |
| 5557 |
print ("lwarpmk: Enter \"lwarpmk html\" to compile the HTML version.") |
| 5558 |
print ("lwarpmk: ===") |
| 5559 |
os.exit(1) |
| 5560 |
end |
| 5561 |
io.close (htmlpdffile) |
| 5562 |
end -- checkhtmlpdfexists |
| 5563 |
|
| 5564 |
function warnlimages () |
| 5565 |
-- |
| 5566 |
-- Warning of a missing <sourcename>-images.txt file: |
| 5567 |
print ("lwarpmk: ===") |
| 5568 |
print ("lwarpmk: \"" .. sourcename .. "-images.txt\" does not exist.") |
| 5569 |
print ("lwarpmk: Your project does not use SVG math or other lateximages,") |
| 5570 |
print ("lwarpmk: or the file has been deleted somehow.") |
| 5571 |
print ("lwarpmk: Use \"lwarpmk html1\" to recompile your project") |
| 5572 |
print ("lwarpmk: and recreate \"" .. sourcename .. "-images.txt\".") |
| 5573 |
print ("lwarpmk: If your project does not use SVG math or other lateximages,") |
| 5574 |
print ("lwarpmk: then \"" .. sourcename .. "-images.txt\" will never exist, and") |
| 5575 |
print ("lwarpmk: \"lwarpmk limages\" will not be necessary.") |
| 5576 |
print ("lwarpmk: ===") |
| 5577 |
end -- warnlimages |
| 5578 |
|
| 5579 |
function warnlimagesrecompile () |
| 5580 |
-- Warning if must recompile before creating limages: |
| 5581 |
print ("") |
| 5582 |
print ("lwarpmk: ===") |
| 5583 |
print ("lwarpmk: Cross-references are not yet correct.") |
| 5584 |
print ("lwarpmk: The document must be recompiled before creating the lateximages.") |
| 5585 |
print ("lwarpmk: Enter \"lwarpmk html1\" again, then try \"lwarpmk limages\" again.") |
| 5586 |
print ("lwarpmk: ===") |
| 5587 |
end --warnlimagesrecompile |
| 5588 |
|
| 5589 |
function checklimages () |
| 5590 |
-- |
| 5591 |
-- Check <sourcename>.txt to see if need to recompile first. |
| 5592 |
-- If any entry has a page number of zero, then there were incorrect images. |
| 5593 |
-- |
| 5594 |
print ("lwarpmk: Checking for a valid " .. sourcename .. "-images.txt file.") |
| 5595 |
local limagesfile = io.open(sourcename .. "-images.txt", "r") |
| 5596 |
if ( limagesfile == nil ) then |
| 5597 |
warnlimages () |
| 5598 |
os.exit(1) |
| 5599 |
end |
| 5600 |
-- Track warning to recompile if find a page 0 |
| 5601 |
local pagezerowarning = false |
| 5602 |
-- Scan <sourcename>.txt |
| 5603 |
for line in limagesfile:lines() do |
| 5604 |
-- lwimgpage is the page number in the PDF which has the image |
| 5605 |
-- lwimghash is true if this filename is a hash |
| 5606 |
-- lwimgname is the lateximage filename root to assign for the image |
| 5607 |
i,j,lwimgpage,lwimghash,lwimgname = string.find (line,"|(.*)|(.*)|(.*)|") |
| 5608 |
-- For each entry: |
| 5609 |
if ( (i~=nil) ) then |
| 5610 |
-- If the page number is 0, image references are incorrect |
| 5611 |
-- and must recompile the soure document: |
| 5612 |
if ( lwimgpage == "0" ) then |
| 5613 |
pagezerowarning = true |
| 5614 |
end |
| 5615 |
end -- if i~=nil |
| 5616 |
end -- do |
| 5617 |
-- The last line should be |end|end|end|. |
| 5618 |
-- If not, the compile must have aborted, and the images are incomplete. |
| 5619 |
if ( lwimgpage ~= "end" ) then |
| 5620 |
warnlimagesrecompile() |
| 5621 |
os.exit(1) ; |
| 5622 |
end |
| 5623 |
if ( pagezerowarning ) then |
| 5624 |
warnlimagesrecompile() |
| 5625 |
os.exit(1) ; |
| 5626 |
end -- pagezerowarning |
| 5627 |
end -- checklimages |
| 5628 |
|
| 5629 |
function createuniximage ( lwimgfullname ) |
| 5630 |
-- |
| 5631 |
-- Create one lateximage for Unix / Linux / Mac OS. |
| 5632 |
-- |
| 5633 |
executecheckerror ( |
| 5634 |
cmdgroupopenname .. |
| 5635 |
"pdfseparate -f " .. lwimgpage .. " -l " .. lwimgpage .. " " .. |
| 5636 |
sourcename .."_html.pdf " .. |
| 5637 |
imagesdirectory .. dirslash .."lateximagetemp-%d" .. ".pdf" .. |
| 5638 |
seqname .. |
| 5639 |
-- Crop the image: |
| 5640 |
"pdfcrop --hires --margins \"0 1 0 0\" " .. imagesdirectory .. dirslash .. "lateximagetemp-" .. |
| 5641 |
lwimgpage .. ".pdf " .. |
| 5642 |
imagesdirectory .. dirslash .. lwimgname .. ".pdf" .. |
| 5643 |
seqname .. |
| 5644 |
-- Convert the image to svg: |
| 5645 |
"pdftocairo -svg -noshrink " .. imagesdirectory .. dirslash .. lwimgname .. ".pdf " .. |
| 5646 |
imagesdirectory .. dirslash .. lwimgname ..".svg" .. |
| 5647 |
seqname .. |
| 5648 |
-- Remove the temporary files: |
| 5649 |
rmname .. " " .. imagesdirectory .. dirslash .. lwimgname .. ".pdf" .. seqname .. |
| 5650 |
rmname .. " " .. imagesdirectory .. dirslash .. "lateximagetemp-" .. lwimgpage .. ".pdf" .. |
| 5651 |
cmdgroupclosename .. " >/dev/null " .. bgname |
| 5652 |
, |
| 5653 |
"File error trying to convert " .. lwimgfullname |
| 5654 |
) |
| 5655 |
-- Every 32 images, wait for completion at below normal priority, |
| 5656 |
-- allowing other image tasks to catch up. |
| 5657 |
numimageprocesses = numimageprocesses + 1 |
| 5658 |
if ( numimageprocesses > 32 ) then |
| 5659 |
numimageprocesses = 0 |
| 5660 |
print ( "lwarpmk: waiting" ) |
| 5661 |
executecheckerror ( "wait" , "File error trying to wait.") |
| 5662 |
end |
| 5663 |
end -- createuniximage |
| 5664 |
|
| 5665 |
function createwindowsimage ( lwimgfullname ) |
| 5666 |
-- |
| 5667 |
-- Create one lateximage for Windows. |
| 5668 |
-- |
| 5669 |
-- Every 32 images, wait for completion at below normal priority, |
| 5670 |
-- allowing other image tasks to catch up. |
| 5671 |
numimageprocesses = numimageprocesses + 1 |
| 5672 |
if ( numimageprocesses > 32 ) then |
| 5673 |
numimageprocesses = 0 |
| 5674 |
thiswaitcommand = "/WAIT /BELOWNORMAL" |
| 5675 |
print ( "lwarpmk: waiting" ) |
| 5676 |
else |
| 5677 |
thiswaitcommand = "" |
| 5678 |
end |
| 5679 |
-- Execute the image generation command |
| 5680 |
executecheckerror ( |
| 5681 |
"start /B " .. thiswaitcommand .. " \"\" lwarp_one_limage " .. |
| 5682 |
lwimgpage .. " " .. |
| 5683 |
lwimghash .. " " .. |
| 5684 |
lwimgname .. " " .. |
| 5685 |
sourcename .. " <nul >nul" |
| 5686 |
, |
| 5687 |
"File error trying to create image." |
| 5688 |
) |
| 5689 |
end -- createwindowsimage |
| 5690 |
|
| 5691 |
function createonelateximage ( line ) |
| 5692 |
-- |
| 5693 |
-- Given the next line of <sourcename>.txt, convert a single image. |
| 5694 |
-- |
| 5695 |
-- lwimgpage is the page number in the PDF which has the image |
| 5696 |
-- lwimghash is true if this filename is a hash |
| 5697 |
-- lwimgname is the lateximage filename root to assign for the image |
| 5698 |
i,j,lwimgpage,lwimghash,lwimgname = string.find (line,"|(.*)|(.*)|(.*)|") |
| 5699 |
-- For each entry: |
| 5700 |
if ( (i~=nil) ) then |
| 5701 |
-- Skip if the page number is 0: |
| 5702 |
if ( lwimgpage == "0" ) then |
| 5703 |
pagezerowarning = true |
| 5704 |
-- Skip if the page number is "end": |
| 5705 |
else if ( lwimgpage == "end" ) then |
| 5706 |
else |
| 5707 |
-- Skip is this image is hashed and already exists: |
| 5708 |
local lwimgfullname = imagesdirectory .. dirslash .. lwimgname .. ".svg" |
| 5709 |
if ( |
| 5710 |
(lwimghash ~= "true") or |
| 5711 |
(lfs.attributes(lwimgfullname,"mode")==nil) -- file not exists |
| 5712 |
) |
| 5713 |
then -- not hashed or not exists: |
| 5714 |
-- Print the name of the file being generated: |
| 5715 |
print ( "lwarpmk: " .. lwimgname ) |
| 5716 |
-- Touch/create the dest so that only once instance tries to build it: |
| 5717 |
executecheckerror ( |
| 5718 |
newtouchname .. " " .. lwimgfullname , |
| 5719 |
"File error trying to touch " .. lwimgfullname |
| 5720 |
) |
| 5721 |
-- Separate out the image into its own single-page pdf: |
| 5722 |
if opsystem=="Unix" then |
| 5723 |
createuniximage (lwimgfullname) |
| 5724 |
elseif opsystem=="Windows" then |
| 5725 |
createwindowsimage (lwimgfullname) |
| 5726 |
end |
| 5727 |
end -- not hashed or not exists |
| 5728 |
end -- not page "end" |
| 5729 |
end -- not page 0 |
| 5730 |
end -- not nil |
| 5731 |
end -- createonelateximage |
| 5732 |
|
| 5733 |
function createlateximages () |
| 5734 |
-- |
| 5735 |
-- Create lateximages based on <sourcename>-images.txt: |
| 5736 |
-- |
| 5737 |
-- See if the document must be recompiled first: |
| 5738 |
checklimages () |
| 5739 |
-- See if the HTML version exists: |
| 5740 |
checkhtmlpdfexists () |
| 5741 |
-- Attempt to create the lateximages: |
| 5742 |
print ("lwarpmk: Creating lateximages.") |
| 5743 |
local limagesfile = io.open(sourcename .. "-images.txt", "r") |
| 5744 |
if ( limagesfile == nil ) then |
| 5745 |
warnlimages () |
| 5746 |
os.exit(1) |
| 5747 |
end |
| 5748 |
-- Create the lateximages directory, ignore error if already exists |
| 5749 |
err = os.execute("mkdir " .. imagesdirectory) |
| 5750 |
-- For Windows, create lwarp_one_limage.cmd from lwarp_one_limage.txt: |
| 5751 |
if opsystem=="Windows" then |
| 5752 |
executecheckerror ( |
| 5753 |
cpname .. " lwarp_one_limage.txt lwarp_one_limage.cmd" , |
| 5754 |
"File error trying to copy lwarp_one_limage.txt to lwarp_one_limage.cmd" |
| 5755 |
) |
| 5756 |
end -- create lwarp_one_limage.cmd |
| 5757 |
-- Track the number of parallel processes |
| 5758 |
numimageprocesses = 0 |
| 5759 |
-- Track warning to recompile if find a page 0 |
| 5760 |
pagezerowarning = false |
| 5761 |
-- Scan <sourcename>.txt |
| 5762 |
for line in limagesfile:lines() do |
| 5763 |
createonelateximage ( line ) |
| 5764 |
end -- do |
| 5765 |
io.close(limagesfile) |
| 5766 |
print ( "lwarpmk limages: ===") |
| 5767 |
print ( "lwarpmk limages: Wait a moment for the images to complete" ) |
| 5768 |
print ( "lwarpmk limages: before reloading the page." ) |
| 5769 |
print ( "lwarpmk limages: ===") |
| 5770 |
print ( "lwarpmk limages: Done." ) |
| 5771 |
if ( pagezerowarning == true ) then |
| 5772 |
print ( "lwarpmk limages: WARNING: Images will be incorrect." ) |
| 5773 |
print ( "lwarpmk limages: Enter \"lwarpmk cleanlimages\", then" ) |
| 5774 |
print ( "lwarpmk limages: recompile the document one more time, then" ) |
| 5775 |
print ( "lwarpmk limages: repeat \"lwarpmk images\" again." ) |
| 5776 |
end -- pagezerowarning |
| 5777 |
end -- function |
| 5778 |
|
| 5779 |
function convertepstopdf () |
| 5780 |
-- |
| 5781 |
-- Converts EPS files to PDF files. |
| 5782 |
-- The filenames are arg[argindex] and up. |
| 5783 |
-- arg[1] is the command "epstopdf". |
| 5784 |
-- |
| 5785 |
ignoreconf () |
| 5786 |
for i = argindex , #arg do |
| 5787 |
if (lfs.attributes(arg[i],"mode")==nil) then |
| 5788 |
print ("lwarpmk: File \"" .. arg[i] .. "\" does not exist.") |
| 5789 |
else |
| 5790 |
print ("lwarpmk: Converting \"" .. arg[i] .. "\"") |
| 5791 |
thispath, thisfilename, thisextension = splitfilename(arg[i]) |
| 5792 |
if ( thispath == nil ) then |
| 5793 |
os.execute ( "epstopdf " .. arg[i] ) |
| 5794 |
else |
| 5795 |
os.execute ( |
| 5796 |
"epstopdf " .. |
| 5797 |
thispath .. thisfilename .. "." .. thisextension .. " " .. |
| 5798 |
thispath .. thisfilename .. ".pdf" |
| 5799 |
) |
| 5800 |
end |
| 5801 |
end -- if |
| 5802 |
end -- do |
| 5803 |
end --function |
| 5804 |
|
| 5805 |
function convertpdftosvg () |
| 5806 |
-- |
| 5807 |
-- Converts PDF files to SVG files. |
| 5808 |
-- The filenames are arg[argindex] and up. |
| 5809 |
-- arg[1] is the command "pdftosvg". |
| 5810 |
-- |
| 5811 |
ignoreconf () |
| 5812 |
for i = argindex , #arg do |
| 5813 |
if (lfs.attributes(arg[i],"mode")==nil) then |
| 5814 |
print ("lwarpmk: File \"" .. arg[i] .. "\" does not exist.") |
| 5815 |
else |
| 5816 |
print ("lwarpmk: Converting \"" .. arg[i] .. "\"") |
| 5817 |
thispath, thisfilename, thisextension = splitfilename(arg[i]) |
| 5818 |
if ( thispath == nil ) then |
| 5819 |
os.execute ( "pdftocairo -svg " .. arg[i] ) |
| 5820 |
else |
| 5821 |
os.execute ( |
| 5822 |
"pdftocairo -svg " .. |
| 5823 |
thispath .. thisfilename .. "." .. thisextension .. " " .. |
| 5824 |
thispath .. thisfilename .. ".svg" |
| 5825 |
) |
| 5826 |
end |
| 5827 |
end -- if |
| 5828 |
end -- do |
| 5829 |
end --function |
| 5830 |
|
| 5831 |
-- Force an update and conclude processing: |
| 5832 |
function updateanddone () |
| 5833 |
print ("lwarpmk: Forcing an update of " .. sourcename ..".tex.") |
| 5834 |
refreshdate () |
| 5835 |
print ("lwarpmk: " .. sourcename ..".tex is ready to be recompiled.") |
| 5836 |
print ("lwarpmk: Done.") |
| 5837 |
end -- function |
| 5838 |
|
| 5839 |
-- Start of the main code: -- |
| 5840 |
|
| 5841 |
-- lwarpmk --version : |
| 5842 |
|
| 5843 |
if (arg[1] == "--version") then |
| 5844 |
print ( "lwarpmk: " .. printversion ) |
| 5845 |
|
| 5846 |
else -- not --version |
| 5847 |
|
| 5848 |
-- print intro: |
| 5849 |
|
| 5850 |
print ("lwarpmk: " .. printversion .. " Automated make for the LaTeX Lwarp package.") |
| 5851 |
|
| 5852 |
-- lwarpmk print: |
| 5853 |
|
| 5854 |
if arg[1] == "print" then |
| 5855 |
loadconf () |
| 5856 |
if ( latexmk == "true" ) then |
| 5857 |
print ("lwarpmk: Compiling with: " .. printlatexcmd) |
| 5858 |
executecheckerror ( |
| 5859 |
printlatexcmd , |
| 5860 |
"Compile error." |
| 5861 |
) |
| 5862 |
print ("lwarpmk: Done.") |
| 5863 |
else -- not latexmk |
| 5864 |
verifyfileexists (sourcename .. ".tex") ; |
| 5865 |
-- See if up to date: |
| 5866 |
if ( |
| 5867 |
( lfs.attributes ( sourcename .. ".pdf" , "modification" ) == nil ) or |
| 5868 |
( |
| 5869 |
lfs.attributes ( sourcename .. ".tex" , "modification" ) > |
| 5870 |
lfs.attributes ( sourcename .. ".pdf" , "modification" ) |
| 5871 |
) |
| 5872 |
) then |
| 5873 |
-- Recompile if not yet up to date: |
| 5874 |
manytimes(printlatexcmd, "") |
| 5875 |
print ("lwarpmk: Done.") ; |
| 5876 |
else |
| 5877 |
print ("lwarpmk: " .. sourcename .. ".pdf is up to date.") ; |
| 5878 |
end |
| 5879 |
end -- not latexmk |
| 5880 |
|
| 5881 |
-- lwarpmk print1: |
| 5882 |
|
| 5883 |
elseif arg[1] == "print1" then |
| 5884 |
loadconf () |
| 5885 |
verifyfileexists (sourcename .. ".tex") ; |
| 5886 |
onetime(printlatexcmd, "") |
| 5887 |
print ("lwarpmk: Done.") ; |
| 5888 |
|
| 5889 |
-- lwarpmk printindex: |
| 5890 |
-- Compile the index then touch the source |
| 5891 |
-- to trigger a recompile of the document: |
| 5892 |
|
| 5893 |
elseif arg[1] == "printindex" then |
| 5894 |
loadconf () |
| 5895 |
os.execute ( printindexcmd ) |
| 5896 |
print ("lwarpmk: -------") |
| 5897 |
updateanddone () |
| 5898 |
|
| 5899 |
-- lwarpmk printglossary: |
| 5900 |
-- Compile the glossary then touch the source |
| 5901 |
-- to trigger a recompile of the document: |
| 5902 |
|
| 5903 |
elseif arg[1] == "printglossary" then |
| 5904 |
loadconf () |
| 5905 |
print ("lwarpmk: Processing the glossary.") |
| 5906 |
|
| 5907 |
os.execute(glossarycmd .. " " .. sourcename) |
| 5908 |
updateanddone () |
| 5909 |
|
| 5910 |
-- lwarpmk html: |
| 5911 |
|
| 5912 |
elseif arg[1] == "html" then |
| 5913 |
loadconf () |
| 5914 |
if ( latexmk == "true" ) then |
| 5915 |
print ("lwarpmk: Compiling with: " .. HTMLlatexcmd) |
| 5916 |
executecheckerror ( |
| 5917 |
HTMLlatexcmd , |
| 5918 |
"Compile error." |
| 5919 |
) |
| 5920 |
pdftohtml () |
| 5921 |
print ("lwarpmk: Done.") |
| 5922 |
else -- not latexmk |
| 5923 |
verifyfileexists ( sourcename .. ".tex" ) ; |
| 5924 |
-- See if exists and is up to date: |
| 5925 |
if ( |
| 5926 |
( lfs.attributes ( homehtmlfilename .. ".html" , "modification" ) == nil ) or |
| 5927 |
( |
| 5928 |
lfs.attributes ( sourcename .. ".tex" , "modification" ) > |
| 5929 |
lfs.attributes ( homehtmlfilename .. ".html" , "modification" ) |
| 5930 |
) |
| 5931 |
) then |
| 5932 |
-- Recompile if not yet up to date: |
| 5933 |
manytimes(HTMLlatexcmd, "_html") |
| 5934 |
pdftohtml () |
| 5935 |
print ("lwarpmk: Done.") |
| 5936 |
else |
| 5937 |
print ("lwarpmk: " .. homehtmlfilename .. ".html is up to date.") |
| 5938 |
end |
| 5939 |
end -- not latexmk |
| 5940 |
|
| 5941 |
-- lwarpmk html1: |
| 5942 |
|
| 5943 |
elseif arg[1] == "html1" then |
| 5944 |
loadconf () |
| 5945 |
verifyfileexists ( sourcename .. ".tex" ) ; |
| 5946 |
onetime(HTMLlatexcmd, "_html") |
| 5947 |
pdftohtml () |
| 5948 |
print ("lwarpmk: Done.") |
| 5949 |
|
| 5950 |
-- lwarpmk pdftohtml: |
| 5951 |
elseif arg[1] == "pdftohtml" then |
| 5952 |
loadconf () |
| 5953 |
pdftohtml () |
| 5954 |
|
| 5955 |
-- lwarpmk htmlindex: |
| 5956 |
-- Compile the index then touch the source |
| 5957 |
-- to trigger a recompile of the document: |
| 5958 |
|
| 5959 |
elseif arg[1] == "htmlindex" then |
| 5960 |
loadconf () |
| 5961 |
os.execute ( HTMLindexcmd ) |
| 5962 |
print ("lwarpmk: -------") |
| 5963 |
updateanddone () |
| 5964 |
|
| 5965 |
-- lwarpmk htmlglossary: |
| 5966 |
-- Compile the glossary then touch the source |
| 5967 |
-- to trigger a recompile of the document. |
| 5968 |
-- The <sourcename>.xdy file is created by the glossaries package. |
| 5969 |
|
| 5970 |
elseif arg[1] == "htmlglossary" then |
| 5971 |
loadconf () |
| 5972 |
print ("lwarpmk: Processing the glossary.") |
| 5973 |
os.execute(glossarycmd .. " " .. sourcename .. "_html") |
| 5974 |
updateanddone () |
| 5975 |
|
| 5976 |
-- lwarpmk limages: |
| 5977 |
-- Scan the <sourcename>.txt file to create lateximages. |
| 5978 |
|
| 5979 |
elseif arg[1] == "limages" then |
| 5980 |
loadconf () |
| 5981 |
print ("lwarpmk: Processing images.") |
| 5982 |
createlateximages () |
| 5983 |
print ("lwarpmk: Done.") |
| 5984 |
|
| 5985 |
-- lwarpmk again: |
| 5986 |
-- Touch the source to trigger a recompile. |
| 5987 |
|
| 5988 |
elseif arg[1] == "again" then |
| 5989 |
loadconf () |
| 5990 |
updateanddone () |
| 5991 |
|
| 5992 |
-- lwarpmk clean: |
| 5993 |
-- Remove project.aux, .toc, .lof, .lot, .log, *.idx, *.ind, *_html_inc.*, .gl* |
| 5994 |
|
| 5995 |
elseif arg[1] == "clean" then |
| 5996 |
loadconf () |
| 5997 |
removeaux () |
| 5998 |
print ("lwarpmk: Done.") |
| 5999 |
|
| 6000 |
-- lwarpmk cleanall |
| 6001 |
-- Remove project.aux, .toc, .lof, .lot, .log, *.idx, *.ind, *_html_inc.*, .gl* |
| 6002 |
-- and also project.pdf, project.dvi, *.html |
| 6003 |
|
| 6004 |
elseif arg[1] == "cleanall" then |
| 6005 |
loadconf () |
| 6006 |
removeaux () |
| 6007 |
os.execute ( rmname .. " " .. |
| 6008 |
sourcename .. ".pdf " .. sourcename .. "_html.pdf " .. |
| 6009 |
sourcename .. ".dvi " .. sourcename .. "_html.dvi " .. |
| 6010 |
"*.html" |
| 6011 |
) |
| 6012 |
print ("lwarpmk: Done.") |
| 6013 |
|
| 6014 |
-- lwarpmk cleanlimages |
| 6015 |
-- Remove images from the imagesdirectory. |
| 6016 |
|
| 6017 |
elseif arg[1] == "cleanlimages" then |
| 6018 |
loadconf () |
| 6019 |
os.execute ( rmname .. " " .. imagesdirectory .. dirslash .. "*" ) |
| 6020 |
print ("lwarpmk: Done.") |
| 6021 |
|
| 6022 |
-- lwarpmk epstopdf <list of file names> |
| 6023 |
-- Convert EPS files to PDF using epstopdf |
| 6024 |
elseif arg[1] == "epstopdf" then |
| 6025 |
convertepstopdf () |
| 6026 |
print ("lwarpmk: Done.") |
| 6027 |
|
| 6028 |
-- lwarpmk pdftosvg <list of file names> |
| 6029 |
-- Convert PDF files to SVG using pdftocairo |
| 6030 |
elseif arg[1] == "pdftosvg" then |
| 6031 |
convertpdftosvg () |
| 6032 |
print ("lwarpmk: Done.") |
| 6033 |
|
| 6034 |
-- lwarpmk with no argument : |
| 6035 |
|
| 6036 |
elseif (arg[1] == nil) then |
| 6037 |
printhelp () |
| 6038 |
|
| 6039 |
-- lwarpmk -v: |
| 6040 |
|
| 6041 |
elseif (arg[1] == "-v" ) then |
| 6042 |
-- The version number has already been printed |
| 6043 |
-- by the lwarpmk intro. |
| 6044 |
|
| 6045 |
-- lwarpmk -h or lwarpmk --help : |
| 6046 |
|
| 6047 |
elseif (arg[1] == "-h" ) or (arg[1] == "--help") then |
| 6048 |
printusage () |
| 6049 |
|
| 6050 |
-- Unknown command: |
| 6051 |
|
| 6052 |
else |
| 6053 |
printhelp () |
| 6054 |
print ("\nlwarpmk: ****** Unknown command \""..arg[1].."\". ******\n") |
| 6055 |
end |
| 6056 |
|
| 6057 |
end -- not --version |
| 6058 |
\end{filecontents*} |
| 6059 |
\end{LWRcreatelwarpmk} |
| 6060 |
|
| 6061 |
|
| 6062 |
\begin{warpHTML} |
| 6063 |
|
| 6064 |
|
| 6065 |
\newcommand*{\LWR@depthnone}{-5} |
| 6066 |
\newcommand*{\LWR@depthfinished}{-4} |
| 6067 |
\newcommand*{\LWR@depthbook}{-2} |
| 6068 |
\newcommand*{\LWR@depthpart}{-1} |
| 6069 |
\newcommand*{\LWR@depthchapter}{0} |
| 6070 |
\newcommand*{\LWR@depthsection}{1} |
| 6071 |
\newcommand*{\LWR@depthsubsection}{2} |
| 6072 |
\newcommand*{\LWR@depthsubsubsection}{3} |
| 6073 |
\newcommand*{\LWR@depthparagraph}{4} |
| 6074 |
\newcommand*{\LWR@depthsubparagraph}{5} |
| 6075 |
\newcommand*{\LWR@depthlist}{6} |
| 6076 |
\newcommand*{\LWR@depthlistitem}{7} |
| 6077 |
\let\LWR@depthdescitem\LWR@depthlistitem |
| 6078 |
|
| 6079 |
|
| 6080 |
\newcommand*{\LWR@closeone}{}% top of the stack |
| 6081 |
\newcommand*{\LWR@closetwo}{} |
| 6082 |
\newcommand*{\LWR@closethree}{} |
| 6083 |
\newcommand*{\LWR@closefour}{} |
| 6084 |
\newcommand*{\LWR@closefive}{} |
| 6085 |
\newcommand*{\LWR@closesix}{} |
| 6086 |
\newcommand*{\LWR@closeseven}{} |
| 6087 |
\newcommand*{\LWR@closeeight}{} |
| 6088 |
\newcommand*{\LWR@closenine}{} |
| 6089 |
\newcommand*{\LWR@closeten}{} |
| 6090 |
\newcommand*{\LWR@closeeleven}{} |
| 6091 |
\newcommand*{\LWR@closetwelve}{} |
| 6092 |
\newcommand*{\LWR@closethirteen}{} |
| 6093 |
\newcommand*{\LWR@closefourteen}{} |
| 6094 |
\newcommand*{\LWR@closefifteen}{} |
| 6095 |
\newcommand*{\LWR@closesixteen}{} |
| 6096 |
\newcommand*{\LWR@closeseventeen}{} |
| 6097 |
\newcommand*{\LWR@closeeighteen}{} |
| 6098 |
\newcommand*{\LWR@closenineteen}{} |
| 6099 |
|
| 6100 |
|
| 6101 |
\newcommand*{\LWR@closedepthone}{\LWR@depthnone}% top of the stack |
| 6102 |
\newcommand*{\LWR@closedepthtwo}{\LWR@depthnone} |
| 6103 |
\newcommand*{\LWR@closedepththree}{\LWR@depthnone} |
| 6104 |
\newcommand*{\LWR@closedepthfour}{\LWR@depthnone} |
| 6105 |
\newcommand*{\LWR@closedepthfive}{\LWR@depthnone} |
| 6106 |
\newcommand*{\LWR@closedepthsix}{\LWR@depthnone} |
| 6107 |
\newcommand*{\LWR@closedepthseven}{\LWR@depthnone} |
| 6108 |
\newcommand*{\LWR@closedeptheight}{\LWR@depthnone} |
| 6109 |
\newcommand*{\LWR@closedepthnine}{\LWR@depthnone} |
| 6110 |
\newcommand*{\LWR@closedepthten}{\LWR@depthnone} |
| 6111 |
\newcommand*{\LWR@closedeptheleven}{\LWR@depthnone} |
| 6112 |
\newcommand*{\LWR@closedepthtwelve}{\LWR@depthnone} |
| 6113 |
\newcommand*{\LWR@closedepththirteen}{\LWR@depthnone} |
| 6114 |
\newcommand*{\LWR@closedepthfourteen}{\LWR@depthnone} |
| 6115 |
\newcommand*{\LWR@closedepthfifteen}{\LWR@depthnone} |
| 6116 |
\newcommand*{\LWR@closedepthsixteen}{\LWR@depthnone} |
| 6117 |
\newcommand*{\LWR@closedepthseventeen}{\LWR@depthnone} |
| 6118 |
\newcommand*{\LWR@closedeptheighteen}{\LWR@depthnone} |
| 6119 |
\newcommand*{\LWR@closedepthnineteen}{\LWR@depthnone} |
| 6120 |
|
| 6121 |
|
| 6122 |
|
| 6123 |
\NewDocumentCommand{\LWR@pushclose}{m} |
| 6124 |
{% |
| 6125 |
\global\let\LWR@closenineteen\LWR@closeeighteen% |
| 6126 |
\global\let\LWR@closeeighteen\LWR@closeseventeen% |
| 6127 |
\global\let\LWR@closeseventeen\LWR@closesixteen% |
| 6128 |
\global\let\LWR@closesixteen\LWR@closefifteen% |
| 6129 |
\global\let\LWR@closefifteen\LWR@closefourteen% |
| 6130 |
\global\let\LWR@closefourteen\LWR@closethirteen% |
| 6131 |
\global\let\LWR@closethirteen\LWR@closetwelve% |
| 6132 |
\global\let\LWR@closetwelve\LWR@closeeleven% |
| 6133 |
\global\let\LWR@closeeleven\LWR@closeten% |
| 6134 |
\global\let\LWR@closeten\LWR@closenine% |
| 6135 |
\global\let\LWR@closenine\LWR@closeeight% |
| 6136 |
\global\let\LWR@closeeight\LWR@closeseven% |
| 6137 |
\global\let\LWR@closeseven\LWR@closesix% |
| 6138 |
\global\let\LWR@closesix\LWR@closefive% |
| 6139 |
\global\let\LWR@closefive\LWR@closefour% |
| 6140 |
\global\let\LWR@closefour\LWR@closethree% |
| 6141 |
\global\let\LWR@closethree\LWR@closetwo% |
| 6142 |
\global\let\LWR@closetwo\LWR@closeone% |
| 6143 |
\global\csletcs{LWR@closeone}{LWR@printclose#1}% |
| 6144 |
\global\let\LWR@closedepthnineteen\LWR@closedeptheighteen% |
| 6145 |
\global\let\LWR@closedeptheighteen\LWR@closedepthseventeen% |
| 6146 |
\global\let\LWR@closedepthseventeen\LWR@closedepthsixteen% |
| 6147 |
\global\let\LWR@closedepthsixteen\LWR@closedepthfifteen% |
| 6148 |
\global\let\LWR@closedepthfifteen\LWR@closedepthfourteen% |
| 6149 |
\global\let\LWR@closedepthfourteen\LWR@closedepththirteen% |
| 6150 |
\global\let\LWR@closedepththirteen\LWR@closedepthtwelve% |
| 6151 |
\global\let\LWR@closedepthtwelve\LWR@closedeptheleven% |
| 6152 |
\global\let\LWR@closedeptheleven\LWR@closedepthten% |
| 6153 |
\global\let\LWR@closedepthten\LWR@closedepthnine% |
| 6154 |
\global\let\LWR@closedepthnine\LWR@closedeptheight% |
| 6155 |
\global\let\LWR@closedeptheight\LWR@closedepthseven% |
| 6156 |
\global\let\LWR@closedepthseven\LWR@closedepthsix% |
| 6157 |
\global\let\LWR@closedepthsix\LWR@closedepthfive% |
| 6158 |
\global\let\LWR@closedepthfive\LWR@closedepthfour% |
| 6159 |
\global\let\LWR@closedepthfour\LWR@closedepththree% |
| 6160 |
\global\let\LWR@closedepththree\LWR@closedepthtwo% |
| 6161 |
\global\let\LWR@closedepthtwo\LWR@closedepthone% |
| 6162 |
\global\csletcs{LWR@closedepthone}{LWR@depth#1}% |
| 6163 |
\ifdefstring{\LWR@closedepthnineteen}{\LWR@depthnone}% |
| 6164 |
{}% |
| 6165 |
{% |
| 6166 |
\PackageError{lwarp}% |
| 6167 |
{The document is nested too deeply for Lwarp}% |
| 6168 |
{PLEASE inform the Lwarp maintainer!}% |
| 6169 |
}% |
| 6170 |
} |
| 6171 |
|
| 6172 |
|
| 6173 |
\newcommand*{\LWR@popclose} |
| 6174 |
{% |
| 6175 |
\global\let\LWR@closeone\LWR@closetwo% |
| 6176 |
\global\let\LWR@closetwo\LWR@closethree% |
| 6177 |
\global\let\LWR@closethree\LWR@closefour% |
| 6178 |
\global\let\LWR@closefour\LWR@closefive% |
| 6179 |
\global\let\LWR@closefive\LWR@closesix% |
| 6180 |
\global\let\LWR@closesix\LWR@closeseven% |
| 6181 |
\global\let\LWR@closeseven\LWR@closeeight% |
| 6182 |
\global\let\LWR@closeeight\LWR@closenine% |
| 6183 |
\global\let\LWR@closenine\LWR@closeten% |
| 6184 |
\global\let\LWR@closeten\LWR@closeeleven% |
| 6185 |
\global\let\LWR@closeeleven\LWR@closetwelve% |
| 6186 |
\global\let\LWR@closetwelve\LWR@closethirteen% |
| 6187 |
\global\let\LWR@closethirteen\LWR@closefourteen% |
| 6188 |
\global\let\LWR@closefourteen\LWR@closefifteen% |
| 6189 |
\global\let\LWR@closefifteen\LWR@closesixteen% |
| 6190 |
\global\let\LWR@closesixteen\LWR@closeseventeen% |
| 6191 |
\global\let\LWR@closeseventeen\LWR@closeeighteen% |
| 6192 |
\global\let\LWR@closeeighteen\LWR@closenineteen% |
| 6193 |
\global\let\LWR@closedepthone\LWR@closedepthtwo% |
| 6194 |
\global\let\LWR@closedepthtwo\LWR@closedepththree% |
| 6195 |
\global\let\LWR@closedepththree\LWR@closedepthfour% |
| 6196 |
\global\let\LWR@closedepthfour\LWR@closedepthfive% |
| 6197 |
\global\let\LWR@closedepthfive\LWR@closedepthsix% |
| 6198 |
\global\let\LWR@closedepthsix\LWR@closedepthseven% |
| 6199 |
\global\let\LWR@closedepthseven\LWR@closedeptheight% |
| 6200 |
\global\let\LWR@closedeptheight\LWR@closedepthnine% |
| 6201 |
\global\let\LWR@closedepthnine\LWR@closedepthten% |
| 6202 |
\global\let\LWR@closedepthten\LWR@closedeptheleven% |
| 6203 |
\global\let\LWR@closedeptheleven\LWR@closedepthtwelve% |
| 6204 |
\global\let\LWR@closedepthtwelve\LWR@closedepththirteen% |
| 6205 |
\global\let\LWR@closedepththirteen\LWR@closedepthfourteen% |
| 6206 |
\global\let\LWR@closedepthfourteen\LWR@closedepthfifteen% |
| 6207 |
\global\let\LWR@closedepthfifteen\LWR@closedepthsixteen% |
| 6208 |
\global\let\LWR@closedepthsixteen\LWR@closedepthseventeen% |
| 6209 |
\global\let\LWR@closedepthseventeen\LWR@closedeptheighteen% |
| 6210 |
\global\let\LWR@closedeptheighteen\LWR@closedepthnineteen% |
| 6211 |
} |
| 6212 |
|
| 6213 |
\end{warpHTML} |
| 6214 |
|
| 6215 |
\begin{warpHTML} |
| 6216 |
\newbool{LWR@setexparray@doingparhooks} |
| 6217 |
|
| 6218 |
\NewDocumentCommand{\LWR@setexparray}{m m m}{% |
| 6219 |
\let\ifLWR@setexparray@doingparhooks\ifLWR@doingparhooks% |
| 6220 |
\setbool{LWR@doingparhooks}{false}% |
| 6221 |
\let\LWR@setexparray@par\par% |
| 6222 |
\let\par\relax% |
| 6223 |
\xdef\LWR@thisexparrayname{#1#2}% |
| 6224 |
\ifstrempty{#3}% |
| 6225 |
{\csdef{\LWR@thisexparrayname}{}}% |
| 6226 |
{\csedef{\LWR@thisexparrayname}{#3}}% |
| 6227 |
\let\ifLWR@doingparhooks\ifLWR@setexparray@doingparhooks% |
| 6228 |
\let\par\LWR@setexparray@par% |
| 6229 |
} |
| 6230 |
\newcommand*{\LWR@getexparray}[2]{% |
| 6231 |
\@nameuse{#1#2}% |
| 6232 |
} |
| 6233 |
|
| 6234 |
\end{warpHTML} |
| 6235 |
|
| 6236 |
\begin{warpall} |
| 6237 |
\newcommand{\StartDefiningTabulars}{% |
| 6238 |
\LWR@traceinfo{StartDefiningTabulars}% |
| 6239 |
\warpHTMLonly{\catcode`\&=\active}% |
| 6240 |
} |
| 6241 |
\newcommand{\StopDefiningTabulars}{% |
| 6242 |
\LWR@traceinfo{StopDefiningTabulars}% |
| 6243 |
\warpHTMLonly{\catcode`\&=4}% |
| 6244 |
} |
| 6245 |
|
| 6246 |
\newbool{LWR@mathmacro} |
| 6247 |
\boolfalse{LWR@mathmacro} |
| 6248 |
|
| 6249 |
\newcommand{\StartDefiningMath}{% |
| 6250 |
\LWR@traceinfo{StartDefiningMath}% |
| 6251 |
\warpHTMLonly{\catcode`\$=\active}% |
| 6252 |
} |
| 6253 |
\newcommand{\StopDefiningMath}{% |
| 6254 |
\LWR@traceinfo{StopDefiningMath}% |
| 6255 |
\warpHTMLonly{\catcode`\$=3}% math shift |
| 6256 |
} |
| 6257 |
|
| 6258 |
\end{warpall} |
| 6259 |
|
| 6260 |
\begin{warpHTML} |
| 6261 |
|
| 6262 |
\StartDefiningTabulars |
| 6263 |
\protected\gdef&{% |
| 6264 |
\PackageWarning{lwarp}{% |
| 6265 |
An ampersand is being used inside a tabular\MessageBreak |
| 6266 |
}% |
| 6267 |
}% |
| 6268 |
\StopDefiningTabulars |
| 6269 |
|
| 6270 |
\end{warpHTML} |
| 6271 |
|
| 6272 |
\begin{warpall} |
| 6273 |
\newbool{LWR@dynamicmath} |
| 6274 |
\boolfalse{LWR@dynamicmath} |
| 6275 |
\newcommand{\inlinemathother}{% |
| 6276 |
\LWR@traceinfo{inlinemathother}% |
| 6277 |
\booltrue{LWR@dynamicmath}% |
| 6278 |
} |
| 6279 |
\newcommand{\inlinemathnormal}{% |
| 6280 |
\LWR@traceinfo{inlinemathnormal}% |
| 6281 |
\boolfalse{LWR@dynamicmath}% |
| 6282 |
} |
| 6283 |
\end{warpall} |
| 6284 |
|
| 6285 |
|
| 6286 |
\begin{warpHTML} |
| 6287 |
|
| 6288 |
|
| 6289 |
\let\LWR@origampersand\& |
| 6290 |
|
| 6291 |
\newrobustcmd*{\LWR@fontfortags}[2]{% |
| 6292 |
\ifmmode% |
| 6293 |
\PackageError{lwarp}% |
| 6294 |
{% |
| 6295 |
An HTML tag was generated inside math.\MessageBreak |
| 6296 |
This should never occur.\MessageBreak |
| 6297 |
Something is broken in Lwarp.\MessageBreak |
| 6298 |
Enter `h' for details% |
| 6299 |
}% |
| 6300 |
{(Using #1{#2}.)}% |
| 6301 |
\else% |
| 6302 |
\ifdef{\romanencoding}% |
| 6303 |
{% |
| 6304 |
\romanencoding{\encodingdefault}% |
| 6305 |
}% |
| 6306 |
{% |
| 6307 |
\ifdef{\latintext} |
| 6308 |
{\latintext} |
| 6309 |
{\fontencoding\encodingdefault}% |
| 6310 |
}% |
| 6311 |
\LWR@print@normalfont% |
| 6312 |
\LWR@origttfamily% |
| 6313 |
\fi% |
| 6314 |
} |
| 6315 |
|
| 6316 |
\newcommand*{\HTMLentity}[1]{% |
| 6317 |
\begingroup% |
| 6318 |
\LWR@hook@processingtags% |
| 6319 |
\LWR@fontfortags{HTMLentity}{\detokenize{#1}}% |
| 6320 |
\protect\LWR@origampersand\LWR@isolate{#1};% |
| 6321 |
\endgroup% |
| 6322 |
} |
| 6323 |
|
| 6324 |
\newcommand*{\HTMLunicode}[1]{\HTMLentity{\LWR@origpound{}x#1}} |
| 6325 |
|
| 6326 |
\renewrobustcmd*{\&}{\HTMLentity{amp}} |
| 6327 |
|
| 6328 |
\let\LWR@origtextless\textless |
| 6329 |
\renewrobustcmd*{\textless}{\HTMLentity{lt}} |
| 6330 |
|
| 6331 |
\let\LWR@origtextgreater\textgreater |
| 6332 |
\renewrobustcmd*{\textgreater}{\HTMLentity{gt}} |
| 6333 |
|
| 6334 |
\let\LWR@origpercent\% |
| 6335 |
\renewrobustcmd*{\%}{\HTMLentity{percnt}} |
| 6336 |
|
| 6337 |
\end{warpHTML} |
| 6338 |
|
| 6339 |
|
| 6340 |
|
| 6341 |
\begin{warpall} |
| 6342 |
|
| 6343 |
\providecommand*{\BaseJobname}{\jobname} |
| 6344 |
|
| 6345 |
\providecommand*{\HTMLFilename}{} |
| 6346 |
\providecommand*{\HomeHTMLFilename}{\BaseJobname} |
| 6347 |
|
| 6348 |
\newcommand*{\SetHTMLFileNumber}[1]{% |
| 6349 |
\setcounter{LWR@htmlfilenumber}{#1}% |
| 6350 |
} |
| 6351 |
|
| 6352 |
\newbool{FileSectionNames} |
| 6353 |
\booltrue{FileSectionNames} |
| 6354 |
|
| 6355 |
\end{warpall} |
| 6356 |
|
| 6357 |
\begin{warpHTML} |
| 6358 |
|
| 6359 |
\newcounter{LWR@HTMLpagenum} |
| 6360 |
\setcounter{LWR@HTMLpagenum}{0} |
| 6361 |
|
| 6362 |
\newcounter{LWR@htmlseqfilenumber} |
| 6363 |
\setcounter{LWR@htmlseqfilenumber}{0} |
| 6364 |
|
| 6365 |
\newbool{LWR@setseqfilelabel} |
| 6366 |
\setbool{LWR@setseqfilelabel}{false} |
| 6367 |
|
| 6368 |
\newcounter{LWR@htmlfilenumber} |
| 6369 |
\setcounter{LWR@htmlfilenumber}{0} |
| 6370 |
|
| 6371 |
\newcommand*{\LWR@htmlsectionfilename}[1]{% |
| 6372 |
\LWR@traceinfo{LWR@htmlsectionfilename A !\detokenize{#1}!}% |
| 6373 |
\begingroup% |
| 6374 |
\LWR@disablepinyin% |
| 6375 |
\LWR@sanitize{#1}% |
| 6376 |
\LWR@traceinfo{about to compare with ??}% |
| 6377 |
\ifdefstring{\LWR@sanitized}{??} |
| 6378 |
{\LWR@traceinfo{found ??}}% |
| 6379 |
{\LWR@traceinfo{not found ??}}% |
| 6380 |
\LWR@traceinfo{about to compare with zero or empty}% |
| 6381 |
\ifboolexpr{ |
| 6382 |
test {\ifdefstring{\LWR@sanitized}{0}} or |
| 6383 |
test {\ifdefstring{\LWR@sanitized}{}} or |
| 6384 |
test {\ifdefstring{\LWR@sanitized}{??}} |
| 6385 |
} |
| 6386 |
{% |
| 6387 |
\LWR@traceinfo{LWR@htmlsectionfilename B \HomeHTMLFilename.html}% |
| 6388 |
\HomeHTMLFilename.html% |
| 6389 |
}% |
| 6390 |
{% |
| 6391 |
\LWR@traceinfo{LWR@htmlsectionfilename C \LWR@sanitized}% |
| 6392 |
\ifboolexpr{ |
| 6393 |
test{\ifdefvoid{\HTMLFilename}} and |
| 6394 |
( |
| 6395 |
test{\ifdefstring{\LWR@sanitized}{Index}} or |
| 6396 |
test{\ifdefstring{\LWR@sanitized}{index}} |
| 6397 |
) |
| 6398 |
}% |
| 6399 |
{% |
| 6400 |
\LWR@traceinfo{Adding a zero to the index filename.}% |
| 6401 |
\[email protected]% |
| 6402 |
}% |
| 6403 |
{% |
| 6404 |
\HTMLFilename\LWR@isolate{\LWR@sanitized}.html% |
| 6405 |
}% |
| 6406 |
}% |
| 6407 |
\LWR@traceinfo{LWR@htmlsectionfilename Z}% |
| 6408 |
\endgroup% |
| 6409 |
} |
| 6410 |
|
| 6411 |
\newcommand*{\LWR@htmlrefsectionfilename}[1]{% |
| 6412 |
\LWR@traceinfo{LWR@htmlrefsectionfilename: !\detokenize{#1}!}% |
| 6413 |
\begingroup% |
| 6414 |
\LWR@nullfonts% |
| 6415 |
\LWR@htmlsectionfilename{\LWR@htmlfileref{#1}}% |
| 6416 |
\endgroup% |
| 6417 |
\LWR@traceinfo{LWR@htmlrefsectionfilename: done}% |
| 6418 |
} |
| 6419 |
|
| 6420 |
\end{warpHTML} |
| 6421 |
|
| 6422 |
|
| 6423 |
\begin{warpall} |
| 6424 |
|
| 6425 |
\newcommand{\linkhomename}{Home} |
| 6426 |
|
| 6427 |
\end{warpall} |
| 6428 |
|
| 6429 |
\begin{warpHTML} |
| 6430 |
|
| 6431 |
\newcommand*{\LinkHome}{% |
| 6432 |
\LWR@subhyperrefclass{\HomeHTMLFilename.html}{\linkhomename}{linkhome}% |
| 6433 |
} |
| 6434 |
|
| 6435 |
\end{warpHTML} |
| 6436 |
|
| 6437 |
\begin{warpprint} |
| 6438 |
|
| 6439 |
\AtBeginDocument{ |
| 6440 |
\LWR@traceinfo{AtBeginDocument LinkHome} |
| 6441 |
\@ifundefined{hyperref}{ |
| 6442 |
\newcommand*{\LinkHome}{% |
| 6443 |
\linkhomename\ --- page \pageref{\BaseJobname-page-LWRfirstpage}% |
| 6444 |
} |
| 6445 |
}{ |
| 6446 |
\newcommand*{\LinkHome}{% |
| 6447 |
\hyperref[\BaseJobname-page-LWRfirstpage]{\linkhomename}% |
| 6448 |
} |
| 6449 |
} |
| 6450 |
} |
| 6451 |
|
| 6452 |
\AfterEndPreamble{\label{\BaseJobname-page-LWRfirstpage}} |
| 6453 |
|
| 6454 |
\end{warpprint} |
| 6455 |
|
| 6456 |
\begin{warpHTML} |
| 6457 |
|
| 6458 |
\newcommand*{\LWR@topnavigation}{% |
| 6459 |
\LWR@htmlelementclassline{nav}{topnavigation}{\LinkHome} |
| 6460 |
} |
| 6461 |
|
| 6462 |
\newcommand*{\LWR@botnavigation}{% |
| 6463 |
\LWR@htmlelementclassline{nav}{botnavigation}{\LinkHome} |
| 6464 |
} |
| 6465 |
|
| 6466 |
\end{warpHTML} |
| 6467 |
|
| 6468 |
|
| 6469 |
\begin{warpall} |
| 6470 |
|
| 6471 |
\newcommand*{\linkpreviousname}{Previous} |
| 6472 |
|
| 6473 |
\newcommand*{\linknextname}{Next} |
| 6474 |
|
| 6475 |
\end{warpall} |
| 6476 |
|
| 6477 |
\begin{warpprint} |
| 6478 |
|
| 6479 |
\newcommand*{\LinkPrevious}{} |
| 6480 |
|
| 6481 |
\newcommand*{\LinkNext}{} |
| 6482 |
|
| 6483 |
\end{warpprint} |
| 6484 |
|
| 6485 |
\begin{warpHTML} |
| 6486 |
|
| 6487 |
\newcommand*{\LinkPrevious}{% |
| 6488 |
\ifnumless{\value{LWR@htmlseqfilenumber}}{1}{}{% |
| 6489 |
\setcounter{LWR@tempcountone}{\value{LWR@htmlseqfilenumber}-1}% |
| 6490 |
\LWR@subhyperrefclass{% |
| 6491 |
\LWR@htmlrefsectionfilename{% |
| 6492 |
\BaseJobname-autofile-\arabic{LWR@tempcountone}% |
| 6493 |
}% |
| 6494 |
}{\linkpreviousname}{linkhome}% |
| 6495 |
}% |
| 6496 |
} |
| 6497 |
|
| 6498 |
\newcommand*{\LinkNext}{% |
| 6499 |
\ifcsdef{r@\BaseJobname-autofile-last@lwarp}{% |
| 6500 |
\edef\LWR@tempone{% |
| 6501 |
\LWR@htmlfileref{\BaseJobname-autofile-\arabic{LWR@htmlseqfilenumber}}% |
| 6502 |
}% |
| 6503 |
\edef\LWR@temptwo{% |
| 6504 |
\LWR@htmlfileref{\BaseJobname-autofile-last}% |
| 6505 |
}% |
| 6506 |
\ifdefequal{\LWR@tempone}{\LWR@temptwo}{}{% |
| 6507 |
\setcounter{LWR@tempcountone}{\value{LWR@htmlseqfilenumber}+1}% |
| 6508 |
\LWR@subhyperrefclass{% |
| 6509 |
\LWR@htmlrefsectionfilename{% |
| 6510 |
\BaseJobname-autofile-\arabic{LWR@tempcountone}% |
| 6511 |
}% |
| 6512 |
}{\linknextname}{linkhome}% |
| 6513 |
}% |
| 6514 |
}{}% |
| 6515 |
} |
| 6516 |
|
| 6517 |
\end{warpHTML} |
| 6518 |
|
| 6519 |
|
| 6520 |
|
| 6521 |
\begin{warpHTML} |
| 6522 |
|
| 6523 |
\newcommand*{\LWR@subprintstack}{ |
| 6524 |
\LWR@closedepthone\ \LWR@closedepthtwo\ \LWR@closedepththree\ |
| 6525 |
\LWR@closedepthfour\ \LWR@closedepthfive\ \LWR@closedepthsix\ |
| 6526 |
\LWR@closedepthseven\ \LWR@closedeptheight\ \LWR@closedepthnine\ |
| 6527 |
\LWR@closedepthten\ \LWR@closedeptheleven\ \LWR@closedepthtwelve\ |
| 6528 |
\LWR@closedepththirteen\ \LWR@closedepthfourteen\ \LWR@closedepthfifteen\ |
| 6529 |
\LWR@closedepthsixteen\ \LWR@closedepthseventeen\ \LWR@closedeptheighteen\ |
| 6530 |
\LWR@closedepthnineteen\ |
| 6531 |
} |
| 6532 |
|
| 6533 |
\newcommand*{\LWRPrintStack}{ |
| 6534 |
\LWR@startpars |
| 6535 |
\LWR@subprintstack |
| 6536 |
} |
| 6537 |
|
| 6538 |
\end{warpHTML} |
| 6539 |
|
| 6540 |
\begin{warpprint} |
| 6541 |
|
| 6542 |
\newcommand*{\LWRPrintStack}{} |
| 6543 |
|
| 6544 |
\end{warpprint} |
| 6545 |
|
| 6546 |
|
| 6547 |
\begin{warpHTML} |
| 6548 |
|
| 6549 |
\newcommand*{\LWR@closeoneprevious}{% |
| 6550 |
|
| 6551 |
\LWR@closeone |
| 6552 |
|
| 6553 |
\LWR@popclose |
| 6554 |
} |
| 6555 |
|
| 6556 |
\newcommand*{\LWR@closeprevious}[1]{% |
| 6557 |
\LWR@traceinfo{% |
| 6558 |
LWR@closeprevious to depth \csuse{LWR@depth#1}, % |
| 6559 |
depths are \LWR@subprintstack% |
| 6560 |
}% |
| 6561 |
\LWR@stoppars% |
| 6562 |
\whileboolexpr{test{\ifnumcomp{\LWR@closedepthone}{>}{\csuse{LWR@depth#1}}}}% |
| 6563 |
{% |
| 6564 |
\LWR@traceinfo{LWR@closeprevious: closing out depth \LWR@closedepthone}% |
| 6565 |
\LWR@closeoneprevious% |
| 6566 |
}% |
| 6567 |
\ifboolexpr{test{\ifnumcomp{\LWR@closedepthone}{=}{\csuse{LWR@depth#1}}}}% |
| 6568 |
{% |
| 6569 |
\LWR@traceinfo{LWR@closeprevious: closing out depth \LWR@closedepthone}% |
| 6570 |
\LWR@closeoneprevious% |
| 6571 |
}{}% |
| 6572 |
\LWR@traceinfo{LWR@closeprevious: done, depths are \LWR@subprintstack}% |
| 6573 |
} |
| 6574 |
|
| 6575 |
\end{warpHTML} |
| 6576 |
|
| 6577 |
|
| 6578 |
|
| 6579 |
\begin{warpHTML} |
| 6580 |
|
| 6581 |
\newcommand{\LWR@forcenewpage}{% |
| 6582 |
\LWR@traceinfo{LWR@forcenewpage}% |
| 6583 |
\ifinner\else% |
| 6584 |
\LWR@traceinfo{LWR@forcenewpage A}% |
| 6585 |
\LWR@stoppars% |
| 6586 |
\LWR@traceinfo{LWR@forcenewpage B}% |
| 6587 |
\LWR@maybe@orignewpage% |
| 6588 |
\LWR@traceinfo{LWR@forcenewpage C}% |
| 6589 |
\LWR@startpars% |
| 6590 |
\fi% |
| 6591 |
\LWR@traceinfo{LWR@forcenewpage done}% |
| 6592 |
} |
| 6593 |
\renewcommand*{\pagestyle}[1]{} |
| 6594 |
\renewcommand*{\thispagestyle}[1]{} |
| 6595 |
\renewcommand*{\markboth}[2]{} |
| 6596 |
\renewcommand*{\markright}[1]{} |
| 6597 |
\renewcommand*{\raggedbottom}{} |
| 6598 |
\renewcommand*{\flushbottom}{} |
| 6599 |
\renewcommand*{\sloppy}{} |
| 6600 |
\renewcommand*{\fussy}{} |
| 6601 |
\RenewDocumentCommand{\pagenumbering}{s m}{} |
| 6602 |
\end{warpHTML} |
| 6603 |
|
| 6604 |
|
| 6605 |
\begin{warpHTML} |
| 6606 |
|
| 6607 |
\newcommand*{\LWR@tagtitle}{h1} |
| 6608 |
\newcommand*{\LWR@tagtitleend}{/h1} |
| 6609 |
\newcommand*{\LWR@tagbook}{div class=\textquotedbl{}book\textquotedbl} |
| 6610 |
\newcommand*{\LWR@tagbookend}{/div} |
| 6611 |
\newcommand*{\LWR@tagpart}{h2} |
| 6612 |
\newcommand*{\LWR@tagpartend}{/h2} |
| 6613 |
\newcommand*{\LWR@tagchapter}{h3} |
| 6614 |
\newcommand*{\LWR@tagchapterend}{/h3} |
| 6615 |
\newcommand*{\LWR@tagsection}{h4} |
| 6616 |
\newcommand*{\LWR@tagsectionend}{/h4} |
| 6617 |
\newcommand*{\LWR@tagsubsection}{h5} |
| 6618 |
\newcommand*{\LWR@tagsubsectionend}{/h5} |
| 6619 |
\newcommand*{\LWR@tagsubsubsection}{h6} |
| 6620 |
\newcommand*{\LWR@tagsubsubsectionend}{/h6} |
| 6621 |
\newcommand*{\LWR@tagparagraph}{span class=\textquotedbl{}paragraph\textquotedbl} |
| 6622 |
\newcommand*{\LWR@tagparagraphend}{/span} |
| 6623 |
\newcommand*{\LWR@tagsubparagraph}{span class=\textquotedbl{}subparagraph\textquotedbl} |
| 6624 |
\newcommand*{\LWR@tagsubparagraphend}{/span} |
| 6625 |
|
| 6626 |
\newcommand*{\LWR@tagregularparagraph}{p} |
| 6627 |
|
| 6628 |
\newcommand*{\LWR@hook@processingtags}{} |
| 6629 |
|
| 6630 |
|
| 6631 |
\providecommand*{\LWR@FBcancel}{} |
| 6632 |
|
| 6633 |
\AtBeginDocument{% |
| 6634 |
\LWR@traceinfo{AtBeginDocument Babel French} |
| 6635 |
\@ifundefined{NoAutoSpacing}% |
| 6636 |
{}% |
| 6637 |
{% |
| 6638 |
\LetLtxMacro\LWR@FBcancel\NoAutoSpacing% |
| 6639 |
\appto{\LWR@hook@processingtags}{\LWR@FBcancel}% |
| 6640 |
}% |
| 6641 |
|
| 6642 |
\@ifundefined{frenchbsetup}% |
| 6643 |
{}% |
| 6644 |
{% |
| 6645 |
\frenchbsetup{FrenchFootnotes=false}% |
| 6646 |
\renewrobustcmd*{\FBcolonspace}{% |
| 6647 |
\begingroup% |
| 6648 |
\LWR@hook@processingtags% |
| 6649 |
\LWR@origampersand{}nbsp;% |
| 6650 |
\endgroup% |
| 6651 |
}% |
| 6652 |
\renewrobustcmd*{\FBthinspace}{% |
| 6653 |
\begingroup% |
| 6654 |
\LWR@hook@processingtags% |
| 6655 |
\LWR@origampersand\LWR@origpound{}x202f;% \, |
| 6656 |
\endgroup% |
| 6657 |
}% |
| 6658 |
\renewrobustcmd*{\FBguillspace}{% |
| 6659 |
\begingroup% |
| 6660 |
\LWR@hook@processingtags% |
| 6661 |
\LWR@origampersand{}nbsp;% ~, for \og xyz \fg{} |
| 6662 |
\endgroup% |
| 6663 |
}% |
| 6664 |
\DeclareDocumentCommand{\FBmedkern}{}{% |
| 6665 |
\begingroup% |
| 6666 |
\LWR@hook@processingtags% |
| 6667 |
\LWR@origampersand\LWR@origpound{}x202f;% \, |
| 6668 |
\endgroup% |
| 6669 |
}% |
| 6670 |
\DeclareDocumentCommand{\FBthickkern}{}{% |
| 6671 |
\begingroup% |
| 6672 |
\LWR@hook@processingtags% |
| 6673 |
\LWR@origampersand{}nbsp;% ~ |
| 6674 |
\endgroup% |
| 6675 |
}% |
| 6676 |
\renewrobustcmd*{~}{\HTMLentity{nbsp}}% was overwritten by babel-french |
| 6677 |
\ifFBunicode% |
| 6678 |
\else% |
| 6679 |
\DeclareTextSymbol{\FBtextellipsis}{LY1}{133}% |
| 6680 |
\DeclareTextCommandDefault{\FBtextellipsis}{\textellipsis\xspace}% |
| 6681 |
\fi% |
| 6682 |
}% |
| 6683 |
} |
| 6684 |
|
| 6685 |
\newcommand*{\LWR@indentHTML}{% |
| 6686 |
\LWR@orignewline\LWR@origrule{2em}{0pt}% |
| 6687 |
} |
| 6688 |
|
| 6689 |
\newcommand*{\LWR@indentHTMLtwo}{% |
| 6690 |
\LWR@orignewline\LWR@origrule{4em}{0pt}% |
| 6691 |
} |
| 6692 |
|
| 6693 |
|
| 6694 |
\newcommand*{\LWR@htmltagc}[1]{% |
| 6695 |
\LWR@traceinfo{LWR@htmltagc !\detokenize{#1}!}% |
| 6696 |
\begingroup% |
| 6697 |
\LWR@hook@processingtags% |
| 6698 |
\LWR@fontfortags{LWR@htmltagc}{\detokenize{#1}}% |
| 6699 |
\protect\LWR@origtextless% |
| 6700 |
\LWR@traceinfo{LWR@htmltagc B}% |
| 6701 |
\LWR@isolate{#1}% |
| 6702 |
\LWR@traceinfo{LWR@htmltagc C}% |
| 6703 |
\protect\LWR@origtextgreater% |
| 6704 |
\endgroup% |
| 6705 |
\LWR@traceinfo{LWR@htmltagc done}% |
| 6706 |
} |
| 6707 |
|
| 6708 |
\newcommand*{\LWR@spanwarnformat}[1]{% |
| 6709 |
\ifnumcomp{\value{LWR@spandepth}}{>}{0}{% |
| 6710 |
\PackageWarning{lwarp}{% |
| 6711 |
A #1 is being used inside a span.\MessageBreak |
| 6712 |
Formatting may be lost,% |
| 6713 |
}% |
| 6714 |
}{}% |
| 6715 |
} |
| 6716 |
|
| 6717 |
\newcommand*{\LWR@spanwarninvalid}[1]{% |
| 6718 |
\ifnumcomp{\value{LWR@spandepth}}{>}{0}{% |
| 6719 |
\PackageWarning{lwarp}{% |
| 6720 |
A #1 is being used inside a span.\MessageBreak |
| 6721 |
This generates invalid HTML,% |
| 6722 |
}% |
| 6723 |
}{}% |
| 6724 |
} |
| 6725 |
|
| 6726 |
\newcommand*{\LWR@nestspanitem}{% |
| 6727 |
\if@newlist\else{ |
| 6728 |
\LWR@htmltagc{br /}% |
| 6729 |
\LWR@orignewline% |
| 6730 |
}\fi% |
| 6731 |
\LWR@origitem% |
| 6732 |
} |
| 6733 |
|
| 6734 |
\newenvironment*{LWR@nestspan} |
| 6735 |
{% |
| 6736 |
\LWR@traceinfo{LWR@nestspan starting}% |
| 6737 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 6738 |
{% |
| 6739 |
\LWR@traceinfo{LWR@nestspan: inside a lateximage}% |
| 6740 |
}% |
| 6741 |
{% not in a lateximage |
| 6742 |
\LWR@traceinfo{LWR@nestspan: NOT inside a lateximage}% |
| 6743 |
\addtocounter{LWR@spandepth}{1}% |
| 6744 |
\RenewDocumentEnvironment{minipage}{O{t} o O{t} m}% |
| 6745 |
{\LWR@spanwarnformat{minipage or \protect\parbox}}% |
| 6746 |
{}% |
| 6747 |
\RenewDocumentEnvironment{BlockClass}{o D(){} m}% |
| 6748 |
{\LWR@spanwarnformat{multi-paragraph object}}% |
| 6749 |
{}% |
| 6750 |
\RenewDocumentEnvironment{LWR@BlockClassWP}{m m D(){} m}% |
| 6751 |
{\LWR@spanwarnformat{multi-paragraph object}}% |
| 6752 |
{}% |
| 6753 |
\renewcommand{\BlockClassSingle}[2]{% |
| 6754 |
{\LWR@spanwarnformat{multi-paragraph object}}% |
| 6755 |
##2% |
| 6756 |
}% |
| 6757 |
\renewcommand{\LWR@forcenewpage}{}% |
| 6758 |
\renewcommand{\LWR@liststart}{\LetLtxMacro\item\LWR@nestspanitem}% |
| 6759 |
\renewcommand{\LWR@listend}{\leavevmode}% |
| 6760 |
\renewenvironment{quote}{\LWR@htmltagc{br /}}{\LWR@htmltagc{br /}}% |
| 6761 |
\renewenvironment{quotation}{\LWR@htmltagc{br /}}{\LWR@htmltagc{br /}}% |
| 6762 |
}% not in a lateximage |
| 6763 |
\LWR@traceinfo{LWR@nestspan starting: done}% |
| 6764 |
}% starting env |
| 6765 |
{% ending env |
| 6766 |
\LWR@traceinfo{LWR@nestspan ending}% |
| 6767 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 6768 |
{}% |
| 6769 |
{\addtocounter{LWR@spandepth}{-1}}% |
| 6770 |
\LWR@traceinfo{LWR@nestspan ending: done}% |
| 6771 |
} |
| 6772 |
|
| 6773 |
\NewDocumentCommand{\LWR@htmlspan}{m +m}{% |
| 6774 |
\LWR@ensuredoingapar% |
| 6775 |
\LWR@htmltagc{#1}% |
| 6776 |
\begin{LWR@nestspan}% |
| 6777 |
#2% |
| 6778 |
\LWR@htmltagc{/#1}% |
| 6779 |
\end{LWR@nestspan}% |
| 6780 |
} |
| 6781 |
|
| 6782 |
\NewDocumentCommand{\LWR@htmlspanclass}{o D(){} m +m}{% |
| 6783 |
\LWR@traceinfo{LWR@htmlspanclass #3}% |
| 6784 |
\LWR@ensuredoingapar% |
| 6785 |
\ifblank{#2}% |
| 6786 |
{\LWR@subhtmlelementclass{span}[#1]{#3}}% |
| 6787 |
{\LWR@subhtmlelementclass{span}[#1](#2){#3}}% |
| 6788 |
\begin{LWR@nestspan}% |
| 6789 |
#4% |
| 6790 |
\LWR@htmltagc{/span}% |
| 6791 |
\end{LWR@nestspan}% |
| 6792 |
\LWR@traceinfo{LWR@htmlspanclass done}% |
| 6793 |
} |
| 6794 |
|
| 6795 |
|
| 6796 |
\newcommand*{\LWR@htmltag}[1]{% |
| 6797 |
\LWR@htmltagc{#1}% |
| 6798 |
} |
| 6799 |
|
| 6800 |
|
| 6801 |
\newcommand*{\LWR@htmlopencomment}{% |
| 6802 |
\begingroup% |
| 6803 |
\LWR@hook@processingtags% |
| 6804 |
\LWR@fontfortags{LWR@htmlopencomment}{}% |
| 6805 |
\LWR@print@mbox{\LWR@origtextless{}!-\/-}% |
| 6806 |
\endgroup% |
| 6807 |
} |
| 6808 |
|
| 6809 |
\newcommand*{\LWR@htmlclosecomment}{% |
| 6810 |
\begingroup% |
| 6811 |
\LWR@hook@processingtags% |
| 6812 |
\LWR@fontfortags{LWr@htmlclosecomment}{}% |
| 6813 |
\LWR@print@mbox{-\/-\LWR@origtextgreater}% |
| 6814 |
\endgroup% |
| 6815 |
} |
| 6816 |
|
| 6817 |
\newcommand{\LWR@htmlcomment}[1]{% |
| 6818 |
\ifmmode% |
| 6819 |
\else% |
| 6820 |
\LWR@htmlopencomment{}% |
| 6821 |
{% |
| 6822 |
\LWR@print@normalfont% |
| 6823 |
\LWR@origttfamily% break ligatures |
| 6824 |
#1% |
| 6825 |
}% |
| 6826 |
\LWR@htmlclosecomment{}% |
| 6827 |
\fi% |
| 6828 |
} |
| 6829 |
\newcommand{\LWR@htmlblockcomment}[1] |
| 6830 |
{\LWR@stoppars\LWR@htmlcomment{#1}\LWR@startpars} |
| 6831 |
|
| 6832 |
\newcommand*{\LWR@htmlblocktag}[1]{% |
| 6833 |
\LWR@stoppars% |
| 6834 |
\LWR@htmltag{#1}% |
| 6835 |
\LWR@startpars% |
| 6836 |
} |
| 6837 |
|
| 6838 |
|
| 6839 |
\NewDocumentCommand{\LWR@subhtmlelementclass}{m O{} D(){} m}{% |
| 6840 |
\LWR@traceinfo{LWR@subhtmlelementclass !#1!#4!}% |
| 6841 |
\ifblank{#2}% |
| 6842 |
{% empty style |
| 6843 |
\LWR@htmltag{% |
| 6844 |
#1% |
| 6845 |
\ifblank{#3}{}{ role=\textquotedbl#3\textquotedbl}% spaces |
| 6846 |
\ifblank{#4}{}{ class=\textquotedbl#4\textquotedbl}% spaces |
| 6847 |
}% |
| 6848 |
}% |
| 6849 |
{% non-empty style |
| 6850 |
\LWR@htmltag{% |
| 6851 |
#1\LWR@indentHTML% |
| 6852 |
\ifblank{#3}{}{role=\textquotedbl#3\textquotedbl\LWR@indentHTML}% |
| 6853 |
\ifblank{#4}{}{class=\textquotedbl#4\textquotedbl\LWR@indentHTML}% |
| 6854 |
style=\textquotedbl#2\textquotedbl\LWR@orignewline% |
| 6855 |
}% |
| 6856 |
}% |
| 6857 |
\LWR@traceinfo{LWR@subhtmlelementclass done}% |
| 6858 |
} |
| 6859 |
|
| 6860 |
\NewDocumentCommand{\LWR@htmlelementclass}{m o D(){} m}{% |
| 6861 |
\LWR@stoppars% |
| 6862 |
\LWR@forceemptyline% |
| 6863 |
\ifblank{#3}% |
| 6864 |
{\LWR@subhtmlelementclass{#1}[#2]{#4}}% |
| 6865 |
{\LWR@subhtmlelementclass{#1}[#2](#3){#4}}% |
| 6866 |
\LWR@startpars% |
| 6867 |
} |
| 6868 |
|
| 6869 |
\newcommand*{\LWR@htmlelementclassend}[2]{% |
| 6870 |
\LWR@stoppars% |
| 6871 |
\LWR@htmltag{/#1}% |
| 6872 |
\ifbool{HTMLDebugComments}{% |
| 6873 |
\ifblank{#2}% |
| 6874 |
{\LWR@htmlcomment{End of #1}}% |
| 6875 |
{\LWR@htmlcomment{End of #1 ``#2''}}% |
| 6876 |
}{}% |
| 6877 |
\LWR@startpars% |
| 6878 |
} |
| 6879 |
|
| 6880 |
\NewDocumentCommand{\LWR@htmldivclass}{o D(){} m}{% |
| 6881 |
\ifblank{#2} |
| 6882 |
{\LWR@htmlelementclass{div}[#1]{#3}}% |
| 6883 |
{\LWR@htmlelementclass{div}[#1](#2){#3}}% |
| 6884 |
} |
| 6885 |
|
| 6886 |
\newcommand*{\LWR@htmldivclassend}[1]{% |
| 6887 |
\LWR@htmlelementclassend{div}{#1}% |
| 6888 |
} |
| 6889 |
|
| 6890 |
|
| 6891 |
|
| 6892 |
\NewDocumentCommand{\LWR@htmlelementclassline}{m o m +m}{% |
| 6893 |
\LWR@stoppars |
| 6894 |
\LWR@forceemptyline% |
| 6895 |
\LWR@subhtmlelementclass{#1}[#2]{#3}% |
| 6896 |
#4% |
| 6897 |
\LWR@htmltag{/#1} |
| 6898 |
\LWR@startpars |
| 6899 |
} |
| 6900 |
|
| 6901 |
|
| 6902 |
\newcommand*{\LWR@htmlelement}[1]{% |
| 6903 |
\LWR@htmlblocktag{#1} |
| 6904 |
} |
| 6905 |
|
| 6906 |
\newcommand*{\LWR@htmlelementend}[1]{% |
| 6907 |
\LWR@stoppars |
| 6908 |
\LWR@htmltag{/#1} |
| 6909 |
\LWR@startpars |
| 6910 |
} |
| 6911 |
|
| 6912 |
\end{warpHTML} |
| 6913 |
|
| 6914 |
|
| 6915 |
\begin{warpall} |
| 6916 |
\NewDocumentEnvironment{BlockClass}{o D(){} m}{}{} |
| 6917 |
\end{warpall} |
| 6918 |
\begin{warpHTML} |
| 6919 |
|
| 6920 |
\NewDocumentEnvironment{LWR@HTML@BlockClass}{o D(){} m}% |
| 6921 |
{\LWR@htmldivclass[#1](#2){#3}}% |
| 6922 |
{\LWR@htmldivclassend{#3}} |
| 6923 |
|
| 6924 |
\LWR@formattedenv{BlockClass} |
| 6925 |
\end{warpHTML} |
| 6926 |
\begin{warpall} |
| 6927 |
\newcommand{\BlockClassSingle}[2]{#2} |
| 6928 |
\end{warpall} |
| 6929 |
\begin{warpHTML} |
| 6930 |
\newcommand{\LWR@HTML@BlockClassSingle}[2]{% |
| 6931 |
\LWR@htmlelementclassline{div}{#1}{#2}% |
| 6932 |
} |
| 6933 |
|
| 6934 |
\LWR@formatted{BlockClassSingle} |
| 6935 |
\end{warpHTML} |
| 6936 |
|
| 6937 |
\begin{warpall} |
| 6938 |
\NewDocumentCommand{\InlineClass}{D{(}{)}{} o m +m}{#4}% |
| 6939 |
\end{warpall} |
| 6940 |
\begin{warpHTML} |
| 6941 |
\NewDocumentCommand{\LWR@HTML@InlineClass}{D{(}{)}{} o m +m}{% |
| 6942 |
\LWR@traceinfo{LWR@HTML@InlineClass #3}% |
| 6943 |
\ifbool{FormatWP}{% |
| 6944 |
\LWR@traceinfo{LWR@HTML@InlineClass: FormatWP}% |
| 6945 |
\LWR@htmlspanclass[#1]{#3}{#4}% |
| 6946 |
}{% |
| 6947 |
\LWR@traceinfo{LWR@HTML@InlineClass: not FormatWP}% |
| 6948 |
\LWR@htmlspanclass[#2]{#3}{#4}% |
| 6949 |
}% |
| 6950 |
\LWR@traceinfo{LWR@HTML@InlineClass: done}% |
| 6951 |
} |
| 6952 |
|
| 6953 |
\LWR@formatted{InlineClass} |
| 6954 |
\end{warpHTML} |
| 6955 |
|
| 6956 |
\begin{warpall} |
| 6957 |
\NewDocumentEnvironment{LWR@BlockClassWP}{m m D(){} m}{}{} |
| 6958 |
\end{warpall} |
| 6959 |
\begin{warpHTML} |
| 6960 |
\NewDocumentEnvironment{LWR@HTML@LWR@BlockClassWP}{m m D(){} m}% |
| 6961 |
{% |
| 6962 |
\LWR@stoppars% |
| 6963 |
\ifbool{FormatWP}% |
| 6964 |
{% |
| 6965 |
\addtocounter{LWR@thisautoidWP}{1}% |
| 6966 |
\LWR@htmltag{% |
| 6967 |
div class=\textquotedbl#4\textquotedbl\ % space |
| 6968 |
id=\textquotedbl% |
| 6969 |
\LWR@print@mbox{autoidWP-\arabic{LWR@thisautoidWP}}% |
| 6970 |
\textquotedbl% |
| 6971 |
\ifblank{#3}{}{ role=\textquotedbl#3\textquotedbl}% |
| 6972 |
\ifblank{#1}{}{ style=\textquotedbl#1\textquotedbl}% |
| 6973 |
}% |
| 6974 |
}% FormatWP |
| 6975 |
{% not FormatWP |
| 6976 |
\LWR@htmltag{% |
| 6977 |
div class=\textquotedbl#4\textquotedbl% |
| 6978 |
\ifblank{#3}{}{ role=\textquotedbl#3\textquotedbl}% |
| 6979 |
\ifblank{#2}{}{ style=\textquotedbl#2\textquotedbl}% |
| 6980 |
}% |
| 6981 |
}% not FormatWP |
| 6982 |
\LWR@startpars% |
| 6983 |
} |
| 6984 |
{\LWR@htmldivclassend{#4}} |
| 6985 |
|
| 6986 |
\LWR@formattedenv{LWR@BlockClassWP} |
| 6987 |
\end{warpHTML} |
| 6988 |
|
| 6989 |
|
| 6990 |
\begin{warpHTML} |
| 6991 |
|
| 6992 |
\newcommand*{\LWR@printclosebook} |
| 6993 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing book}}{}} |
| 6994 |
\newcommand*{\LWR@printclosepart} |
| 6995 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing part}}{}} |
| 6996 |
\newcommand*{\LWR@printclosechapter} |
| 6997 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing chapter}}{}} |
| 6998 |
\newcommand*{\LWR@printclosesection} |
| 6999 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing section}}{}} |
| 7000 |
\newcommand*{\LWR@printclosesubsection} |
| 7001 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing subsection}}{}} |
| 7002 |
\newcommand*{\LWR@printclosesubsubsection} |
| 7003 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing subsubsection}}{}} |
| 7004 |
\newcommand*{\LWR@printcloseparagraph} |
| 7005 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing paragraph}}{}} |
| 7006 |
\newcommand*{\LWR@printclosesubparagraph} |
| 7007 |
{\ifbool{HTMLDebugComments}{\LWR@htmlcomment{Closing subparagraph}}{}} |
| 7008 |
|
| 7009 |
\newcommand*{\LWR@printcloselistitem} |
| 7010 |
{\LWR@htmltag{/li}} |
| 7011 |
\newcommand*{\LWR@printclosedescitem} |
| 7012 |
{\LWR@htmltag{/dd}} |
| 7013 |
\newcommand*{\LWR@printcloseitemize} |
| 7014 |
{\LWR@htmltag{/ul}} |
| 7015 |
\newcommand*{\LWR@printcloseenumerate} |
| 7016 |
{\LWR@htmltag{/ol}} |
| 7017 |
\newcommand*{\LWR@printclosedescription} |
| 7018 |
{\LWR@htmltag{/dl}} |
| 7019 |
|
| 7020 |
\end{warpHTML} |
| 7021 |
|
| 7022 |
\begin{warpHTML} |
| 7023 |
|
| 7024 |
\newcounter{LWR@spandepth} |
| 7025 |
\setcounter{LWR@spandepth}{0} |
| 7026 |
\newcounter{LWR@saved@spandepth} |
| 7027 |
\setcounter{LWR@saved@spandepth}{0} |
| 7028 |
|
| 7029 |
\newbool{LWR@doingparhooks} |
| 7030 |
\boolfalse{LWR@doingparhooks} |
| 7031 |
|
| 7032 |
\newbool{LWR@in@multirow@par} |
| 7033 |
\boolfalse{LWR@in@multirow@par} |
| 7034 |
|
| 7035 |
\newbool{LWR@starting@fancybox} |
| 7036 |
\boolfalse{LWR@starting@fancybox} |
| 7037 |
|
| 7038 |
\newbool{LWR@doingstartpars} |
| 7039 |
\boolfalse{LWR@doingstartpars} |
| 7040 |
|
| 7041 |
\newbool{LWR@doingapar} |
| 7042 |
\global\boolfalse{LWR@doingapar} |
| 7043 |
|
| 7044 |
\newbool{LWR@saved@doingapar} |
| 7045 |
\global\boolfalse{LWR@saved@doingapar} |
| 7046 |
|
| 7047 |
\newcommand*{\LWR@save@doingapar} |
| 7048 |
{% |
| 7049 |
\ifbool{LWR@doingapar}% |
| 7050 |
{\booltrue{LWR@saved@doingapar}}% |
| 7051 |
{\boolfalse{LWR@saved@doingapar}}% |
| 7052 |
}% |
| 7053 |
|
| 7054 |
\newcommand*{\LWR@restore@doingapar} |
| 7055 |
{% |
| 7056 |
\ifbool{LWR@saved@doingapar}% |
| 7057 |
{\global\booltrue{LWR@doingapar}}% |
| 7058 |
{\global\boolfalse{LWR@doingapar}}% |
| 7059 |
}% |
| 7060 |
|
| 7061 |
\newbool{LWR@algocf@dopars} |
| 7062 |
\boolfalse{LWR@algocf@dopars} |
| 7063 |
|
| 7064 |
\def\PN@parnotes@auto{}% |
| 7065 |
|
| 7066 |
\newcommand*{\LWR@openparagraph} |
| 7067 |
{% |
| 7068 |
\ifboolexpr{ |
| 7069 |
bool{LWR@doingparhooks} and |
| 7070 |
bool{LWR@doingstartpars} |
| 7071 |
}% |
| 7072 |
{% handling pars |
| 7073 |
\ifboolexpr{ |
| 7074 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}} or |
| 7075 |
test {\ifnumcomp{\value{LWR@spandepth}}{>}{0}} |
| 7076 |
}% nested par tags? |
| 7077 |
{}% no nested par tags |
| 7078 |
{% yes nest par tags |
| 7079 |
\ifbool{LWR@doingapar}{}{% |
| 7080 |
\PN@parnotes@auto% |
| 7081 |
\global\booltrue{LWR@doingapar}% |
| 7082 |
\ifbool{LWR@algocf@dopars}{}{% |
| 7083 |
\ifbool{LWR@in@multirow@par}% |
| 7084 |
{}% |
| 7085 |
{\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline}% |
| 7086 |
}% |
| 7087 |
}% |
| 7088 |
}% end of yes nest par tags |
| 7089 |
}% end of handling pars |
| 7090 |
{}% not handling pars |
| 7091 |
} |
| 7092 |
|
| 7093 |
\let\LWR@ensuredoingapar\LWR@openparagraph |
| 7094 |
|
| 7095 |
\newcommand*{\LWR@closeparagraph@br} |
| 7096 |
{% |
| 7097 |
\ifboolexpr{ |
| 7098 |
test {\ifnumcomp{\value{LWR@spandepth}}{>}{0}} and |
| 7099 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{=}{0}} and |
| 7100 |
not bool {LWR@starting@fancybox} and |
| 7101 |
not bool {LWR@intabularmetadata} or |
| 7102 |
bool {LWR@in@multirow@par} |
| 7103 |
}% |
| 7104 |
{\unskip\LWR@htmltagc{br /}}% |
| 7105 |
{}% |
| 7106 |
} |
| 7107 |
|
| 7108 |
\newcommand*{\LWR@closeparagraph} |
| 7109 |
{% |
| 7110 |
\ifbool{LWR@doingparhooks}{% |
| 7111 |
\ifbool{LWR@doingapar}% |
| 7112 |
{% handling pars |
| 7113 |
\ifboolexpr{ |
| 7114 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}} or |
| 7115 |
test {\ifnumcomp{\value{LWR@spandepth}}{>}{0}} or |
| 7116 |
bool{LWR@in@multirow@par} |
| 7117 |
}% |
| 7118 |
{% no nested par tags |
| 7119 |
\LWR@closeparagraph@br% |
| 7120 |
}% no nested par tags |
| 7121 |
{% yes nest par tags |
| 7122 |
\@hspacer{\fill}% \hspace*{\fill} |
| 7123 |
\leavevmode\LWR@orignewline% |
| 7124 |
\LWR@htmltagc{/\LWR@tagregularparagraph}% |
| 7125 |
\global\boolfalse{LWR@doingapar}% |
| 7126 |
\global\boolfalse{LWR@minipagethispar}% |
| 7127 |
\PN@parnotes@auto% |
| 7128 |
}% end of yes nest par tags |
| 7129 |
}% LWR@doingapar: end of handling pars |
| 7130 |
{% not LWR@doingapar: not handling pars |
| 7131 |
\LWR@closeparagraph@br% |
| 7132 |
}% not handling pars |
| 7133 |
\ifboolexpr{% |
| 7134 |
not bool {LWR@doingapar} and |
| 7135 |
test {\ifnumcomp{\value{LWR@tabulardepth}}{>}{0}} and |
| 7136 |
test { |
| 7137 |
\ifnumcomp{\value{LWR@tabulardepth}}{=}{\value{LWR@tabularpardepth}} |
| 7138 |
} and |
| 7139 |
bool {LWR@intabularmetadata} and |
| 7140 |
not bool {LWR@tableparcell} and |
| 7141 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{=}{0}} |
| 7142 |
}% |
| 7143 |
{\LWR@getmynexttoken}% |
| 7144 |
{}% |
| 7145 |
}% LWR@doingparhooks |
| 7146 |
{}% not LWR@doingparhooks |
| 7147 |
} |
| 7148 |
|
| 7149 |
\AddToHook{para/begin}[lwarp]{\LWR@openparagraph} |
| 7150 |
\AddToHook{para/end}[lwarp]{\LWR@closeparagraph} |
| 7151 |
|
| 7152 |
\end{warpHTML} |
| 7153 |
|
| 7154 |
|
| 7155 |
\begin{warpHTML} |
| 7156 |
|
| 7157 |
\newcommand*{\LWR@startpars}% |
| 7158 |
{% |
| 7159 |
\ifboolexpr{ |
| 7160 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}} or |
| 7161 |
test {\ifnumcomp{\value{LWR@spandepth}}{>}{0}} |
| 7162 |
}% |
| 7163 |
{}% nesting |
| 7164 |
{% not nesting |
| 7165 |
\ifboolexpr {bool{LWR@doingparhooks} and bool{LWR@doingstartpars}}% |
| 7166 |
{}% |
| 7167 |
{\par}% |
| 7168 |
\global\booltrue{LWR@doingstartpars}% |
| 7169 |
\global\boolfalse{LWR@doingapar}% |
| 7170 |
}% not nesting |
| 7171 |
} |
| 7172 |
|
| 7173 |
\newcommand*{\LWR@stoppars}% |
| 7174 |
{% |
| 7175 |
\ifboolexpr{ |
| 7176 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}} or |
| 7177 |
test {\ifnumcomp{\value{LWR@spandepth}}{>}{0}} |
| 7178 |
}% |
| 7179 |
{}% nesting |
| 7180 |
{% not nesting |
| 7181 |
\ifboolexpr{bool{LWR@doingparhooks} and bool{LWR@doingapar}}% |
| 7182 |
{% |
| 7183 |
\leavevmode\LWR@orignewline% |
| 7184 |
\LWR@htmltagc{/\LWR@tagregularparagraph}% |
| 7185 |
\LWR@orignewline% |
| 7186 |
\global\boolfalse{LWR@doingapar}% |
| 7187 |
\global\boolfalse{LWR@minipagethispar}% |
| 7188 |
}% |
| 7189 |
{}% |
| 7190 |
\global\setbool{LWR@doingstartpars}{false}% |
| 7191 |
\global\boolfalse{LWR@doingapar}% |
| 7192 |
}% not nesting |
| 7193 |
} |
| 7194 |
|
| 7195 |
\end{warpHTML} |
| 7196 |
|
| 7197 |
\begin{warpHTML} |
| 7198 |
|
| 7199 |
\AtBeginDocument{ |
| 7200 |
\LWR@traceinfo{AtBeginDocument indentfirst} |
| 7201 |
\def\@afterindentfalse{\let\if@afterindent\iffalse} |
| 7202 |
\@afterindentfalse |
| 7203 |
} |
| 7204 |
\let\LWR@afterindent@syntaxhighlight\fi% syntax highlighting |
| 7205 |
|
| 7206 |
\end{warpHTML} |
| 7207 |
|
| 7208 |
|
| 7209 |
\begin{warpall} |
| 7210 |
|
| 7211 |
\newcommand{\LWR@firstpagetop}{} % for the home page alone |
| 7212 |
\newcommand{\LWR@firstpagebottom}{} % for the home page alone |
| 7213 |
\newcommand{\LWR@pagetop}{} % for all other pages |
| 7214 |
\newcommand{\LWR@pagebottom}{} |
| 7215 |
\newcommand{\LWR@HTMLmeta}{} |
| 7216 |
\newcommand{\HTMLFirstPageTop}[1]{% |
| 7217 |
\renewcommand{\LWR@firstpagetop}{#1}% |
| 7218 |
} |
| 7219 |
\newcommand{\HTMLFirstPageBottom}[1]{% |
| 7220 |
\renewcommand{\LWR@firstpagebottom}{#1}% |
| 7221 |
} |
| 7222 |
\newcommand{\HTMLPageTop}[1]{% |
| 7223 |
\renewcommand{\LWR@pagetop}{#1}% |
| 7224 |
} |
| 7225 |
\newcommand{\HTMLPageBottom}[1]{% |
| 7226 |
\renewcommand{\LWR@pagebottom}{#1}% |
| 7227 |
} |
| 7228 |
|
| 7229 |
\newcommand{\HTMLMeta}[2]{% |
| 7230 |
\renewcommand{\LWR@HTMLmeta}{% |
| 7231 |
\LWR@htmltag{% |
| 7232 |
meta name=\LWR@orig@textquotedbl{}#1\LWR@orig@textquotedbl\ % space |
| 7233 |
content=\LWR@orig@textquotedbl{}#2\LWR@orig@textquotedbl\ /% |
| 7234 |
}\LWR@orignewline% |
| 7235 |
}{}{}% |
| 7236 |
} |
| 7237 |
|
| 7238 |
\newcommand{\HTMLAddMeta}[2]{% |
| 7239 |
\apptocmd{\LWR@HTMLmeta}{% |
| 7240 |
\LWR@htmltag{% |
| 7241 |
meta name=\LWR@orig@textquotedbl{}#1\LWR@orig@textquotedbl\ % space |
| 7242 |
content=\LWR@orig@textquotedbl{}#2\LWR@orig@textquotedbl\ /% |
| 7243 |
}\LWR@orignewline% |
| 7244 |
}{}{}% |
| 7245 |
} |
| 7246 |
|
| 7247 |
\end{warpall} |
| 7248 |
|
| 7249 |
|
| 7250 |
\begin{warpHTML} |
| 7251 |
|
| 7252 |
|
| 7253 |
\newcommand*{\LWR@currentcss}{lwarp.css} |
| 7254 |
|
| 7255 |
\newcommand*{\CSSFilename}[1]{% |
| 7256 |
\renewcommand*{\LWR@currentcss}{#1}% |
| 7257 |
\@onelevel@sanitize\LWR@currentcss% |
| 7258 |
} |
| 7259 |
|
| 7260 |
\end{warpHTML} |
| 7261 |
\begin{warpprint} |
| 7262 |
\newcommand*{\CSSFilename}[1]{} |
| 7263 |
\end{warpprint} |
| 7264 |
|
| 7265 |
|
| 7266 |
\begin{warpHTML} |
| 7267 |
|
| 7268 |
\newcommand*{\LWR@mathjaxfilename}{lwarp_mathjax.txt} |
| 7269 |
|
| 7270 |
\newcommand*{\MathJaxFilename}[1]{% |
| 7271 |
\renewcommand*{\LWR@mathjaxfilename}{#1}% |
| 7272 |
\@onelevel@sanitize\LWR@mathjaxfilename% |
| 7273 |
} |
| 7274 |
|
| 7275 |
\end{warpHTML} |
| 7276 |
\begin{warpprint} |
| 7277 |
\newcommand*{\MathJaxFilename}[1]{} |
| 7278 |
\end{warpprint} |
| 7279 |
|
| 7280 |
\begin{warpall} |
| 7281 |
|
| 7282 |
\newcommand*{\AltTextOpen}{(} |
| 7283 |
|
| 7284 |
\newcommand*{\AltTextClose}{)} |
| 7285 |
|
| 7286 |
\newcommand*{\ImageAltText}{image} |
| 7287 |
|
| 7288 |
\newcommand*{\MathImageAltText}{math image} |
| 7289 |
|
| 7290 |
\newcommand*{\LWR@ThisAltText}{} |
| 7291 |
|
| 7292 |
\newcommand*{\ThisAltText}[1]{% |
| 7293 |
\renewcommand{\LWR@ThisAltText}{#1}% |
| 7294 |
} |
| 7295 |
|
| 7296 |
\newcommand*{\PackageDiagramAltText}{diagram} |
| 7297 |
|
| 7298 |
\IfPackageLoadedTF{tagpdf-base} |
| 7299 |
{} |
| 7300 |
{ |
| 7301 |
\AtBeginDocument{ |
| 7302 |
\define@key{igraph}{alt}{\ThisAltText{#1}} |
| 7303 |
\define@key{igraph}{actualtext}{\ThisAltText{#1}} |
| 7304 |
\define@key{igraph}{artifact}[false]{} |
| 7305 |
|
| 7306 |
\IfPackageLoadedTF{tikz}{ |
| 7307 |
\pgfkeys{/tikz/alt/.code={\ThisAltText{#1}}} |
| 7308 |
\pgfkeys{/tikz/actualtext/.code={\ThisAltText{#1}}} |
| 7309 |
\pgfkeys{/tikz/artifact/.is choice} |
| 7310 |
\pgfkeys{/tikz/artifact/.default=true} |
| 7311 |
\pgfkeys{/tikz/artifact/true/.code={}} |
| 7312 |
\pgfkeys{/tikz/artifact/false/.code={}} |
| 7313 |
}{} |
| 7314 |
} |
| 7315 |
} |
| 7316 |
|
| 7317 |
\end{warpall} |
| 7318 |
|
| 7319 |
\begin{warpHTML} |
| 7320 |
\let\LWR@origtitle\title |
| 7321 |
|
| 7322 |
\renewcommand*{\title}[1]{% |
| 7323 |
\LWR@origtitle{#1}% |
| 7324 |
\begingroup% |
| 7325 |
\renewcommand{\thanks}[1]{}% |
| 7326 |
\protected@xdef\thetitle{#1}% |
| 7327 |
\endgroup% |
| 7328 |
} |
| 7329 |
\end{warpHTML} |
| 7330 |
\begin{warpall} |
| 7331 |
\providecommand{\thetitle}{\BaseJobname} |
| 7332 |
|
| 7333 |
\newcommand{\theHTMLTitle}{\thetitle} |
| 7334 |
|
| 7335 |
\newcommand{\HTMLTitle}[1]{\renewcommand{\theHTMLTitle}{#1}} |
| 7336 |
\providecommand{\theauthor}{} |
| 7337 |
|
| 7338 |
\newcommand{\theHTMLAuthor}{\theauthor} |
| 7339 |
|
| 7340 |
\newcommand{\HTMLAuthor}[1]{\renewcommand{\theHTMLAuthor}{#1}} |
| 7341 |
|
| 7342 |
|
| 7343 |
\newcommand{\LWR@currentHTMLDescription}{} |
| 7344 |
|
| 7345 |
\newcommand{\HTMLDescription}[1]{% |
| 7346 |
\renewcommand{\LWR@currentHTMLDescription}{#1} |
| 7347 |
} |
| 7348 |
|
| 7349 |
\newcommand{\LWR@currentHTMLKeywords}{} |
| 7350 |
|
| 7351 |
\newcommand{\HTMLKeywords}[1]{% |
| 7352 |
\renewcommand{\LWR@currentHTMLKeywords}{#1} |
| 7353 |
} |
| 7354 |
|
| 7355 |
\end{warpall} |
| 7356 |
|
| 7357 |
\begin{warpall} |
| 7358 |
|
| 7359 |
\newcounter{FootnoteDepth} |
| 7360 |
\setcounter{FootnoteDepth}{3} |
| 7361 |
\newcounter{footnoteReset} |
| 7362 |
\setcounter{footnoteReset}{0} |
| 7363 |
\end{warpall} |
| 7364 |
|
| 7365 |
\begin{warpHTML} |
| 7366 |
|
| 7367 |
\AtBeginDocument{ |
| 7368 |
\LWR@traceinfo{AtBeginDocument footnote} |
| 7369 |
\robustify{\footnote} |
| 7370 |
\robustify{\footnotemark} |
| 7371 |
} |
| 7372 |
|
| 7373 |
\newbox\LWR@footnotebox |
| 7374 |
\newbool{LWR@spewingnotes}% For the footnote package. |
| 7375 |
\long\def\@makefntext#1{\textsuperscript{\@thefnmark}~{#1}} |
| 7376 |
\def\@makefnmark{% |
| 7377 |
\textsuperscript{\@thefnmark}% |
| 7378 |
} |
| 7379 |
\long\def\LWR@@footnotetext#1#2{% |
| 7380 |
\LWR@traceinfo{LWR@footnotetext}% |
| 7381 |
\LWR@newautopagelabel{page}% |
| 7382 |
\LWR@ensuredoingapar% |
| 7383 |
\setcounter{LWR@saved@spandepth}{\value{LWR@spandepth}}% |
| 7384 |
\setcounter{LWR@spandepth}{0}% |
| 7385 |
\begingroup% |
| 7386 |
\let\LWR@newautopagelabel\LWR@null@newautopagelabel% |
| 7387 |
\LWR@save@doingapar% |
| 7388 |
\global\setbox\csname #2\endcsname=\vbox{% |
| 7389 |
\unvbox\csname #2\endcsname% |
| 7390 |
\def\@currentcounter{footnote}% |
| 7391 |
\protected@edef\@currentlabel{% |
| 7392 |
\csname p@footnote\endcsname\@thefnmark% |
| 7393 |
}% @currentlabel |
| 7394 |
\color@begingroup% |
| 7395 |
\LWR@disablepinyin% |
| 7396 |
\renewrobustcmd{\textsuperscript}[1]{\LWR@htmlspan{sup}{##1}}% |
| 7397 |
\ifbool{LWR@spewingnotes}{}{% |
| 7398 |
\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline% |
| 7399 |
}% |
| 7400 |
\@makefntext{#1}% |
| 7401 |
\ifbool{LWR@spewingnotes}{}{% |
| 7402 |
\LWR@orignobreakspace\LWR@orignewline% |
| 7403 |
\LWR@htmltagc{/\LWR@tagregularparagraph}% |
| 7404 |
\LWR@orignewline% |
| 7405 |
\global\boolfalse{LWR@doingapar}% |
| 7406 |
}% |
| 7407 |
\color@endgroup% |
| 7408 |
}% vbox |
| 7409 |
\setcounter{LWR@spandepth}{\value{LWR@saved@spandepth}}% |
| 7410 |
\LWR@restore@doingapar% |
| 7411 |
\endgroup% |
| 7412 |
}% |
| 7413 |
|
| 7414 |
\long\def\LWR@footnotetext#1{% |
| 7415 |
\LWR@@footnotetext{#1}{LWR@footnotebox}% |
| 7416 |
}% |
| 7417 |
\LetLtxMacro\@footnotetext\LWR@footnotetext |
| 7418 |
\newbox\LWR@mpfootnotes |
| 7419 |
\long\def\@mpfootnotetext#1{% |
| 7420 |
\LWR@traceinfo{@mpfootnotetext}% |
| 7421 |
\LWR@ensuredoingapar% |
| 7422 |
\LWR@save@doingapar% |
| 7423 |
\setcounter{LWR@saved@spandepth}{\value{LWR@spandepth}}% |
| 7424 |
\setcounter{LWR@spandepth}{0}% |
| 7425 |
\global\setbox\LWR@mpfootnotes\vbox{% |
| 7426 |
\unvbox\LWR@mpfootnotes% |
| 7427 |
\reset@font\footnotesize% |
| 7428 |
\hsize\columnwidth% |
| 7429 |
\@parboxrestore% |
| 7430 |
\def\@currentcounter{mpfootnote}% |
| 7431 |
\protected@edef\@currentlabel% |
| 7432 |
{\csname p@mpfootnote\endcsname\@thefnmark}% |
| 7433 |
\color@begingroup% |
| 7434 |
\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline% |
| 7435 |
\@makefntext{% |
| 7436 |
\ignorespaces#1% |
| 7437 |
}% |
| 7438 |
\LWR@orignobreakspace\LWR@orignewline% |
| 7439 |
\LWR@htmltagc{/\LWR@tagregularparagraph}% |
| 7440 |
\LWR@orignewline% |
| 7441 |
\global\boolfalse{LWR@doingapar}% |
| 7442 |
\color@endgroup% |
| 7443 |
}% vbox |
| 7444 |
\LWR@restore@doingapar% |
| 7445 |
\setcounter{LWR@spandepth}{\value{LWR@saved@spandepth}}% |
| 7446 |
\LWR@ensuredoingapar% |
| 7447 |
\LWR@traceinfo{@mpfootnotetext: done}% |
| 7448 |
} |
| 7449 |
\AtBeginDocument{ |
| 7450 |
\def\thempfootnote{\@alph\c@mpfootnote} |
| 7451 |
} |
| 7452 |
\newcommand*{\LWR@@printpendingfootnotes}[1]{% |
| 7453 |
\expandafter\ifvoid\csname LWR@#1box\endcsname\else |
| 7454 |
\LWR@forcenewpage |
| 7455 |
\begin{BlockClass}(note){footnotes}% |
| 7456 |
\LWR@newautopagelabel{page}% |
| 7457 |
\null |
| 7458 |
\unvbox\csuse{LWR@#1box} |
| 7459 |
\setbox\csuse{LWR@#1box}=\vbox{} |
| 7460 |
\end{BlockClass} |
| 7461 |
\ifltxcounter{#1Reset}{% |
| 7462 |
\ifnumgreater{\value{#1Reset}}{0}{% |
| 7463 |
\setcounter{#1}{\value{#1Reset}}% |
| 7464 |
\addtocounter{#1}{-1}% |
| 7465 |
}{}% |
| 7466 |
}{}% |
| 7467 |
\fi |
| 7468 |
} |
| 7469 |
\newcommand*{\LWR@printpendingfootnotes}{% |
| 7470 |
\LWR@@printpendingfootnotes{footnote}% |
| 7471 |
} |
| 7472 |
\newcommand*{\LWR@maybeprintpendingfootnotes}[1]{% |
| 7473 |
\ifboolexpr{ |
| 7474 |
not test{\ifnumcomp{#1}{>}{\value{FootnoteDepth}}} or |
| 7475 |
bool{FormatEPUB} or |
| 7476 |
bool{FormatWP} |
| 7477 |
}% |
| 7478 |
{\LWR@printpendingfootnotes}% |
| 7479 |
{}% |
| 7480 |
} |
| 7481 |
|
| 7482 |
\newcommand*{\LWR@printpendingmpfootnotes}{% |
| 7483 |
\ifvoid\LWR@mpfootnotes\else |
| 7484 |
\LWR@forcenewpage |
| 7485 |
\begin{BlockClass}(note){footnotes}% |
| 7486 |
\null |
| 7487 |
\unvbox\LWR@mpfootnotes |
| 7488 |
\setbox\LWR@mpfootnotes=\vbox{} |
| 7489 |
\end{BlockClass} |
| 7490 |
\fi |
| 7491 |
} |
| 7492 |
|
| 7493 |
\newcommand*{\LWR@nullifyfootnotes}{% |
| 7494 |
\renewcommand{\footnote}[2][]{}% |
| 7495 |
\renewcommand{\footnotemark}[1][]{}% |
| 7496 |
} |
| 7497 |
|
| 7498 |
\end{warpHTML} |
| 7499 |
|
| 7500 |
\begin{warpHTML} |
| 7501 |
|
| 7502 |
\renewcommand{\marginpar}[2][]{% |
| 7503 |
\ifbool{FormatWP}% |
| 7504 |
{% |
| 7505 |
\begin{LWR@BlockClassWP}% |
| 7506 |
{width:2in; float:right; margin:10pt}{}(note){marginblock}% |
| 7507 |
#2 |
| 7508 |
\end{LWR@BlockClassWP}% |
| 7509 |
}% |
| 7510 |
{% |
| 7511 |
\LWR@htmlspanclass(note){marginpar}{#2}% |
| 7512 |
}% |
| 7513 |
} |
| 7514 |
\newcommand{\marginparBlock}[2][]{% |
| 7515 |
\LWR@stoppars% |
| 7516 |
\ifbool{FormatWP}% |
| 7517 |
{% |
| 7518 |
\begin{LWR@BlockClassWP}% |
| 7519 |
{width:2in; float:right; margin:10pt}{}% |
| 7520 |
(note){marginblock}% |
| 7521 |
#2 |
| 7522 |
\end{LWR@BlockClassWP} |
| 7523 |
}% |
| 7524 |
{% |
| 7525 |
\begin{BlockClass}[width:2in; float:right; margin:10pt]% |
| 7526 |
(note){marginparblock}% |
| 7527 |
#2 |
| 7528 |
\end{BlockClass} |
| 7529 |
}% |
| 7530 |
\LWR@startpars% |
| 7531 |
} |
| 7532 |
\renewcommand*{\reversemarginpar}{} |
| 7533 |
\renewcommand*{\normalmarginpar}{} |
| 7534 |
\end{warpHTML} |
| 7535 |
|
| 7536 |
\begin{warpprint} |
| 7537 |
\LetLtxMacro\marginparBlock\marginpar |
| 7538 |
\end{warpprint} |
| 7539 |
|
| 7540 |
\newcounter{LWR@currentautosecpage} |
| 7541 |
\setcounter{LWR@currentautosecpage}{1} |
| 7542 |
\newcounter{LWR@currentautosecfloatpage} |
| 7543 |
\setcounter{LWR@currentautosecfloatpage}{1} |
| 7544 |
\newcounter{LWR@previousautopagelabel} |
| 7545 |
\setcounter{LWR@previousautopagelabel}{-1} |
| 7546 |
\newcommand*{\LWR@newautopagelabel}[1]{% |
| 7547 |
\ifnumequal{\value{LWR@previousautopagelabel}}{\value{page}}% |
| 7548 |
{}% |
| 7549 |
{% |
| 7550 |
\label{\BaseJobname-autopage-\csuse{the#1}}% |
| 7551 |
\ifnumequal{\value{#1}}{\value{page}}% |
| 7552 |
{}% |
| 7553 |
{\label{\BaseJobname-autopage-\csuse{thepage}}}% |
| 7554 |
\setcounter{LWR@previousautopagelabel}{\value{page}}% |
| 7555 |
}% |
| 7556 |
} |
| 7557 |
|
| 7558 |
\newcommand*{\LWR@null@newautopagelabel}[1]{} |
| 7559 |
|
| 7560 |
|
| 7561 |
\begin{warpall} |
| 7562 |
|
| 7563 |
\newcounter{FileDepth} |
| 7564 |
\setcounter{FileDepth}{-5} |
| 7565 |
|
| 7566 |
\newbool{CombineHigherDepths} |
| 7567 |
\booltrue{CombineHigherDepths} |
| 7568 |
|
| 7569 |
\newcommand*{\FilenameLimit}{80} |
| 7570 |
|
| 7571 |
\end{warpall} |
| 7572 |
|
| 7573 |
\begin{warpHTML} |
| 7574 |
|
| 7575 |
\AtBeginDocument{ |
| 7576 |
\LWR@traceinfo{AtBeginDocument file names} |
| 7577 |
\ifbool{FileSectionNames}% |
| 7578 |
{\newcommand*{\LWR@thisfilename}{\HomeHTMLFilename}} |
| 7579 |
{\newcommand*{\LWR@thisfilename}{0}} |
| 7580 |
} |
| 7581 |
|
| 7582 |
\newcommand*{\LWR@thisnewfilename}{} |
| 7583 |
|
| 7584 |
\NewDocumentCommand{\LWR@simplifyname}{s m}{% |
| 7585 |
\IfBooleanTF{#1}{% |
| 7586 |
\StrSubstitute{\LWR@thisnewfilename}% |
| 7587 |
{\detokenize{#2}}% |
| 7588 |
{\detokenize{-}}[\LWR@thisnewfilename]% |
| 7589 |
}{% |
| 7590 |
\StrSubstitute{\LWR@thisnewfilename}% |
| 7591 |
{#2}% |
| 7592 |
{\detokenize{-}}[\LWR@thisnewfilename]% |
| 7593 |
} |
| 7594 |
} |
| 7595 |
|
| 7596 |
\newcommand*{\LWR@simplifycustom}{} |
| 7597 |
|
| 7598 |
\NewDocumentCommand{\FilenameSimplify}{s m}{% |
| 7599 |
\IfBooleanTF{#1}{% |
| 7600 |
\appto{\LWR@simplifycustom}{% |
| 7601 |
\LWR@simplifyname*{#2}% |
| 7602 |
}% |
| 7603 |
}{% |
| 7604 |
\appto{\LWR@simplifycustom}{% |
| 7605 |
\LWR@simplifyname{#2}% |
| 7606 |
}% |
| 7607 |
}% |
| 7608 |
} |
| 7609 |
|
| 7610 |
\newcommand*{\LWR@avoiddupfilenames}{% |
| 7611 |
To avoid duplicate filenames, use the optional\MessageBreak |
| 7612 |
short Table of Contents entry:\MessageBreak |
| 7613 |
\space\space\protect\section[Unique name, no math]{Name with math}% |
| 7614 |
\MessageBreak |
| 7615 |
or use \protect\texorpdfstring, from the hyperref package:\MessageBreak |
| 7616 |
\space\space% |
| 7617 |
\protect\section{\MessageBreak |
| 7618 |
\space\space\space\space\protect\texorpdfstring\MessageBreak |
| 7619 |
\space\space\space\space\space\space% |
| 7620 |
{Name with math}{Unique name, no math}\MessageBreak |
| 7621 |
\space\space} |
| 7622 |
} |
| 7623 |
|
| 7624 |
\newcommand*{\LWR@filenamenoblanks}[1]{% |
| 7625 |
\begingroup |
| 7626 |
\LWR@nullfonts% |
| 7627 |
\renewcommand*{\LWR@htmltagc}[1]{}% |
| 7628 |
\edef\LWR@thisnewfilename{#1}% |
| 7629 |
\RenewDocumentCommand{\LWR@subsingledollar}{s m m m}{}% |
| 7630 |
\LWR@simplifyname{\_} |
| 7631 |
\LWR@simplifyname{\#} |
| 7632 |
\LWR@simplifyname{\textbackslash} |
| 7633 |
\LWR@simplifyname{\protect} |
| 7634 |
\LWR@simplifyname{\ } |
| 7635 |
\LWR@simplifyname{\textless} |
| 7636 |
\LWR@simplifyname{\textgreater} |
| 7637 |
\edef\LWR@thisnewfilename{\detokenize\expandafter{\LWR@thisnewfilename}}% |
| 7638 |
\ifbool{FileSectionNames}{% |
| 7639 |
\IfSubStr{\LWR@thisnewfilename}{\LWRdollar}{% |
| 7640 |
\PackageWarning{lwarp} |
| 7641 |
{% |
| 7642 |
This section name:\MessageBreak |
| 7643 |
\space\space``\detokenize\expandafter{#1}''\MessageBreak |
| 7644 |
at the line number listed below,\MessageBreak |
| 7645 |
is using $dollar-delimited math$, |
| 7646 |
which generates\MessageBreak |
| 7647 |
complicated file names. It is better to use\MessageBreak |
| 7648 |
\space\space% |
| 7649 |
\protect\section{Name with \protect\(parenthesis math\protect\)}% |
| 7650 |
\MessageBreak |
| 7651 |
The math then will be removed from the file name.\MessageBreak |
| 7652 |
\MessageBreak |
| 7653 |
\LWR@avoiddupfilenames% |
| 7654 |
\MessageBreak |
| 7655 |
This section is found before or% |
| 7656 |
} |
| 7657 |
}{}% |
| 7658 |
}{} |
| 7659 |
\LWR@traceinfo{LWR@filenamenoblanks edef: !\LWR@thisnewfilename!}% |
| 7660 |
\fullexpandarg% |
| 7661 |
\LWR@simplifyname*{ } |
| 7662 |
\LWR@simplifyname*{*} |
| 7663 |
\LWR@simplifyname*{(} |
| 7664 |
\LWR@simplifyname*{)} |
| 7665 |
\LWR@simplifyname*{.} |
| 7666 |
\LWR@simplifyname*{!} |
| 7667 |
\LWR@simplifyname*{,} |
| 7668 |
\LWR@simplifyname*{'} |
| 7669 |
\LWR@simplifyname*{+} |
| 7670 |
\LWR@simplifyname*{/} |
| 7671 |
\LWR@simplifyname*{:} |
| 7672 |
\LWR@simplifyname*{;} |
| 7673 |
\LWR@simplifyname*{=} |
| 7674 |
\LWR@simplifyname*{?} |
| 7675 |
\LWR@simplifyname*{@} |
| 7676 |
\LWR@simplifyname*{^} |
| 7677 |
\LWR@simplifyname*{&} |
| 7678 |
\LWR@simplifyname*{"} |
| 7679 |
\LWR@simplifyname*{<} |
| 7680 |
\LWR@simplifyname*{>} |
| 7681 |
\LWR@simplifyname{\LWRbackslash} |
| 7682 |
\StrSubstitute{\LWR@thisnewfilename}% |
| 7683 |
{\LWRleftbrace}{}[\LWR@thisnewfilename]% |
| 7684 |
\StrSubstitute{\LWR@thisnewfilename}% |
| 7685 |
{\LWRrightbrace}{}[\LWR@thisnewfilename]% |
| 7686 |
\LWR@simplifyname{\LWRpercent} |
| 7687 |
\LWR@simplifyname{\LWRdollar} |
| 7688 |
\LWR@simplifyname*{|} |
| 7689 |
\LWR@simplifyname*{^} |
| 7690 |
\LWR@simplifyname*{~} |
| 7691 |
\LWR@simplifyname*{[} |
| 7692 |
\LWR@simplifyname*{]} |
| 7693 |
\LWR@simplifyname*{`} |
| 7694 |
\LWR@simplifyname*{-s-} |
| 7695 |
\LWR@simplifyname*{-S-} |
| 7696 |
\LWR@simplifyname*{-a-} |
| 7697 |
\LWR@simplifyname*{-A-} |
| 7698 |
\LWR@simplifyname*{-an-} |
| 7699 |
\LWR@simplifyname*{-AN-} |
| 7700 |
\LWR@simplifyname*{-to-} |
| 7701 |
\LWR@simplifyname*{-TO-} |
| 7702 |
\LWR@simplifyname*{-by-} |
| 7703 |
\LWR@simplifyname*{-BY-} |
| 7704 |
\LWR@simplifyname*{-of-} |
| 7705 |
\LWR@simplifyname*{-OF-} |
| 7706 |
\LWR@simplifyname*{-and-} |
| 7707 |
\LWR@simplifyname*{-AND-} |
| 7708 |
\LWR@simplifyname*{-for-} |
| 7709 |
\LWR@simplifyname*{-FOR-} |
| 7710 |
\LWR@simplifyname*{-the-} |
| 7711 |
\LWR@simplifyname*{-THE-} |
| 7712 |
\LWR@simplifyname*{-nolimits-} |
| 7713 |
\LWR@simplifyname*{-begingroup-} |
| 7714 |
\LWR@simplifyname*{-endgroup-} |
| 7715 |
\LWR@simplifycustom% |
| 7716 |
\ifPDFTeX% pdflatex or dvi latex |
| 7717 |
\ifdefstring{\inputencodingname}{utf8}{% |
| 7718 |
\LWR@simplifyname*{—} |
| 7719 |
\LWR@simplifyname*{–} |
| 7720 |
}{}% |
| 7721 |
\else% not PDFTeX |
| 7722 |
\LWR@simplifyname*{—} |
| 7723 |
\LWR@simplifyname*{–} |
| 7724 |
\fi% |
| 7725 |
\LWR@simplifyname*{-----} |
| 7726 |
\LWR@simplifyname*{----} |
| 7727 |
\LWR@simplifyname*{---} |
| 7728 |
\LWR@simplifyname*{--} |
| 7729 |
\IfBeginWith{\LWR@thisnewfilename}{\detokenize{-}}{% |
| 7730 |
\StrGobbleLeft{\LWR@thisnewfilename}{1}[\LWR@thisnewfilename]% |
| 7731 |
}{}% |
| 7732 |
\IfEndWith{\LWR@thisnewfilename}{\detokenize{-}}{% |
| 7733 |
\StrGobbleRight{\LWR@thisnewfilename}{1}[\LWR@thisnewfilename]% |
| 7734 |
}{}% |
| 7735 |
\StrLeft{\LWR@thisnewfilename}{\FilenameLimit}[\LWR@thisnewfilename]% |
| 7736 |
\global\let\LWR@thisfilename\LWR@thisnewfilename% |
| 7737 |
\endgroup% |
| 7738 |
\LWR@traceinfo{LWR@filenamenoblanks: result is \LWR@thisfilename}% |
| 7739 |
} |
| 7740 |
|
| 7741 |
|
| 7742 |
\bgroup |
| 7743 |
\catcode`!=3 \catcode`?=3 |
| 7744 |
|
| 7745 |
\long\gdef\LWR@replacestrings@addto#1#2{% |
| 7746 |
\expandafter\def\expandafter#1\expandafter{#1#2}% |
| 7747 |
} |
| 7748 |
|
| 7749 |
\gdef\LWR@replacestrings#1#2{% |
| 7750 |
\long\def\LWR@replacestringsA##1#1{\def\tmpb{##1}\LWR@replacestringsB}% |
| 7751 |
\long\def\LWR@replacestringsB##1#1{% |
| 7752 |
\ifx!##1\relax \else\LWR@replacestrings@addto\tmpb{#2##1}% |
| 7753 |
\expandafter\LWR@replacestringsB\fi% |
| 7754 |
}% improved version <May 2016> inspired |
| 7755 |
\expandafter\LWR@replacestringsA\tmpb?#1!#1% from pysyntax.tex by Petr Krajnik |
| 7756 |
\long\def\LWR@replacestringsA##1?{% |
| 7757 |
\def\tmpb{##1}% |
| 7758 |
}\expandafter\LWR@replacestringsA\tmpb% |
| 7759 |
} |
| 7760 |
\egroup |
| 7761 |
|
| 7762 |
\newbool{LWR@HTMLsanitize@tmpb@enable} |
| 7763 |
\booltrue{LWR@HTMLsanitize@tmpb@enable} |
| 7764 |
|
| 7765 |
\newbool{LWR@HTMLsanitize@tmpb@removebackslash} |
| 7766 |
\booltrue{LWR@HTMLsanitize@tmpb@removebackslash} |
| 7767 |
|
| 7768 |
\newbool{LWR@MathJax@silentquotes} |
| 7769 |
\boolfalse{LWR@MathJax@silentquotes} |
| 7770 |
|
| 7771 |
\expandafter\def\expandafter\LWR@eolspace\expandafter{\detokenize{\ |
| 7772 |
}}% there is a trailing space in the previous line |
| 7773 |
|
| 7774 |
\catcode`\&=12 |
| 7775 |
\newcommand*{\LWR@HTMLsanitize@tmpb}{% |
| 7776 |
\ifbool{LWR@HTMLsanitize@tmpb@enable}% |
| 7777 |
{% |
| 7778 |
\expandafter\LWR@replacestrings\expandafter{\LWR@eolspace}{\ }% |
| 7779 |
\LWR@replacestrings{&}{&}% Must be before the following: |
| 7780 |
\LWR@replacestrings{<}{<}% |
| 7781 |
\LWR@replacestrings{>}{>}% |
| 7782 |
\LWR@replacestrings{'}{'}% |
| 7783 |
\LWR@replacestrings{`}{`}% |
| 7784 |
\LWR@replacestrings{_}{\detokenize{_}}% |
| 7785 |
\ifbool{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 7786 |
{% |
| 7787 |
\def\@tempa{\LWR@replacestrings}% |
| 7788 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\detokenize{\#}}}% |
| 7789 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\LWRhash}}% |
| 7790 |
\@tempa% |
| 7791 |
\def\@tempa{\LWR@replacestrings}% |
| 7792 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\detokenize{\%}}}% |
| 7793 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\LWRpercent}}% |
| 7794 |
\@tempa% |
| 7795 |
\def\@tempa{\LWR@replacestrings}% |
| 7796 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\detokenize{\&}}}% |
| 7797 |
\expandafter\appto\expandafter\@tempa\expandafter{\expandafter{\LWRamp}}% |
| 7798 |
\@tempa% |
| 7799 |
}% |
| 7800 |
{}% |
| 7801 |
\ifbool{LWR@MathJax@silentquotes} |
| 7802 |
{% |
| 7803 |
\expandafter\LWR@replacestrings\expandafter{\LWRbackslash"}{}% |
| 7804 |
\LWR@replacestrings{"}{}% |
| 7805 |
}% |
| 7806 |
{% |
| 7807 |
\LWR@replacestrings{"}{"}% |
| 7808 |
}% |
| 7809 |
}% sanitizing enabled |
| 7810 |
{}% sanitizing not enabled |
| 7811 |
} |
| 7812 |
\catcode`\&=4 |
| 7813 |
|
| 7814 |
\newcommand{\LWR@HTMLsanitize@use@tmpb}[1]{% |
| 7815 |
\ifbool{LWR@HTMLsanitize@tmpb@enable}% |
| 7816 |
{% |
| 7817 |
\def\tmpb{#1}% |
| 7818 |
\LWR@HTMLsanitize@tmpb% |
| 7819 |
\tmpb% |
| 7820 |
}% |
| 7821 |
{#1}% |
| 7822 |
} |
| 7823 |
|
| 7824 |
\catcode`\#=12 |
| 7825 |
\newcommand{\LWR@subHTMLsanitize}{% |
| 7826 |
\edef\tmpb{\detokenize\expandafter{\LWR@strresult}}% |
| 7827 |
\LWR@HTMLsanitize@tmpb% |
| 7828 |
\LWR@replacestrings{##}{#}% |
| 7829 |
\edef\LWR@strresult{\detokenize\expandafter{\tmpb}}% |
| 7830 |
} |
| 7831 |
\catcode`\#=6 |
| 7832 |
|
| 7833 |
\newrobustcmd{\LWR@HTMLsanitizedetokenized}[1]{% |
| 7834 |
\LWR@traceinfo{LWR@HTMLsanitizedetokenized !#1!}% |
| 7835 |
\begingroup% |
| 7836 |
\LWR@hook@processingtags% |
| 7837 |
\edef\LWR@strresult{#1}% |
| 7838 |
\LWR@subHTMLsanitize% |
| 7839 |
\LWR@strresult% |
| 7840 |
\endgroup% |
| 7841 |
\LWR@traceinfo{LWR@HTMLsanitize done}% |
| 7842 |
} |
| 7843 |
|
| 7844 |
\edef\LWR@beginspaceleftbrace{begin \LWRleftbrace} |
| 7845 |
\edef\LWR@beginspaceleftbrace{\detokenize\expandafter{\LWR@beginspaceleftbrace}} |
| 7846 |
\edef\LWR@beginleftbrace{begin\LWRleftbrace} |
| 7847 |
\edef\LWR@beginleftbrace{\detokenize\expandafter{\LWR@beginleftbrace}} |
| 7848 |
|
| 7849 |
\edef\LWR@endspacerightbrace{end \LWRrightbrace} |
| 7850 |
\edef\LWR@endspacerightbrace{\detokenize\expandafter{\LWR@endspacerightbrace}} |
| 7851 |
\edef\LWR@endrightbrace{end\LWRrightbrace} |
| 7852 |
\edef\LWR@endrightbrace{\detokenize\expandafter{\LWR@endrightbrace}} |
| 7853 |
|
| 7854 |
\newrobustcmd{\LWR@HTMLsanitizeexpanded}[1]{% |
| 7855 |
\begingroup% |
| 7856 |
\LWR@hook@processingtags% |
| 7857 |
\edef\LWR@strresult{#1}% |
| 7858 |
\protect\StrSubstitute{\LWR@strresult}% |
| 7859 |
{\LWR@beginspaceleftbrace}{\LWR@beginleftbrace}[\LWR@strresult]% |
| 7860 |
\protect\StrSubstitute{\LWR@strresult}% |
| 7861 |
{\LWR@endspacerightbrace}{\LWR@endrightbrace}[\LWR@strresult]% |
| 7862 |
\LWR@subHTMLsanitize% |
| 7863 |
\LWR@strresult% |
| 7864 |
\endgroup% |
| 7865 |
} |
| 7866 |
|
| 7867 |
|
| 7868 |
\newcommand*{\LWR@customizedMathJax}{} |
| 7869 |
|
| 7870 |
\newbool{LWR@warnedcustomizemathjax} |
| 7871 |
\boolfalse{LWR@warnedcustomizemathjax} |
| 7872 |
|
| 7873 |
\newcommand*{\LWR@subcustomizedmathjax}[1]{% |
| 7874 |
\begingroup% |
| 7875 |
\LWR@hook@processingtags% |
| 7876 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 7877 |
\edef\LWR@strresult{\detokenize{#1}}% |
| 7878 |
\LWR@subHTMLsanitize% |
| 7879 |
\xdef\LWR@customizedMathJax{% |
| 7880 |
\LWR@customizedMathJax% |
| 7881 |
\LWR@strresult% |
| 7882 |
}% |
| 7883 |
\endgroup% |
| 7884 |
} |
| 7885 |
\@onlypreamble\LWR@subcustomizedmathjax |
| 7886 |
|
| 7887 |
\newcommand*{\CustomizeMathJax}[1]{% |
| 7888 |
\ifbool{LWR@warnedcustomizemathjax}{}{% |
| 7889 |
\StrLen{\detokenize{#1}}[\LWR@tempone]% |
| 7890 |
\ifnumgreater{\LWR@tempone}{350}{% |
| 7891 |
\AtEndDocument{% |
| 7892 |
\PackageNoteNoLine{lwarp}{% |
| 7893 |
To ensure faster MathJax compilation, place each\MessageBreak |
| 7894 |
custom macro in its own \protect\CustomizeMathJax.\MessageBreak |
| 7895 |
See the Lwarp documentation regarding customizing\MessageBreak |
| 7896 |
MathJax% |
| 7897 |
}% |
| 7898 |
}% |
| 7899 |
\booltrue{LWR@warnedcustomizemathjax}% |
| 7900 |
}{}% |
| 7901 |
}% |
| 7902 |
\appto\LWR@customizedMathJax{\LWRbackslash(}% |
| 7903 |
\LWR@subcustomizedmathjax{#1}% |
| 7904 |
\appto\LWR@customizedMathJax{\LWRbackslash)\par}% |
| 7905 |
} |
| 7906 |
\@onlypreamble\CustomizeMathJax |
| 7907 |
|
| 7908 |
\newcommand*{\LWR@infoprocessingmathjax}[1]{% |
| 7909 |
\typeout{---} |
| 7910 |
\typeout{Package lwarp: Processing MathJax customizations for #1.} |
| 7911 |
\typeout{\space\space This may take a moment.} |
| 7912 |
\typeout{---} |
| 7913 |
} |
| 7914 |
|
| 7915 |
\providecommand{\footnotename}{footnote} |
| 7916 |
|
| 7917 |
\end{warpHTML} |
| 7918 |
|
| 7919 |
\begin{warpMathJax} |
| 7920 |
\xdef\LWR@customizedMathJax{\LWR@customizedMathJax% |
| 7921 |
\LWRbackslash(% |
| 7922 |
\LWRbackslash{}newcommand% |
| 7923 |
\{\LWRbackslash{}footnotename\}% |
| 7924 |
\{\footnotename\}% |
| 7925 |
\LWRbackslash)\par% |
| 7926 |
} |
| 7927 |
\end{warpMathJax} |
| 7928 |
|
| 7929 |
\begin{warpMathJax} |
| 7930 |
\CustomizeMathJax{\def\LWRfootnote{1}} |
| 7931 |
\CustomizeMathJax{\newcommand{\footnote}[2][\LWRfootnote]{{}^{\mathrm{#1}}}} |
| 7932 |
\CustomizeMathJax{\newcommand{\footnotemark}[1][\LWRfootnote]{{}^{\mathrm{#1}}}} |
| 7933 |
\CustomizeMathJax{\let\LWRorighspace\hspace} |
| 7934 |
\CustomizeMathJax{\renewcommand{\hspace}{\ifstar\LWRorighspace\LWRorighspace}} |
| 7935 |
\CustomizeMathJax{\newcommand{\TextOrMath}[2]{#2}} |
| 7936 |
\CustomizeMathJax{\newcommand{\mathnormal}[1]{{#1}}} |
| 7937 |
\CustomizeMathJax{\newcommand\ensuremath[1]{#1}} |
| 7938 |
\CustomizeMathJax{% absorb two optional arguments |
| 7939 |
\newcommand{\LWRframebox}[2][]{\fbox{#2}} |
| 7940 |
\newcommand{\framebox}[1][]{\LWRframebox} |
| 7941 |
} |
| 7942 |
\CustomizeMathJax{\newcommand{\setlength}[2]{}} |
| 7943 |
\CustomizeMathJax{\newcommand{\addtolength}[2]{}} |
| 7944 |
\CustomizeMathJax{\newcommand{\setcounter}[2]{}} |
| 7945 |
\CustomizeMathJax{\newcommand{\addtocounter}[2]{}} |
| 7946 |
\CustomizeMathJax{\newcommand{\arabic}[1]{}} |
| 7947 |
\CustomizeMathJax{\newcommand{\number}[1]{}} |
| 7948 |
\CustomizeMathJax{\newcommand{\noalign}[1]{\text{#1}\notag \\}} |
| 7949 |
\CustomizeMathJax{\newcommand{\cline}[1]{}} |
| 7950 |
\CustomizeMathJax{\newcommand{\directlua}[1]{\text{(directlua)}}} |
| 7951 |
\CustomizeMathJax{\newcommand{\luatexdirectlua}[1]{\text{(directlua)}}} |
| 7952 |
\CustomizeMathJax{\newcommand{\protect}{}} |
| 7953 |
\CustomizeMathJax{\def\LWRabsorbnumber#1 {}} |
| 7954 |
\CustomizeMathJax{\def\LWRabsorbquotenumber"#1 {}} |
| 7955 |
\CustomizeMathJax{\newcommand{\LWRabsorboption}[1][]{}} |
| 7956 |
\CustomizeMathJax{\newcommand{\LWRabsorbtwooptions}[1][]{\LWRabsorboption}} |
| 7957 |
\CustomizeMathJax{\def\mathchar{\ifnextchar"\LWRabsorbquotenumber\LWRabsorbnumber}} |
| 7958 |
\CustomizeMathJax{\def\mathcode#1={\mathchar}} |
| 7959 |
\CustomizeMathJax{\let\delcode\mathcode} |
| 7960 |
\CustomizeMathJax{\let\delimiter\mathchar} |
| 7961 |
\CustomizeMathJax{\def\oe{\unicode{x0153}}} |
| 7962 |
\CustomizeMathJax{\def\OE{\unicode{x0152}}} |
| 7963 |
\CustomizeMathJax{\def\ae{\unicode{x00E6}}} |
| 7964 |
\CustomizeMathJax{\def\AE{\unicode{x00C6}}} |
| 7965 |
\CustomizeMathJax{\def\aa{\unicode{x00E5}}} |
| 7966 |
\CustomizeMathJax{\def\AA{\unicode{x00C5}}} |
| 7967 |
\CustomizeMathJax{\def\o{\unicode{x00F8}}} |
| 7968 |
\CustomizeMathJax{\def\O{\unicode{x00D8}}} |
| 7969 |
\CustomizeMathJax{\def\l{\unicode{x0142}}} |
| 7970 |
\CustomizeMathJax{\def\L{\unicode{x0141}}} |
| 7971 |
\CustomizeMathJax{\def\ss{\unicode{x00DF}}} |
| 7972 |
\CustomizeMathJax{\def\SS{\unicode{x1E9E}}} |
| 7973 |
\CustomizeMathJax{\def\dag{\unicode{x2020}}} |
| 7974 |
\CustomizeMathJax{\def\ddag{\unicode{x2021}}} |
| 7975 |
\CustomizeMathJax{\def\P{\unicode{x00B6}}} |
| 7976 |
\CustomizeMathJax{\def\copyright{\unicode{x00A9}}} |
| 7977 |
\CustomizeMathJax{\def\pounds{\unicode{x00A3}}} |
| 7978 |
\end{warpMathJax} |
| 7979 |
|
| 7980 |
\begin{warpHTML}% due to warpMathJax |
| 7981 |
|
| 7982 |
\newcommand{\LWR@customizeMathJax}{% |
| 7983 |
\ifbool{mathjax}{ |
| 7984 |
\LWR@stoppars |
| 7985 |
\LWR@htmlcomment{MathJax customizations:} |
| 7986 |
\LWR@htmlelementclass{div data-nosnippet}[display:none]{} |
| 7987 |
\LWR@stoppars |
| 7988 |
{ |
| 7989 |
\LWR@print@ttfamily |
| 7990 |
\LWR@customizedMathJax |
| 7991 |
} |
| 7992 |
\LWR@htmlelementclassend{div}{} |
| 7993 |
}{} |
| 7994 |
} |
| 7995 |
|
| 7996 |
|
| 7997 |
|
| 7998 |
|
| 7999 |
|
| 8000 |
\end{warpHTML} |
| 8001 |
|
| 8002 |
\begin{warpprint} |
| 8003 |
|
| 8004 |
\newcommand*{\CustomizeMathJax}[1]{} |
| 8005 |
|
| 8006 |
|
| 8007 |
\NewDocumentCommand{\FilenameSimplify}{s m}{} |
| 8008 |
|
| 8009 |
\end{warpprint} |
| 8010 |
|
| 8011 |
\begin{warpHTML} |
| 8012 |
|
| 8013 |
\newcommand*{\LWR@createfooter}{% |
| 8014 |
\ifnumless{\value{LWR@htmlseqfilenumber}}{1}{% |
| 8015 |
\ifdefempty{\LWR@firstpagebottom}{}{% |
| 8016 |
\LWR@htmlelement{footer} |
| 8017 |
|
| 8018 |
\LWR@firstpagebottom |
| 8019 |
|
| 8020 |
\LWR@htmlelementend{footer} |
| 8021 |
}% |
| 8022 |
}{% |
| 8023 |
\ifdefempty{\LWR@pagebottom}{}{% |
| 8024 |
\LWR@htmlelement{footer} |
| 8025 |
|
| 8026 |
\LWR@pagebottom |
| 8027 |
|
| 8028 |
\LWR@htmlelementend{footer} |
| 8029 |
}% |
| 8030 |
}% |
| 8031 |
} |
| 8032 |
|
| 8033 |
\newcommand*{\LWR@newhtmlfile}[1]{ |
| 8034 |
\LWR@traceinfo{LWR@newhtmlfile} |
| 8035 |
\LWR@htmlelementclassend{section}{textbody} |
| 8036 |
\LWR@htmlelementclassend{main}{bodycontainer} |
| 8037 |
|
| 8038 |
\LWR@printpendingfootnotes |
| 8039 |
|
| 8040 |
\ifbool{FormatEPUB}{}{\LWR@createfooter} |
| 8041 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}} |
| 8042 |
{} |
| 8043 |
{\ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{}} |
| 8044 |
|
| 8045 |
\LWR@stoppars |
| 8046 |
\LWR@htmltag{/div}\LWR@htmlcomment{ grid }\LWR@orignewline% grid |
| 8047 |
\LWR@htmltag{/body}\LWR@orignewline |
| 8048 |
\LWR@htmltag{/html}\LWR@orignewline |
| 8049 |
\LWR@traceinfo{LWR@newhtmlfile: about to LWR@orignewpage} |
| 8050 |
\LWR@maybe@orignewpage |
| 8051 |
\addtocounter{LWR@htmlfilenumber}{1}% |
| 8052 |
\addtocounter{LWR@htmlseqfilenumber}{1}% |
| 8053 |
\ifbool{FileSectionNames}% |
| 8054 |
{% |
| 8055 |
\LWR@filenamenoblanks{#1}% |
| 8056 |
\edef\LWR@hashedname{\LWR@mdfive{\LWR@thisfilename}}% |
| 8057 |
\ifcsundef{LWR@filename\LWR@hashedname}{% |
| 8058 |
\csdef{LWR@filename\LWR@hashedname}{}% |
| 8059 |
}{% |
| 8060 |
\ifcsempty{LWR@filename\LWR@hashedname}% |
| 8061 |
{% first instance |
| 8062 |
\PackageWarning{lwarp} |
| 8063 |
{% |
| 8064 |
The section name:\MessageBreak |
| 8065 |
``#1'',\MessageBreak |
| 8066 |
at the line number listed below,\MessageBreak |
| 8067 |
generates the filename\MessageBreak |
| 8068 |
``\LWR@thisfilename'',\MessageBreak |
| 8069 |
which appears to be a duplicate. There is a\MessageBreak |
| 8070 |
previous section with an identical or similar name.\MessageBreak |
| 8071 |
A unique file number has been appended to the file name\MessageBreak |
| 8072 |
of this and any further similar files.\MessageBreak |
| 8073 |
This number may change as sections are added/removed,\MessageBreak |
| 8074 |
and obsolete HTML files may result.\MessageBreak |
| 8075 |
To remove these files, use lwarpmk cleanall.\MessageBreak |
| 8076 |
(While generating file names, Lwarp sanitizes math,\MessageBreak |
| 8077 |
most symbols, and a few common short words,\MessageBreak |
| 8078 |
and this may cause a conflict.)\MessageBreak |
| 8079 |
\LWR@avoiddupfilenames% |
| 8080 |
}% |
| 8081 |
\csdef{LWR@filename\LWR@hashedname}{1}% |
| 8082 |
}% first instance |
| 8083 |
{}% repeated instances |
| 8084 |
\edef\LWR@thisfilename{\LWR@thisfilename-\arabic{LWR@htmlseqfilenumber}}% |
| 8085 |
}% |
| 8086 |
}% |
| 8087 |
{\renewcommand*{\LWR@thisfilename}{\arabic{LWR@htmlfilenumber}}} |
| 8088 |
\LWR@traceinfo{LWR@newhtmlfile: about to print start file}% |
| 8089 |
\begingroup% |
| 8090 |
\LWR@nullfonts% |
| 8091 |
\LWR@htmlblockcomment{% |
| 8092 |
|Start file|% |
| 8093 |
\LWR@htmlsectionfilename{\LWR@thisfilename}|% |
| 8094 |
} |
| 8095 |
\endgroup% |
| 8096 |
\LWR@stoppars |
| 8097 |
|
| 8098 |
\LWR@filestart[#1] |
| 8099 |
|
| 8100 |
\setcounter{LWR@currentautosecfloatpage}{\value{page}}% |
| 8101 |
\LWR@newautopagelabel{LWR@currentautosecfloatpage}% |
| 8102 |
\LWR@htmldivclass{pagegrid}% |
| 8103 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}} |
| 8104 |
{} |
| 8105 |
{\LWR@topnavigation} |
| 8106 |
|
| 8107 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}} |
| 8108 |
{} |
| 8109 |
{ |
| 8110 |
\ifdefempty{\LWR@pagetop}{}{ |
| 8111 |
\LWR@htmlelement{header} |
| 8112 |
|
| 8113 |
\LWR@pagetop |
| 8114 |
|
| 8115 |
\LWR@htmlelementend{header} |
| 8116 |
} |
| 8117 |
} |
| 8118 |
|
| 8119 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}} |
| 8120 |
{} |
| 8121 |
{\LWR@sidetoc} |
| 8122 |
|
| 8123 |
\LWR@htmlelementclass{main}{bodycontainer} |
| 8124 |
\LWR@htmlelementclass{section}{textbody} |
| 8125 |
\boolfalse{LWR@setseqfilelabel} |
| 8126 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}}% |
| 8127 |
{}% |
| 8128 |
{% |
| 8129 |
\ifcsvoid{thetitle}{}{% |
| 8130 |
\LWR@printthetitle% |
| 8131 |
}% |
| 8132 |
}% |
| 8133 |
\LWR@stoppars |
| 8134 |
|
| 8135 |
\LWR@customizeMathJax |
| 8136 |
\LWR@traceinfo{LWR@newhtmlfile: done} |
| 8137 |
} |
| 8138 |
|
| 8139 |
\end{warpHTML} |
| 8140 |
|
| 8141 |
|
| 8142 |
\begin{warpHTML} |
| 8143 |
\newbool{LWR@forcinghtmlpage} |
| 8144 |
\boolfalse{LWR@forcinghtmlpage} |
| 8145 |
|
| 8146 |
\newcommand*{\ForceHTMLPage}{% |
| 8147 |
\global\booltrue{LWR@forcinghtmlpage}% |
| 8148 |
} |
| 8149 |
\newbool{LWR@forcinghtmltoc} |
| 8150 |
\boolfalse{LWR@forcinghtmltoc} |
| 8151 |
|
| 8152 |
\newcommand*{\ForceHTMLTOC}{% |
| 8153 |
\global\booltrue{LWR@forcinghtmltoc}% |
| 8154 |
} |
| 8155 |
\end{warpHTML} |
| 8156 |
\begin{warpprint} |
| 8157 |
\newcommand*{\ForceHTMLPage}{} |
| 8158 |
\newcommand*{\ForceHTMLTOC}{} |
| 8159 |
\end{warpprint} |
| 8160 |
\begin{warpHTML} |
| 8161 |
\newbool{LWR@mainmatter} |
| 8162 |
\DeclareDocumentCommand{\mainmatter}{}{% |
| 8163 |
\booltrue{LWR@mainmatter}% |
| 8164 |
} |
| 8165 |
|
| 8166 |
\DeclareDocumentCommand{\frontmatter}{}{% |
| 8167 |
\boolfalse{LWR@mainmatter}% |
| 8168 |
} |
| 8169 |
|
| 8170 |
\DeclareDocumentCommand{\backmatter}{}{% |
| 8171 |
\boolfalse{LWR@mainmatter} |
| 8172 |
} |
| 8173 |
\newcommand*{\LWR@sectionnumber}[1]{% |
| 8174 |
\InlineClass{sectionnumber}{#1}% |
| 8175 |
} |
| 8176 |
|
| 8177 |
\newcommand*{\LWR@createautosec}[1]{% |
| 8178 |
\LWR@htmltag{% |
| 8179 |
#1 % space |
| 8180 |
id=\textquotedbl\LWR@print@mbox{autosec-\arabic{page}}\textquotedbl% |
| 8181 |
}% |
| 8182 |
} |
| 8183 |
|
| 8184 |
\NewDocumentCommand{\LWR@pushoneclose}{m}{% |
| 8185 |
\LWR@traceinfo{LWR@pushoneclose #1}% |
| 8186 |
\LWR@pushclose{#1}% |
| 8187 |
} |
| 8188 |
|
| 8189 |
\NewDocumentCommand{\LWR@startnewdepth}{m}{% |
| 8190 |
\LWR@closeprevious{#1}% |
| 8191 |
\LWR@pushoneclose{#1}% |
| 8192 |
} |
| 8193 |
\newcounter{LWR@prevFileDepth} |
| 8194 |
\setcounter{LWR@prevFileDepth}{\LWR@depthsubparagraph} |
| 8195 |
\def\@seccntformat#1{\csname the#1\endcsname\quad} |
| 8196 |
\newcommand*{\simplechapterdelim}{} |
| 8197 |
\let\@chapcntformat\@seccntformat |
| 8198 |
\let\@partcntformat\@seccntformat |
| 8199 |
\newcommand*{\@partnameformat}{\LWR@isolate{\partname}~}% |
| 8200 |
\newcommand*{\LWR@printchaptername}{% |
| 8201 |
\ifdefvoid{\chaptername}{}{\chaptername~}% |
| 8202 |
} |
| 8203 |
\DeclareDocumentCommand{\LWR@section}{m m m m}{% |
| 8204 |
\IfValueTF{#2}% |
| 8205 |
{\LWR@traceinfo{LWR@section: starting #4 #2}}% |
| 8206 |
{\LWR@traceinfo{LWR@section: starting #4 #3}}% |
| 8207 |
\LWR@spanwarninvalid{section}% |
| 8208 |
\LWR@maybeprintpendingfootnotes{\csuse{LWR@depth#4}}% |
| 8209 |
\LWR@stoppars% |
| 8210 |
\LWR@startnewdepth{#4}% |
| 8211 |
\global\boolfalse{LWR@minipagethispar}% |
| 8212 |
\LWR@traceinfo{LWR@section: testing whether to start a new HTML file}% |
| 8213 |
\IfBooleanT{#1}{\LWR@traceinfo{LWR@section: starred}}% |
| 8214 |
\ifbool{LWR@forcinghtmlpage}{\LWR@traceinfo{LWR@section: forcinghtmlpage}}{}% |
| 8215 |
\ifthenelse{% |
| 8216 |
\(% |
| 8217 |
\(\NOT\equal{#1}{\BooleanTrue}\)\OR% |
| 8218 |
\(\cnttest{\@nameuse{LWR@depth#4}}{=}{\LWR@depthpart}\)\OR% |
| 8219 |
\(\boolean{LWR@forcinghtmlpage}\)% |
| 8220 |
\)% |
| 8221 |
\AND% |
| 8222 |
\cnttest{\@nameuse{LWR@depth#4}}{<=}{\value{FileDepth}}% |
| 8223 |
\AND% |
| 8224 |
\(% |
| 8225 |
\NOT\boolean{CombineHigherDepths}\OR% |
| 8226 |
\cnttest{\@nameuse{LWR@depth#4}}{<=}{\value{LWR@prevFileDepth}}% |
| 8227 |
\)% |
| 8228 |
\AND% |
| 8229 |
\(% phantomsection |
| 8230 |
\NOT\isempty{#3}% |
| 8231 |
\OR% |
| 8232 |
\(\NOT\equal{#1}{\BooleanTrue}\)% |
| 8233 |
\)% |
| 8234 |
}% |
| 8235 |
{% new file |
| 8236 |
\LWR@traceinfo{LWR@section: new HTML file}% |
| 8237 |
\IfNoValueTF{#2}% |
| 8238 |
{\LWR@newhtmlfile{#3}}% |
| 8239 |
{\LWR@newhtmlfile{#2}}% |
| 8240 |
}% new file |
| 8241 |
{% not new file |
| 8242 |
\LWR@traceinfo{LWR@section: not a new HTML file, about to LWR@orignewpage}% |
| 8243 |
\LWR@stoppars% |
| 8244 |
\LWR@maybe@orignewpage% |
| 8245 |
}% not new file |
| 8246 |
\IfValueT{#3}{% |
| 8247 |
\LWR@traceinfo{LWR@section: about to LWR@setlatestname}% |
| 8248 |
\IfValueTF{#2}{\LWR@setlatestname{#2}}{\LWR@setlatestname{#3}}% |
| 8249 |
}% |
| 8250 |
\LWR@stoppars% |
| 8251 |
\begingroup% |
| 8252 |
\LWR@nullfonts% |
| 8253 |
\LWR@nullifyfootnotes% |
| 8254 |
\LWR@htmlcomment{% |
| 8255 |
\LWR@orignewline% |
| 8256 |
\IfValueTF{#2}% |
| 8257 |
{...... #4 #2 ......}% |
| 8258 |
{...... #4 #3 ......}% |
| 8259 |
\LWR@orignewline% |
| 8260 |
}% |
| 8261 |
\LWR@orignewline% |
| 8262 |
\ifbool{HTMLDebugComments}% |
| 8263 |
{% |
| 8264 |
\IfBooleanTF{#1}% starred |
| 8265 |
{% |
| 8266 |
\IfNoValueTF{#2}% short TOC |
| 8267 |
{\LWR@htmlcomment{Opening #4* ``#3''}}% |
| 8268 |
{\LWR@htmlcomment{Opening #4* ``#2''}}% |
| 8269 |
}% |
| 8270 |
{% |
| 8271 |
\IfNoValueTF{#2}% short TOC |
| 8272 |
{\LWR@htmlcomment{Opening #4 ``#3''}}% |
| 8273 |
{\LWR@htmlcomment{Opening #4 ``#2''}}% |
| 8274 |
}% |
| 8275 |
\LWR@orignewline% |
| 8276 |
}% |
| 8277 |
{}% |
| 8278 |
\endgroup% |
| 8279 |
\ifthenelse{% |
| 8280 |
\cnttest{\@nameuse{LWR@depth#4}}{>=}{\LWR@depthparagraph}% |
| 8281 |
}% |
| 8282 |
{\LWR@startpars}% |
| 8283 |
{}% |
| 8284 |
\LWR@traceinfo{LWR@section: about to LWR@createautosec}% |
| 8285 |
\LWR@createautosec{\@nameuse{LWR@tag#4}}% |
| 8286 |
\setcounter{LWR@currentautosecpage}{\value{page}}% |
| 8287 |
\IfBooleanTF{#1}% |
| 8288 |
{% |
| 8289 |
\LWR@traceinfo{LWR@section: starred}% |
| 8290 |
\ifbool{LWR@forcinghtmltoc}% |
| 8291 |
{% |
| 8292 |
\addcontentsline{toc}{#4}{% |
| 8293 |
\IfValueTF{#2}{\LWR@isolate{#2}}{\LWR@isolate{#3}}% |
| 8294 |
}% |
| 8295 |
}% |
| 8296 |
{}% |
| 8297 |
}% starred |
| 8298 |
{% not starred |
| 8299 |
\ifthenelse{% |
| 8300 |
\cnttest{\@nameuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% |
| 8301 |
}% |
| 8302 |
{% if secnumdepth |
| 8303 |
\LWR@traceinfo{LWR@section: about to test main matter}% |
| 8304 |
\ifbool{LWR@mainmatter}% |
| 8305 |
{% |
| 8306 |
\LWR@traceinfo{LWR@section: yes mainmatter}% |
| 8307 |
\refstepcounter{#4}% |
| 8308 |
\LWR@traceinfo{LWR@section: about to addcontentsline}% |
| 8309 |
\addcontentsline{toc}{#4}% |
| 8310 |
{% |
| 8311 |
\protect\numberline{% |
| 8312 |
\@nameuse{pre#4name}% |
| 8313 |
\@nameuse{the#4}% |
| 8314 |
\@nameuse{post#4name}% |
| 8315 |
}% |
| 8316 |
{% |
| 8317 |
\ignorespaces% |
| 8318 |
\IfValueTF{#2}{\LWR@isolate{#2}}{\LWR@isolate{#3}}\protect\relax% |
| 8319 |
}% |
| 8320 |
}% |
| 8321 |
\LWR@traceinfo{LWR@section: finished addcontentsline}% |
| 8322 |
}% end of if main matter |
| 8323 |
{% not main matter |
| 8324 |
\LWR@traceinfo{LWR@section: no main matter}% |
| 8325 |
\addcontentsline{toc}{#4}{% |
| 8326 |
\IfValueTF{#2}{\LWR@isolate{#2}}{\LWR@isolate{#3}}% |
| 8327 |
}% |
| 8328 |
}% end of not main matter |
| 8329 |
}% end of secnumdepth |
| 8330 |
{% |
| 8331 |
\addcontentsline{toc}{#4}{% |
| 8332 |
\IfValueTF{#2}{\LWR@isolate{#2}}{\LWR@isolate{#3}}% |
| 8333 |
}% |
| 8334 |
}% |
| 8335 |
\ifbool{LWR@mainmatter}% |
| 8336 |
{% |
| 8337 |
\ifthenelse{% |
| 8338 |
\(\cnttest{\@nameuse{LWR@depth#4}}{<=}% |
| 8339 |
{\value{secnumdepth}}\) \AND% |
| 8340 |
\(\cnttest{\@nameuse{LWR@depth#4}}{=}{\LWR@depthpart}\)% |
| 8341 |
}% |
| 8342 |
{\@partnameformat}% |
| 8343 |
{}% |
| 8344 |
\LWR@traceinfo{LWR@section: about to print section number}% |
| 8345 |
\ifthenelse{% |
| 8346 |
\cnttest{\@nameuse{LWR@depth#4}}{<=}{\value{secnumdepth}}% |
| 8347 |
}% |
| 8348 |
{% |
| 8349 |
\ifstrequal{#4}{part}% |
| 8350 |
{\protect\LWR@sectionnumber{\@partcntformat{#4}}}% |
| 8351 |
{% |
| 8352 |
\ifstrequal{#4}{chapter}% |
| 8353 |
{% |
| 8354 |
\LWR@printchaptername% |
| 8355 |
\protect\LWR@sectionnumber{\@chapcntformat{#4}}% |
| 8356 |
}% |
| 8357 |
{\protect\LWR@sectionnumber{\@seccntformat{#4}}}% |
| 8358 |
}% |
| 8359 |
}% |
| 8360 |
{}% |
| 8361 |
\LWR@traceinfo{LWR@section: finished print section number}% |
| 8362 |
}{}% |
| 8363 |
}% not starred |
| 8364 |
\LWR@traceinfo{LWR@section: about to print the section name}% |
| 8365 |
\LWR@isolate{#3}% |
| 8366 |
\LWR@traceinfo{LWR@section: about to close the heading tag}% |
| 8367 |
\LWR@htmltag{\@nameuse{LWR@tag#4end}}% |
| 8368 |
\LWR@orignewline% |
| 8369 |
\LWR@traceinfo{LWR@section: about to create the LaTeX label}% |
| 8370 |
\setcounter{LWR@currentautosecfloatpage}{\value{page}}% |
| 8371 |
\LWR@newautopagelabel{LWR@currentautosecpage}\LWR@orignewline% |
| 8372 |
\ifbool{LWR@setseqfilelabel}{}{% |
| 8373 |
\label{\BaseJobname-autofile-\arabic{LWR@htmlseqfilenumber}}% |
| 8374 |
\booltrue{LWR@setseqfilelabel}% |
| 8375 |
}% |
| 8376 |
\ifthenelse{% |
| 8377 |
\cnttest{\@nameuse{LWR@depth#4}}{<}{\LWR@depthparagraph}% |
| 8378 |
}% |
| 8379 |
{\LWR@startpars}% |
| 8380 |
{}% |
| 8381 |
\ifthenelse{% |
| 8382 |
\NOT\equal{#1}{\BooleanTrue}\OR% |
| 8383 |
\cnttest{\@nameuse{LWR@depth#4}}{=}{\LWR@depthpart}% |
| 8384 |
}% |
| 8385 |
{% not starred |
| 8386 |
\setcounter{LWR@prevFileDepth}{\@nameuse{LWR@depth#4}}% |
| 8387 |
}% not starred |
| 8388 |
{}% |
| 8389 |
\ifstrempty{#3}% |
| 8390 |
{}% |
| 8391 |
{% |
| 8392 |
\global\boolfalse{LWR@forcinghtmlpage}% |
| 8393 |
\global\boolfalse{LWR@forcinghtmltoc}% |
| 8394 |
}% |
| 8395 |
\LWR@traceinfo{LWR@section: done}% |
| 8396 |
} |
| 8397 |
|
| 8398 |
|
| 8399 |
\providecommand*{\prebookname}{} |
| 8400 |
\providecommand*{\postbookname}{} |
| 8401 |
|
| 8402 |
\providecommand*{\prepartname}{} |
| 8403 |
\providecommand*{\postpartname}{} |
| 8404 |
|
| 8405 |
\providecommand*{\prechaptername}{} |
| 8406 |
\providecommand*{\postchaptername}{} |
| 8407 |
|
| 8408 |
\providecommand*{\presectionname}{} |
| 8409 |
\let\postsectionname\presectionname |
| 8410 |
|
| 8411 |
\let\presubsectionname\presectionname |
| 8412 |
\let\postsubsectionname\postsectionname |
| 8413 |
|
| 8414 |
\let\presubsubsectionname\presectionname |
| 8415 |
\let\postsubsubsectionname\postsectionname |
| 8416 |
|
| 8417 |
\let\preparagraphname\presectionname |
| 8418 |
\let\postparagraphname\postsectionname |
| 8419 |
|
| 8420 |
\let\presubparagraphname\presectionname |
| 8421 |
\let\postsubparagraphname\postsectionname |
| 8422 |
|
| 8423 |
|
| 8424 |
\newcommand{\part@preamble}{}% for koma-script |
| 8425 |
|
| 8426 |
\DeclareDocumentCommand{\part}{s d() o o d() m}{% |
| 8427 |
\LWR@section{#1}{#3}{#6}{part}% |
| 8428 |
|
| 8429 |
\part@preamble% for koma-script |
| 8430 |
\renewcommand{\part@preamble}{}% |
| 8431 |
} |
| 8432 |
|
| 8433 |
\let\@printcites\relax% for quotchap package |
| 8434 |
|
| 8435 |
\newcommand{\chapter@preamble}{}% for koma-script |
| 8436 |
|
| 8437 |
\@ifundefined{chapter} |
| 8438 |
{} |
| 8439 |
{% |
| 8440 |
\DeclareDocumentCommand{\chapter}{s d() o o d() m}{% |
| 8441 |
\LWR@section{#1}{#3}{#6}{chapter}% |
| 8442 |
|
| 8443 |
\@printcites% for quotchap package |
| 8444 |
|
| 8445 |
\chapter@preamble% for koma-script |
| 8446 |
\renewcommand{\chapter@preamble}{}% |
| 8447 |
} |
| 8448 |
} |
| 8449 |
|
| 8450 |
\DeclareDocumentCommand{\section}{s d() o o d() m}{% |
| 8451 |
\LWR@section{#1}{#3}{#6}{section}% |
| 8452 |
} |
| 8453 |
|
| 8454 |
\DeclareDocumentCommand{\subsection}{s d() o o d() m}{% |
| 8455 |
\LWR@section{#1}{#3}{#6}{subsection}% |
| 8456 |
} |
| 8457 |
|
| 8458 |
\DeclareDocumentCommand{\subsubsection}{s d() o o d() m}{% |
| 8459 |
\LWR@section{#1}{#3}{#6}{subsubsection}% |
| 8460 |
} |
| 8461 |
|
| 8462 |
\DeclareDocumentCommand{\paragraph}{s d() o o d() m}{% |
| 8463 |
\LWR@section{#1}{#3}{#6}{paragraph}% |
| 8464 |
} |
| 8465 |
|
| 8466 |
\DeclareDocumentCommand{\subparagraph}{s d() o o d() m}{% |
| 8467 |
\LWR@section{#1}{#3}{#6}{subparagraph}% |
| 8468 |
} |
| 8469 |
|
| 8470 |
\end{warpHTML} |
| 8471 |
|
| 8472 |
|
| 8473 |
\begin{warpall} |
| 8474 |
|
| 8475 |
\newcommand*{\LWR@currentHTMLLanguage}{en-US} |
| 8476 |
|
| 8477 |
\newcommand*{\HTMLLanguage}[1]{% |
| 8478 |
\renewcommand*{\LWR@currentHTMLLanguage}{#1}% |
| 8479 |
} |
| 8480 |
|
| 8481 |
\ifPDFTeX% pdflatex or dvi latex |
| 8482 |
\ifdefstring{\inputencodingname}{utf8}{% |
| 8483 |
\newcommand*{\theHTMLTitleSeparator}{ —\ }% EMdash |
| 8484 |
}{% |
| 8485 |
\newcommand*{\theHTMLTitleSeparator}{ -\ }% hyphen |
| 8486 |
}% |
| 8487 |
\else% |
| 8488 |
\ifpTeX |
| 8489 |
\newcommand*{\theHTMLTitleSeparator}{ -\ }% hyphen |
| 8490 |
\else |
| 8491 |
\newcommand*{\theHTMLTitleSeparator}{ —\ }% EMdash |
| 8492 |
\fi% |
| 8493 |
\fi% |
| 8494 |
|
| 8495 |
\newcommand*{\HTMLTitleBeforeSection}{% |
| 8496 |
\def\theHTMLTitleSection{% |
| 8497 |
\theHTMLTitle\theHTMLTitleSeparator\theHTMLSection% |
| 8498 |
}% |
| 8499 |
} |
| 8500 |
|
| 8501 |
\newcommand*{\HTMLTitleAfterSection}{% |
| 8502 |
\def\theHTMLTitleSection{% |
| 8503 |
\theHTMLSection\theHTMLTitleSeparator\theHTMLTitle% |
| 8504 |
}% |
| 8505 |
} |
| 8506 |
|
| 8507 |
\HTMLTitleBeforeSection |
| 8508 |
|
| 8509 |
\newcommand*{\theHTMLSection}{} |
| 8510 |
|
| 8511 |
\end{warpall} |
| 8512 |
|
| 8513 |
\begin{warpHTML} |
| 8514 |
|
| 8515 |
\newcommand*{\LWR@filestart}[1][]{% |
| 8516 |
\LWR@traceinfo{LWR@filestart !#1!}% |
| 8517 |
\begingroup% |
| 8518 |
\LWR@nullfonts% |
| 8519 |
\edef\theHTMLSection{#1}% |
| 8520 |
\StrSubstitute{\theHTMLSection}{\protect}{\detokenize{-}}[\theHTMLSection]% |
| 8521 |
\StrSubstitute{\theHTMLSection}% |
| 8522 |
{\detokenize{-----}}{\detokenize{-}}[\theHTMLSection]% |
| 8523 |
\StrSubstitute{\theHTMLSection}% |
| 8524 |
{\detokenize{----}}{\detokenize{-}}[\theHTMLSection]% |
| 8525 |
\StrSubstitute{\theHTMLSection}% |
| 8526 |
{\detokenize{---}}{\detokenize{-}}[\theHTMLSection]% |
| 8527 |
\StrSubstitute{\theHTMLSection}% |
| 8528 |
{\detokenize{--}}{\detokenize{-}}[\theHTMLSection]% |
| 8529 |
\IfBeginWith{\theHTMLSection}{\detokenize{-}}{% |
| 8530 |
\StrGobbleLeft{\theHTMLSection}{1}[\theHTMLSection]% |
| 8531 |
}{}% |
| 8532 |
\LWR@htmltag{!DOCTYPE html}\LWR@orignewline |
| 8533 |
\LWR@htmltag{% |
| 8534 |
html lang=\LWR@orig@textquotedbl\LWR@currentHTMLLanguage\LWR@orig@textquotedbl% |
| 8535 |
}\LWR@orignewline |
| 8536 |
\LWR@htmltag{head}\LWR@orignewline |
| 8537 |
\LWR@htmltag{% |
| 8538 |
meta charset=\LWR@orig@textquotedbl{}UTF-8\LWR@orig@textquotedbl\ /% |
| 8539 |
}\LWR@orignewline |
| 8540 |
\ifthenelse{\equal{\theHTMLAuthor}{}}% |
| 8541 |
{}% |
| 8542 |
{% |
| 8543 |
\LWR@htmltag{% |
| 8544 |
meta name=\LWR@orig@textquotedbl{}author\LWR@orig@textquotedbl\ % space |
| 8545 |
content=\LWR@orig@textquotedbl\theHTMLAuthor\LWR@orig@textquotedbl\ /% |
| 8546 |
}\LWR@orignewline% |
| 8547 |
}% |
| 8548 |
\LWR@htmltag{% |
| 8549 |
meta % space |
| 8550 |
name=\LWR@orig@textquotedbl{}generator\LWR@orig@textquotedbl\ % space |
| 8551 |
content=\LWR@orig@textquotedbl{}LaTeX Lwarp package\LWR@orig@textquotedbl\ /% |
| 8552 |
}\LWR@orignewline% |
| 8553 |
\ifdefempty{\LWR@currentHTMLDescription}{}{% |
| 8554 |
\LWR@htmltag{% |
| 8555 |
meta name=% |
| 8556 |
\LWR@orig@textquotedbl{}description\LWR@orig@textquotedbl\ % space |
| 8557 |
content=% |
| 8558 |
\LWR@orig@textquotedbl\LWR@currentHTMLDescription\LWR@orig@textquotedbl\ /% |
| 8559 |
}\LWR@orignewline |
| 8560 |
}% |
| 8561 |
\ifdefempty{\LWR@currentHTMLKeywords}{}{% |
| 8562 |
\LWR@htmltag{% |
| 8563 |
meta name=% |
| 8564 |
\LWR@orig@textquotedbl{}keywords\LWR@orig@textquotedbl\ % space |
| 8565 |
content=% |
| 8566 |
\LWR@orig@textquotedbl\LWR@currentHTMLKeywords\LWR@orig@textquotedbl\ /% |
| 8567 |
}\LWR@orignewline |
| 8568 |
}% |
| 8569 |
\LWR@htmltag{% |
| 8570 |
meta % space |
| 8571 |
name=\LWR@orig@textquotedbl{}viewport\LWR@orig@textquotedbl\ % space |
| 8572 |
content=% |
| 8573 |
\LWR@orig@textquotedbl{}width=device-width, initial-scale=1.0\LWR@orig@textquotedbl\ /% |
| 8574 |
}\LWR@orignewline |
| 8575 |
\LWR@HTMLmeta |
| 8576 |
\ifthenelse{\equal{\theHTMLTitle}{}}% |
| 8577 |
{}% |
| 8578 |
{% |
| 8579 |
\LWR@htmltag{title}% |
| 8580 |
\ifdefempty{\theHTMLSection}% |
| 8581 |
{\theHTMLTitle}% |
| 8582 |
{\theHTMLTitleSection}% |
| 8583 |
\LWR@htmltag{/title}\LWR@orignewline% |
| 8584 |
}% |
| 8585 |
\LWR@htmltag{% |
| 8586 |
link % space |
| 8587 |
rel=\LWR@orig@textquotedbl{}stylesheet\LWR@orig@textquotedbl\ % space |
| 8588 |
type=\LWR@orig@textquotedbl{}text/css\LWR@orig@textquotedbl\ % space |
| 8589 |
href=\LWR@orig@textquotedbl\LWR@currentcss\LWR@orig@textquotedbl\ /% |
| 8590 |
}% |
| 8591 |
\LWR@orignewline |
| 8592 |
\ifbool{mathjax}% |
| 8593 |
{% |
| 8594 |
\begingroup% |
| 8595 |
\LWR@restoreoriglists% |
| 8596 |
\boolfalse{LWR@verbtags}% |
| 8597 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 8598 |
\IfFileExists{\LWR@mathjaxfilename}% |
| 8599 |
{\verbatiminput{\LWR@mathjaxfilename}}% |
| 8600 |
{% |
| 8601 |
\PackageError{lwarp}% |
| 8602 |
{% |
| 8603 |
\protect\MathJaxFilename\space specified the file\MessageBreak |
| 8604 |
\space\space\LWR@mathjaxfilename\MessageBreak |
| 8605 |
which does not exist% |
| 8606 |
}% |
| 8607 |
{Specify an existing file, or remove \protect\MathJaxFilename.}% |
| 8608 |
}% |
| 8609 |
\endgroup% |
| 8610 |
\LWR@stoppars% |
| 8611 |
}% end of mathjax |
| 8612 |
{}% |
| 8613 |
\LWR@htmltag{/head}\LWR@orignewline |
| 8614 |
\LWR@htmltag{body}\LWR@orignewline |
| 8615 |
\endgroup% |
| 8616 |
\LWR@traceinfo{LWR@filestart: done}% |
| 8617 |
} |
| 8618 |
|
| 8619 |
\end{warpHTML} |
| 8620 |
|
| 8621 |
|
| 8622 |
\begin{warpHTML} |
| 8623 |
|
| 8624 |
\catcode`\$=\active |
| 8625 |
\newcommand*{\LWR@LwarpStart} |
| 8626 |
{% |
| 8627 |
\LWR@traceinfo{LWR@lwarpStart} |
| 8628 |
\ifbool{FormatWP}{% |
| 8629 |
\setcounter{FileDepth}{-5}% |
| 8630 |
\boolfalse{HTMLDebugComments}% |
| 8631 |
}{} |
| 8632 |
\edef\LWR@strresult{\HomeHTMLFilename} |
| 8633 |
\edef\HomeHTMLFilename{\detokenize\expandafter{\LWR@strresult}} |
| 8634 |
\edef\LWR@strresult{\HTMLFilename} |
| 8635 |
\edef\HTMLFilename{\detokenize\expandafter{\LWR@strresult}} |
| 8636 |
\LWR@origonecolumn% |
| 8637 |
\LWR@origpagestyle{empty}% |
| 8638 |
\overfullrule=0pt |
| 8639 |
\LWR@print@footnotesize% |
| 8640 |
\LWR@print@raggedright% |
| 8641 |
\LetLtxMacro{\\}{\LWR@endofline}% |
| 8642 |
\linespread{1.3}% |
| 8643 |
\setlength{\parindent}{0pt} |
| 8644 |
\setlength{\parskip}{2ex} |
| 8645 |
\immediate\openout\LWR@lateximagesfile=\BaseJobname-images.txt |
| 8646 |
\setlength{\belowcaptionskip}{0ex} |
| 8647 |
\setlength{\abovecaptionskip}{0ex} |
| 8648 |
\renewcommand{\ps@plain}{} |
| 8649 |
\let\LWR@origcaption\caption |
| 8650 |
\global\booltrue{LWR@doingparhooks} |
| 8651 |
\global\boolfalse{LWR@doingapar} |
| 8652 |
\global\boolfalse{LWR@doingstartpars} |
| 8653 |
\let\color@endgroup\endgroup |
| 8654 |
\mainmatter |
| 8655 |
\LWR@origpagenumbering{arabic} |
| 8656 |
\LWR@traceinfo{LWR@lwarpStart: Starting new file.} |
| 8657 |
\LWR@filestart% |
| 8658 |
\begingroup% |
| 8659 |
\LWR@nullfonts% |
| 8660 |
\LWR@htmlblockcomment{% |
| 8661 |
|Using lwarp|% |
| 8662 |
\LWR@htmlsectionfilename{\LWR@thisfilename}|% |
| 8663 |
} |
| 8664 |
\endgroup% |
| 8665 |
\LWR@htmldivclass{homepagegrid}% |
| 8666 |
\LWR@traceinfo{LWR@lwarpStart: Generating first header.} |
| 8667 |
\ifdefempty{\LWR@firstpagetop}{}{% |
| 8668 |
\LWR@stoppars% |
| 8669 |
\LWR@htmltag{header}% |
| 8670 |
\LWR@startpars% |
| 8671 |
\LWR@firstpagetop% |
| 8672 |
\LWR@stoppars% |
| 8673 |
\LWR@htmltag{/header}\LWR@orignewline% |
| 8674 |
}% |
| 8675 |
\LWR@htmlelementclass{main}{bodycontainer} |
| 8676 |
\LWR@traceinfo{LWR@lwarpStart: Generating textbody.} |
| 8677 |
\LWR@htmlelementclass{section}{textbody} |
| 8678 |
\booltrue{LWR@setseqfilelabel}% |
| 8679 |
\label{\BaseJobname-autofile-\arabic{LWR@htmlseqfilenumber}} |
| 8680 |
\LWR@patchlists |
| 8681 |
\catcode`\$=\active |
| 8682 |
\immediate\write\@mainaux{\catcode`\string$\active}% |
| 8683 |
\LetLtxMacro\LWR@syntaxhighlightone$% balance for editor syntax highlighting |
| 8684 |
\LWR@startpars |
| 8685 |
\ifbool{mathjax}{ |
| 8686 |
\typeout{---} |
| 8687 |
\typeout{Package lwarp:} |
| 8688 |
\typeout{Processing MathJax customizations for the first HTML page.} |
| 8689 |
\typeout{Later HTML pages will take the same amount of time.} |
| 8690 |
\typeout{If this takes too long, see the Lwarp manual regarding customizing MathJax.} |
| 8691 |
}{} |
| 8692 |
|
| 8693 |
\LWR@customizeMathJax |
| 8694 |
|
| 8695 |
\ifbool{mathjax}{ |
| 8696 |
\typeout{Done.} |
| 8697 |
\typeout{---} |
| 8698 |
}{} |
| 8699 |
\setcounter{LWR@currentautosecfloatpage}{\value{page}}% |
| 8700 |
\LWR@newautopagelabel{LWR@currentautosecpage}% |
| 8701 |
\LWR@traceinfo{LWR@lwarpStart: done} |
| 8702 |
} |
| 8703 |
\catcode`\$=3% math shift until lwarp starts |
| 8704 |
|
| 8705 |
\end{warpHTML} |
| 8706 |
|
| 8707 |
|
| 8708 |
\begin{warpHTML} |
| 8709 |
|
| 8710 |
|
| 8711 |
\newcommand*{\LWR@requesttoc}[2]{% |
| 8712 |
\ifbool{#1} |
| 8713 |
{ |
| 8714 |
\expandafter\newwrite\@nameuse{tf@#2} |
| 8715 |
\immediate\openout \@nameuse{tf@#2} \jobname.#2\relax |
| 8716 |
}{} |
| 8717 |
} |
| 8718 |
|
| 8719 |
\newcommand*{\LWR@LwarpEnd} |
| 8720 |
{ |
| 8721 |
\LWR@stoppars |
| 8722 |
\LWR@closeprevious{finished} |
| 8723 |
\LWR@printpendingfootnotes |
| 8724 |
\label{\BaseJobname-autofile-last}\LWR@orignobreakspace\LWR@orignewline |
| 8725 |
\LWR@htmlelementclassend{section}{textbody} |
| 8726 |
\LWR@htmlelementclassend{main}{bodycontainer} |
| 8727 |
\ifbool{FormatEPUB}{}{\LWR@createfooter} |
| 8728 |
|
| 8729 |
\ifthenelse{\boolean{FormatEPUB}\OR\boolean{FormatWP}} |
| 8730 |
{} |
| 8731 |
{ |
| 8732 |
\ifnumcomp{\value{LWR@htmlfilenumber}}{>}{0}{\LWR@botnavigation}{} |
| 8733 |
} |
| 8734 |
\LWR@stoppars% final stop of all paragraphs |
| 8735 |
\LWR@htmltag{/div}\LWR@htmlcomment{ grid }\LWR@orignewline% grid |
| 8736 |
\LWR@htmltag{/body}\LWR@orignewline |
| 8737 |
\LWR@htmltag{/html}\LWR@orignewline |
| 8738 |
\LWR@maybe@orignewpage |
| 8739 |
} |
| 8740 |
|
| 8741 |
|
| 8742 |
\ifdef{\AddToHook}{% newer kernel |
| 8743 |
\AddToHook{enddocument/info}{% |
| 8744 |
\if@filesw |
| 8745 |
\ifx \@multiplelabels \relax |
| 8746 |
\if@tempswa |
| 8747 |
\else |
| 8748 |
\immediate\write\LWR@lateximagesfile{% |
| 8749 |
|end|end|end|% |
| 8750 |
}% |
| 8751 |
\fi |
| 8752 |
\fi\fi |
| 8753 |
} |
| 8754 |
}% newer kernel |
| 8755 |
{% older kernel |
| 8756 |
\xpatchcmd{\enddocument} |
| 8757 |
{% |
| 8758 |
\if@tempswa |
| 8759 |
\@latex@warning@no@line{Label(s) may have changed. |
| 8760 |
Rerun to get cross-references right}% |
| 8761 |
\fi |
| 8762 |
} |
| 8763 |
{% |
| 8764 |
\if@tempswa |
| 8765 |
\@latex@warning@no@line{Label(s) may have changed. |
| 8766 |
Rerun to get cross-references right}% |
| 8767 |
\else |
| 8768 |
\immediate\write\LWR@lateximagesfile{% |
| 8769 |
|end|end|end|% |
| 8770 |
}% |
| 8771 |
\fi |
| 8772 |
} |
| 8773 |
{} |
| 8774 |
{ |
| 8775 |
\AtEndDocument{ |
| 8776 |
\PackageWarningNoLine{lwarp} |
| 8777 |
{% |
| 8778 |
Could not patch \protect\enddocument.\MessageBreak |
| 8779 |
If labels have changed, be sure to recompile before\MessageBreak |
| 8780 |
creating lateximages with\MessageBreak |
| 8781 |
\space\space lwarpmk limages,\MessageBreak |
| 8782 |
or the images may be corrupt% |
| 8783 |
} |
| 8784 |
} |
| 8785 |
} |
| 8786 |
}% older kernel |
| 8787 |
|
| 8788 |
\ifdef{\RemoveFromHook}{ |
| 8789 |
\AfterEndPreamble{ |
| 8790 |
\IfHookEmptyTF{shipout/background}{}{ |
| 8791 |
\PackageInfo{lwarp}{Removing background hook} |
| 8792 |
\RemoveFromHook{shipout/background}[*] |
| 8793 |
} |
| 8794 |
\IfHookEmptyTF{shipout/foreground}{}{ |
| 8795 |
\PackageInfo{lwarp}{Removing foreground hook} |
| 8796 |
\RemoveFromHook{shipout/foreground}[*] |
| 8797 |
} |
| 8798 |
} |
| 8799 |
}{} |
| 8800 |
|
| 8801 |
\end{warpHTML} |
| 8802 |
|
| 8803 |
\begin{warpall} |
| 8804 |
\ifcsvoid{@titlepagefalse}{ |
| 8805 |
\newif\if@titlepage |
| 8806 |
\@titlepagefalse |
| 8807 |
}{} |
| 8808 |
\end{warpall} |
| 8809 |
\begin{warpall} |
| 8810 |
\providerobustcmd{\affiliation}[1]{} |
| 8811 |
\end{warpall} |
| 8812 |
\begin{warpprint} |
| 8813 |
\AtBeginEnvironment{titlepage}{ |
| 8814 |
\renewrobustcmd{\affiliation}[1]{\\ \textsc{\small#1}} |
| 8815 |
} |
| 8816 |
|
| 8817 |
\AtBeginDocument{ |
| 8818 |
\LWR@traceinfo{AtBeginDocument titling} |
| 8819 |
\IfPackageLoadedTF{titling}{ |
| 8820 |
\AtBeginEnvironment{titlingpage}{ |
| 8821 |
\renewrobustcmd{\affiliation}[1]{\\ \textsc{\small#1}} |
| 8822 |
} |
| 8823 |
}{}% titling loaded |
| 8824 |
}% AtBeginDocument |
| 8825 |
\end{warpprint} |
| 8826 |
\begin{warpHTML} |
| 8827 |
\DeclareDocumentEnvironment{titlepage}{} |
| 8828 |
{% |
| 8829 |
\renewrobustcmd{\affiliation}[1]{\\ \InlineClass{affiliation}{##1}}% |
| 8830 |
\LWR@printpendingfootnotes |
| 8831 |
\LWR@forcenewpage |
| 8832 |
\BlockClass{titlepage} |
| 8833 |
} |
| 8834 |
{ |
| 8835 |
\endBlockClass |
| 8836 |
\LWR@printpendingfootnotes |
| 8837 |
} |
| 8838 |
\end{warpHTML} |
| 8839 |
\begin{warpprint} |
| 8840 |
\newcommand*{\printthanks}{\@thanks} |
| 8841 |
\end{warpprint} |
| 8842 |
|
| 8843 |
\begin{warpHTML} |
| 8844 |
\newcommand*{\printthanks}{\LWR@stoppars\@thanks\LWR@startpars} |
| 8845 |
\end{warpHTML} |
| 8846 |
|
| 8847 |
\begin{warpHTML} |
| 8848 |
\newcommand*{\printtitle} |
| 8849 |
{% |
| 8850 |
\LWR@stoppars% |
| 8851 |
\LWR@htmltag{\LWR@tagtitle}% |
| 8852 |
\@title% |
| 8853 |
\LWR@htmltag{\LWR@tagtitleend}% |
| 8854 |
\LWR@startpars% |
| 8855 |
} |
| 8856 |
\newcommand*{\LWR@printthetitle} |
| 8857 |
{% |
| 8858 |
\LWR@stoppars% |
| 8859 |
\LWR@htmltag{\LWR@tagtitle}% |
| 8860 |
\thetitle% |
| 8861 |
\LWR@htmltag{\LWR@tagtitleend}% |
| 8862 |
\LWR@startpars% |
| 8863 |
} |
| 8864 |
|
| 8865 |
\newcommand*{\printauthor}{ |
| 8866 |
\begin{BlockClass}{author} |
| 8867 |
\renewcommand{\and}{% |
| 8868 |
\end{BlockClass} |
| 8869 |
\begin{BlockClass}{oneauthor} |
| 8870 |
} |
| 8871 |
\begin{BlockClass}{oneauthor} |
| 8872 |
\@author |
| 8873 |
\end{BlockClass} |
| 8874 |
\end{BlockClass} |
| 8875 |
} |
| 8876 |
|
| 8877 |
\newcommand*{\printdate}{% |
| 8878 |
\begin{BlockClass}{titledate} |
| 8879 |
\@date |
| 8880 |
\end{BlockClass} |
| 8881 |
} |
| 8882 |
|
| 8883 |
\end{warpHTML} |
| 8884 |
|
| 8885 |
\begin{warpprint} |
| 8886 |
|
| 8887 |
|
| 8888 |
\newcommand*{\printtitle}{{\Huge\@title}} |
| 8889 |
|
| 8890 |
\newcommand*{\printauthor} |
| 8891 |
{{\large\begin{tabular}[t]{c}\@author\end{tabular}}} |
| 8892 |
|
| 8893 |
\newcommand*{\printdate}{{\small\textit{\@date}}} |
| 8894 |
\end{warpprint} |
| 8895 |
\begin{warpHTML} |
| 8896 |
\IfClassLoadedTF{memoir} |
| 8897 |
{ |
| 8898 |
\newcommand{\LWR@setfootnoteseries}{% |
| 8899 |
\renewcommand\thefootnote{\@arabic\c@footnote}% |
| 8900 |
} |
| 8901 |
}{% not memoir |
| 8902 |
\if@titlepage |
| 8903 |
\newcommand{\LWR@setfootnoteseries}{% |
| 8904 |
\renewcommand\thefootnote{\@arabic\c@footnote}% |
| 8905 |
} |
| 8906 |
\else |
| 8907 |
\newcommand{\LWR@setfootnoteseries}{% |
| 8908 |
\renewcommand\thefootnote{\@fnsymbol\c@footnote}% |
| 8909 |
} |
| 8910 |
\fi |
| 8911 |
}% not memoir |
| 8912 |
\newcommand*{\LWR@maketitlesetup}{% |
| 8913 |
\LWR@setfootnoteseries% |
| 8914 |
\def\@makefnmark{% |
| 8915 |
\textsuperscript{\thefootnote}% |
| 8916 |
} |
| 8917 |
\long\def\@makefntext##1{% |
| 8918 |
\textsuperscript{\@thefnmark}~% |
| 8919 |
{##1}% |
| 8920 |
}% |
| 8921 |
} |
| 8922 |
|
| 8923 |
\def\LWR@HTML@@fnsymbol#1{% |
| 8924 |
\ifcase#1\or *\or |
| 8925 |
\HTMLentity{dagger}\or |
| 8926 |
\HTMLentity{Dagger}\or |
| 8927 |
\HTMLentity{sect}\or |
| 8928 |
\HTMLentity{para}\or |
| 8929 |
\HTMLunicode{2016}\or |
| 8930 |
**\or |
| 8931 |
\HTMLentity{dagger}\HTMLentity{dagger} \or |
| 8932 |
\HTMLentity{Dagger}\HTMLentity{Dagger} \else |
| 8933 |
\@ctrerr\fi% |
| 8934 |
} |
| 8935 |
\LWR@formatted{@fnsymbol} |
| 8936 |
\newcommand*{\LWR@maketitle}{% |
| 8937 |
\begin{titlepage} |
| 8938 |
\LWR@maketitlesetup |
| 8939 |
\@maketitle |
| 8940 |
\LWR@stoppars\@thanks\LWR@startpars |
| 8941 |
\end{titlepage} |
| 8942 |
\setcounter{footnote}{0}% |
| 8943 |
\global\let\thanks\relax |
| 8944 |
\global\let\maketitle\relax |
| 8945 |
\global\let\@maketitle\relax |
| 8946 |
\global\let\@thanks\@empty |
| 8947 |
\global\let\@author\@empty |
| 8948 |
\global\let\@date\@empty |
| 8949 |
\global\let\@title\@empty |
| 8950 |
\global\let\title\relax |
| 8951 |
\global\let\author\relax |
| 8952 |
\global\let\date\relax |
| 8953 |
\global\let\and\relax |
| 8954 |
} |
| 8955 |
|
| 8956 |
\LetLtxMacro\maketitle\LWR@maketitle |
| 8957 |
\providecommand*{\@maketitle}{} |
| 8958 |
\renewrobustcmd{\@maketitle}{% |
| 8959 |
\LWR@stoppars% |
| 8960 |
\LWR@htmltag{\LWR@tagtitle}% |
| 8961 |
\@title% |
| 8962 |
\LWR@htmltag{\LWR@tagtitleend}% |
| 8963 |
\LWR@startpars% |
| 8964 |
\begin{BlockClass}{author}% |
| 8965 |
\renewcommand*{\cr}{}% |
| 8966 |
\renewcommand*{\crcr}{}% |
| 8967 |
\renewcommand*{\noalign}{}% |
| 8968 |
\renewcommand{\and}{% |
| 8969 |
\end{BlockClass}% |
| 8970 |
\begin{BlockClass}{oneauthor}% |
| 8971 |
}% |
| 8972 |
\begin{BlockClass}{oneauthor}% |
| 8973 |
\@author% |
| 8974 |
\end{BlockClass}% |
| 8975 |
\end{BlockClass}% |
| 8976 |
\begin{BlockClass}{titledate}% |
| 8977 |
\@date% |
| 8978 |
\end{BlockClass}% |
| 8979 |
} |
| 8980 |
|
| 8981 |
\newcommand*{\LWR@titlingmaketitle}{% |
| 8982 |
\LWR@stoppars\@thanks\LWR@startpars |
| 8983 |
\LWR@maketitlesetup |
| 8984 |
\@maketitle |
| 8985 |
\LWR@stoppars\@thanks\LWR@startpars |
| 8986 |
} |
| 8987 |
\end{warpHTML} |
| 8988 |
\begin{warpall} |
| 8989 |
|
| 8990 |
\newcommand*{\AddSubtitlePublished}{% |
| 8991 |
\IfPackageLoadedTF{titling}{% yes titling package |
| 8992 |
\newcommand{\@published}{}% |
| 8993 |
\newcommand{\published}[1]{\gdef\@published{##1}}% |
| 8994 |
\renewcommand*{\maketitlehooka}{\printpublished}% |
| 8995 |
\newcommand*{\printpublished}{% |
| 8996 |
\warpprintonly{\begin{center}\unskip}% |
| 8997 |
\begin{BlockClass}{published}% |
| 8998 |
\warpprintonly{\large\itshape}% |
| 8999 |
\@published% |
| 9000 |
\end{BlockClass}% |
| 9001 |
\warpprintonly{\end{center}}% |
| 9002 |
}% |
| 9003 |
\newcommand{\@subtitle}{}% |
| 9004 |
\newcommand{\subtitle}[1]{\gdef\@subtitle{##1}}% |
| 9005 |
\renewcommand*{\maketitlehookb}{\printsubtitle}% |
| 9006 |
\newcommand*{\printsubtitle}{% |
| 9007 |
\warpprintonly{\begin{center}\unskip}% |
| 9008 |
\begin{BlockClass}{subtitle}% |
| 9009 |
\warpprintonly{\Large\itshape}% |
| 9010 |
\@subtitle% |
| 9011 |
\end{BlockClass}% |
| 9012 |
\warpprintonly{\end{center}}% |
| 9013 |
}% |
| 9014 |
}% yes titling package |
| 9015 |
{% no titling package |
| 9016 |
\def\@published{}% |
| 9017 |
\DeclareDocumentCommand{\published}{m}{\gdef\@published{##1}}% |
| 9018 |
\DeclareDocumentCommand{\printpublished}{}{}% |
| 9019 |
\def\@subtitle{}% |
| 9020 |
\DeclareDocumentCommand{\subtitle}{m}{\gdef\@subtitle{##1}}% |
| 9021 |
\DeclareDocumentCommand{\printsubtitle}{}{}% |
| 9022 |
}% no titling package |
| 9023 |
}% \AddSubtitlePublished |
| 9024 |
|
| 9025 |
\end{warpall} |
| 9026 |
|
| 9027 |
\begin{warpHTML} |
| 9028 |
|
| 9029 |
\providecommand*{\abstractname}{Abstract} |
| 9030 |
\DeclareDocumentEnvironment{abstract}{O{\abstractname}} |
| 9031 |
{ |
| 9032 |
\LWR@forcenewpage |
| 9033 |
\BlockClass{abstract} |
| 9034 |
\BlockClassSingle{abstracttitle}{#1} |
| 9035 |
} |
| 9036 |
{ |
| 9037 |
\endBlockClass |
| 9038 |
} |
| 9039 |
|
| 9040 |
\end{warpHTML} |
| 9041 |
|
| 9042 |
|
| 9043 |
|
| 9044 |
\begin{warpall} |
| 9045 |
\newcommand{\attribution}[1]{ |
| 9046 |
\begin{flushright} |
| 9047 |
\unskip |
| 9048 |
#1 |
| 9049 |
\end{flushright}% |
| 9050 |
} |
| 9051 |
\end{warpall} |
| 9052 |
\begin{warpHTML} |
| 9053 |
\newcommand{\LWR@HTML@attribution}[1]{% |
| 9054 |
\LWR@stoppars% |
| 9055 |
\begin{BlockClass}{attribution} |
| 9056 |
#1 |
| 9057 |
\end{BlockClass} |
| 9058 |
\LWR@startpars% |
| 9059 |
} |
| 9060 |
\LWR@formatted{attribution} |
| 9061 |
\end{warpHTML} |
| 9062 |
|
| 9063 |
|
| 9064 |
\begin{warpHTML} |
| 9065 |
\newenvironment*{LWR@HTML@quote} |
| 9066 |
{ |
| 9067 |
\LWR@forcenewpage |
| 9068 |
\LWR@htmlblocktag{blockquote} |
| 9069 |
} |
| 9070 |
{\LWR@htmlblocktag{/blockquote}} |
| 9071 |
|
| 9072 |
\LWR@formattedenv{quote} |
| 9073 |
\newenvironment*{LWR@HTML@quotation} |
| 9074 |
{ |
| 9075 |
\LWR@forcenewpage |
| 9076 |
\LWR@htmlblocktag{blockquote} |
| 9077 |
} |
| 9078 |
{\LWR@htmlblocktag{/blockquote}} |
| 9079 |
|
| 9080 |
\LWR@formattedenv{quotation} |
| 9081 |
|
| 9082 |
\end{warpHTML} |
| 9083 |
|
| 9084 |
\begin{warpHTML} |
| 9085 |
\newenvironment{LWR@HTML@verse} |
| 9086 |
{\let\\\newline% lwarp |
| 9087 |
\list{}{\itemsep \z@ |
| 9088 |
\itemindent -1.5em% |
| 9089 |
\listparindent\itemindent |
| 9090 |
\rightmargin \leftmargin |
| 9091 |
\advance\leftmargin 1.5em}% |
| 9092 |
\item\relax} |
| 9093 |
{\endlist} |
| 9094 |
|
| 9095 |
\LWR@formattedenv{verse} |
| 9096 |
\end{warpHTML} |
| 9097 |
\begin{warpall} |
| 9098 |
|
| 9099 |
\newlength{\HTMLvleftskip} |
| 9100 |
\setlength{\HTMLvleftskip}{1em} |
| 9101 |
|
| 9102 |
\newlength{\HTMLleftmargini} |
| 9103 |
\setlength{\HTMLleftmargini}{4.5em} |
| 9104 |
|
| 9105 |
\end{warpall} |
| 9106 |
|
| 9107 |
|
| 9108 |
|
| 9109 |
\begin{warpall} |
| 9110 |
\newlength{\VerbatimHTMLWidth} |
| 9111 |
\setlength{\VerbatimHTMLWidth}{4in} |
| 9112 |
\end{warpall} |
| 9113 |
|
| 9114 |
\begin{warpHTML} |
| 9115 |
|
| 9116 |
\ifxetexorluatex |
| 9117 |
|
| 9118 |
\newcommand*{\LWR@HTML@@setupverbvisiblespace}{\let\@xobeysp\textvisiblespace} |
| 9119 |
|
| 9120 |
\LWR@formatted{@setupverbvisiblespace} |
| 9121 |
|
| 9122 |
\fi |
| 9123 |
|
| 9124 |
\newbool{LWR@verbtags} |
| 9125 |
\booltrue{LWR@verbtags} |
| 9126 |
|
| 9127 |
\LetLtxMacro\LWR@orig@verb@egroup\verb@egroup |
| 9128 |
|
| 9129 |
\def\LWR@verb@egroup@endspan{% |
| 9130 |
\LWR@orig@verb@egroup% |
| 9131 |
\ifbool{LWR@verbtags}% |
| 9132 |
{\LWR@htmltag{/span}}% |
| 9133 |
{}% |
| 9134 |
\endgroup% |
| 9135 |
} |
| 9136 |
\xpretocmd{\verb} |
| 9137 |
{% |
| 9138 |
\begingroup% |
| 9139 |
\ifbool{LWR@verbtags}% |
| 9140 |
{\LWR@htmltag{span class=\textquotedbl{}verb\textquotedbl}}% |
| 9141 |
{}% |
| 9142 |
\let\verb@egroup\LWR@verb@egroup@endspan% |
| 9143 |
} |
| 9144 |
{} |
| 9145 |
{\LWR@patcherror{LaTeX}{verb}} |
| 9146 |
|
| 9147 |
\newcommand*{\LWR@atbeginverbatim}[2][] |
| 9148 |
{% |
| 9149 |
\LWR@stoppars% |
| 9150 |
\setlength{\parskip}{0ex}% |
| 9151 |
\setlength{\topsep}{0pt}% |
| 9152 |
\setlength{\partopsep}{0pt}% |
| 9153 |
\hbadness=10000\relax% |
| 9154 |
\ifbool{LWR@verbtags}% |
| 9155 |
{% |
| 9156 |
\ifnumcomp{\value{LWR@spandepth}}{=}{0}{% |
| 9157 |
\LWR@htmltag{pre class=\textquotedbl#2\textquotedbl% |
| 9158 |
\ifthenelse{\equal{#1}{}}{}{ style=\textquotedbl#1\textquotedbl}% |
| 9159 |
}% |
| 9160 |
\par% |
| 9161 |
}% |
| 9162 |
{% in a span |
| 9163 |
\LWR@spanwarnformat{verbatim}% |
| 9164 |
}% |
| 9165 |
}{}% |
| 9166 |
\begingroup% |
| 9167 |
\LWR@print@normalfont% |
| 9168 |
\LWR@origttfamily% |
| 9169 |
\ifnumcomp{\value{LWR@lateximagedepth}}{=}{0}% |
| 9170 |
{\LWR@print@scriptsize}% |
| 9171 |
{}% |
| 9172 |
\LWR@restoreoriglists% |
| 9173 |
\LWR@hook@processingtags% |
| 9174 |
\let\hspace\LWR@print@hspace% |
| 9175 |
\boolfalse{LWR@HTMLsanitize@nobreakspace}% |
| 9176 |
} |
| 9177 |
|
| 9178 |
\newcommand*{\LWR@afterendverbatim}{% |
| 9179 |
\endgroup% |
| 9180 |
\par% |
| 9181 |
\ifboolexpr{ |
| 9182 |
bool{LWR@verbtags} and |
| 9183 |
test {\ifnumcomp{\value{LWR@spandepth}}{=}{0}} |
| 9184 |
}% |
| 9185 |
{% |
| 9186 |
\noindent\LWR@htmltag{/pre}\par% pre |
| 9187 |
}{}% |
| 9188 |
\LWR@startpars% |
| 9189 |
} |
| 9190 |
|
| 9191 |
\newcommand{\LWR@HTML@verbatim@input}[2]{% |
| 9192 |
\ifbool{LWR@verbtags}{\LWR@forcenewpage}{}% |
| 9193 |
\LWR@atbeginverbatim{Verbatim}% |
| 9194 |
\LWR@print@verbatim@input{#1}{#2}% |
| 9195 |
\LWR@afterendverbatim% |
| 9196 |
} |
| 9197 |
|
| 9198 |
\LWR@formatted{verbatim@input} |
| 9199 |
|
| 9200 |
\AfterEndPreamble{ |
| 9201 |
\LWR@traceinfo{Patching verbatim.} |
| 9202 |
\AtBeginEnvironment{verbatim}{% |
| 9203 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 9204 |
{}% |
| 9205 |
{% |
| 9206 |
\LWR@forcenewpage% |
| 9207 |
\LWR@atbeginverbatim{verbatim}% |
| 9208 |
}% |
| 9209 |
} |
| 9210 |
\AfterEndEnvironment{verbatim}{% |
| 9211 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 9212 |
{}% |
| 9213 |
{% |
| 9214 |
\LWR@afterendverbatim% |
| 9215 |
}% |
| 9216 |
} |
| 9217 |
\AtBeginEnvironment{verbatim*}{% |
| 9218 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 9219 |
{}% |
| 9220 |
{% |
| 9221 |
\LWR@forcenewpage% |
| 9222 |
\LWR@atbeginverbatim{verbatim}% |
| 9223 |
}% |
| 9224 |
} |
| 9225 |
\AfterEndEnvironment{verbatim*}{% |
| 9226 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 9227 |
{}% |
| 9228 |
{% |
| 9229 |
\LWR@afterendverbatim% |
| 9230 |
}% |
| 9231 |
} |
| 9232 |
} |
| 9233 |
|
| 9234 |
\newenvironment*{LWR@HTML@tabbing} |
| 9235 |
{% |
| 9236 |
\LWR@forcenewpage% |
| 9237 |
\LWR@atbeginverbatim{tabbing}% |
| 9238 |
\let\enskip\LWR@print@enskip% |
| 9239 |
\let\quad\LWR@print@quad% |
| 9240 |
\let\qquad\LWR@print@qquad% |
| 9241 |
\LetLtxMacro~\LWR@origtilde% |
| 9242 |
\LetLtxMacro\nobreakspace\LWR@orignobreakspace% |
| 9243 |
\let\,\LWR@origcomma% |
| 9244 |
\let\thinspace\LWR@print@thinspace% |
| 9245 |
\let\negthinspace\LWR@print@negthinspace% |
| 9246 |
\LWR@print@tabbing% |
| 9247 |
} |
| 9248 |
{% |
| 9249 |
\endLWR@print@tabbing% |
| 9250 |
\LWR@afterendverbatim% |
| 9251 |
} |
| 9252 |
|
| 9253 |
\LWR@formattedenv{tabbing} |
| 9254 |
|
| 9255 |
\end{warpHTML} |
| 9256 |
|
| 9257 |
|
| 9258 |
\begin{warpHTML} |
| 9259 |
\TestVerifyCommands |
| 9260 |
|
| 9261 |
\IfVerifyCommand[lwarp][latex]{\@thm} |
| 9262 |
{C35B697D8E37A052BF513D51C8660A87}% LaTeX kernel definition |
| 9263 |
{}{} |
| 9264 |
|
| 9265 |
\IfVerifyCommand[lwarp][latex]{\@thm} |
| 9266 |
{2624BDB5B96C45756978B3D393430088}% amsthm definition |
| 9267 |
{}{} |
| 9268 |
|
| 9269 |
\IfVerifyCommandPassed |
| 9270 |
{} |
| 9271 |
{\VERCMDWarning{lwarp}{latex}{\@thm}} |
| 9272 |
|
| 9273 |
\def\@thm#1#2{% |
| 9274 |
\refstepcounter{#1}% lwarp |
| 9275 |
\@ifnextchar[{\@ythm{#1}{#2}}{\@xthm{#1}{#2}}% |
| 9276 |
} |
| 9277 |
\renewcommand{\@begintheorem}[2]{% |
| 9278 |
\LWR@forcenewpage |
| 9279 |
\LWR@printpendingfootnotes% lwarp |
| 9280 |
\BlockClass{theoremcontents} |
| 9281 |
\trivlist |
| 9282 |
\item[\InlineClass{theoremlabel}{#1\ #2\ }]\itshape% |
| 9283 |
} |
| 9284 |
\ifundef{\@opargbegintheorem}{}{ |
| 9285 |
\renewcommand{\@opargbegintheorem}[3]{% |
| 9286 |
\LWR@forcenewpage |
| 9287 |
\BlockClass{theoremcontents} |
| 9288 |
\trivlist |
| 9289 |
\item[\InlineClass{theoremlabel}{#1\ #2\ (#3)\ }]\itshape% |
| 9290 |
} |
| 9291 |
} |
| 9292 |
\renewcommand*{\@endtheorem}{% |
| 9293 |
\endtrivlist |
| 9294 |
\LWR@printpendingfootnotes% lwarp |
| 9295 |
\endBlockClass% theoremcontents |
| 9296 |
} |
| 9297 |
|
| 9298 |
\end{warpHTML} |
| 9299 |
|
| 9300 |
\begin{warpHTML} |
| 9301 |
|
| 9302 |
\newcommand*{\LWR@printcloselist}{\LWR@printcloseitemize} |
| 9303 |
|
| 9304 |
\newcommand*{\LWR@printopenlist}{% |
| 9305 |
ul % space |
| 9306 |
class=\textquotedbl{}list\textquotedbl{} % space |
| 9307 |
style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}% |
| 9308 |
} |
| 9309 |
|
| 9310 |
\AtBeginDocument{ |
| 9311 |
\LWR@traceinfo{AtBeginDocument makelabel} |
| 9312 |
\def\@mklab#1{% |
| 9313 |
#1} |
| 9314 |
\let\makelabel\@mklab |
| 9315 |
} |
| 9316 |
|
| 9317 |
\def\@donoparitem{% |
| 9318 |
\@noparitemfalse |
| 9319 |
} |
| 9320 |
\newcommand*{\LWR@makelabeltag}{} |
| 9321 |
\def\LWR@HTML@item[#1]{% |
| 9322 |
\LWR@traceinfo{@item}% |
| 9323 |
\if@noparitem |
| 9324 |
\@donoparitem |
| 9325 |
\else |
| 9326 |
\ifhmode |
| 9327 |
\fi |
| 9328 |
\if@newlist |
| 9329 |
\if@nobreak |
| 9330 |
\@nbitem |
| 9331 |
\else |
| 9332 |
\fi |
| 9333 |
\else |
| 9334 |
\fi |
| 9335 |
\global\@inlabeltrue |
| 9336 |
\fi |
| 9337 |
\@minipagefalse |
| 9338 |
\global\@newlistfalse |
| 9339 |
\if@noitemarg |
| 9340 |
\@noitemargfalse |
| 9341 |
\if@nmbrlist |
| 9342 |
\refstepcounter\@listctr |
| 9343 |
\fi |
| 9344 |
\fi |
| 9345 |
\ifboolexpr{ |
| 9346 |
test {\ifblank{#1}} or |
| 9347 |
( |
| 9348 |
test {\ifstrequal{#1}{\@itemlabel}} and |
| 9349 |
test {\ifdefempty{\@itemlabel}} |
| 9350 |
) |
| 9351 |
}% |
| 9352 |
{}% |
| 9353 |
{% |
| 9354 |
\ifdefempty{\LWR@makelabeltag}{}{\LWR@htmltag{\LWR@makelabeltag}}% |
| 9355 |
\InlineClass{listmarker}{\makelabel{#1}}% |
| 9356 |
\ifdefempty{\LWR@makelabeltag}{}{\LWR@htmltag{/\LWR@makelabeltag}} % extra space |
| 9357 |
}% |
| 9358 |
\ignorespaces% |
| 9359 |
} |
| 9360 |
|
| 9361 |
\def\@nbitem{% |
| 9362 |
} |
| 9363 |
|
| 9364 |
\newcommand*{\LWR@listitem}{% |
| 9365 |
\LWR@stoppars% |
| 9366 |
\LWR@startnewdepth{listitem}% |
| 9367 |
\LWR@htmltag{li}% |
| 9368 |
\LWR@orignewline% |
| 9369 |
\LWR@startpars% |
| 9370 |
\LWR@ensuredoingapar% |
| 9371 |
\LWR@origitem% |
| 9372 |
} |
| 9373 |
|
| 9374 |
\newcommand*{\LWR@nulllistfills}{% |
| 9375 |
\renewcommand*{\hss}{}% |
| 9376 |
\renewcommand*{\llap}[1]{##1}% |
| 9377 |
\renewcommand*{\rlap}[1]{##1}% |
| 9378 |
\renewcommand*{\hfil}{}% |
| 9379 |
\renewcommand*{\hfilneg}{}% |
| 9380 |
\renewcommand*{\hfill}{}% |
| 9381 |
} |
| 9382 |
|
| 9383 |
\newcommand*{\LWR@liststart}{% |
| 9384 |
\LWR@traceinfo{LWR@liststart}% |
| 9385 |
\LWR@stoppars% |
| 9386 |
\LWR@pushoneclose{list}% |
| 9387 |
\LWR@htmltag{\LWR@printopenlist}\LWR@orignewline% |
| 9388 |
\LWR@startpars% |
| 9389 |
\setlength{\topsep}{0pt}% |
| 9390 |
\setlength{\partopsep}{0pt}% |
| 9391 |
\setlength{\itemsep}{0pt}% |
| 9392 |
\setlength{\parsep}{0pt}% |
| 9393 |
\setlength{\leftmargin}{0pt}% |
| 9394 |
\setlength{\rightmargin}{0pt}% |
| 9395 |
\setlength{\listparindent}{0pt}% |
| 9396 |
\setlength{\itemindent}{0pt}% |
| 9397 |
\setlength{\labelsep}{1em}% |
| 9398 |
\LWR@nulllistfills% |
| 9399 |
} |
| 9400 |
\newcommand*{\LWR@listend}{% |
| 9401 |
\LWR@traceinfo{LWR@listend}% |
| 9402 |
\LWR@stoppars% |
| 9403 |
\LWR@closeprevious{list}% |
| 9404 |
\LWR@startpars% |
| 9405 |
} |
| 9406 |
|
| 9407 |
|
| 9408 |
\newcommand*{\LWR@itemizeitem}{% |
| 9409 |
\LWR@stoppars% |
| 9410 |
\LWR@startnewdepth{listitem}% |
| 9411 |
\LWR@htmltag{li}% |
| 9412 |
\LWR@orignewline% |
| 9413 |
\LWR@startpars% |
| 9414 |
\LWR@ensuredoingapar% |
| 9415 |
\LWR@origitem% |
| 9416 |
} |
| 9417 |
|
| 9418 |
\newcommand*{\LWR@itemizestart}{% |
| 9419 |
\renewcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}% |
| 9420 |
\renewcommand*{\LWR@printopenlist}{% |
| 9421 |
ul % space |
| 9422 |
class=\textquotedbl{}itemize\textquotedbl{} % space |
| 9423 |
style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}% |
| 9424 |
}% |
| 9425 |
\LetLtxMacro\item\LWR@itemizeitem% |
| 9426 |
\LWR@nulllistfills% |
| 9427 |
} |
| 9428 |
|
| 9429 |
|
| 9430 |
|
| 9431 |
\newcommand*{\LWR@enumeratestart}{% |
| 9432 |
\renewcommand*{\LWR@printcloselist}{\LWR@printcloseitemize}% |
| 9433 |
\renewcommand*{\LWR@printopenlist}{% |
| 9434 |
ul % space |
| 9435 |
class=\textquotedbl{}enumerate\textquotedbl{} % space |
| 9436 |
style=\textquotedbl\LWR@print@mbox{list-style-type:none}\textquotedbl{}% |
| 9437 |
}% |
| 9438 |
\LetLtxMacro\item\LWR@itemizeitem% |
| 9439 |
\LWR@nulllistfills% |
| 9440 |
} |
| 9441 |
|
| 9442 |
|
| 9443 |
\newcommand*{\LWR@descitem}[1][]{% |
| 9444 |
\LWR@stoppars% |
| 9445 |
\LWR@setlatestname{#1}% |
| 9446 |
\LWR@startnewdepth{descitem}% |
| 9447 |
\begingroup% |
| 9448 |
\renewcommand*{\LWR@makelabeltag}{dt}% |
| 9449 |
\RenewDocumentCommand{\hspace}{s m}{}% |
| 9450 |
\LWR@origitem[#1]% |
| 9451 |
\endgroup% |
| 9452 |
\leavevmode% |
| 9453 |
\LWR@orignewline% |
| 9454 |
\LWR@htmltag{dd}% |
| 9455 |
\LWR@startpars% |
| 9456 |
} |
| 9457 |
|
| 9458 |
\newcommand*{\LWR@descriptionstart}{% |
| 9459 |
\renewcommand*{\LWR@printcloselist}{\LWR@printclosedescription} |
| 9460 |
\renewcommand*{\LWR@printopenlist}{% |
| 9461 |
dl % space |
| 9462 |
class=\textquotedbl{}description\textquotedbl{} % space |
| 9463 |
} |
| 9464 |
\LetLtxMacro\item\LWR@descitem% |
| 9465 |
\LWR@nulllistfills% |
| 9466 |
} |
| 9467 |
|
| 9468 |
|
| 9469 |
\newcommand*{\LWR@patchlists}{% |
| 9470 |
\LetLtxMacro\item\LWR@listitem% |
| 9471 |
\LetLtxMacro\@item\LWR@HTML@item% |
| 9472 |
\renewcommand*{\@trivlist}{% |
| 9473 |
\LWR@traceinfo{@trivlist start}% |
| 9474 |
\LWR@liststart% |
| 9475 |
\LWR@orig@trivlist% |
| 9476 |
\LWR@traceinfo{@trivlist done}% |
| 9477 |
}% |
| 9478 |
\renewcommand*{\trivlist}{% |
| 9479 |
\LWR@traceinfo{trivlist}% |
| 9480 |
\LWR@origtrivlist% |
| 9481 |
}% |
| 9482 |
\renewcommand*{\endtrivlist}{% |
| 9483 |
\LWR@traceinfo{endtrivlist start}% |
| 9484 |
\LWR@origendtrivlist\LWR@listend% |
| 9485 |
\LWR@traceinfo{endtrivlist done}% |
| 9486 |
}% |
| 9487 |
\renewcommand*{\itemize}{% |
| 9488 |
\LWR@itemizestart\LWR@origitemize% |
| 9489 |
}% |
| 9490 |
\renewcommand*{\enumerate}{% |
| 9491 |
\LWR@enumeratestart\LWR@origenumerate% |
| 9492 |
}% |
| 9493 |
\renewcommand*{\description}{% |
| 9494 |
\LWR@descriptionstart\LWR@origdescription% |
| 9495 |
}% |
| 9496 |
} |
| 9497 |
|
| 9498 |
\newcommand*{\LWR@restoreoriglists}{% |
| 9499 |
\LWR@traceinfo{LWR@restoreoriglists}% |
| 9500 |
\LetLtxMacro\item\LWR@origitem% |
| 9501 |
\LetLtxMacro\@item\LWR@orig@item% |
| 9502 |
\let\@trivlist\LWR@orig@trivlist% |
| 9503 |
\let\trivlist\LWR@origtrivlist% |
| 9504 |
\let\endtrivlist\LWR@origendtrivlist% |
| 9505 |
\LetLtxMacro\itemize\LWR@origitemize% |
| 9506 |
\LetLtxMacro\enditemize\LWR@endorigitemize% |
| 9507 |
\LetLtxMacro\enumerate\LWR@origenumerate% |
| 9508 |
\LetLtxMacro\endenumerate\LWR@endorigenumerate% |
| 9509 |
\LetLtxMacro\description\LWR@origdescription% |
| 9510 |
\LetLtxMacro\enddescription\LWR@endorigdescription% |
| 9511 |
\let\@mklab\LWR@orig@mklab% |
| 9512 |
\let\makelabel\LWR@origmakelabel% |
| 9513 |
\let\@donoparitem\LWR@orig@donoparitem% |
| 9514 |
\let\@nbitem\LWR@orig@nbitem% |
| 9515 |
} |
| 9516 |
|
| 9517 |
\end{warpHTML} |
| 9518 |
|
| 9519 |
\begin{warpHTML} |
| 9520 |
\LetLtxMacro\hdashline\hline |
| 9521 |
\LetLtxMacro\cdashline\cline |
| 9522 |
\LetLtxMacro\firsthdashline\hline |
| 9523 |
\LetLtxMacro\lasthdashline\hline |
| 9524 |
|
| 9525 |
|
| 9526 |
\newcommand\LWR@mynexttoken\relax |
| 9527 |
|
| 9528 |
\def\LWR@futurenonspacelet#1{\def\LWR@cs{#1}% |
| 9529 |
\afterassignment\LWR@fnslone\let\nexttoken= } |
| 9530 |
|
| 9531 |
\def\LWR@fnslone{\expandafter\futurelet\LWR@cs\LWR@fnsltwo} |
| 9532 |
|
| 9533 |
\def\LWR@fnsltwo{% |
| 9534 |
\expandafter\ifx\LWR@cs\@sptoken% |
| 9535 |
\let\next=\LWR@fnslthree% |
| 9536 |
\else% |
| 9537 |
\expandafter\ifx\LWR@cs\par% |
| 9538 |
\let\next=\LWR@fnslthree% |
| 9539 |
\else% |
| 9540 |
\let\next=\nexttoken% |
| 9541 |
\fi% |
| 9542 |
\fi\next} |
| 9543 |
|
| 9544 |
\def\LWR@fnslthree{\afterassignment\LWR@fnslone\let\next= } |
| 9545 |
|
| 9546 |
\newcommand*{\LWR@getmynexttoken}{% |
| 9547 |
\LWR@traceinfo{LWR@getmynexttoken}% |
| 9548 |
\LWR@futurenonspacelet\LWR@mynexttoken\LWR@tabledatacolumntag |
| 9549 |
} |
| 9550 |
|
| 9551 |
|
| 9552 |
\newbool{LWR@startedrow} |
| 9553 |
\boolfalse{LWR@startedrow} |
| 9554 |
|
| 9555 |
\newbool{LWR@tabularcelladded} |
| 9556 |
\boolfalse{LWR@tabularcelladded} |
| 9557 |
|
| 9558 |
\newcounter{LWR@hlines} |
| 9559 |
|
| 9560 |
\newcounter{LWR@hdashedlines} |
| 9561 |
|
| 9562 |
\newbool{LWR@doingtbrule} |
| 9563 |
\boolfalse{LWR@doingtbrule} |
| 9564 |
|
| 9565 |
\newbool{LWR@doingcmidrule} |
| 9566 |
\boolfalse{LWR@doingcmidrule} |
| 9567 |
|
| 9568 |
\newbool{LWR@tableparcell} |
| 9569 |
|
| 9570 |
\newbool{LWR@skippingmrowcell} |
| 9571 |
|
| 9572 |
\newbool{LWR@skippingmcolrowcell} |
| 9573 |
|
| 9574 |
\newbool{LWR@usedmultirow} |
| 9575 |
|
| 9576 |
\newbool{LWR@foundmrowcell} |
| 9577 |
|
| 9578 |
\newbool{LWR@skipatbang} |
| 9579 |
|
| 9580 |
\newbool{LWR@emptyatbang} |
| 9581 |
|
| 9582 |
\newbool{LWR@intabularmetadata} |
| 9583 |
\boolfalse{LWR@intabularmetadata} |
| 9584 |
|
| 9585 |
\newbool{LWR@exitingtabular} |
| 9586 |
|
| 9587 |
\newbool{LWR@tabularmutemods} |
| 9588 |
|
| 9589 |
\newbool{LWR@tabularfinalrow} |
| 9590 |
|
| 9591 |
\newbool{LWR@validtablecol} |
| 9592 |
\newbool{LWR@opttablecol} |
| 9593 |
|
| 9594 |
\newbool{LWR@tdhavecellstyle} |
| 9595 |
|
| 9596 |
\newcounter{LWR@tabulardepth} |
| 9597 |
\setcounter{LWR@tabulardepth}{0} |
| 9598 |
\newcounter{LWR@tabularpardepth} |
| 9599 |
\setcounter{LWR@tabularpardepth}{0} |
| 9600 |
\newcommand*{\LWR@colsresult}{}%temp storage for column format results |
| 9601 |
\newcommand*{\LWR@pposition}{} |
| 9602 |
\newcommand*{\LWR@pleft}{} |
| 9603 |
\newcommand*{\LWR@pright}{} |
| 9604 |
|
| 9605 |
|
| 9606 |
\providecommand*{\LWR@strresult}{} |
| 9607 |
\providecommand*{\LWR@strresulttwo}{} |
| 9608 |
|
| 9609 |
\newcommand*{\LWR@origcolspec}{} |
| 9610 |
|
| 9611 |
\newcounter{LWR@tablecolspecwidth} |
| 9612 |
|
| 9613 |
\newcounter{LWR@tablecolspecindex} |
| 9614 |
|
| 9615 |
\newcounter{LWR@tableLaTeXcolindex} |
| 9616 |
|
| 9617 |
\newcounter{LWR@tabletotalLaTeXcols} |
| 9618 |
|
| 9619 |
\newcounter{LWR@tabletotalLaTeXcolsnext} |
| 9620 |
|
| 9621 |
|
| 9622 |
\newcounter{LWR@cellcolordepth} |
| 9623 |
|
| 9624 |
|
| 9625 |
\newcounter{LWR@tablemulticolswidth} |
| 9626 |
\newcounter{LWR@tablemulticolspos} |
| 9627 |
|
| 9628 |
\newcounter{LWR@mcolvertbarsl} |
| 9629 |
\newcounter{LWR@mcolvertbarsr} |
| 9630 |
\newcounter{LWR@mcolvertbarsldash} |
| 9631 |
\newcounter{LWR@mcolvertbarsrdash} |
| 9632 |
\newbool{LWR@mcolvertbaronleft} |
| 9633 |
|
| 9634 |
\newbool{LWR@starredlongtable} |
| 9635 |
\boolfalse{LWR@starredlongtable} |
| 9636 |
|
| 9637 |
|
| 9638 |
\newcounter{LWR@midrulecounter} |
| 9639 |
|
| 9640 |
|
| 9641 |
\newcommand*{\LWR@insertatbangcols}{% |
| 9642 |
\ifbool{LWR@skipatbang}% |
| 9643 |
{}% |
| 9644 |
{% |
| 9645 |
\LWR@printatbang{at}{\arabic{LWR@tableLaTeXcolindex}}% |
| 9646 |
\LWR@printatbang{bang}{\arabic{LWR@tableLaTeXcolindex}}% |
| 9647 |
}% |
| 9648 |
} |
| 9649 |
|
| 9650 |
\newcommand*{\LWR@closetabledatacell}{% |
| 9651 |
\booltrue{LWR@intabularmetadata}% |
| 9652 |
\ifbool{LWR@exitingtabular}% |
| 9653 |
{% |
| 9654 |
\LWR@stoppars% |
| 9655 |
}% |
| 9656 |
{% not exiting tabular |
| 9657 |
\ifboolexpr{bool{LWR@skippingmrowcell} or bool{LWR@skippingmcolrowcell}}% |
| 9658 |
{% |
| 9659 |
\LWR@stoppars% |
| 9660 |
\ifbool{LWR@skippingmcolrowcell}% |
| 9661 |
{}% |
| 9662 |
{\LWR@insertatbangcols}% |
| 9663 |
}% |
| 9664 |
{% not skippingmrowcell |
| 9665 |
\unskip% |
| 9666 |
\ifboolexpr{% |
| 9667 |
bool{LWR@tabularmutemods} or |
| 9668 |
bool{LWR@skipatbang} or |
| 9669 |
bool{LWR@emptyatbang} |
| 9670 |
}% |
| 9671 |
{}% |
| 9672 |
{% |
| 9673 |
\LWR@getexparray{LWR@colafterspec}% |
| 9674 |
{\arabic{LWR@tableLaTeXcolindex}}% |
| 9675 |
}% |
| 9676 |
\LWR@stoppars% |
| 9677 |
\boolfalse{LWR@tableparcell}% |
| 9678 |
\whileboolexpr{test {\ifnumcomp{\value{LWR@cellcolordepth}}{>}{0}}}{% |
| 9679 |
\LWR@htmltag{/div}\LWR@orignewline% |
| 9680 |
\defaddtocounter{LWR@cellcolordepth}{-1}% |
| 9681 |
}% |
| 9682 |
\leavevmode\unskip\LWR@htmltag{/td}\LWR@orignewline% |
| 9683 |
\global\booltrue{LWR@tabularcelladded}% |
| 9684 |
\LWR@insertatbangcols% |
| 9685 |
}% not skipping mrowcell |
| 9686 |
}% not exiting tabular |
| 9687 |
\boolfalse{LWR@skippingmrowcell}% |
| 9688 |
\boolfalse{LWR@skippingmcolrowcell}% |
| 9689 |
\boolfalse{LWR@skipatbang}% |
| 9690 |
\def\LWR@cellHTMLcolor{}% |
| 9691 |
\def\LWR@columnHTMLcolor{}% |
| 9692 |
\defcounter{LWR@cellcolordepth}{0}% |
| 9693 |
} |
| 9694 |
\let\LWR@origampmacro& |
| 9695 |
|
| 9696 |
\end{warpHTML} |
| 9697 |
\begin{warpHTML} |
| 9698 |
\newcommand*{\LWR@tabularampersand}{% |
| 9699 |
\LWR@traceinfo{LWR@tabularampersand}% |
| 9700 |
\ifnumcomp{\value{LWR@tabulardepth}}{>}{0}% |
| 9701 |
{% |
| 9702 |
\unskip% |
| 9703 |
\LWR@closetabledatacell% |
| 9704 |
\defaddtocounter{LWR@tableLaTeXcolindex}{1}% |
| 9705 |
\global\boolfalse{LWR@tabularcelladded}% |
| 9706 |
\LWR@getmynexttoken% |
| 9707 |
}% |
| 9708 |
{% |
| 9709 |
\LWR@origampmacro% |
| 9710 |
}% |
| 9711 |
} |
| 9712 |
|
| 9713 |
|
| 9714 |
\newcommand*{\LWR@tabularfinishrow}{% |
| 9715 |
\ifboolexpr{% |
| 9716 |
not bool {LWR@exitingtabular} or% |
| 9717 |
bool{LWR@doingtbrule} or% |
| 9718 |
bool{LWR@doingcmidrule} or% |
| 9719 |
test{\ifnumcomp{\value{LWR@hlines}}{>}{0}} or% |
| 9720 |
test{\ifnumcomp{\value{LWR@hdashedlines}}{>}{0}} or% |
| 9721 |
bool{LWR@startedrow}% |
| 9722 |
}{% |
| 9723 |
\ifbool{LWR@exitingtabular}{% |
| 9724 |
\booltrue{LWR@tabularmutemods}% |
| 9725 |
}{% |
| 9726 |
\boolfalse{LWR@tabularmutemods}% |
| 9727 |
}% |
| 9728 |
\boolfalse{LWR@exitingtabular}% |
| 9729 |
\whileboolexpr{% |
| 9730 |
test { |
| 9731 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{<} |
| 9732 |
{\value{LWR@tabletotalLaTeXcols}} |
| 9733 |
} or % |
| 9734 |
(% |
| 9735 |
bool{LWR@intabularmetadata} and% |
| 9736 |
not bool{LWR@tabularcelladded} and% |
| 9737 |
test { |
| 9738 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{=} |
| 9739 |
{\value{LWR@tabletotalLaTeXcols}} |
| 9740 |
}% |
| 9741 |
)% |
| 9742 |
}% |
| 9743 |
{% |
| 9744 |
\LWR@tabledatasinglecolumntag% |
| 9745 |
\LWR@closetabledatacell% |
| 9746 |
\defaddtocounter{LWR@tableLaTeXcolindex}{1}% |
| 9747 |
\global\boolfalse{LWR@tabularcelladded}% |
| 9748 |
\booltrue{LWR@emptyatbang}% |
| 9749 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{<} |
| 9750 |
{\value{LWR@tabletotalLaTeXcols}}% |
| 9751 |
{\LWR@getmynexttoken}% |
| 9752 |
{}% |
| 9753 |
}% |
| 9754 |
\ifbool{LWR@tabularmutemods}{% |
| 9755 |
\booltrue{LWR@exitingtabular}% |
| 9756 |
}{% |
| 9757 |
\boolfalse{LWR@exitingtabular}% |
| 9758 |
}% |
| 9759 |
\boolfalse{LWR@tabularmutemods}% |
| 9760 |
\boolfalse{LWR@emptyatbang}% |
| 9761 |
}{}% ifboolexpr |
| 9762 |
} |
| 9763 |
|
| 9764 |
|
| 9765 |
\NewDocumentCommand{\LWR@tabularendofline}{s o}{% |
| 9766 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{<} |
| 9767 |
{\value{LWR@tabletotalLaTeXcols}}% |
| 9768 |
{\LWR@tabularfinishrow}% |
| 9769 |
{\LWR@closetabledatacell}% |
| 9770 |
\LWR@htmltag{/tr}\LWR@orignewline% |
| 9771 |
\@rowc@lors% |
| 9772 |
\booltrue{LWR@intabularmetadata}% |
| 9773 |
\boolfalse{LWR@startedrow}% |
| 9774 |
\defcounter{LWR@hlines}{0}% |
| 9775 |
\defcounter{LWR@hdashedlines}{0}% |
| 9776 |
\boolfalse{LWR@doingtbrule}% |
| 9777 |
\boolfalse{LWR@doingcmidrule}% |
| 9778 |
\LWR@clearmidrules% |
| 9779 |
\def\LWR@rowHTMLcolor{}% |
| 9780 |
\defcounter{LWR@tableLaTeXcolindex}{1}% |
| 9781 |
\global\boolfalse{LWR@tabularcelladded}% |
| 9782 |
\LWR@stoppars% |
| 9783 |
\LWR@forceemptyline% |
| 9784 |
\LWR@getmynexttoken% |
| 9785 |
} |
| 9786 |
|
| 9787 |
\newcommand*{\LWR@columnspeclookahead}[1]{% |
| 9788 |
\setcounter{LWR@tempcountone}{\value{LWR@tablecolspecindex}}% |
| 9789 |
\addtocounter{LWR@tempcountone}{#1}% |
| 9790 |
\fullexpandarg% |
| 9791 |
\StrChar{\LWR@origcolspec}{\arabic{LWR@tempcountone}}[\LWR@strresulttwo]% |
| 9792 |
\exploregroups% |
| 9793 |
\StrChar{\LWR@strresulttwo}{1}[\LWR@strresulttwo]% |
| 9794 |
\noexploregroups% |
| 9795 |
} |
| 9796 |
|
| 9797 |
\newcommand*{\LWR@colparameter}{} |
| 9798 |
\newcommand*{\LWR@parseatcolumn}[1]{% |
| 9799 |
\LWR@traceinfo{at column}% |
| 9800 |
\defaddtocounter{LWR@tablecolspecindex}{1}% |
| 9801 |
\LWR@traceinfo{about to read the next token:}% |
| 9802 |
\expandarg% |
| 9803 |
\StrChar{\LWR@origcolspec}% |
| 9804 |
{\arabic{LWR@tablecolspecindex}}[\LWR@colparameter]% |
| 9805 |
\fullexpandarg% |
| 9806 |
\LWR@traceinfo{have now read the next token}% |
| 9807 |
\ifnumcomp{\value{LWR@tabletotalLaTeXcols}}{=}{0}% |
| 9808 |
{% left edge of the table: |
| 9809 |
\LWR@traceinfo{at the left edge}% |
| 9810 |
\LWR@setexparray{LWR@colatspec}% |
| 9811 |
{leftedge}% |
| 9812 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9813 |
\LWR@traceinfo{at the left edge: % |
| 9814 |
\LWR@getexparray{LWR@colatspec}{leftedge}}% |
| 9815 |
}% |
| 9816 |
{% not at the left edge: |
| 9817 |
\LWR@traceinfo{not at the left edge}% |
| 9818 |
\LWR@setexparray{LWR@colatspec}% |
| 9819 |
{\arabic{LWR@tabletotalLaTeXcols}}% |
| 9820 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9821 |
\LWR@traceinfo{at \arabic{LWR@tabletotalLaTeXcols}% |
| 9822 |
: % space |
| 9823 |
\LWR@getexparray{LWR@colatspec}{\arabic{LWR@tabletotalLaTeXcols}}}% |
| 9824 |
}% |
| 9825 |
\let\LWR@colparameter\relax% |
| 9826 |
\booltrue{LWR@validtablecol}% |
| 9827 |
} |
| 9828 |
\newcommand*{\LWR@parsebangcolumn}[1]{% |
| 9829 |
\LWR@traceinfo{bang column}% |
| 9830 |
\defaddtocounter{LWR@tablecolspecindex}{1}% |
| 9831 |
\LWR@traceinfo{about to read the next token:}% |
| 9832 |
\expandarg% |
| 9833 |
\StrChar{\LWR@origcolspec}% |
| 9834 |
{\arabic{LWR@tablecolspecindex}}[\LWR@colparameter]% |
| 9835 |
\fullexpandarg% |
| 9836 |
\LWR@traceinfo{have now read the next token}% |
| 9837 |
\ifnumcomp{\value{LWR@tabletotalLaTeXcols}}{=}{0}% |
| 9838 |
{% left edge of the table: |
| 9839 |
\LWR@traceinfo{at the left edge}% |
| 9840 |
\LWR@setexparray{LWR@colbangspec}% |
| 9841 |
{leftedge}% |
| 9842 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9843 |
}% |
| 9844 |
{% not at the left edge: |
| 9845 |
\LWR@traceinfo{not at the left edge}% |
| 9846 |
\LWR@setexparray{LWR@colbangspec}% |
| 9847 |
{\arabic{LWR@tabletotalLaTeXcols}}% |
| 9848 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9849 |
\LWR@traceinfo{bang \arabic{LWR@tabletotalLaTeXcols}: \LWR@colparameter!}% |
| 9850 |
}% |
| 9851 |
\let\LWR@colparameter\relax% |
| 9852 |
\booltrue{LWR@validtablecol}% |
| 9853 |
} |
| 9854 |
\newcommand*{\LWR@checkbeforeaddclass}[2]{% |
| 9855 |
\ifcsstrequal{LWR@tempone}{#1}% |
| 9856 |
{% |
| 9857 |
\LWR@setexparray{LWR@coladdclass}% |
| 9858 |
{\arabic{LWR@tabletotalLaTeXcolsnext}}% |
| 9859 |
{ #2}% space is intentional |
| 9860 |
}{}% |
| 9861 |
} |
| 9862 |
\newcommand*{\LWR@checkmathcolpar}{% |
| 9863 |
\IfSubStr{\detokenize\expandafter{\LWR@colparameter}}{\LWRdollar}% |
| 9864 |
{% |
| 9865 |
\PackageError{lwarp}% |
| 9866 |
{% |
| 9867 |
Lwarp does not support `$' in column specifiers.\MessageBreak |
| 9868 |
Specify `$' math for each cell in the column.\MessageBreak |
| 9869 |
Enter 'h' for more info% |
| 9870 |
}% |
| 9871 |
{% |
| 9872 |
For example, replace `>{$}c<{$}' with `c', and then\MessageBreak |
| 9873 |
use `$cell contents$' for each cell in the column.% |
| 9874 |
}% |
| 9875 |
}{}% |
| 9876 |
} |
| 9877 |
\newcommand*{\LWR@parsebeforecolumn}[1]{% |
| 9878 |
\defaddtocounter{LWR@tablecolspecindex}{1}% |
| 9879 |
\expandarg% |
| 9880 |
\StrChar{\LWR@origcolspec}% |
| 9881 |
{\arabic{LWR@tablecolspecindex}}[\LWR@colparameter]% |
| 9882 |
\fullexpandarg% |
| 9883 |
\LWR@checkmathcolpar% |
| 9884 |
\LWR@setexparray{LWR@colbeforespec}% |
| 9885 |
{\arabic{LWR@tabletotalLaTeXcolsnext}}% |
| 9886 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9887 |
\edef\LWR@tempone{\expandafter\@firstofone\LWR@colparameter}% |
| 9888 |
\LWR@checkbeforeaddclass{LWR@detect@centeringarraybackslash}{tdcenter} |
| 9889 |
\LWR@checkbeforeaddclass{LWR@detect@raggedrightarraybackslash}{tdleft} |
| 9890 |
\LWR@checkbeforeaddclass{LWR@detect@raggedleftarraybackslash}{tdright} |
| 9891 |
\LWR@checkbeforeaddclass{LWR@detect@itshape}{tditshape} |
| 9892 |
\LWR@checkbeforeaddclass{LWR@detect@bfseries}{tdbfseries} |
| 9893 |
\LWR@checkbeforeaddclass{LWR@detect@bfit}{tdbfit} |
| 9894 |
\let\LWR@colparameter\relax% |
| 9895 |
\booltrue{LWR@validtablecol}% |
| 9896 |
} |
| 9897 |
\newcommand*{\LWR@parseaftercolumn}[1]{% |
| 9898 |
\defaddtocounter{LWR@tablecolspecindex}{1}% |
| 9899 |
\expandarg% |
| 9900 |
\StrChar{\LWR@origcolspec}% |
| 9901 |
{\arabic{LWR@tablecolspecindex}}[\LWR@colparameter]% |
| 9902 |
\fullexpandarg% |
| 9903 |
\LWR@checkmathcolpar% |
| 9904 |
\LWR@setexparray{LWR@colafterspec}% |
| 9905 |
{\arabic{LWR@tabletotalLaTeXcols}}% |
| 9906 |
{\expandafter\@firstofone\LWR@colparameter}% |
| 9907 |
\let\LWR@colparameter\relax% |
| 9908 |
\booltrue{LWR@validtablecol}% |
| 9909 |
} |
| 9910 |
\newcommand*{\LWR@parsebarcolumn}[1]{% |
| 9911 |
\LWR@traceinfo{LWR@parsebarcolumn}% |
| 9912 |
\ifnumcomp{\value{LWR@tabletotalLaTeXcols}}{=}{0}% |
| 9913 |
{% left edge of the table: |
| 9914 |
\edef\LWR@tempone{\LWR@getexparray{LWR@colbarspec}{leftedge}}% |
| 9915 |
\ifdefstring{\LWR@tempone}{tvertbarl}% |
| 9916 |
{\LWR@setexparray{LWR@colbarspec}{leftedge}{tvertbarldouble}}% |
| 9917 |
{\LWR@setexparray{LWR@colbarspec}{leftedge}{tvertbarl}}% |
| 9918 |
}% |
| 9919 |
{% not at the left edge: |
| 9920 |
\edef\LWR@tempone{% |
| 9921 |
\LWR@getexparray{LWR@colbarspec}{\arabic{LWR@tabletotalLaTeXcols}}% |
| 9922 |
}% |
| 9923 |
\ifdefstring{\LWR@tempone}{tvertbarr}% |
| 9924 |
{% |
| 9925 |
\LWR@setexparray{LWR@colbarspec}% |
| 9926 |
{\arabic{LWR@tabletotalLaTeXcols}}{tvertbarrdouble}% |
| 9927 |
}% |
| 9928 |
{% |
| 9929 |
\LWR@setexparray{LWR@colbarspec}% |
| 9930 |
{\arabic{LWR@tabletotalLaTeXcols}}{tvertbarr}% |
| 9931 |
}% |
| 9932 |
}% |
| 9933 |
\booltrue{LWR@validtablecol}% |
| 9934 |
} |
| 9935 |
\newcommand*{\LWR@parsecoloncolumn}[1]{% |
| 9936 |
\LWR@traceinfo{LWR@parsecoloncolumn}% |
| 9937 |
\ifnumcomp{\value{LWR@tabletotalLaTeXcols}}{=}{0}% |
| 9938 |
{% left edge of the table: |
| 9939 |
\edef\LWR@tempone{\LWR@getexparray{LWR@colbarspec}{leftedge}}% |
| 9940 |
\ifdefstring{\LWR@tempone}{tvertbarldash}% |
| 9941 |
{\LWR@setexparray{LWR@colbarspec}{leftedge}{tvertbarldoubledash}}% |
| 9942 |
{\LWR@setexparray{LWR@colbarspec}{leftedge}{tvertbarldash}}% |
| 9943 |
}% |
| 9944 |
{% not at the left edge: |
| 9945 |
\edef\LWR@tempone{% |
| 9946 |
\LWR@getexparray{LWR@colbarspec}{\arabic{LWR@tabletotalLaTeXcols}}% |
| 9947 |
}% |
| 9948 |
\ifdefstring{\LWR@tempone}{tvertbarrdash}% |
| 9949 |
{\LWR@setexparray{LWR@colbarspec}% |
| 9950 |
{\arabic{LWR@tabletotalLaTeXcols}}{tvertbarrdoubledash}}% |
| 9951 |
{\LWR@setexparray{LWR@colbarspec}% |
| 9952 |
{\arabic{LWR@tabletotalLaTeXcols}}{tvertbarrdash}}% |
| 9953 |
}% |
| 9954 |
\booltrue{LWR@validtablecol}% |
| 9955 |
} |
| 9956 |
\newcommand*{\LWR@parsesemicoloncolumn}[1]{% |
| 9957 |
\LWR@parsecoloncolumn{}% |
| 9958 |
} |
| 9959 |
\newcommand*{\LWR@HTML@LWR@parsenormalcolumn}[1]{% |
| 9960 |
\defaddtocounter{LWR@tabletotalLaTeXcols}{1}% |
| 9961 |
\defaddtocounter{LWR@tabletotalLaTeXcolsnext}{1}% |
| 9962 |
\LWR@setexparray{LWR@tablecolspec}{\arabic{LWR@tabletotalLaTeXcols}}{#1}% |
| 9963 |
\LWR@traceinfo{normal column \arabic{LWR@tabletotalLaTeXcols}: #1}% |
| 9964 |
\LWR@setexparray{LWR@colatspec}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9965 |
\LWR@setexparray{LWR@colbangspec}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9966 |
\LWR@setexparray{LWR@colbeforespec}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9967 |
\LWR@setexparray{LWR@colafterspec}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9968 |
\LWR@setexparray{LWR@colbarspec}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9969 |
\LWR@setexparray{LWR@coladdclass}{\arabic{LWR@tabletotalLaTeXcolsnext}}{}% |
| 9970 |
\booltrue{LWR@validtablecol}% |
| 9971 |
} |
| 9972 |
|
| 9973 |
\newcommand*{\LWR@print@LWR@parsenormalcolumn}[1]{} |
| 9974 |
|
| 9975 |
\LWR@formatted{LWR@parsenormalcolumn} |
| 9976 |
|
| 9977 |
|
| 9978 |
\newcommand*{\LWR@parsestarcolumn}[1]{} |
| 9979 |
|
| 9980 |
|
| 9981 |
\newcommand*{\LWR@expandpreamble}[1]{% |
| 9982 |
\edef\@tempa{\@temptokena={#1}}% |
| 9983 |
\@tempa% |
| 9984 |
\@tempswatrue% |
| 9985 |
\@whilesw\if@tempswa\fi{% |
| 9986 |
\@tempswafalse\the\NC@list% |
| 9987 |
}% |
| 9988 |
} |
| 9989 |
|
| 9990 |
|
| 9991 |
\newcommand*{\LWR@modifycolumntype}[5]{% |
| 9992 |
\LWR@traceinfo{LWR@modifycolumntype !#1!#2!#3!#4!#5!}% |
| 9993 |
\LWR@traceinfo{LWR@modifycolumntype #1}% |
| 9994 |
\edef\@tempa{% |
| 9995 |
\noexpand\csdef{LWR@columntype@#1}{% |
| 9996 |
\noexpand\@nameuse{#3}{#1}% |
| 9997 |
\noexpand\defaddtocounter{LWR@tablecolspecindex}{#2}% |
| 9998 |
}% |
| 9999 |
\noexpand\csdef{LWR@columntype@mctype@#1}{% |
| 10000 |
\noexpand\@nameuse{#4}{#1}% |
| 10001 |
}% |
| 10002 |
\noexpand\csdef{LWR@columntype@mcdata@#1}{% |
| 10003 |
\noexpand\@nameuse{#5}{#2}% |
| 10004 |
}% |
| 10005 |
}% |
| 10006 |
\@tempa% |
| 10007 |
\LWR@traceinfo{LWR@modifycolumntype done}% |
| 10008 |
} |
| 10009 |
|
| 10010 |
\LWR@modifycolumntype{l}{0}{LWR@parsenormalcolumn} |
| 10011 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@normal} |
| 10012 |
|
| 10013 |
\LWR@modifycolumntype{c}{0}{LWR@parsenormalcolumn} |
| 10014 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@normal} |
| 10015 |
|
| 10016 |
\LWR@modifycolumntype{r}{0}{LWR@parsenormalcolumn} |
| 10017 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@normal} |
| 10018 |
\LWR@modifycolumntype{@}{0}{LWR@parseatcolumn} |
| 10019 |
{LWR@printmccoltype@ignore}{LWR@printmccoldata@other} |
| 10020 |
|
| 10021 |
\LWR@modifycolumntype{!}{0}{LWR@parsebangcolumn} |
| 10022 |
{LWR@printmccoltype@ignore}{LWR@printmccoldata@other} |
| 10023 |
|
| 10024 |
\LWR@modifycolumntype{>}{0}{LWR@parsebeforecolumn} |
| 10025 |
{LWR@printmccoltype@ignore}{LWR@printmccoldata@other} |
| 10026 |
|
| 10027 |
\LWR@modifycolumntype{<}{0}{LWR@parseaftercolumn} |
| 10028 |
{LWR@printmccoltype@ignore}{LWR@printmccoldata@other} |
| 10029 |
|
| 10030 |
\LWR@modifycolumntype{|}{0}{LWR@parsebarcolumn} |
| 10031 |
{LWR@printmccoltype@vertbar}{LWR@printmccoldata@skip} |
| 10032 |
|
| 10033 |
\LWR@modifycolumntype{:}{0}{LWR@parsecoloncolumn} |
| 10034 |
{LWR@printmccoltype@colon}{LWR@printmccoldata@skip} |
| 10035 |
|
| 10036 |
\LWR@modifycolumntype{;}{1}{LWR@parsesemicoloncolumn} |
| 10037 |
{LWR@printmccoltype@semicolon}{LWR@printmccoldata@skip} |
| 10038 |
\LWR@modifycolumntype{p}{1}{LWR@parsenormalcolumn} |
| 10039 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@paragraph} |
| 10040 |
|
| 10041 |
\LWR@modifycolumntype{m}{1}{LWR@parsenormalcolumn} |
| 10042 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@paragraph} |
| 10043 |
|
| 10044 |
\LWR@modifycolumntype{b}{1}{LWR@parsenormalcolumn} |
| 10045 |
{LWR@printmccoltype@normal}{LWR@printmccoldata@paragraph} |
| 10046 |
\LWR@modifycolumntype{*}{2}{LWR@parsestarcolumn} |
| 10047 |
{LWR@printmccoltype@ignore}{LWR@printmccoldata@skip} |
| 10048 |
\NewDocumentCommand{\HTMLnewcolumntype}{m O{0} o m}{% |
| 10049 |
\IfValueTF{#3} |
| 10050 |
{ |
| 10051 |
\expandafter\newcommand\expandafter*% |
| 10052 |
\csname LWR@HTML@NC@rewrite@#1\endcsname[#2][#3]{\NC@find #4}% |
| 10053 |
\LWR@formatted{NC@rewrite@#1}% |
| 10054 |
} |
| 10055 |
{ |
| 10056 |
\expandafter\newcommand\expandafter*% |
| 10057 |
\csname LWR@HTML@NC@rewrite@#1\endcsname[#2]{\NC@find #4}% |
| 10058 |
\LWR@formatted{NC@rewrite@#1}% |
| 10059 |
} |
| 10060 |
} |
| 10061 |
\end{warpHTML} |
| 10062 |
\begin{warpprint} |
| 10063 |
\NewDocumentCommand{\HTMLnewcolumntype}{m O{0} o m}{} |
| 10064 |
\end{warpprint} |
| 10065 |
\begin{warpHTML} |
| 10066 |
\newcommand*{\LWR@parsetablecols}[1]{% |
| 10067 |
\LWR@traceinfo{LWR@parsetablecols}% |
| 10068 |
\renewcommand*{\LWR@origcolspec}{#1}% |
| 10069 |
\expandarg% |
| 10070 |
\StrSubstitute{\LWR@origcolspec}{ }{}[\LWR@origcolspec]% |
| 10071 |
\LWR@expandpreamble{\LWR@origcolspec}% |
| 10072 |
\edef\LWR@origcolspec{\the\@temptokena}% |
| 10073 |
\defcounter{LWR@tabletotalLaTeXcols}{0}% |
| 10074 |
\defcounter{LWR@tabletotalLaTeXcolsnext}{1}% |
| 10075 |
\LWR@setexparray{LWR@colatspec}{leftedge}{}% |
| 10076 |
\LWR@setexparray{LWR@colatspec}{1}{}% |
| 10077 |
\LWR@setexparray{LWR@colatspec}{2}{}% |
| 10078 |
\LWR@setexparray{LWR@colatspec}{3}{}% |
| 10079 |
\LWR@setexparray{LWR@colbangspec}{leftedge}{}% |
| 10080 |
\LWR@setexparray{LWR@colbangspec}{1}{}% |
| 10081 |
\LWR@setexparray{LWR@colbangspec}{2}{}% |
| 10082 |
\LWR@setexparray{LWR@colbangspec}{3}{}% |
| 10083 |
\LWR@setexparray{LWR@colbeforespec}{1}{}% |
| 10084 |
\LWR@setexparray{LWR@colbeforespec}{2}{}% |
| 10085 |
\LWR@setexparray{LWR@colbeforespec}{3}{}% |
| 10086 |
\LWR@setexparray{LWR@colafterspec}{1}{}% |
| 10087 |
\LWR@setexparray{LWR@colafterspec}{2}{}% |
| 10088 |
\LWR@setexparray{LWR@colafterspec}{3}{}% |
| 10089 |
\LWR@setexparray{LWR@colbarspec}{leftedge}{}% |
| 10090 |
\LWR@setexparray{LWR@colbarspec}{1}{}% |
| 10091 |
\LWR@setexparray{LWR@colbarspec}{2}{}% |
| 10092 |
\LWR@setexparray{LWR@colbarspec}{3}{}% |
| 10093 |
\LWR@setexparray{LWR@coladdclass}{1}{}% |
| 10094 |
\LWR@setexparray{LWR@coladdclass}{2}{}% |
| 10095 |
\LWR@setexparray{LWR@coladdclass}{3}{}% |
| 10096 |
\defcounter{LWR@tablecolspecindex}{1}% |
| 10097 |
\expandarg% |
| 10098 |
\StrLen{\LWR@origcolspec}[\LWR@strresult]% |
| 10099 |
\fullexpandarg% |
| 10100 |
\LWR@traceinfo{original column spec length: \LWR@strresult}% |
| 10101 |
\defcounter{LWR@tablecolspecwidth}{\LWR@strresult}% |
| 10102 |
\boolfalse{LWR@opttablecol}% |
| 10103 |
\whileboolexpr{% |
| 10104 |
not test{% |
| 10105 |
\ifnumcomp{\value{LWR@tablecolspecindex}}{>}% |
| 10106 |
{\value{LWR@tablecolspecwidth}}% |
| 10107 |
}% |
| 10108 |
}% |
| 10109 |
{% |
| 10110 |
\expandarg% |
| 10111 |
\StrChar{\LWR@origcolspec}{\arabic{LWR@tablecolspecindex}}[\LWR@strresult]% |
| 10112 |
\LWR@traceinfo{position \arabic{LWR@tablecolspecindex}: \LWR@strresult}% |
| 10113 |
\fullexpandarg% |
| 10114 |
\boolfalse{LWR@validtablecol}% |
| 10115 |
\IfStrEq{\LWR@strresult}{[}{\booltrue{LWR@opttablecol}}{}% |
| 10116 |
\ifbool{LWR@opttablecol}% |
| 10117 |
{}% inside an optional argument |
| 10118 |
{% not an optional tabular argument |
| 10119 |
\ifcsdef{LWR@columntype@\LWR@strresult}% |
| 10120 |
{\csuse{LWR@columntype@\LWR@strresult}}% |
| 10121 |
{}% |
| 10122 |
\ifbool{LWR@validtablecol}{}{% |
| 10123 |
\LWR@traceinfo{invalid column type: \LWR@strresult}% |
| 10124 |
\LWR@parsenormalcolumn{l}% |
| 10125 |
}% |
| 10126 |
}% not an optional column argument |
| 10127 |
\IfStrEq{\LWR@strresult}{]}{\boolfalse{LWR@opttablecol}}{}% |
| 10128 |
\defaddtocounter{LWR@tablecolspecindex}{1}% |
| 10129 |
}% whiledo |
| 10130 |
}% |
| 10131 |
|
| 10132 |
\@ifundefined{rownum}{\newcount\rownum}{} |
| 10133 |
\newcommand*{\@rowcolors}{} |
| 10134 |
\newcommand*{\@rowc@lors}{} |
| 10135 |
\newcommand*{\LWR@xcolorrowHTMLcolor}{} |
| 10136 |
\def\LWR@columnHTMLcolor{} |
| 10137 |
\def\LWR@rowHTMLcolor{} |
| 10138 |
\def\LWR@cellHTMLcolor{} |
| 10139 |
\newcommand*{\LWR@ruleHTMLcolor}{} |
| 10140 |
\newcommand*{\rowcolor}{\LWR@getmynexttoken}% |
| 10141 |
|
| 10142 |
\newcommand{\arrayrulecolor}[2][named]{} |
| 10143 |
\newcommand{\arrayrulecolornexttoken}[2][named]{\LWR@getmynexttoken} |
| 10144 |
|
| 10145 |
\newcommand{\doublerulesepcolor}[2][named]{} |
| 10146 |
\newcommand{\doublerulesepcolornexttoken}[2][named]{\LWR@getmynexttoken} |
| 10147 |
|
| 10148 |
|
| 10149 |
\newcommand*{\LWR@maybenewtablerow} |
| 10150 |
{% |
| 10151 |
\ifbool{LWR@startedrow}% |
| 10152 |
{}% started the row |
| 10153 |
{% not started the row |
| 10154 |
\ifbool{LWR@tabularfinalrow}% |
| 10155 |
{% |
| 10156 |
\renewcommand*{\LWR@tempone}% |
| 10157 |
{ aria-hidden=\textquotedbl{}true\textquotedbl}% |
| 10158 |
}% |
| 10159 |
{% |
| 10160 |
\renewcommand*{\LWR@tempone}{}% |
| 10161 |
}% |
| 10162 |
\ifboolexpr{% |
| 10163 |
test{\ifnumcomp{\value{LWR@hlines}}{>}{0}} or% |
| 10164 |
test{\ifnumcomp{\value{LWR@hdashedlines}}{>}{0}}% |
| 10165 |
}% |
| 10166 |
{% |
| 10167 |
\LWR@htmltag{% |
| 10168 |
tr % |
| 10169 |
class=\textquotedbl{}hline\textquotedbl% |
| 10170 |
\LWR@tempone% aria-hidden |
| 10171 |
}% |
| 10172 |
\LWR@orignewline% |
| 10173 |
\booltrue{LWR@startedrow}% |
| 10174 |
\booltrue{LWR@intabularmetadata}% |
| 10175 |
}% |
| 10176 |
{% not doing hline |
| 10177 |
\ifbool{LWR@doingtbrule}% |
| 10178 |
{% |
| 10179 |
\ifdefvoid{\LWR@ruleHTMLcolor}{% |
| 10180 |
\LWR@htmltag{% |
| 10181 |
tr % |
| 10182 |
class=\textquotedbl{}tbrule\textquotedbl% |
| 10183 |
\LWR@tempone% aria-hidden |
| 10184 |
}% |
| 10185 |
}{% |
| 10186 |
\LWR@htmltag{% |
| 10187 |
tr class=\textquotedbl{}tbrule\textquotedbl\ % space |
| 10188 |
style=\textquotedbl{}border-top: 1px solid % space |
| 10189 |
\LWR@origpound\LWR@ruleHTMLcolor \textquotedbl{}% |
| 10190 |
\LWR@tempone% aria-hidden |
| 10191 |
}% |
| 10192 |
}% |
| 10193 |
\LWR@orignewline% |
| 10194 |
\booltrue{LWR@startedrow}% |
| 10195 |
\booltrue{LWR@intabularmetadata}% |
| 10196 |
}% |
| 10197 |
{% |
| 10198 |
\ifbool{LWR@tabularfinalrow}% |
| 10199 |
{}% |
| 10200 |
{% |
| 10201 |
\LWR@htmltag{tr}\LWR@orignewline% |
| 10202 |
\booltrue{LWR@startedrow}% |
| 10203 |
\booltrue{LWR@intabularmetadata}% |
| 10204 |
}% |
| 10205 |
}% |
| 10206 |
}% end of not doing hline |
| 10207 |
}% end of not started the row |
| 10208 |
} |
| 10209 |
|
| 10210 |
|
| 10211 |
\newcommand*{\LWR@printbartag}[1]{% |
| 10212 |
\LWR@traceinfo{LWR@printbartag !#1!}% |
| 10213 |
\ifboolexpr{bool{LWR@tabularmutemods} or bool{LWR@emptyatbang}}% |
| 10214 |
{}% muting or empty |
| 10215 |
{% not muting |
| 10216 |
\edef\LWR@tempone{\LWR@getexparray{LWR@colbarspec}{#1}}% |
| 10217 |
\ifdefempty{\LWR@tempone}{}{ \LWR@tempone}% |
| 10218 |
}% not muting |
| 10219 |
\LWR@traceinfo{LWR@printbartag done}% |
| 10220 |
} |
| 10221 |
|
| 10222 |
|
| 10223 |
\newcommand*{\LWR@printatbang}[2]{% |
| 10224 |
\xdef\LWR@atbangspec{\LWR@getexparray{LWR@col#1spec}{#2}}% |
| 10225 |
\LWR@traceinfo{atbang: #2 !\LWR@atbangspec!}% |
| 10226 |
\ifdefempty{\LWR@atbangspec}% |
| 10227 |
{}% |
| 10228 |
{% not empty |
| 10229 |
\LWR@htmltag{% |
| 10230 |
td class=\textquotedbl{}td#1% |
| 10231 |
\LWR@subaddcmidruletrim{}{}% |
| 10232 |
\LWR@printbartag{#2}% |
| 10233 |
\textquotedbl{}% |
| 10234 |
\LWR@tdstartstyles% |
| 10235 |
\LWR@addcmidrulewidth% |
| 10236 |
\LWR@addcdashline% |
| 10237 |
\LWR@addtabularrulecolors% |
| 10238 |
\LWR@tdendstyles% |
| 10239 |
}% |
| 10240 |
\ifboolexpr{bool{LWR@tabularmutemods} or bool{LWR@emptyatbang}}% |
| 10241 |
{}% |
| 10242 |
{\LWR@atbangspec}% |
| 10243 |
\LWR@htmltag{/td}\LWR@orignewline% |
| 10244 |
\global\booltrue{LWR@tabularcelladded}% |
| 10245 |
}% not empty |
| 10246 |
}% |
| 10247 |
|
| 10248 |
\newcommand*{\LWR@addleftmostbartag}{% |
| 10249 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{=}{1}{% |
| 10250 |
\LWR@printbartag{leftedge}% |
| 10251 |
}{}% |
| 10252 |
} |
| 10253 |
|
| 10254 |
\newcommand*{\LWR@tabularleftedge}{% |
| 10255 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{=}{1}% |
| 10256 |
{% |
| 10257 |
\LWR@printatbang{at}{leftedge}% |
| 10258 |
\LWR@printatbang{bang}{leftedge}% |
| 10259 |
}% left edge |
| 10260 |
{}% not left edge |
| 10261 |
} |
| 10262 |
|
| 10263 |
|
| 10264 |
\newcommand*{\LWR@thiscolspec}{} |
| 10265 |
|
| 10266 |
\newcommand*{\LWR@tabledatasinglecolumntag}% |
| 10267 |
{% |
| 10268 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag}% |
| 10269 |
\LWR@maybenewtablerow% |
| 10270 |
\ifboolexpr{ |
| 10271 |
bool{LWR@intabularmetadata} |
| 10272 |
and not bool{LWR@exitingtabular} |
| 10273 |
and not bool {LWR@in@multirow@par} |
| 10274 |
}% |
| 10275 |
{% making a tabular data cell |
| 10276 |
\LWR@tabularleftedge% |
| 10277 |
\xdef\LWR@strresult{% |
| 10278 |
\LWR@getexparray{LWR@tablecolspec}{\arabic{LWR@tableLaTeXcolindex}}% |
| 10279 |
}% |
| 10280 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag: about to print td tag}% |
| 10281 |
\LWR@htmltag{% |
| 10282 |
td class=\textquotedbl{}td% |
| 10283 |
\LWR@strresult% |
| 10284 |
\LWR@addcmidruletrim% |
| 10285 |
\LWR@addleftmostbartag% |
| 10286 |
\LWR@printbartag{\arabic{LWR@tableLaTeXcolindex}}% |
| 10287 |
\LWR@getexparray{LWR@coladdclass}% |
| 10288 |
{\arabic{LWR@tableLaTeXcolindex}}% |
| 10289 |
\textquotedbl{}% |
| 10290 |
\LWR@tdstartstyles% |
| 10291 |
\LWR@addcmidrulewidth% |
| 10292 |
\LWR@addcdashline% |
| 10293 |
\xdef\LWR@thiscolspec{% |
| 10294 |
\LWR@getexparray{LWR@tablecolspec}% |
| 10295 |
{\arabic{LWR@tableLaTeXcolindex}}% |
| 10296 |
}% |
| 10297 |
\LWR@addformatwpalignment{\LWR@thiscolspec}% |
| 10298 |
\LWR@addtabularrowcolor% |
| 10299 |
\LWR@addtabularrulecolors% |
| 10300 |
\LWR@tdendstyles% |
| 10301 |
}% HTML td |
| 10302 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag: done printing td tag}% |
| 10303 |
\ifboolexpr{% |
| 10304 |
test{ \ifdefstring{\LWR@strresult}{p} } or |
| 10305 |
test{ \ifdefstring{\LWR@strresult}{m} } or |
| 10306 |
test{ \ifdefstring{\LWR@strresult}{b} } |
| 10307 |
}% |
| 10308 |
{% allow pars |
| 10309 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag: about to LWR@startpars}% |
| 10310 |
\booltrue{LWR@tableparcell}% |
| 10311 |
\LWR@startpars% |
| 10312 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag: done with LWR@startpars}% |
| 10313 |
}% allow pars |
| 10314 |
{}% no pars |
| 10315 |
\ifboolexpr{bool{LWR@tabularmutemods} or bool{LWR@emptyatbang}}% |
| 10316 |
{}% |
| 10317 |
{% |
| 10318 |
\LWR@getexparray{LWR@colbeforespec}{\arabic{LWR@tableLaTeXcolindex}}% |
| 10319 |
}% |
| 10320 |
\boolfalse{LWR@intabularmetadata}% |
| 10321 |
}% making a tabular data cell |
| 10322 |
{}% not making a tabular data cell |
| 10323 |
\LWR@traceinfo{LWR@tabledatasinglecolumntag: done}% |
| 10324 |
}% |
| 10325 |
|
| 10326 |
|
| 10327 |
|
| 10328 |
|
| 10329 |
|
| 10330 |
\newlength{\LWR@heavyrulewidth} |
| 10331 |
\setlength{\LWR@heavyrulewidth}{.08em} |
| 10332 |
|
| 10333 |
\newlength{\LWR@lightrulewidth} |
| 10334 |
\setlength{\LWR@lightrulewidth}{.05em} |
| 10335 |
|
| 10336 |
\newlength{\LWR@cmidrulewidth} |
| 10337 |
\setlength{\LWR@cmidrulewidth}{.03em} |
| 10338 |
|
| 10339 |
\newlength{\LWR@thiscmidrulewidth} |
| 10340 |
\setlength{\LWR@thiscmidrulewidth}{\LWR@cmidrulewidth} |
| 10341 |
|
| 10342 |
\newcommand*{\LWR@clearmidrules} |
| 10343 |
{% |
| 10344 |
\defcounter{LWR@midrulecounter}{1}% |
| 10345 |
\whileboolexpr{% |
| 10346 |
not test{% |
| 10347 |
\ifnumcomp{\value{LWR@midrulecounter}}{>}% |
| 10348 |
{\value{LWR@tabletotalLaTeXcols}}% |
| 10349 |
}% |
| 10350 |
}% |
| 10351 |
{% |
| 10352 |
\LWR@setexparray{LWR@midrules}{\arabic{LWR@midrulecounter}}{0pt}% |
| 10353 |
\setlength{\LWR@thiscmidrulewidth}{\LWR@cmidrulewidth}% |
| 10354 |
\LWR@setexparray{LWR@trimlrules}{\arabic{LWR@midrulecounter}}{}% |
| 10355 |
\LWR@setexparray{LWR@trimrrules}{\arabic{LWR@midrulecounter}}{}% |
| 10356 |
\LWR@setexparray{LWR@cdashlines}{\arabic{LWR@midrulecounter}}{N}% |
| 10357 |
\defaddtocounter{LWR@midrulecounter}{1}% |
| 10358 |
}% |
| 10359 |
} |
| 10360 |
|
| 10361 |
\newcommand*{\LWR@subcmidrule}[4]{% |
| 10362 |
\defcounter{LWR@midrulecounter}{#3}% |
| 10363 |
\whileboolexpr{% |
| 10364 |
not test {% |
| 10365 |
\ifnumcomp{\value{LWR@midrulecounter}}{>}{#4}% |
| 10366 |
}% |
| 10367 |
}% |
| 10368 |
{% |
| 10369 |
\LWR@setexparray{LWR@midrules}{\arabic{LWR@midrulecounter}}{#1}% |
| 10370 |
\defaddtocounter{LWR@midrulecounter}{1}% |
| 10371 |
}% whiledo |
| 10372 |
\IfSubStr{#2}{l}{\LWR@setexparray{LWR@trimlrules}{#3}{l}}{}% |
| 10373 |
\IfSubStr{#2}{r}{\LWR@setexparray{LWR@trimrrules}{#4}{r}}{}% |
| 10374 |
\booltrue{LWR@doingcmidrule}% |
| 10375 |
} |
| 10376 |
|
| 10377 |
\NewDocumentCommand{\LWR@docmidrule} |
| 10378 |
{O{\LWR@cmidrulewidth} D(){} >{\SplitArgument{1}{-}}m} |
| 10379 |
{\LWR@subcmidrule{#1}{#2}#3} |
| 10380 |
|
| 10381 |
\newcommand*{\LWR@subcdashline}[2]{% |
| 10382 |
\defcounter{LWR@midrulecounter}{#1}% |
| 10383 |
\whileboolexpr{% |
| 10384 |
not test {% |
| 10385 |
\ifnumcomp{\value{LWR@midrulecounter}}{>}{#2}% |
| 10386 |
}% |
| 10387 |
}% |
| 10388 |
{% |
| 10389 |
\LWR@setexparray{LWR@cdashlines}{\arabic{LWR@midrulecounter}}{Y}% |
| 10390 |
\defaddtocounter{LWR@midrulecounter}{1}% |
| 10391 |
}% whiledo |
| 10392 |
\booltrue{LWR@doingcmidrule}% |
| 10393 |
} |
| 10394 |
|
| 10395 |
\NewDocumentCommand{\LWR@docdashline}{>{\SplitArgument{1}{-}}m}% |
| 10396 |
{% |
| 10397 |
\LWR@subcdashline#1% |
| 10398 |
} |
| 10399 |
|
| 10400 |
\newcommand*{\LWR@tdstartstyles}{\boolfalse{LWR@tdhavecellstyle}} |
| 10401 |
|
| 10402 |
\newcommand*{\LWR@tdaddstyle}{% |
| 10403 |
\ifbool{LWR@tdhavecellstyle}% |
| 10404 |
{; }% |
| 10405 |
{ style=\textquotedbl}% |
| 10406 |
\booltrue{LWR@tdhavecellstyle}% |
| 10407 |
} |
| 10408 |
|
| 10409 |
\newcommand*{\LWR@tdendstyles}{% |
| 10410 |
\ifbool{LWR@tdhavecellstyle}% |
| 10411 |
{% |
| 10412 |
\textquotedbl% |
| 10413 |
\boolfalse{LWR@tdhavecellstyle}% |
| 10414 |
}{}% |
| 10415 |
} |
| 10416 |
|
| 10417 |
\newcommand*{\LWR@subaddcmidruletrim}[2]{% |
| 10418 |
\setlength{\LWR@templengthone}{% |
| 10419 |
\LWR@getexparray{LWR@midrules}{\arabic{LWR@tableLaTeXcolindex}}% |
| 10420 |
}% |
| 10421 |
\ifdimcomp{\LWR@templengthone}{>}{0pt}% |
| 10422 |
{% |
| 10423 |
\space tdrule#1#2% |
| 10424 |
\setlength{\LWR@thiscmidrulewidth}{\LWR@templengthone}% |
| 10425 |
}% |
| 10426 |
{% |
| 10427 |
\setlength{\LWR@thiscmidrulewidth}{0pt}% |
| 10428 |
}% |
| 10429 |
} |
| 10430 |
|
| 10431 |
\newcommand*{\LWR@addcmidruletrim}{% |
| 10432 |
\LWR@subaddcmidruletrim% |
| 10433 |
{\LWR@getexparray{LWR@trimlrules}{\arabic{LWR@tableLaTeXcolindex}}}% |
| 10434 |
{\LWR@getexparray{LWR@trimrrules}{\arabic{LWR@tableLaTeXcolindex}}}% |
| 10435 |
} |
| 10436 |
|
| 10437 |
\newcommand{\LWR@addrulewidth}[2]{% |
| 10438 |
\ifboolexpr{% |
| 10439 |
test{\ifdimcomp{#1}{=}{0pt}} or |
| 10440 |
( |
| 10441 |
( test{\ifdimcomp{#1}{=}{#2}} and not bool{FormatWP} ) |
| 10442 |
and ( test {\ifdefvoid{\LWR@ruleHTMLcolor}} ) |
| 10443 |
) |
| 10444 |
}% |
| 10445 |
{}% default width and color |
| 10446 |
{% custom width and/or color |
| 10447 |
\LWR@forceminwidth{#1}% |
| 10448 |
\LWR@tdaddstyle% |
| 10449 |
border-top:\LWR@printlength{\LWR@atleastonept} solid % space |
| 10450 |
\ifdefvoid{\LWR@ruleHTMLcolor}{% |
| 10451 |
\ifdimcomp{#1}{<}{\LWR@lightrulewidth}% |
| 10452 |
{\LWR@origpound{}A0A0A0}% |
| 10453 |
{% lightrule or heaver |
| 10454 |
\ifdimcomp{#1}{<}{\LWR@heavyrulewidth}% |
| 10455 |
{\LWR@origpound{}808080}% |
| 10456 |
{black}% |
| 10457 |
}% lightrule or heavier |
| 10458 |
}{% |
| 10459 |
\LWR@origpound\LWR@ruleHTMLcolor% |
| 10460 |
}% |
| 10461 |
}% custom width and/or color |
| 10462 |
} |
| 10463 |
|
| 10464 |
\newcommand{\LWR@addcmidrulewidth}{% |
| 10465 |
\LWR@addrulewidth{\LWR@thiscmidrulewidth}{\LWR@cmidrulewidth}% |
| 10466 |
} |
| 10467 |
|
| 10468 |
\newcommand{\LWR@addcdashline}{% |
| 10469 |
\edef\LWR@tempone{% |
| 10470 |
\LWR@getexparray{LWR@cdashlines}{\arabic{LWR@tableLaTeXcolindex}}% |
| 10471 |
}% |
| 10472 |
\ifdefstring{\LWR@tempone}{Y}{% |
| 10473 |
\LWR@tdaddstyle% |
| 10474 |
border-top: 1pt dashed % |
| 10475 |
\ifdefvoid{\LWR@ruleHTMLcolor}% |
| 10476 |
{black}% |
| 10477 |
{\LWR@origpound\LWR@ruleHTMLcolor}% |
| 10478 |
}{}% |
| 10479 |
} |
| 10480 |
|
| 10481 |
\newcommand*{\LWR@WPcell}[2]{% |
| 10482 |
\LWR@tdaddstyle% |
| 10483 |
\LWR@print@mbox{text-align:#1}; \LWR@print@mbox{vertical-align:#2}% |
| 10484 |
} |
| 10485 |
|
| 10486 |
\newcommand*{\LWR@addformatwpalignment}[1]{% |
| 10487 |
\ifbool{FormatWP}{% |
| 10488 |
\IfSubStr{#1}{l}{\LWR@WPcell{left}{middle}}{}% |
| 10489 |
\IfSubStr{#1}{c}{\LWR@WPcell{center}{middle}}{}% |
| 10490 |
\IfSubStr{#1}{r}{\LWR@WPcell{right}{middle}}{}% |
| 10491 |
\IfSubStr{#1}{p}{\LWR@WPcell{left}{bottom}}{}% |
| 10492 |
\IfSubStr{#1}{m}{\LWR@WPcell{left}{middle}}{}% |
| 10493 |
\IfSubStr{#1}{b}{\LWR@WPcell{left}{top}}{}% |
| 10494 |
}{}% |
| 10495 |
} |
| 10496 |
|
| 10497 |
|
| 10498 |
\newcommand*{\LWR@addtabularrowcolor}{% |
| 10499 |
\ifbool{LWR@tabularmutemods}{}{% |
| 10500 |
\ifdefvoid{\LWR@rowHTMLcolor}{% |
| 10501 |
\ifdefvoid{\LWR@xcolorrowHTMLcolor}{}% |
| 10502 |
{% xcolor row color |
| 10503 |
\LWR@tdaddstyle% |
| 10504 |
background:\LWR@origpound\LWR@xcolorrowHTMLcolor% |
| 10505 |
}% |
| 10506 |
}% |
| 10507 |
{% explicit row color |
| 10508 |
\LWR@tdaddstyle% |
| 10509 |
background:\LWR@origpound\LWR@rowHTMLcolor% |
| 10510 |
}% |
| 10511 |
}% |
| 10512 |
} |
| 10513 |
|
| 10514 |
\newcommand*{\LWR@addtabularhrulecolor}{% |
| 10515 |
\ifboolexpr{% |
| 10516 |
test{\ifnumcomp{\value{LWR@hlines}}{>}{0}} or% |
| 10517 |
test{\ifnumcomp{\value{LWR@hdashedlines}}{>}{0}} or% |
| 10518 |
bool{LWR@doingtbrule}% |
| 10519 |
}{% |
| 10520 |
\ifdefvoid{\LWR@ruleHTMLcolor}% |
| 10521 |
{% |
| 10522 |
\ifnumcomp{\value{LWR@hlines}}{>}{1}% |
| 10523 |
{% |
| 10524 |
\LWR@tdaddstyle% |
| 10525 |
border-top: 4px double% |
| 10526 |
}{% else |
| 10527 |
\ifnumcomp{\value{LWR@hdashedlines}}{>}{1}% |
| 10528 |
{% |
| 10529 |
\LWR@tdaddstyle% |
| 10530 |
border-top: 2px dashed% |
| 10531 |
}{% else |
| 10532 |
\ifnumcomp{\value{LWR@hdashedlines}}{=}{1}% |
| 10533 |
{% |
| 10534 |
\LWR@tdaddstyle% |
| 10535 |
border-top: 1px dashed% |
| 10536 |
}{}}}% |
| 10537 |
}% |
| 10538 |
{% |
| 10539 |
\ifnumcomp{\value{LWR@hlines}}{>}{1}% |
| 10540 |
{% |
| 10541 |
\LWR@tdaddstyle% |
| 10542 |
border-top: 4px double \LWR@origpound\LWR@ruleHTMLcolor% |
| 10543 |
}{% else |
| 10544 |
\ifnumcomp{\value{LWR@hdashedlines}}{>}{1}% |
| 10545 |
{% |
| 10546 |
\LWR@tdaddstyle% |
| 10547 |
border-top: 2px dashed \LWR@origpound\LWR@ruleHTMLcolor% |
| 10548 |
}{% else |
| 10549 |
\ifnumcomp{\value{LWR@hdashedlines}}{=}{1}% |
| 10550 |
{% |
| 10551 |
\LWR@tdaddstyle% |
| 10552 |
border-top: 1px dashed \LWR@origpound\LWR@ruleHTMLcolor% |
| 10553 |
}{% else |
| 10554 |
\LWR@tdaddstyle% |
| 10555 |
border-top: 1px solid \LWR@origpound\LWR@ruleHTMLcolor% |
| 10556 |
}}}% |
| 10557 |
}% |
| 10558 |
}{}% |
| 10559 |
} |
| 10560 |
|
| 10561 |
\newcommand*{\LWR@addtabularrulecolors}{% |
| 10562 |
\LWR@addtabularhrulecolor% |
| 10563 |
\ifbool{LWR@tabularmutemods}{}{% |
| 10564 |
\ifnumequal{\value{LWR@tableLaTeXcolindex}}{1}{% |
| 10565 |
\edef\LWR@tempone{\LWR@getexparray{LWR@colbarspec}{leftedge}}% |
| 10566 |
\ifdefstring{\LWR@tempone}{tvertbarl}{% |
| 10567 |
\LWR@tdaddstyle% |
| 10568 |
border-left: 1px solid % space |
| 10569 |
\LWR@vertruleHTMLcolor% |
| 10570 |
}{}% |
| 10571 |
\ifdefstring{\LWR@tempone}{tvertbarldouble}{% |
| 10572 |
\LWR@tdaddstyle% |
| 10573 |
border-left: 4px double % space |
| 10574 |
\LWR@vertruleHTMLcolor% |
| 10575 |
}{}% |
| 10576 |
\ifdefstring{\LWR@tempone}{tvertbarldash}{% |
| 10577 |
\LWR@tdaddstyle% |
| 10578 |
border-left: 1px dashed % space |
| 10579 |
\LWR@vertruleHTMLcolor% |
| 10580 |
}{}% |
| 10581 |
\ifdefstring{\LWR@tempone}{tvertbarldoubledash}{% |
| 10582 |
\LWR@tdaddstyle% |
| 10583 |
border-left: 2px dashed % space |
| 10584 |
\LWR@vertruleHTMLcolor% |
| 10585 |
}{}% |
| 10586 |
}{}% |
| 10587 |
\edef\LWR@tempone{% |
| 10588 |
\LWR@getexparray{LWR@colbarspec}{\arabic{LWR@tableLaTeXcolindex}}% |
| 10589 |
}% |
| 10590 |
\ifdefstring{\LWR@tempone}{tvertbarr}{% |
| 10591 |
\LWR@tdaddstyle% |
| 10592 |
border-right: 1px solid \LWR@vertruleHTMLcolor% |
| 10593 |
}{}% |
| 10594 |
\ifdefstring{\LWR@tempone}{tvertbarrdouble}{% |
| 10595 |
\LWR@tdaddstyle% |
| 10596 |
border-right: 4px double \LWR@vertruleHTMLcolor% |
| 10597 |
}{}% |
| 10598 |
\ifdefstring{\LWR@tempone}{tvertbarrdash}{% |
| 10599 |
\LWR@tdaddstyle% |
| 10600 |
border-right: 1px dashed \LWR@vertruleHTMLcolor% |
| 10601 |
}{}% |
| 10602 |
\ifdefstring{\LWR@tempone}{tvertbarrdoubledash}{% |
| 10603 |
\LWR@tdaddstyle% |
| 10604 |
border-right: 2px dashed \LWR@vertruleHTMLcolor% |
| 10605 |
}{}% |
| 10606 |
}% |
| 10607 |
} |
| 10608 |
|
| 10609 |
\newcommand*{\LWR@subaddtabularcellcolor}[1]{% |
| 10610 |
\LWR@htmltag{div class=\textquotedbl{}cellcolor\textquotedbl\ % space |
| 10611 |
style=\textquotedbl{}% |
| 10612 |
background:\LWR@origpound{}{}#1 % |
| 10613 |
\textquotedbl\ % |
| 10614 |
}% space |
| 10615 |
\defaddtocounter{LWR@cellcolordepth}{1}% |
| 10616 |
} |
| 10617 |
|
| 10618 |
\newcommand*{\LWR@addtabularcellcolor}{% |
| 10619 |
\ifdefvoid{\LWR@cellHTMLcolor}% |
| 10620 |
{% |
| 10621 |
\ifdefvoid{\LWR@rowHTMLcolor}% |
| 10622 |
{% |
| 10623 |
\ifdefvoid{\LWR@xcolorrowHTMLcolor}% |
| 10624 |
{% |
| 10625 |
\ifdefvoid{\LWR@columnHTMLcolor}% |
| 10626 |
{}% |
| 10627 |
{\LWR@subaddtabularcellcolor{\LWR@columnHTMLcolor}}% |
| 10628 |
}% |
| 10629 |
{\LWR@subaddtabularcellcolor{\LWR@xcolorrowHTMLcolor}}% |
| 10630 |
}% |
| 10631 |
{\LWR@subaddtabularcellcolor{\LWR@rowHTMLcolor}}% |
| 10632 |
}% |
| 10633 |
{\LWR@subaddtabularcellcolor{\LWR@cellHTMLcolor}}% |
| 10634 |
} |
| 10635 |
|
| 10636 |
|
| 10637 |
|
| 10638 |
\newcommand*{\LWR@printmccoltype@normal}[1]{% |
| 10639 |
#1% |
| 10640 |
\boolfalse{LWR@mcolvertbaronleft}% |
| 10641 |
} |
| 10642 |
|
| 10643 |
\newcommand*{\LWR@printmccoltype@ignore}[1]{}% |
| 10644 |
|
| 10645 |
\newcommand*{\LWR@printmccoltype@vertbar}[1]{% |
| 10646 |
\ifbool{LWR@mcolvertbaronleft}% |
| 10647 |
{\defaddtocounter{LWR@mcolvertbarsl}{1}}% left edge |
| 10648 |
{\defaddtocounter{LWR@mcolvertbarsr}{1}}% not left edge |
| 10649 |
} |
| 10650 |
|
| 10651 |
\newcommand*{\LWR@printmccoltype@colon}[1]{% |
| 10652 |
\ifbool{LWR@mcolvertbaronleft}% |
| 10653 |
{\defaddtocounter{LWR@mcolvertbarsldash}{1}}% left edge |
| 10654 |
{\defaddtocounter{LWR@mcolvertbarsrdash}{1}}% not left edge |
| 10655 |
} |
| 10656 |
|
| 10657 |
\let\LWR@printmccoltype@semicolon\LWR@printmccoltype@colon |
| 10658 |
|
| 10659 |
\newcommand*{\LWR@printmccoltype}[1]{% |
| 10660 |
\LWR@traceinfo{lwr@printmccoltype -#1-}% |
| 10661 |
\StrChar{#1}{\arabic{LWR@tablemulticolspos}}[\LWR@strresult]% |
| 10662 |
\edef\LWR@strresult{\detokenize\expandafter{\LWR@strresult}}% |
| 10663 |
\ifcsdef{LWR@columntype@mctype@\LWR@strresult}% |
| 10664 |
{\csuse{LWR@columntype@mctype@\LWR@strresult}}% |
| 10665 |
{\boolfalse{LWR@mcolvertbaronleft}}% |
| 10666 |
\LWR@traceinfo{lwr@printmccoltype done}% |
| 10667 |
} |
| 10668 |
|
| 10669 |
\newcommand*{\LWR@printmccoldata@other}[2]{% |
| 10670 |
\defaddtocounter{LWR@tablemulticolspos}{1}% |
| 10671 |
\StrChar{#2}{\arabic{LWR@tablemulticolspos}}[\LWR@strresult]% |
| 10672 |
\LWR@strresult% |
| 10673 |
\booltrue{LWR@validtablecol}% |
| 10674 |
} |
| 10675 |
|
| 10676 |
\newcommand*{\LWR@printmccoldata@skip}[2]{% |
| 10677 |
\defaddtocounter{LWR@tablemulticolspos}{#1}% |
| 10678 |
\booltrue{LWR@validtablecol}% |
| 10679 |
} |
| 10680 |
|
| 10681 |
|
| 10682 |
\newcommand*{\LWR@printmccoldata@normal}[2]{% |
| 10683 |
\LWR@multicoltext% |
| 10684 |
\defaddtocounter{LWR@tablemulticolspos}{#1}% |
| 10685 |
} |
| 10686 |
|
| 10687 |
\newcommand*{\LWR@printmccoldata@paragraph}[2]{% |
| 10688 |
\LWR@startpars% |
| 10689 |
\LWR@multicoltext% |
| 10690 |
\defaddtocounter{LWR@tablemulticolspos}{#1}% |
| 10691 |
\LWR@stoppars% |
| 10692 |
} |
| 10693 |
|
| 10694 |
\newcommand*{\LWR@printmccoldata}[1]{% |
| 10695 |
\LWR@traceinfo{lwr@printmccoldata -#1}% |
| 10696 |
\boolfalse{LWR@validtablecol}% |
| 10697 |
\StrChar{#1}{\arabic{LWR@tablemulticolspos}}[\LWR@strresult]% |
| 10698 |
\edef\LWR@printmccoldatatoken{\LWR@strresult}% |
| 10699 |
\ifcsdef{LWR@columntype@mcdata@\LWR@printmccoldatatoken}% |
| 10700 |
{\csuse{LWR@columntype@mcdata@\LWR@printmccoldatatoken}{#1}}% |
| 10701 |
{}% |
| 10702 |
\ifbool{LWR@validtablecol}{}{\LWR@multicoltext{}}% |
| 10703 |
\LWR@traceinfo{lwr@printmccoldata done}% |
| 10704 |
} |
| 10705 |
|
| 10706 |
\newcommand*{\LWR@parsemulticolumnalignment}[2]{% |
| 10707 |
\defcounter{LWR@tablemulticolspos}{1}% |
| 10708 |
\StrLen{#1}[\LWR@strresult]% |
| 10709 |
\defcounter{LWR@tablemulticolswidth}{\LWR@strresult}% |
| 10710 |
\whileboolexpr{% |
| 10711 |
not test {% |
| 10712 |
\ifnumcomp{\value{LWR@tablemulticolspos}}{>}% |
| 10713 |
{\value{LWR@tablemulticolswidth}}% |
| 10714 |
}% |
| 10715 |
}% |
| 10716 |
{% |
| 10717 |
\csuse{#2}{#1}% |
| 10718 |
\defaddtocounter{LWR@tablemulticolspos}{1}% |
| 10719 |
}% |
| 10720 |
} |
| 10721 |
|
| 10722 |
|
| 10723 |
\newcommand*{\LWR@addmulticolvertrulecolor}{% |
| 10724 |
\ifbool{LWR@tabularmutemods}{}{% |
| 10725 |
\ifnumcomp{\value{LWR@mcolvertbarsl}}{=}{1}{% |
| 10726 |
\LWR@tdaddstyle% |
| 10727 |
border-left: 1px solid \LWR@vertruleHTMLcolor% |
| 10728 |
}{}% |
| 10729 |
\ifnumcomp{\value{LWR@mcolvertbarsl}}{>}{1}{% |
| 10730 |
\LWR@tdaddstyle% |
| 10731 |
border-left: 4px double \LWR@vertruleHTMLcolor% |
| 10732 |
}{}% |
| 10733 |
\ifnumcomp{\value{LWR@mcolvertbarsldash}}{=}{1}{% |
| 10734 |
\LWR@tdaddstyle% |
| 10735 |
border-left: 1px dashed \LWR@vertruleHTMLcolor% |
| 10736 |
}{}% |
| 10737 |
\ifnumcomp{\value{LWR@mcolvertbarsldash}}{>}{1}{% |
| 10738 |
\LWR@tdaddstyle% |
| 10739 |
border-left: 2px dashed \LWR@vertruleHTMLcolor% |
| 10740 |
}{}% |
| 10741 |
\ifnumcomp{\value{LWR@mcolvertbarsr}}{=}{1}{% |
| 10742 |
\LWR@tdaddstyle% |
| 10743 |
border-right: 1px solid \LWR@vertruleHTMLcolor% |
| 10744 |
}{}% |
| 10745 |
\ifnumcomp{\value{LWR@mcolvertbarsr}}{>}{1}{% |
| 10746 |
\LWR@tdaddstyle% |
| 10747 |
border-right: 4px double \LWR@vertruleHTMLcolor% |
| 10748 |
}{}% |
| 10749 |
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{=}{1}{% |
| 10750 |
\LWR@tdaddstyle% |
| 10751 |
border-right: 1px dashed \LWR@vertruleHTMLcolor% |
| 10752 |
}{}% |
| 10753 |
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{>}{1}{% |
| 10754 |
\LWR@tdaddstyle% |
| 10755 |
border-right: 2px dashed \LWR@vertruleHTMLcolor% |
| 10756 |
}{}% |
| 10757 |
}% |
| 10758 |
} |
| 10759 |
|
| 10760 |
\newcommand{\LWR@multicoltext}{} |
| 10761 |
|
| 10762 |
\newcounter{LWR@lastmulticolumn} |
| 10763 |
|
| 10764 |
\NewDocumentCommand{\LWR@domulticolumn}{o o m m m +m}{% |
| 10765 |
\LWR@traceinfo{LWR@domulticolumn -#1- -#2- -#4- -#5-}% |
| 10766 |
\renewcommand{\LWR@multicoltext}{% |
| 10767 |
#6% |
| 10768 |
\booltrue{LWR@validtablecol}% |
| 10769 |
}% |
| 10770 |
\LWR@expandpreamble{#5}% |
| 10771 |
\edef\LWR@origmccolspec{\the\@temptokena}% |
| 10772 |
\defcounter{LWR@lastmulticolumn}{\value{LWR@tableLaTeXcolindex}}% |
| 10773 |
\defaddtocounter{LWR@lastmulticolumn}{#3}% |
| 10774 |
\defaddtocounter{LWR@lastmulticolumn}{-1}% |
| 10775 |
\LWR@maybenewtablerow% |
| 10776 |
\LWR@htmltag{% |
| 10777 |
td colspan=\textquotedbl#4\textquotedbl\ % |
| 10778 |
\IfValueT{#2}{ % rows? |
| 10779 |
rowspan=\textquotedbl#2\textquotedbl\ % |
| 10780 |
}% |
| 10781 |
class=\textquotedbl{}td% |
| 10782 |
\defcounter{LWR@mcolvertbarsl}{0}% |
| 10783 |
\defcounter{LWR@mcolvertbarsr}{0}% |
| 10784 |
\defcounter{LWR@mcolvertbarsldash}{0}% |
| 10785 |
\defcounter{LWR@mcolvertbarsrdash}{0}% |
| 10786 |
\booltrue{LWR@mcolvertbaronleft}% |
| 10787 |
\LWR@parsemulticolumnalignment{\LWR@origmccolspec}{LWR@printmccoltype}% |
| 10788 |
\LWR@subaddcmidruletrim% |
| 10789 |
{% |
| 10790 |
\LWR@getexparray{LWR@trimlrules}% |
| 10791 |
{\arabic{LWR@tableLaTeXcolindex}}% |
| 10792 |
}% |
| 10793 |
{% |
| 10794 |
\LWR@getexparray{LWR@trimrrules}% |
| 10795 |
{\arabic{LWR@lastmulticolumn}}% |
| 10796 |
}% |
| 10797 |
\ifnumcomp{\value{LWR@mcolvertbarsl}}{=}{1}{ tvertbarl}{}% |
| 10798 |
\ifnumcomp{\value{LWR@mcolvertbarsl}}{>}{1}{ tvertbarldouble}{}% |
| 10799 |
\ifnumcomp{\value{LWR@mcolvertbarsr}}{=}{1}{ tvertbarr}{}% |
| 10800 |
\ifnumcomp{\value{LWR@mcolvertbarsr}}{>}{1}{ tvertbarrdouble}{}% |
| 10801 |
\ifnumcomp{\value{LWR@mcolvertbarsldash}}{=}{1}{ tvertbarldash}{}% |
| 10802 |
\ifnumcomp{\value{LWR@mcolvertbarsldash}}{>}{1}% |
| 10803 |
{ tvertbarldoubledash}{}% |
| 10804 |
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{=}{1}{ tvertbarrdash}{}% |
| 10805 |
\ifnumcomp{\value{LWR@mcolvertbarsrdash}}{>}{1}% |
| 10806 |
{ tvertbarrdoubledash}{}% |
| 10807 |
\textquotedbl{}% |
| 10808 |
\LWR@tdstartstyles% |
| 10809 |
\IfValueT{#1}{% vpos? |
| 10810 |
\ifstrequal{#1}{b}% |
| 10811 |
{% |
| 10812 |
\LWR@tdaddstyle% |
| 10813 |
\LWR@print@mbox{vertical-align:bottom}% |
| 10814 |
}{}% |
| 10815 |
\ifstrequal{#1}{t}% |
| 10816 |
{% |
| 10817 |
\LWR@tdaddstyle% |
| 10818 |
\LWR@print@mbox{vertical-align:top}% |
| 10819 |
}{}% |
| 10820 |
}% vpos? |
| 10821 |
\LWR@addtabularrowcolor% |
| 10822 |
\LWR@addcmidrulewidth% |
| 10823 |
\LWR@addcdashline% |
| 10824 |
\LWR@addtabularhrulecolor% |
| 10825 |
\LWR@addmulticolvertrulecolor% |
| 10826 |
\LWR@addformatwpalignment{\LWR@origmccolspec}% |
| 10827 |
\LWR@tdendstyles% |
| 10828 |
}% end of the opening table data tag |
| 10829 |
\boolfalse{LWR@intabularmetadata}% |
| 10830 |
\LWR@parsemulticolumnalignment{\LWR@origmccolspec}{LWR@printmccoldata}% |
| 10831 |
} |
| 10832 |
|
| 10833 |
|
| 10834 |
\NewDocumentCommand{\LWR@htmlmulticolumn}{m m +m}% |
| 10835 |
{% |
| 10836 |
\LWR@tabularhtmlcolumns{\arabic{LWR@tableLaTeXcolindex}}{#1}% |
| 10837 |
\LWR@domulticolumn{#1}{\arabic{LWR@tabhtmlcoltotal}}{#2}{#3}% |
| 10838 |
\defaddtocounter{LWR@tableLaTeXcolindex}{#1}% |
| 10839 |
\defaddtocounter{LWR@tableLaTeXcolindex}{-1}% |
| 10840 |
\booltrue{LWR@skipatbang}% |
| 10841 |
} |
| 10842 |
|
| 10843 |
\providecommand*{\LTcaptype}{table} |
| 10844 |
\NewDocumentCommand{\LWR@longtabledatacaptiontag}{s o +m} |
| 10845 |
{% |
| 10846 |
\IfValueTF{#2}{% optional given? |
| 10847 |
\ifblank{#2}% optional empty? |
| 10848 |
{\LWR@setlatestname{#3}}% empty |
| 10849 |
{\LWR@setlatestname{#2}}% given and non-empty |
| 10850 |
}% optional given |
| 10851 |
{\LWR@setlatestname{#3}}% no optional |
| 10852 |
\LWR@tabularhtmlcolumns{1}{\arabic{LWR@tabletotalLaTeXcols}}% |
| 10853 |
\LWR@domulticolumn{\arabic{LWR@tabletotalLaTeXcols}}% |
| 10854 |
{\arabic{LWR@tabhtmlcoltotal}}% |
| 10855 |
{p}% |
| 10856 |
{% \LWR@domulticolumn |
| 10857 |
\IfBooleanTF{#1}% star? |
| 10858 |
{% yes star |
| 10859 |
\LWR@figcaption% |
| 10860 |
\LWR@isolate{#3}% |
| 10861 |
\endLWR@figcaption% |
| 10862 |
}% |
| 10863 |
{% No star: |
| 10864 |
\ifbool{LWR@starredlongtable}% |
| 10865 |
{% |
| 10866 |
\ifblank{#2}% TOC entry |
| 10867 |
{}% |
| 10868 |
{% |
| 10869 |
\refstepcounter{\LTcaptype}% |
| 10870 |
\protected@edef\@currentlabel{% |
| 10871 |
\@nameuse{p@\LTcaptype}\@nameuse{the\LTcaptype}% |
| 10872 |
}% |
| 10873 |
}% |
| 10874 |
}{}% |
| 10875 |
\LWR@figcaption% |
| 10876 |
\LWR@isolate{\@nameuse{fnum@\LTcaptype}}% |
| 10877 |
\CaptionSeparator% |
| 10878 |
\LWR@isolate{#3}% |
| 10879 |
\endLWR@figcaption% |
| 10880 |
\ifblank{#2}% TOC entry empty |
| 10881 |
{}% |
| 10882 |
{% TOC entry not empty |
| 10883 |
\IfNoValueTF{#2}% No TOC entry? |
| 10884 |
{% No TOC entry |
| 10885 |
\addcontentsline% |
| 10886 |
{\@nameuse{ext@\LTcaptype}}% |
| 10887 |
{\LTcaptype}% |
| 10888 |
{% |
| 10889 |
\protect\numberline% |
| 10890 |
{\LWR@isolate{\@nameuse{p@\LTcaptype}}\@nameuse{the\LTcaptype}}% |
| 10891 |
{\ignorespaces \LWR@isolate{#3}\protect\relax}% |
| 10892 |
}% |
| 10893 |
}% end of No TOC entry |
| 10894 |
{% yes TOC entry |
| 10895 |
\addcontentsline% |
| 10896 |
{\@nameuse{ext@\LTcaptype}}% |
| 10897 |
{\LTcaptype}% |
| 10898 |
{% |
| 10899 |
\protect\numberline% |
| 10900 |
{\LWR@isolate{\@nameuse{p@\LTcaptype}}\@nameuse{the\LTcaptype}}% |
| 10901 |
{\ignorespaces \LWR@isolate{#2}\protect\relax}% |
| 10902 |
}% |
| 10903 |
}% end of yes TOC entry |
| 10904 |
}% end of TOC entry not empty |
| 10905 |
}% end of no star |
| 10906 |
\booltrue{LWR@skipatbang}% |
| 10907 |
}% end of \LWR@domulticolumn |
| 10908 |
\defaddtocounter{LWR@tableLaTeXcolindex}{\value{LWR@tabletotalLaTeXcols}}% |
| 10909 |
\defaddtocounter{LWR@tableLaTeXcolindex}{-1} |
| 10910 |
|
| 10911 |
} |
| 10912 |
|
| 10913 |
|
| 10914 |
|
| 10915 |
\newcounter{LWR@tabhtmlcolindex} |
| 10916 |
\newcounter{LWR@tabhtmlcolend} |
| 10917 |
\newcounter{LWR@tabhtmlcoltotal} |
| 10918 |
|
| 10919 |
\newcommand*{\LWR@subtabularhtmlcolumns}[1]{% |
| 10920 |
\edef\LWR@atbangspec{\LWR@getexparray{LWR@colatspec}{#1}}% |
| 10921 |
\ifdefempty{\LWR@atbangspec}% |
| 10922 |
{}% |
| 10923 |
{\defaddtocounter{LWR@tabhtmlcoltotal}{1}}% |
| 10924 |
\edef\LWR@atbangspec{\LWR@getexparray{LWR@colbangspec}{#1}}% |
| 10925 |
\ifdefempty{\LWR@atbangspec}% |
| 10926 |
{}% |
| 10927 |
{\defaddtocounter{LWR@tabhtmlcoltotal}{1}}% |
| 10928 |
} |
| 10929 |
|
| 10930 |
\newcommand*{\LWR@tabularhtmlcolumns}[2]{% |
| 10931 |
\defcounter{LWR@tabhtmlcolindex}{#1}% |
| 10932 |
\defcounter{LWR@tabhtmlcoltotal}{#2}% |
| 10933 |
\defcounter{LWR@tabhtmlcolend}{#1}% |
| 10934 |
\defaddtocounter{LWR@tabhtmlcolend}{#2}% |
| 10935 |
\ifnumcomp{\value{LWR@tabhtmlcolindex}}{=}{1}{% |
| 10936 |
\LWR@subtabularhtmlcolumns{leftedge}% |
| 10937 |
}{}% |
| 10938 |
\whileboolexpr{% |
| 10939 |
test {% |
| 10940 |
\ifnumcomp{\value{LWR@tabhtmlcolindex}}{<}{\value{LWR@tabhtmlcolend}}% |
| 10941 |
}% |
| 10942 |
}% |
| 10943 |
{% |
| 10944 |
\LWR@subtabularhtmlcolumns{\arabic{LWR@tabhtmlcolindex}}% |
| 10945 |
\defaddtocounter{LWR@tabhtmlcolindex}{1}% |
| 10946 |
}% whiledo |
| 10947 |
} |
| 10948 |
\end{warpHTML} |
| 10949 |
\begin{warpHTML} |
| 10950 |
\newcommand{\multirow}[2][c]{} |
| 10951 |
\end{warpHTML} |
| 10952 |
\begin{warpall} |
| 10953 |
\AtBeginDocument{ |
| 10954 |
\LWR@traceinfo{AtBeginDocument multirowcolumn} |
| 10955 |
\@ifundefined{@xmultirow} |
| 10956 |
{ |
| 10957 |
\DeclareExpandableDocumentCommand{\LWR@print@multicolumnrow}% |
| 10958 |
{+m +m +O{c} +m +O{0} +m +O{0pt} +m}% |
| 10959 |
{}% |
| 10960 |
}% no version of multirow was loaded |
| 10961 |
{% \@xmultirow defined, so some version of multirow was loaded |
| 10962 |
\IfPackageLoadedTF{multirow}{% v2.0 or newer |
| 10963 |
\IfPackageAtLeastTF{multirow}{2016/09/01}% 2016/09/27 for v2.0 |
| 10964 |
{% v2.0+: |
| 10965 |
\DeclareExpandableDocumentCommand{\LWR@print@multicolumnrow}% |
| 10966 |
{+m +m +O{c} +m +O{0} +m +O{0pt} +m}% |
| 10967 |
{\multicolumn{#1}{#2}{\@xmultirow[#3]{#4}[#5]{#6}[#7]{#8}}}% |
| 10968 |
} |
| 10969 |
{% loaded but older, probably not executed: |
| 10970 |
\DeclareExpandableDocumentCommand{\LWR@print@multicolumnrow}% |
| 10971 |
{+m +m +O{c} +m +O{0} +m +O{0pt} +m}% |
| 10972 |
{\multicolumn{#1}{#2}{\@xmultirow{#4}[#5]{#6}[#7]{#8}}}% |
| 10973 |
} |
| 10974 |
}% packageloaded{multirow} |
| 10975 |
{% v1.6 or older did not \ProvidePackage |
| 10976 |
\DeclareExpandableDocumentCommand{\LWR@print@multicolumnrow}% |
| 10977 |
{+m +m +O{c} +m +O{0} +m +O{0pt} +m}% |
| 10978 |
{\multicolumn{#1}{#2}{\@xmultirow{#4}[#5]{#6}[#7]{#8}}}% |
| 10979 |
} |
| 10980 |
|
| 10981 |
}% \@ifundefined{@xmultirow} |
| 10982 |
|
| 10983 |
\providecommand*{\multicolumnrow}{\LWR@print@multicolumnrow} |
| 10984 |
|
| 10985 |
}% AtBeginDocument |
| 10986 |
\end{warpall} |
| 10987 |
\begin{warpHTML} |
| 10988 |
\newcommand*{\LWR@donothing}{} |
| 10989 |
\let\firsthline\relax |
| 10990 |
\let\lasthline\relax |
| 10991 |
\newcommand*{\firsthline}{} |
| 10992 |
\newcommand*{\lasthline}{} |
| 10993 |
\newcommand*{\ldelim}{} |
| 10994 |
\newcommand*{\rdelim}{} |
| 10995 |
|
| 10996 |
\end{warpHTML} |
| 10997 |
|
| 10998 |
|
| 10999 |
\begin{warpall} |
| 11000 |
\newcommand*{\TabularMacro}{} |
| 11001 |
|
| 11002 |
\end{warpall} |
| 11003 |
|
| 11004 |
\begin{warpHTML} |
| 11005 |
|
| 11006 |
\newcommand*{\ResumeTabular}{% |
| 11007 |
\boolfalse{LWR@exitingtabular}% |
| 11008 |
\boolfalse{LWR@tabularmutemods}% |
| 11009 |
\boolfalse{LWR@tabularfinalrow}% |
| 11010 |
\LWR@getmynexttoken% |
| 11011 |
} |
| 11012 |
|
| 11013 |
\end{warpHTML} |
| 11014 |
|
| 11015 |
\begin{warpprint} |
| 11016 |
|
| 11017 |
\newcommand*{\ResumeTabular}{} |
| 11018 |
|
| 11019 |
\end{warpprint} |
| 11020 |
|
| 11021 |
|
| 11022 |
\begin{warpHTML} |
| 11023 |
|
| 11024 |
\newcommand*{\LWR@tabledatacolumntag}% |
| 11025 |
{% |
| 11026 |
\LWR@traceinfo{LWR@tabledatacolumntag}% |
| 11027 |
\global\let\LWR@mynextaction\LWR@tabledatasinglecolumntag% |
| 11028 |
\ifdefequal{\LWR@mynexttoken}{\end}% |
| 11029 |
{% |
| 11030 |
\booltrue{LWR@tabularfinalrow}% |
| 11031 |
\booltrue{LWR@exitingtabular}% |
| 11032 |
}{}% |
| 11033 |
\ifdefequal{\LWR@mynexttoken}{\caption}% |
| 11034 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11035 |
\ifdefequal{\LWR@mynexttoken}{\multicolumn}% |
| 11036 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11037 |
\ifdefequal{\LWR@mynexttoken}{\multirow}% |
| 11038 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11039 |
\ifdefequal{\LWR@mynexttoken}{\multicolumnrow}% |
| 11040 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11041 |
\ifdefequal{\LWR@mynexttoken}{\noalign}% |
| 11042 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11043 |
\ifdefequal{\LWR@mynexttoken}{\mrowcell}% |
| 11044 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11045 |
\ifdefequal{\LWR@mynexttoken}{\mcolrowcell}% |
| 11046 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11047 |
\ifdefequal{\LWR@mynexttoken}{\TabularMacro}% |
| 11048 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11049 |
\ifdefequal{\LWR@mynexttoken}{\hline}% |
| 11050 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11051 |
\ifdefequal{\LWR@mynexttoken}{\firsthline}% |
| 11052 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11053 |
\ifdefequal{\LWR@mynexttoken}{\lasthline}% |
| 11054 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11055 |
\ifdefequal{\LWR@mynexttoken}{\toprule}% |
| 11056 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11057 |
\ifdefequal{\LWR@mynexttoken}{\midrule}% |
| 11058 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11059 |
\ifdefequal{\LWR@mynexttoken}{\cmidrule}% |
| 11060 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11061 |
\ifdefequal{\LWR@mynexttoken}{\morecmidrules}% |
| 11062 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11063 |
\ifdefequal{\LWR@mynexttoken}{\specialrule}% |
| 11064 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11065 |
\ifdefequal{\LWR@mynexttoken}{\cline}% |
| 11066 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11067 |
\ifdefequal{\LWR@mynexttoken}{\bottomrule}% |
| 11068 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11069 |
\ifdefequal{\LWR@mynexttoken}{\hhline}% |
| 11070 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11071 |
\ifdefequal{\LWR@mynexttoken}{\rowcolor}% |
| 11072 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11073 |
\ifdefequal{\LWR@mynexttoken}{\arrayrulecolor}% |
| 11074 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11075 |
\ifdefequal{\LWR@mynexttoken}{\doublerulesepcolor}% |
| 11076 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11077 |
\ifdefequal{\LWR@mynexttoken}{\warpprintonly}% |
| 11078 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11079 |
\ifdefequal{\LWR@mynexttoken}{\warpHTMLonly}% |
| 11080 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11081 |
\ifdefequal{\LWR@mynexttoken}{\ldelim}% |
| 11082 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11083 |
\ifdefequal{\LWR@mynexttoken}{\rdelim}% |
| 11084 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11085 |
\ifdefequal{\LWR@mynexttoken}{\hdashline}% |
| 11086 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11087 |
\ifdefequal{\LWR@mynexttoken}{\cdashline}% |
| 11088 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11089 |
\ifdefequal{\LWR@mynexttoken}{\firsthdashline}% |
| 11090 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11091 |
\ifdefequal{\LWR@mynexttoken}{\lasthdashline}% |
| 11092 |
{\global\let\LWR@mynextaction\LWR@donothing}{}% |
| 11093 |
\ifdefequal{\LWR@mynexttoken}{\par}% |
| 11094 |
{% |
| 11095 |
\global\let\LWR@mynextaction\LWR@donothing% |
| 11096 |
}{}% |
| 11097 |
\LWR@traceinfo{LWR@tabledatacolumntag: done, about to do LWR@mynextaction}% |
| 11098 |
\LWR@mynextaction% |
| 11099 |
} |
| 11100 |
|
| 11101 |
\end{warpHTML} |
| 11102 |
|
| 11103 |
|
| 11104 |
\begin{warpall} |
| 11105 |
|
| 11106 |
\newcommand*{\mrowcell}{} |
| 11107 |
|
| 11108 |
\end{warpall} |
| 11109 |
|
| 11110 |
|
| 11111 |
\begin{warpall} |
| 11112 |
|
| 11113 |
\newcommand*{\mcolrowcell}{} |
| 11114 |
|
| 11115 |
\end{warpall} |
| 11116 |
|
| 11117 |
|
| 11118 |
\begin{warpHTML} |
| 11119 |
\providecommand*{\toprule}[1][]{\hline} |
| 11120 |
\providecommand*{\midrule}[1][]{\hline} |
| 11121 |
\providecommand*{\cmidrule}{\cline} |
| 11122 |
\providecommand*{\bottomrule}[1][]{\hline} |
| 11123 |
\providecommand*{\addlinespace}[1][]{} |
| 11124 |
\providecommand*{\morecmidrules}{} |
| 11125 |
\providecommand*{\specialrule}[3]{\hline} |
| 11126 |
\LetLtxMacro\LWR@orignoalign\noalign |
| 11127 |
|
| 11128 |
\newcommand{\LWR@tabularnoalign}[1]{% |
| 11129 |
\advance\rownum\m@ne% |
| 11130 |
\LetLtxMacro\LWR@save@xcolorrowHTMLcolor\LWR@xcolorrowHTMLcolor% |
| 11131 |
\renewcommand*{\LWR@xcolorrowHTMLcolor}{}% |
| 11132 |
\multicolumn{\value{LWR@tabletotalLaTeXcols}}{l}{#1} \\ |
| 11133 |
\LetLtxMacro\LWR@xcolorrowHTMLcolor\LWR@save@xcolorrowHTMLcolor% |
| 11134 |
% \@rowc@lors% |
| 11135 |
\LWR@getmynexttoken% |
| 11136 |
} |
| 11137 |
\AtBeginDocument{ |
| 11138 |
\LWR@traceinfo{AtBeginDocument lwarp-tabls} |
| 11139 |
|
| 11140 |
\IfPackageLoadedTF{lwarp-tabls} |
| 11141 |
{ |
| 11142 |
\newcommand*{\LWR@HTMLhline}[1][]{% |
| 11143 |
\ifbool{FormatWP}% |
| 11144 |
{\LWR@docmidrule{1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 11145 |
{\defaddtocounter{LWR@hlines}{1}}% |
| 11146 |
\LWR@getmynexttoken}% |
| 11147 |
} |
| 11148 |
{ |
| 11149 |
\newcommand*{\LWR@HTMLhline}{% |
| 11150 |
\ifbool{FormatWP}% |
| 11151 |
{\LWR@docmidrule{1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 11152 |
{\defaddtocounter{LWR@hlines}{1}}% |
| 11153 |
\LWR@getmynexttoken}% |
| 11154 |
} |
| 11155 |
|
| 11156 |
}% AtBeginDocument |
| 11157 |
|
| 11158 |
\NewDocumentCommand{\LWR@HTMLcline}{m}% |
| 11159 |
{% |
| 11160 |
\LWR@docmidrule{#1}% |
| 11161 |
\LWR@maybenewtablerow% |
| 11162 |
\LWR@getmynexttoken% |
| 11163 |
}% |
| 11164 |
|
| 11165 |
\newcommand{\LWR@tabular@warpprintonly}[1]{% |
| 11166 |
\ifbool{warpingprint}{#1}{}% |
| 11167 |
\LWR@getmynexttoken% |
| 11168 |
} |
| 11169 |
|
| 11170 |
\AtBeginDocument{ |
| 11171 |
\LWR@traceinfo{AtBeginDocument NoAutoSpacing} |
| 11172 |
\@ifundefined{NoAutoSpacing}% |
| 11173 |
{% no babel-french |
| 11174 |
\newcommand*{\LWR@nullifyNoAutoSpacing}{} |
| 11175 |
}% no babel-french |
| 11176 |
{% yes babel-french |
| 11177 |
\newcommand*{\LWR@nullifyNoAutoSpacing}{% |
| 11178 |
\NoAutoSpacing% |
| 11179 |
\renewcommand*{\NoAutoSpacing}{}% |
| 11180 |
\renewcommand*{\LWR@FBcancel}{}% |
| 11181 |
} |
| 11182 |
}% yes babel-french |
| 11183 |
}% AtBeginDocument |
| 11184 |
|
| 11185 |
\StartDefiningTabulars |
| 11186 |
|
| 11187 |
\NewDocumentCommand{\LWR@HTML@@tabular}{d<> o m} |
| 11188 |
{% |
| 11189 |
\LWR@traceinfo{LWR@HTML@@tabular started}% |
| 11190 |
\LWR@spanwarnformat{tabular}% |
| 11191 |
\addtocounter{LWR@tabulardepth}{1}% |
| 11192 |
\boolfalse{LWR@startedrow}% |
| 11193 |
\defcounter{LWR@hlines}{0}% |
| 11194 |
\defcounter{LWR@hdashedlines}{0}% |
| 11195 |
\boolfalse{LWR@doingtbrule}% |
| 11196 |
\boolfalse{LWR@doingcmidrule}% |
| 11197 |
\LWR@nullifyNoAutoSpacing% |
| 11198 |
\boolfalse{LWR@exitingtabular}% |
| 11199 |
\boolfalse{LWR@tabularmutemods}% |
| 11200 |
\boolfalse{LWR@tabularfinalrow}% |
| 11201 |
\boolfalse{LWR@usedmultirow}% |
| 11202 |
\boolfalse{LWR@foundmrowcell}% |
| 11203 |
\renewcommand*{\LWR@multicoltext}{}% |
| 11204 |
\booltrue{LWR@intabularmetadata}% |
| 11205 |
\ifbool{LWR@in@multirow@par}% |
| 11206 |
{\leavevmode\LWR@orignewline}% |
| 11207 |
{\LWR@forcenewpage}% |
| 11208 |
\boolfalse{LWR@in@multirow@par}% |
| 11209 |
\LWR@htmlblocktag{table}% |
| 11210 |
\LWR@parsetablecols{#3}% |
| 11211 |
\LWR@stoppars% |
| 11212 |
\LWR@htmltag{tr style=\textquotedbl{}display:none\textquotedbl}% |
| 11213 |
\LWR@htmltag{th}.\LWR@htmltag{/th}% |
| 11214 |
\LWR@htmltag{/tr}% |
| 11215 |
\LWR@orignewline% |
| 11216 |
\LWR@forceemptyline% |
| 11217 |
\defcounter{LWR@tableLaTeXcolindex}{1}% |
| 11218 |
\global\boolfalse{LWR@tabularcelladded}% |
| 11219 |
\LWR@clearmidrules% |
| 11220 |
\LetLtxMacro{\\}{\LWR@tabularendofline}% |
| 11221 |
\LetLtxMacro\warpprintonly\LWR@tabular@warpprintonly% |
| 11222 |
\LetLtxMacro\arrayrulecolor\arrayrulecolornexttoken% |
| 11223 |
\LetLtxMacro\doublerulesepcolor\doublerulesepcolornexttoken% |
| 11224 |
\def\LWR@columnHTMLcolor{}% |
| 11225 |
\def\LWR@rowHTMLcolor{}% |
| 11226 |
\def\LWR@cellHTMLcolor{}% |
| 11227 |
\@rowcolors% |
| 11228 |
\ifdefvoid{\LWR@ruleHTMLcolor}% |
| 11229 |
{\edef\LWR@vertruleHTMLcolor{black}}% |
| 11230 |
{\edef\LWR@vertruleHTMLcolor{\LWR@origpound\LWR@ruleHTMLcolor}}% |
| 11231 |
\defcounter{LWR@cellcolordepth}{0}% |
| 11232 |
\LWR@traceinfo{LWR@@HTML@tabular: redefining macros}% |
| 11233 |
\LetLtxMacro\noalign\LWR@tabularnoalign% |
| 11234 |
\LetLtxMacro\hline\LWR@HTMLhline% |
| 11235 |
\LetLtxMacro\cline\LWR@HTMLcline% |
| 11236 |
\DeclareDocumentCommand{\hdashline}{o}{% |
| 11237 |
\ifbool{FormatWP}% |
| 11238 |
{\LWR@docdashline{1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 11239 |
{\defaddtocounter{LWR@hdashedlines}{1}}% |
| 11240 |
\LWR@getmynexttoken% |
| 11241 |
}% |
| 11242 |
\DeclareDocumentCommand{\cdashline}{m}{% |
| 11243 |
\LWR@docdashline{##1}\LWR@getmynexttoken% |
| 11244 |
}% |
| 11245 |
\DeclareDocumentCommand{\firsthdashline}{o}{% |
| 11246 |
\ifbool{FormatWP}% |
| 11247 |
{\LWR@docdashline{1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 11248 |
{\defaddtocounter{LWR@hdashedlines}{1}}% |
| 11249 |
\LWR@getmynexttoken% |
| 11250 |
}% |
| 11251 |
\DeclareDocumentCommand{\lasthdashline}{o}{% |
| 11252 |
\ifbool{FormatWP}% |
| 11253 |
{\LWR@docdashline{1-\arabic{LWR@tabletotalLaTeXcols}}}% |
| 11254 |
{\defaddtocounter{LWR@hdashedlines}{1}}% |
| 11255 |
\LWR@getmynexttoken% |
| 11256 |
}% |
| 11257 |
\renewcommand{\multicolumn}{\LWR@htmlmulticolumn}% |
| 11258 |
\renewcommand*{\mrowcell}{% |
| 11259 |
\LWR@maybenewtablerow% |
| 11260 |
\LWR@tabularleftedge% |
| 11261 |
\booltrue{LWR@skippingmrowcell}% |
| 11262 |
\booltrue{LWR@foundmrowcell}% |
| 11263 |
}% |
| 11264 |
\renewcommand*{\mcolrowcell}{% |
| 11265 |
\LWR@maybenewtablerow% |
| 11266 |
\booltrue{LWR@skippingmcolrowcell}% |
| 11267 |
\booltrue{LWR@foundmrowcell}% |
| 11268 |
}% |
| 11269 |
\LetLtxMacro\caption\LWR@longtabledatacaptiontag% |
| 11270 |
\boolfalse{LWR@tableparcell}% |
| 11271 |
\boolfalse{LWR@skippingmrowcell}% |
| 11272 |
\boolfalse{LWR@skippingmcolrowcell}% |
| 11273 |
\boolfalse{LWR@skipatbang}% |
| 11274 |
\boolfalse{LWR@emptyatbang}% |
| 11275 |
\StartDefiningTabulars% |
| 11276 |
\protected\gdef&{\LWR@tabularampersand}% |
| 11277 |
\booltrue{LWR@forceminipagefullwidth}% |
| 11278 |
\addtocounter{LWR@tabularpardepth}{1}% |
| 11279 |
\LWR@traceinfo{LWR@@HTML@tabular: about to LWR@getmynexttoken}% |
| 11280 |
\LWR@getmynexttoken% |
| 11281 |
}% |
| 11282 |
\newcommand*{\LWR@HTML@endtabular} |
| 11283 |
{% |
| 11284 |
\LWR@traceinfo{LWR@HTML@endtabular}% |
| 11285 |
\addtocounter{LWR@tabularpardepth}{-1}% |
| 11286 |
\ifboolexpr{% |
| 11287 |
test {% |
| 11288 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{<}% |
| 11289 |
{\value{LWR@tabletotalLaTeXcols}} |
| 11290 |
} or % |
| 11291 |
(% |
| 11292 |
bool{LWR@intabularmetadata} and% |
| 11293 |
not bool{LWR@tabularcelladded} and% |
| 11294 |
test {% |
| 11295 |
\ifnumcomp{\value{LWR@tableLaTeXcolindex}}{=}% |
| 11296 |
{\value{LWR@tabletotalLaTeXcols}}% |
| 11297 |
}% |
| 11298 |
)% |
| 11299 |
}% |
| 11300 |
{% |
| 11301 |
\booltrue{LWR@tabularfinalrow}% |
| 11302 |
\LWR@tabularfinishrow% |
| 11303 |
\boolfalse{LWR@tabularfinalrow}% |
| 11304 |
}% |
| 11305 |
{% |
| 11306 |
\LWR@closetabledatacell% |
| 11307 |
}% |
| 11308 |
\ifbool{LWR@startedrow}% |
| 11309 |
{\LWR@htmltag{/tr}\LWR@orignewline}% |
| 11310 |
{}% |
| 11311 |
\@rowc@lors% |
| 11312 |
\LWR@htmlblocktag{/table}% |
| 11313 |
\boolfalse{LWR@intabularmetadata}% |
| 11314 |
\addtocounter{LWR@tabulardepth}{-1}% |
| 11315 |
\ifnumequal{\value{LWR@tabulardepth}}{0}{% |
| 11316 |
\protected\gdef&{\LWR@origampmacro}% |
| 11317 |
\StopDefiningTabulars% |
| 11318 |
}{}% |
| 11319 |
\ifbool{LWR@usedmultirow}{% |
| 11320 |
\ifbool{LWR@foundmrowcell}% |
| 11321 |
{\relax}% |
| 11322 |
{% |
| 11323 |
\PackageError{lwarp}% |
| 11324 |
{% |
| 11325 |
When using \protect\multirow, \protect\multicolumnrow,\MessageBreak |
| 11326 |
or the bigdelim package,\MessageBreak |
| 11327 |
place \protect\mrowcell\space or \protect\mcolrowcell\MessageBreak |
| 11328 |
in empty cells which are to be skipped.\MessageBreak |
| 11329 |
See the Lwarp package documentation:\MessageBreak |
| 11330 |
"Special cases and limitations" -> "Tabular" |
| 11331 |
}% |
| 11332 |
{% |
| 11333 |
See the Lwarp package documentation:\MessageBreak |
| 11334 |
"Special cases and limitations" -> "Tabular". |
| 11335 |
}% |
| 11336 |
}% |
| 11337 |
}{}% |
| 11338 |
\LWR@traceinfo{LWR@HTML@endtabular finished}% |
| 11339 |
} |
| 11340 |
|
| 11341 |
\csletcs{LWR@HTML@endtabular*}{LWR@HTML@endtabular} |
| 11342 |
|
| 11343 |
\StopDefiningTabulars |
| 11344 |
\AtBeginDocument{ |
| 11345 |
\LWR@traceinfo{AtBeginDocument tabular} |
| 11346 |
\LetLtxMacro\LWR@origendtabular\endtabular |
| 11347 |
\csletcs{LWR@origendtabular*}{endtabular*} |
| 11348 |
\LWR@formatted{@tabular} |
| 11349 |
\LWR@formatted{endtabular} |
| 11350 |
\LWR@formatted{endtabular*} |
| 11351 |
} |
| 11352 |
|
| 11353 |
\end{warpHTML} |
| 11354 |
|
| 11355 |
|
| 11356 |
\begin{warpHTML} |
| 11357 |
|
| 11358 |
|
| 11359 |
\def\@currentlabelname{\linkhomename}% |
| 11360 |
\def\LWR@stripperiod#1.\ltx@empty#2\@nil{#1}% |
| 11361 |
\newcommand*{\LWR@setlatestname}[1]{% |
| 11362 |
\GetTitleStringExpand{#1}% |
| 11363 |
\edef\@currentlabelname{\detokenize\expandafter{\GetTitleStringResult}}% |
| 11364 |
\edef\@currentlabelname{% |
| 11365 |
\expandafter\LWR@stripperiod\@currentlabelname% |
| 11366 |
\ltx@empty.\ltx@empty\@nil% |
| 11367 |
}% |
| 11368 |
} |
| 11369 |
|
| 11370 |
\def\LWR@setref#1#2#3{% |
| 11371 |
\ifx#1\relax% |
| 11372 |
??% |
| 11373 |
\else% |
| 11374 |
\expandafter#2#1% |
| 11375 |
\fi} |
| 11376 |
\newcommand*{\LWR@nameref}[1]{% |
| 11377 |
\begingroup% |
| 11378 |
\LWR@nullifyfootnotes% |
| 11379 |
\expandafter\LWR@setref\csname r@#1@lwarp\endcsname\LWR@firstoffive{#1}% |
| 11380 |
\endgroup% |
| 11381 |
} |
| 11382 |
\newcommand*{\LWR@currentautosecpageref}[1]{% |
| 11383 |
\expandafter\LWR@setref\csname r@#1@lwarp\endcsname\LWR@secondoffive{#1}% |
| 11384 |
} |
| 11385 |
\newcommand*{\LWR@htmlfileref}[1]{% |
| 11386 |
\expandafter\LWR@setref\csname r@#1@lwarp\endcsname\LWR@thirdoffive{#1}% |
| 11387 |
} |
| 11388 |
\newcommand*{\LWR@lateximagedepthref}[1]{% |
| 11389 |
\expandafter\LWR@setref\csname r@#1@lwarp@image\endcsname\LWR@firstoffive{#1}% |
| 11390 |
} |
| 11391 |
\newcommand*{\LWR@lateximagenumberref}[1]{% |
| 11392 |
\expandafter\LWR@setref\csname r@#1@lwarp@image\endcsname\LWR@secondoffive{#1}% |
| 11393 |
} |
| 11394 |
\newcommand*{\LWR@write@lwarplabel}[1]{% |
| 11395 |
\LWR@traceinfo{LWR@write@lwarplabel !#1!}% |
| 11396 |
\LWR@setlatestname{\@currentlabelname}% |
| 11397 |
\@bsphack% |
| 11398 |
\protected@write\@auxout{}% |
| 11399 |
{% |
| 11400 |
\string\newlabel{#1@lwarp}{% |
| 11401 |
{\@currentlabelname}% |
| 11402 |
{\theLWR@currentautosecpage}% |
| 11403 |
{% |
| 11404 |
\ifbool{FileSectionNames}% |
| 11405 |
{\LWR@thisfilename}% |
| 11406 |
{\arabic{LWR@htmlfilenumber}}% |
| 11407 |
}% |
| 11408 |
{}% |
| 11409 |
{}% |
| 11410 |
}% |
| 11411 |
}% |
| 11412 |
\protected@write\@auxout{}% |
| 11413 |
{% |
| 11414 |
\string\newlabel{#1@lwarp@image}{% |
| 11415 |
{\arabic{LWR@lateximagedepth}}% |
| 11416 |
{\arabic{LWR@lateximagenumber}}% |
| 11417 |
{}% |
| 11418 |
{}% |
| 11419 |
{}% |
| 11420 |
}% |
| 11421 |
}% |
| 11422 |
\@esphack% |
| 11423 |
} |
| 11424 |
|
| 11425 |
|
| 11426 |
\newcounter{LWR@linkdepth} |
| 11427 |
\setcounter{LWR@linkdepth}{0} |
| 11428 |
|
| 11429 |
\newcommand*{\LWR@label@subcreatetag}{% |
| 11430 |
\LWR@htmltag{a \LWR@print@mbox{id=\textquotedbl\LWR@sanitized\textquotedbl}}% |
| 11431 |
\LWR@htmltag{/a}% |
| 11432 |
} |
| 11433 |
|
| 11434 |
\newcommand*{\LWR@label@inmathcomment}{% |
| 11435 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 11436 |
{% |
| 11437 |
\mbox{% |
| 11438 |
\ifdef{\totwidth@}{\ifbool{LWR@amsmultline}{}{\hspace*{\totwidth@}}}{}% |
| 11439 |
\LWR@htmlclosecomment% |
| 11440 |
\LWR@label@subcreatetag% |
| 11441 |
\LWR@htmlopencomment% |
| 11442 |
}% mbox |
| 11443 |
}% mathjax |
| 11444 |
{% |
| 11445 |
\LWR@label@subcreatetag% |
| 11446 |
}% |
| 11447 |
} |
| 11448 |
|
| 11449 |
\newcommand*{\LWR@label@createtag}[1]{% |
| 11450 |
\LWR@traceinfo{LWR@label@createtag !#1!}% |
| 11451 |
\ifboolexpr{ |
| 11452 |
test {\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}} |
| 11453 |
or |
| 11454 |
test {\ifnumcomp{\value{LWR@linkdepth}}{>}{0}} |
| 11455 |
}% nested HTML link tags? |
| 11456 |
{}% |
| 11457 |
{% not lateximage or HTML link |
| 11458 |
\addtocounter{LWR@linkdepth}{1}% |
| 11459 |
\LWR@sanitize{#1}% |
| 11460 |
\ifbool{LWR@insidemathcomment}% |
| 11461 |
{% inside HTML math comment |
| 11462 |
\LWR@label@inmathcomment% |
| 11463 |
}% inside HTML math comment |
| 11464 |
{% not inside HTML math comment |
| 11465 |
\ifbool{LWR@doingstartpars}% |
| 11466 |
{% pars allowed |
| 11467 |
\ifbool{LWR@doingapar}% |
| 11468 |
{% par started |
| 11469 |
\LWR@label@subcreatetag% |
| 11470 |
}% par started |
| 11471 |
{% par not started |
| 11472 |
\LWR@stoppars% |
| 11473 |
\LWR@label@subcreatetag% |
| 11474 |
\LWR@startpars% |
| 11475 |
}% par not started |
| 11476 |
}% pars allowed |
| 11477 |
{% pars not allowed |
| 11478 |
\LWR@label@subcreatetag% |
| 11479 |
}% pars not allowed |
| 11480 |
}% not inside HTML math comment |
| 11481 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11482 |
}% not lateximage or HTML link |
| 11483 |
} |
| 11484 |
\newcommand*{\LWR@new@label}[1]{% |
| 11485 |
\LWR@traceinfo{LWR@new@label: starting}% |
| 11486 |
\LWR@traceinfo{LWR@new@label: !#1!}% |
| 11487 |
\LWR@orig@label{#1}% |
| 11488 |
\LWR@traceinfo{% |
| 11489 |
LWR@new@label: filesectionnames is % |
| 11490 |
\ifbool{FileSectionNames}{true}{false}% |
| 11491 |
}% |
| 11492 |
\LWR@traceinfo{% |
| 11493 |
LWR@new@label: LWR@thisfilename is !\LWR@thisfilename!% |
| 11494 |
}% |
| 11495 |
\LWR@traceinfo{% |
| 11496 |
LWR@new@label: LWR@htmlfilenumber is \arabic{LWR@htmlfilenumber}% |
| 11497 |
}% |
| 11498 |
\LWR@write@lwarplabel{#1}% |
| 11499 |
\LWR@label@createtag{#1}% |
| 11500 |
% \@esphack% |
| 11501 |
\LWR@traceinfo{LWR@new@label: done}% |
| 11502 |
} |
| 11503 |
|
| 11504 |
|
| 11505 |
\newcommand*{\LWR@addlinktitle}{% |
| 11506 |
\ifdefvoid{\LWR@ThisAltText}{}{ % space |
| 11507 |
title=\textquotedbl\LWR@ThisAltText\textquotedbl\ % space |
| 11508 |
\gdef\LWR@ThisAltText{}% |
| 11509 |
}% |
| 11510 |
} |
| 11511 |
|
| 11512 |
\newcommand*{\LWR@startref}[1] |
| 11513 |
{% |
| 11514 |
\LWR@sanitize{#1}% |
| 11515 |
\LWR@traceinfo{LWR@startref A: !#1!}% |
| 11516 |
\LWR@htmltag% |
| 11517 |
{% |
| 11518 |
a href=\textquotedbl% |
| 11519 |
\LWR@traceinfo{LWR@startref B}% |
| 11520 |
\LWR@print@mbox{\LWR@htmlrefsectionfilename{#1}}% |
| 11521 |
\LWR@traceinfo{LWR@startref C}% |
| 11522 |
\LWR@origpound% |
| 11523 |
\LWR@traceinfo{LWR@startref D: !#1!}% |
| 11524 |
\ifcsundef{r@#1@lwarp}% |
| 11525 |
{% |
| 11526 |
\LWR@traceinfo{LWR@startref D0: ??}% |
| 11527 |
??% |
| 11528 |
}% |
| 11529 |
{% |
| 11530 |
\ifnumgreater{\LWR@lateximagedepthref{#1}}{0}% |
| 11531 |
{% |
| 11532 |
lateximage-\BaseJobname-\LWR@lateximagenumberref{#1}% |
| 11533 |
}% |
| 11534 |
{% |
| 11535 |
\LWR@traceinfo{LWR@startref D3}% |
| 11536 |
\LWR@print@mbox{\LWR@sanitized}% |
| 11537 |
}% |
| 11538 |
}% |
| 11539 |
\LWR@traceinfo{LWR@startref E}% |
| 11540 |
\textquotedbl% |
| 11541 |
\LWR@addlinktitle% |
| 11542 |
}% |
| 11543 |
\LWR@traceinfo{LWR@startref F}% |
| 11544 |
} |
| 11545 |
|
| 11546 |
\NewDocumentCommand{\LWR@subnewref}{m m}{% |
| 11547 |
\LWR@traceinfo{LWR@subnewref #1 #2}% |
| 11548 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11549 |
{}% |
| 11550 |
{% |
| 11551 |
\addtocounter{LWR@linkdepth}{1}% |
| 11552 |
\LWR@startref{#1}% |
| 11553 |
\LWR@print@ref{#2}% |
| 11554 |
\LWR@htmltag{/a}% |
| 11555 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11556 |
}% |
| 11557 |
} |
| 11558 |
|
| 11559 |
\NewDocumentCommand{\LWR@HTML@ref}{s m}{% |
| 11560 |
\LWR@traceinfo{LWR@HTML@ref !#2!}% |
| 11561 |
\IfBooleanTF{#1}% |
| 11562 |
{\LWR@print@ref{#2}}% |
| 11563 |
{\LWR@subnewref{#2}{#2}}% |
| 11564 |
} |
| 11565 |
|
| 11566 |
\AtBeginDocument{% **8* |
| 11567 |
\LWR@traceinfo{AtBeginDocument ref} |
| 11568 |
\LWR@formatted{ref} |
| 11569 |
} |
| 11570 |
|
| 11571 |
\NewDocumentCommand{\LWR@HTML@Ref}{s m}{% |
| 11572 |
\LWR@traceinfo{LWR@HTML@Ref !#2!}% |
| 11573 |
\IfBooleanTF{#1}% |
| 11574 |
{\LWR@print@Ref{#2}}% |
| 11575 |
{\LWR@subnewref{#2}{#2}}% |
| 11576 |
} |
| 11577 |
|
| 11578 |
\AtBeginDocument{% **8* |
| 11579 |
\LWR@formatted{Ref} |
| 11580 |
} |
| 11581 |
\NewDocumentCommand{\LWR@refwithsection}{s m}{% |
| 11582 |
\LWR@traceinfo{LWR@refwithsection !#2!}% |
| 11583 |
\IfBooleanTF{#1}% |
| 11584 |
{\LWR@print@ref{\BaseJobname-autopage-\LWR@currentautosecpageref{#2}}}% |
| 11585 |
{% not starred |
| 11586 |
\ifstrequal{#2}{Doc-Start}% |
| 11587 |
{% |
| 11588 |
\LWR@startref{\BaseJobname-autopage-1}% |
| 11589 |
*% |
| 11590 |
\LWR@htmltag{/a}% |
| 11591 |
}% |
| 11592 |
{% not Doc-Start |
| 11593 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11594 |
{}% |
| 11595 |
{% not nested |
| 11596 |
\addtocounter{LWR@linkdepth}{1}% |
| 11597 |
\LWR@startref{#2}% |
| 11598 |
\edef\@tempa{\LWR@currentautosecpageref{#2}}% |
| 11599 |
\ifdefstring{\@tempa}{??}% |
| 11600 |
{??}% |
| 11601 |
{% not ?? |
| 11602 |
\edef\@tempa{\csexpandonce{r@\BaseJobname-autopage-\@tempa}}% |
| 11603 |
\expandafter\LWR@edeffirstoffive\@tempa% |
| 11604 |
\expandafter\ifblank\expandafter{\@tempa}% |
| 11605 |
{*} |
| 11606 |
{% |
| 11607 |
\LWR@print@ref{% |
| 11608 |
\BaseJobname-autopage-\LWR@currentautosecpageref{#2}% |
| 11609 |
}% |
| 11610 |
}% |
| 11611 |
}% not ?? |
| 11612 |
\LWR@htmltag{/a}% |
| 11613 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11614 |
}% not nested |
| 11615 |
}% not Doc-Start |
| 11616 |
}% not starred |
| 11617 |
} |
| 11618 |
\CustomizeMathJax{\let\LWRref\ref} |
| 11619 |
\CustomizeMathJax{\renewcommand{\ref}{\ifstar\LWRref\LWRref}} |
| 11620 |
\newcommand*{\pagerefPageFor}{see } |
| 11621 |
\NewDocumentCommand{\LWR@new@pageref}{s m}{% |
| 11622 |
\IfBooleanTF{#1}% |
| 11623 |
{(\pagerefPageFor\LWR@print@ref{#2})}% |
| 11624 |
{(\cpageref{#2})}% |
| 11625 |
} |
| 11626 |
|
| 11627 |
\providecommand{\nameref}[1]{}% |
| 11628 |
|
| 11629 |
\renewrobustcmd*{\nameref}[1]{% |
| 11630 |
\LWR@traceinfo{nameref}% |
| 11631 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11632 |
{}% |
| 11633 |
{% |
| 11634 |
\addtocounter{LWR@linkdepth}{1}% |
| 11635 |
\LWR@startref{#1}% |
| 11636 |
\LWR@traceinfo{nameref B}% |
| 11637 |
\LWR@nameref{#1}% |
| 11638 |
\LWR@traceinfo{nameref C}% |
| 11639 |
\LWR@htmltag{/a}% |
| 11640 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11641 |
}% |
| 11642 |
\LWR@traceinfo{nameref: done}% |
| 11643 |
} |
| 11644 |
|
| 11645 |
\LetLtxMacro\Nameref\nameref |
| 11646 |
|
| 11647 |
\def\NR@gettitle#1{% |
| 11648 |
\GetTitleString{#1}% |
| 11649 |
\let\@currentlabelname\GetTitleStringResult% |
| 11650 |
} |
| 11651 |
|
| 11652 |
|
| 11653 |
|
| 11654 |
|
| 11655 |
\AtBeginDocument{ |
| 11656 |
\LWR@traceinfo{AtBeginDocument @currentHref} |
| 11657 |
\def\@currentHref{\BaseJobname-autopage-\theLWR@previousautopagelabel}% |
| 11658 |
} |
| 11659 |
|
| 11660 |
\newcommand*{\LWR@linkcatcodes}{% |
| 11661 |
\catcode`\#=12% |
| 11662 |
\catcode`\%=12% |
| 11663 |
\catcode`\&=12% |
| 11664 |
\catcode`\~=12% |
| 11665 |
\catcode`\_=12% |
| 11666 |
\LWR@hook@processingtags% |
| 11667 |
} |
| 11668 |
|
| 11669 |
\newcommand*{\LWR@linkmediacatcodes}{% |
| 11670 |
\catcode`\#=12% |
| 11671 |
\catcode`\%=12% |
| 11672 |
\catcode`\~=12% |
| 11673 |
\catcode`\_=12% |
| 11674 |
\LWR@hook@processingtags% |
| 11675 |
} |
| 11676 |
|
| 11677 |
\NewDocumentCommand{\LWR@subhyperref}{m}{% |
| 11678 |
\LWR@traceinfo{LWR@subhyperref !#1!}% |
| 11679 |
\edef\tmpb{\detokenize\expandafter{#1}}% |
| 11680 |
\LWR@HTMLsanitize@tmpb% |
| 11681 |
\LWR@htmltag{% |
| 11682 |
a href=\textquotedbl\tmpb\textquotedbl\ % space |
| 11683 |
\LWR@addlinktitle % space |
| 11684 |
target=\textquotedbl\_{}blank\textquotedbl\ % space |
| 11685 |
}% |
| 11686 |
} |
| 11687 |
|
| 11688 |
\newcommand{\LWR@subhyperreftext@sanitized}[1]{% |
| 11689 |
\edef\tmpb{#1}% |
| 11690 |
\LWR@HTMLsanitize@tmpb% |
| 11691 |
\tmpb% |
| 11692 |
\LWR@htmltag{/a}% |
| 11693 |
\LWR@ensuredoingapar% |
| 11694 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11695 |
} |
| 11696 |
|
| 11697 |
\newcommand{\LWR@subhyperreftext@unsanitized}[1]{% |
| 11698 |
#1% |
| 11699 |
\LWR@htmltag{/a}% |
| 11700 |
\LWR@ensuredoingapar% |
| 11701 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11702 |
} |
| 11703 |
|
| 11704 |
\NewDocumentCommand{\LWR@subhyperrefclass}{m +m m}{% |
| 11705 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11706 |
{}% |
| 11707 |
{% |
| 11708 |
\addtocounter{LWR@linkdepth}{1}% |
| 11709 |
\LWR@htmltag{% |
| 11710 |
a % space |
| 11711 |
href=\textquotedbl\begingroup\@sanitize#1\endgroup\textquotedbl\ % space |
| 11712 |
class=\textquotedbl#3\textquotedbl\ % space |
| 11713 |
\LWR@addlinktitle % space |
| 11714 |
}\LWR@orignewline% |
| 11715 |
#2% |
| 11716 |
\LWR@htmltag{/a}% |
| 11717 |
\addtocounter{LWR@linkdepth}{-1}% |
| 11718 |
\LWR@ensuredoingapar% |
| 11719 |
}% |
| 11720 |
} |
| 11721 |
|
| 11722 |
\DeclareDocumentCommand{\LWR@hrefb}{O{} m}{% |
| 11723 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11724 |
{% |
| 11725 |
\endgroup% |
| 11726 |
\let\LWR@tempnext\@gobble% |
| 11727 |
}% |
| 11728 |
{% |
| 11729 |
\addtocounter{LWR@linkdepth}{1}% |
| 11730 |
\LWR@ensuredoingapar% |
| 11731 |
\LWR@subhyperref{#2}% |
| 11732 |
\endgroup% restore catcodes |
| 11733 |
\let\LWR@tempnext\LWR@subhyperreftext@unsanitized% takes the following text as an argument |
| 11734 |
}% |
| 11735 |
\LWR@tempnext% |
| 11736 |
} |
| 11737 |
|
| 11738 |
\newrobustcmd*{\LWR@href}{% |
| 11739 |
\begingroup% |
| 11740 |
\LWR@linkcatcodes% |
| 11741 |
\LWR@hrefb% |
| 11742 |
} |
| 11743 |
|
| 11744 |
\DeclareDocumentCommand{\LWR@hrefb@sanitized}{O{} m}{% |
| 11745 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11746 |
{% |
| 11747 |
\endgroup% |
| 11748 |
\let\LWR@tempnext\@gobble% |
| 11749 |
}% |
| 11750 |
{% |
| 11751 |
\addtocounter{LWR@linkdepth}{1}% |
| 11752 |
\LWR@ensuredoingapar% |
| 11753 |
\LWR@subhyperref{#2}% |
| 11754 |
\endgroup% restore catcodes |
| 11755 |
\let\LWR@tempnext\LWR@subhyperreftext@sanitized% takes the following text as an argument |
| 11756 |
}% |
| 11757 |
\LWR@tempnext% |
| 11758 |
} |
| 11759 |
|
| 11760 |
\newrobustcmd*{\LWR@href@sanitized}{% |
| 11761 |
\begingroup% |
| 11762 |
\LWR@linkcatcodes% |
| 11763 |
\LWR@hrefb@sanitized% |
| 11764 |
} |
| 11765 |
|
| 11766 |
\DeclareDocumentCommand{\LWR@hrefb@partsanitized}{O{} m}{% |
| 11767 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 11768 |
{% |
| 11769 |
\endgroup% |
| 11770 |
\let\LWR@tempnext\@gobble% |
| 11771 |
}% |
| 11772 |
{% |
| 11773 |
\addtocounter{LWR@linkdepth}{1}% |
| 11774 |
\LWR@ensuredoingapar% |
| 11775 |
\LWR@subhyperref{#2}% |
| 11776 |
\endgroup% restore catcodes |
| 11777 |
\let\LWR@tempnext\LWR@subhyperreftext@unsanitized% takes the following text as an argument |
| 11778 |
}% |
| 11779 |
\LWR@tempnext% |
| 11780 |
} |
| 11781 |
|
| 11782 |
\newrobustcmd*{\LWR@href@partsanitized}{% |
| 11783 |
\begingroup% |
| 11784 |
\LWR@linkcatcodes% |
| 11785 |
\LWR@hrefb@partsanitized% |
| 11786 |
} |
| 11787 |
|
| 11788 |
\newcommand*{\LWR@nolinkurlb}[1]{% |
| 11789 |
\LWR@ensuredoingapar% |
| 11790 |
\edef\tmpb{#1}% |
| 11791 |
\LWR@HTMLsanitize@tmpb% |
| 11792 |
\tmpb% |
| 11793 |
\endgroup% |
| 11794 |
} |
| 11795 |
|
| 11796 |
\newrobustcmd*{\LWR@nolinkurl}{% |
| 11797 |
\begingroup% |
| 11798 |
\LWR@linkcatcodes% |
| 11799 |
\LWR@nolinkurlb% |
| 11800 |
} |
| 11801 |
|
| 11802 |
\DeclareDocumentCommand{\LWR@urlb}{m}{% |
| 11803 |
\LWR@ensuredoingapar% |
| 11804 |
\LWR@href@sanitized{#1}{#1}% |
| 11805 |
\endgroup% |
| 11806 |
} |
| 11807 |
|
| 11808 |
\newrobustcmd*{\LWR@url}{% |
| 11809 |
\begingroup% |
| 11810 |
\LWR@linkcatcodes% |
| 11811 |
\LWR@urlb% |
| 11812 |
} |
| 11813 |
|
| 11814 |
\newcommand*{\LWR@subinlineimage}[6]{% |
| 11815 |
\begingroup% |
| 11816 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 11817 |
\ifblank{#6}% ARIA role |
| 11818 |
{\renewcommand*{\LWR@tempone}{}}% |
| 11819 |
{\renewcommand*{\LWR@tempone}{role=\textquotedbl#6\textquotedbl\LWR@indentHTML}}% |
| 11820 |
\ifblank{#1}% alt text |
| 11821 |
{% alt is file name |
| 11822 |
\LWR@htmltag{img \LWR@indentHTML |
| 11823 |
src=\textquotedbl#3.#4\textquotedbl \LWR@indentHTML |
| 11824 |
alt=\textquotedbl#3\textquotedbl \LWR@indentHTML |
| 11825 |
\LWR@tempone |
| 11826 |
style=\textquotedbl#5\textquotedbl \LWR@indentHTML |
| 11827 |
class=\textquotedbl#2\textquotedbl \LWR@orignewline |
| 11828 |
}% |
| 11829 |
}% |
| 11830 |
{% alt is as given |
| 11831 |
\def\tmpb{#1}% |
| 11832 |
\LWR@HTMLsanitize@tmpb% |
| 11833 |
\LWR@htmltag{img \LWR@indentHTML |
| 11834 |
src=\textquotedbl#3.#4\textquotedbl \LWR@indentHTML |
| 11835 |
alt=\textquotedbl\tmpb\textquotedbl \LWR@indentHTML |
| 11836 |
\LWR@tempone |
| 11837 |
style=\textquotedbl#5\textquotedbl \LWR@indentHTML |
| 11838 |
class=\textquotedbl#2\textquotedbl \LWR@orignewline |
| 11839 |
}% |
| 11840 |
}% |
| 11841 |
\endgroup% |
| 11842 |
} |
| 11843 |
|
| 11844 |
\end{warpHTML} |
| 11845 |
|
| 11846 |
|
| 11847 |
|
| 11848 |
|
| 11849 |
|
| 11850 |
|
| 11851 |
\begin{warpHTML} |
| 11852 |
|
| 11853 |
\NewDocumentCommand{\LWR@floatbegin}{m o}{% |
| 11854 |
\LWR@spanwarninvalid{float}% |
| 11855 |
\ifbool{FormatWP}{\newline}{}% |
| 11856 |
\LWR@stoppars% |
| 11857 |
\addtocounter{LWR@thisautoid}{1}% |
| 11858 |
\booltrue{LWR@freezethisautoid}% |
| 11859 |
\begingroup% |
| 11860 |
\LWR@print@raggedright% |
| 11861 |
\LWR@htmltag{% |
| 11862 |
figure id=\textquotedbl% |
| 11863 |
\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}% |
| 11864 |
\textquotedbl\ % space |
| 11865 |
class=\textquotedbl#1 \@nameuse{LWR@floatstyle@#1}\textquotedbl% |
| 11866 |
}% |
| 11867 |
\ifbool{FormatWP}{% |
| 11868 |
\LWR@orignewline% |
| 11869 |
\LWR@BlockClassWP{}{}{wp#1}% |
| 11870 |
}{}% |
| 11871 |
\renewcommand*{\@captype}{#1}% |
| 11872 |
\LWR@startpars% |
| 11873 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkFloats}}{% |
| 11874 |
|
| 11875 |
=== begin #1 === |
| 11876 |
|
| 11877 |
}{}% |
| 11878 |
} |
| 11879 |
\AtBeginDocument{ |
| 11880 |
\LWR@traceinfo{AtBeginDocument tocbasic} |
| 11881 |
|
| 11882 |
\IfPackageLoadedTF{tocbasic}{ |
| 11883 |
|
| 11884 |
\appto\figure@atbegin{% |
| 11885 |
\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment% |
| 11886 |
} |
| 11887 |
|
| 11888 |
}{}% tocbasic |
| 11889 |
|
| 11890 |
}% AtBeginDocument |
| 11891 |
\AtBeginDocument{ |
| 11892 |
\LWR@traceinfo{AtBeginDocument @xfloat} |
| 11893 |
\def\@xfloat #1[#2]{% |
| 11894 |
\LWR@floatbegin{#1}[#2] |
| 11895 |
\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment% |
| 11896 |
} |
| 11897 |
\def\@xdblfloat #1[#2]{% |
| 11898 |
\LWR@floatbegin{#1}[#2] |
| 11899 |
\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment% |
| 11900 |
} |
| 11901 |
} |
| 11902 |
\newcommand*{\LWR@floatend}{% |
| 11903 |
\LWR@endfloatalignment% |
| 11904 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkFloats}}{% |
| 11905 |
|
| 11906 |
=== end === |
| 11907 |
|
| 11908 |
}{}% |
| 11909 |
\LWR@stoppars% |
| 11910 |
\ifbool{FormatWP}{\endLWR@BlockClassWP}{}% |
| 11911 |
\LWR@htmlelementend{figure}% |
| 11912 |
\endgroup% |
| 11913 |
\boolfalse{LWR@freezethisautoid}% |
| 11914 |
\LWR@startpars% |
| 11915 |
\ifbool{FormatWP}{\newline}{}% |
| 11916 |
} |
| 11917 |
\AtBeginDocument{ |
| 11918 |
\let\end@float\LWR@floatend |
| 11919 |
\let\end@dblfloat\LWR@floatend |
| 11920 |
} |
| 11921 |
|
| 11922 |
\newcounter{LWR@thisautoid} |
| 11923 |
|
| 11924 |
\newcounter{LWR@thisautoidWP} |
| 11925 |
|
| 11926 |
\newbool{LWR@freezethisautoid} |
| 11927 |
\boolfalse{LWR@freezethisautoid} |
| 11928 |
|
| 11929 |
\newcommand*{\LWR@forcenewautoidanchor}{% |
| 11930 |
\addtocounter{LWR@thisautoid}{1}% |
| 11931 |
\ifbool{LWR@doingapar}% |
| 11932 |
{% |
| 11933 |
\LWR@htmltag{a id=\textquotedbl% |
| 11934 |
\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}% |
| 11935 |
\textquotedbl\ }% space |
| 11936 |
\LWR@htmltag{/a }% |
| 11937 |
}% |
| 11938 |
{% |
| 11939 |
\LWR@stoppars% |
| 11940 |
\LWR@htmltag{a id=\textquotedbl% |
| 11941 |
\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}% |
| 11942 |
\textquotedbl\ }% space |
| 11943 |
\LWR@htmltag{/a }% |
| 11944 |
\LWR@startpars% |
| 11945 |
}% |
| 11946 |
} |
| 11947 |
|
| 11948 |
\newcommand*{\LWR@newautoidanchor}{% |
| 11949 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 11950 |
{}% |
| 11951 |
{\ifbool{LWR@freezethisautoid}{}{\LWR@forcenewautoidanchor}}% |
| 11952 |
} |
| 11953 |
|
| 11954 |
\newcommand*{\@captype}{} |
| 11955 |
|
| 11956 |
\newcommand*{\LWR@floatalignmentname}{} |
| 11957 |
|
| 11958 |
\newcommand*{\LWR@floatalignment}{% |
| 11959 |
\ifdefstrequal{\LWR@mynexttoken}{\centering}{% |
| 11960 |
\center% |
| 11961 |
\renewcommand*{\LWR@floatalignmentname}{center}% |
| 11962 |
}{}% |
| 11963 |
\ifdefstrequal{\LWR@mynexttoken}{\raggedright}{% |
| 11964 |
\flushleft% |
| 11965 |
\renewcommand*{\LWR@floatalignmentname}{flushleft}% |
| 11966 |
}{}% |
| 11967 |
\ifdefstrequal{\LWR@mynexttoken}{\raggedleft}{% |
| 11968 |
\flushright% |
| 11969 |
\renewcommand*{\LWR@floatalignmentname}{flushright}% |
| 11970 |
}{}% |
| 11971 |
} |
| 11972 |
|
| 11973 |
\newcommand*{\LWR@endfloatalignment}{% |
| 11974 |
\ifdefvoid{\LWR@floatalignmentname}% |
| 11975 |
{}% |
| 11976 |
{\@nameuse{end\LWR@floatalignmentname}}% |
| 11977 |
\renewcommand*{\LWR@floatalignmentname}{}% |
| 11978 |
} |
| 11979 |
|
| 11980 |
|
| 11981 |
\AtBeginDocument{% |
| 11982 |
\LWR@traceinfo{AtBeginDocument CaptinSeparator} |
| 11983 |
\providecommand*{\CaptionSeparator}{:~}% |
| 11984 |
} |
| 11985 |
|
| 11986 |
\AtBeginDocument{ |
| 11987 |
\LWR@traceinfo{AtBeginDocument caption} |
| 11988 |
\IfPackageLoadedTF{caption}{}{ |
| 11989 |
\let\LWR@orig@caption\@caption% |
| 11990 |
\long\def\@caption#1[#2]{% |
| 11991 |
\LWR@spanwarnformat{caption}% |
| 11992 |
\LWR@setlatestname{#2}% |
| 11993 |
\LWR@orig@caption{#1}[{#2}]% also takes third argument |
| 11994 |
}% |
| 11995 |
|
| 11996 |
\renewcommand{\@makecaption}[2]{% |
| 11997 |
\LWR@traceinfo{@makecaption}% |
| 11998 |
\caption@begin{\@captype}% |
| 11999 |
\LWR@isolate{#1}% |
| 12000 |
\edef\LWR@tempone{#1}% |
| 12001 |
\ifdefvoid{\LWR@tempone}{}{\CaptionSeparator}% |
| 12002 |
\LWR@isolate{#2}% |
| 12003 |
\caption@end% |
| 12004 |
\LWR@traceinfo{@makecaption: done}% |
| 12005 |
}% |
| 12006 |
} |
| 12007 |
} |
| 12008 |
|
| 12009 |
|
| 12010 |
\newcounter{LWR@nextautoid} |
| 12011 |
\newcounter{LWR@nextautopage} |
| 12012 |
\newcommand*{\LWRsetnextfloat}[2]{% |
| 12013 |
\setcounter{LWR@nextautopage}{#1}% |
| 12014 |
\setcounter{LWR@nextautoid}{#2}% |
| 12015 |
} |
| 12016 |
|
| 12017 |
\newenvironment*{LWR@figcaption} |
| 12018 |
{% |
| 12019 |
\ifbool{FormatWP}{% |
| 12020 |
\BlockClass[font-style:italic]{figurecaption}% |
| 12021 |
}{% |
| 12022 |
\BlockClass{figurecaption}% |
| 12023 |
}% |
| 12024 |
\hbadness=10000\relax% |
| 12025 |
}% |
| 12026 |
{\endBlockClass} |
| 12027 |
\newcommand*{\LWR@HTML@caption@begin}[1] |
| 12028 |
{% |
| 12029 |
\LWR@traceinfo{LWR@HTML@caption@begin}% |
| 12030 |
\begingroup% |
| 12031 |
\RenewDocumentEnvironment{minipage}{O{t} o O{t} m}{}{}% |
| 12032 |
\RenewDocumentCommand{\parbox}{O{t} O{} O{t} m +m}{##5}% |
| 12033 |
\LWR@figcaption% |
| 12034 |
\LWR@traceinfo{LWR@HTML@caption@begin: about to LWR@origcaption@begin}% |
| 12035 |
\LWR@print@caption@begin{#1}% |
| 12036 |
\LWR@traceinfo{LWR@HTML@caption@begin: done}% |
| 12037 |
} |
| 12038 |
|
| 12039 |
\newcommand*{\LWR@HTML@caption@end} |
| 12040 |
{% |
| 12041 |
\LWR@traceinfo{LWR@HTML@caption@end}% |
| 12042 |
\LWR@print@caption@end% |
| 12043 |
\endLWR@figcaption% |
| 12044 |
\endgroup% |
| 12045 |
% \leavevmode% avoid bad space factor (0) error |
| 12046 |
\LWR@traceinfo{LWR@HTML@caption@end: done}% |
| 12047 |
} |
| 12048 |
|
| 12049 |
\AtBeginDocument{ |
| 12050 |
\LWR@traceinfo{AtBeginDocument caption2} |
| 12051 |
\providecommand{\caption@begin}[1]{} |
| 12052 |
\LWR@formatted{caption@begin} |
| 12053 |
|
| 12054 |
\providecommand{\caption@end}{} |
| 12055 |
\LWR@formatted{caption@end} |
| 12056 |
} |
| 12057 |
|
| 12058 |
\AtBeginDocument{% |
| 12059 |
\IfPackageLoadedTF{caption}{ |
| 12060 |
\LWR@traceinfo{AtBeginDocument caption3} |
| 12061 |
\let\LWR@origcaptionlistentry\captionlistentry |
| 12062 |
|
| 12063 |
\renewcommand*{\captionlistentry}{% |
| 12064 |
\LWR@ensuredoingapar% |
| 12065 |
\LWR@origcaptionlistentry% |
| 12066 |
} |
| 12067 |
\def\LWR@LTcaptionlistentry{% |
| 12068 |
\LWR@ensuredoingapar% |
| 12069 |
\LWR@forcenewautoidanchor% |
| 12070 |
\bgroup% |
| 12071 |
\@ifstar{\egroup\LWR@LT@captionlistentry}% gobble * |
| 12072 |
{\egroup\LWR@LT@captionlistentry}% |
| 12073 |
}% |
| 12074 |
|
| 12075 |
\def\LWR@LT@captionlistentry#1{% |
| 12076 |
\caption@listentry\@firstoftwo[\LTcaptype]{#1}% |
| 12077 |
}% |
| 12078 |
}% caption loaded |
| 12079 |
{% caption not loaded |
| 12080 |
\newcommand{\captionlistentry}[2][]{}% |
| 12081 |
\newcommand{\LWR@LT@captionlistentry}[2][]{}% |
| 12082 |
} |
| 12083 |
}% AtBeginDocument |
| 12084 |
|
| 12085 |
\let\LWR@origaddcontentsline\addcontentsline |
| 12086 |
|
| 12087 |
\renewcommand*{\addcontentsline}[3]{% |
| 12088 |
\ifstrequal{#1}{toc}{}{% not TOC |
| 12089 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 12090 |
{}% |
| 12091 |
{\LWR@newautoidanchor}% |
| 12092 |
\ifcsvoid{ext@#2}{\csdef{ext@#2}{#1}}{}% |
| 12093 |
\addtocontents{\@nameuse{ext@#2}}{% |
| 12094 |
\protect\LWRsetnextfloat% |
| 12095 |
{\arabic{LWR@currentautosecfloatpage}}% |
| 12096 |
{\arabic{LWR@thisautoid}}% |
| 12097 |
}% |
| 12098 |
}% not TOC |
| 12099 |
\LWR@origaddcontentsline{#1}{#2}{#3}% |
| 12100 |
} |
| 12101 |
\ifdef{\captionof}{}{\RequirePackage{capt-of}} |
| 12102 |
|
| 12103 |
\AtBeginDocument{ |
| 12104 |
\LWR@traceinfo{AtBeginDocument captionof} |
| 12105 |
\let\LWR@origcaptionof\captionof |
| 12106 |
|
| 12107 |
\renewcommand*{\captionof}{% |
| 12108 |
\LWR@stoppars% |
| 12109 |
\LWR@origcaptionof% |
| 12110 |
} |
| 12111 |
}% AtBeginDocument |
| 12112 |
|
| 12113 |
\end{warpHTML} |
| 12114 |
|
| 12115 |
|
| 12116 |
\begin{warpHTML} |
| 12117 |
|
| 12118 |
|
| 12119 |
\newcommand*{\LWR@myshorttoc}[1]{% |
| 12120 |
\LWR@traceinfo{LWR@myshorttoc: #1}% |
| 12121 |
\IfFileExists{\jobname.#1}{% |
| 12122 |
\LWR@traceinfo{LWR@myshorttoc: loading}% |
| 12123 |
\begingroup% |
| 12124 |
\makeatletter% |
| 12125 |
\LetLtxMacro\ref\LWR@print@ref% |
| 12126 |
\LWR@disablepinyin% |
| 12127 |
\@input{\jobname.#1}% |
| 12128 |
\endgroup% |
| 12129 |
}% |
| 12130 |
{}% |
| 12131 |
\LWR@traceinfo{LWR@myshorttoc: done}% |
| 12132 |
} |
| 12133 |
|
| 12134 |
\NewDocumentCommand{\LWR@subtableofcontents}{m m}{% |
| 12135 |
\@ifundefined{chapter}% |
| 12136 |
{\LWR@closeprevious{section}}% |
| 12137 |
{\LWR@closeprevious{chapter}}% |
| 12138 |
\LWR@printpendingfootnotes% |
| 12139 |
\@ifundefined{chapter}{\section*{#2}}{\chapter*{#2}}% |
| 12140 |
\LWR@htmlelementclass{nav}{#1}% |
| 12141 |
\expandafter\LWR@myshorttoc\expandafter{#1}% |
| 12142 |
\LWR@htmlelementclassend{nav}{#1}% |
| 12143 |
} |
| 12144 |
|
| 12145 |
\let\LWR@orig@starttoc\@starttoc |
| 12146 |
|
| 12147 |
\renewcommand{\@starttoc}[1]{ |
| 12148 |
\LWR@htmlelementclass{nav}{#1}% |
| 12149 |
\LWR@orig@starttoc{#1}% |
| 12150 |
\LWR@htmlelementclassend{nav}{#1}% |
| 12151 |
} |
| 12152 |
\newbool{LWR@copiedsidetoc} |
| 12153 |
\boolfalse{LWR@copiedsidetoc} |
| 12154 |
\AtBeginDocument{ |
| 12155 |
\LWR@traceinfo{AtBeginDocument tableofcontents} |
| 12156 |
|
| 12157 |
\LetLtxMacro\LWR@origtableofcontents\tableofcontents |
| 12158 |
|
| 12159 |
\renewcommand*{\tableofcontents}{% |
| 12160 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkTOC}}{ |
| 12161 |
|
| 12162 |
=== table of contents === |
| 12163 |
|
| 12164 |
} |
| 12165 |
{ |
| 12166 |
\ifbool{LWR@copiedsidetoc}{}{% |
| 12167 |
\LWR@copyfile{\jobname.toc}{\jobname.sidetoc}% |
| 12168 |
\booltrue{LWR@copiedsidetoc}% |
| 12169 |
}% |
| 12170 |
\LWR@printpendingfootnotes |
| 12171 |
\begingroup% |
| 12172 |
\LetLtxMacro\ref\LWR@print@ref% |
| 12173 |
\LWR@disablepinyin% |
| 12174 |
\LWR@origtableofcontents% |
| 12175 |
\endgroup% |
| 12176 |
} |
| 12177 |
}% \tableofcontents |
| 12178 |
|
| 12179 |
}% AtBeginDocument |
| 12180 |
|
| 12181 |
\let\LWR@origlistoffigures\listoffigures |
| 12182 |
|
| 12183 |
\renewcommand*{\listoffigures}{ |
| 12184 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkLOFT}}{ |
| 12185 |
|
| 12186 |
=== list of figures === |
| 12187 |
|
| 12188 |
} |
| 12189 |
{ |
| 12190 |
\LWR@printpendingfootnotes |
| 12191 |
\begingroup% |
| 12192 |
\LetLtxMacro\ref\LWR@print@ref% |
| 12193 |
\LWR@disablepinyin% |
| 12194 |
\LWR@origlistoffigures% |
| 12195 |
\endgroup% |
| 12196 |
} |
| 12197 |
} |
| 12198 |
|
| 12199 |
\let\LWR@origlistoftables\listoftables |
| 12200 |
|
| 12201 |
\renewcommand*{\listoftables}{ |
| 12202 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkLOFT}}{ |
| 12203 |
|
| 12204 |
=== list of tables === |
| 12205 |
|
| 12206 |
} |
| 12207 |
{ |
| 12208 |
\LWR@printpendingfootnotes |
| 12209 |
\begingroup% |
| 12210 |
\LetLtxMacro\ref\LWR@print@ref% |
| 12211 |
\LWR@disablepinyin% |
| 12212 |
\LWR@origlistoftables% |
| 12213 |
\endgroup% |
| 12214 |
} |
| 12215 |
} |
| 12216 |
|
| 12217 |
|
| 12218 |
\NewDocumentCommand{\LWR@listof}{m +m}{% |
| 12219 |
\@ifundefined{l@#1}{% |
| 12220 |
\csdef{l@#1}##1##2{\hypertocfloat{1}{#1}{\@nameuse{ext@#1}}{##1}{##2}}% |
| 12221 |
}{}% |
| 12222 |
\expandafter\ifcsdef\expandafter{ext@#1}{% |
| 12223 |
\LWR@subtableofcontents{\@nameuse{ext@#1}}{#2}% |
| 12224 |
\expandafter\newwrite\csname tf@\csname ext@#1\endcsname\endcsname% |
| 12225 |
\immediate\openout \csname tf@\csname ext@#1\endcsname\endcsname% |
| 12226 |
\jobname.\@nameuse{ext@#1}\relax% |
| 12227 |
}{% |
| 12228 |
\LWR@subtableofcontents{#1}{#2}% |
| 12229 |
\expandafter\newwrite\csname tf@#1\endcsname% |
| 12230 |
\immediate\openout \csname tf@#1\endcsname% |
| 12231 |
\jobname.#1\relax% |
| 12232 |
}% |
| 12233 |
} |
| 12234 |
|
| 12235 |
|
| 12236 |
|
| 12237 |
\end{warpHTML} |
| 12238 |
|
| 12239 |
\begin{warpall} |
| 12240 |
|
| 12241 |
\newcounter{SideTOCDepth} |
| 12242 |
\setcounter{SideTOCDepth}{1} |
| 12243 |
|
| 12244 |
\AtEndDocument{% |
| 12245 |
\ifnumcomp{\value{SideTOCDepth}}{<}{\value{FileDepth}}{ |
| 12246 |
\PackageWarningNoLine{lwarp} |
| 12247 |
{% |
| 12248 |
SideTOCDepth is less than FileDepth,\MessageBreak |
| 12249 |
so some website pages may be inaccessible% |
| 12250 |
} |
| 12251 |
}{} |
| 12252 |
} |
| 12253 |
|
| 12254 |
\newcommand{\sidetocname}{Contents} |
| 12255 |
|
| 12256 |
\end{warpall} |
| 12257 |
|
| 12258 |
\begin{warpHTML} |
| 12259 |
|
| 12260 |
\newcommand*{\LWR@sidetoc}{% |
| 12261 |
\LWR@forcenewpage |
| 12262 |
\LWR@stoppars |
| 12263 |
|
| 12264 |
\LWR@htmlelementclass{div}{sidetoccontainer} |
| 12265 |
\LWR@htmlelementclass{nav}{sidetoc} |
| 12266 |
|
| 12267 |
\setcounter{tocdepth}{\value{SideTOCDepth}} |
| 12268 |
\begin{BlockClass}{sidetoctitle} |
| 12269 |
\ifcsvoid{thetitle}{}{\InlineClass{sidetocthetitle}{\thetitle}\par} |
| 12270 |
\sidetocname |
| 12271 |
\end{BlockClass} |
| 12272 |
\begin{BlockClass}{sidetoccontents} |
| 12273 |
\LinkHome |
| 12274 |
|
| 12275 |
\LWR@myshorttoc{sidetoc} |
| 12276 |
\end{BlockClass} |
| 12277 |
\LWR@htmlelementclassend{nav}{sidetoc} |
| 12278 |
\LWR@htmlelementclassend{div}{sidetoccontainer} |
| 12279 |
} |
| 12280 |
|
| 12281 |
|
| 12282 |
\newcommand*{\LWR@numberline}[1]{% |
| 12283 |
\LWR@sectionnumber{#1}\quad% |
| 12284 |
} |
| 12285 |
|
| 12286 |
\LetLtxMacro\numberline\LWR@numberline |
| 12287 |
|
| 12288 |
\newcommand*{\LWR@maybetocdata}{} |
| 12289 |
|
| 12290 |
\NewDocumentCommand{\hypertoc}{m m +m m}{% |
| 12291 |
\LWR@traceinfo{hypertoc !#1!#2!#3!#4!}% |
| 12292 |
\ifnumcomp{#1}{>}{\value{tocdepth}}% |
| 12293 |
{}% |
| 12294 |
{% |
| 12295 |
\LWR@startpars% |
| 12296 |
\LWR@subhyperrefclass{% |
| 12297 |
\LWR@htmlrefsectionfilename{\BaseJobname-autopage-#4}% |
| 12298 |
\LWR@origpound\LWR@print@mbox{autosec-#4}% |
| 12299 |
}{#3}{toc#2}% |
| 12300 |
\LWR@maybetocdata% |
| 12301 |
\LWR@stoppars% |
| 12302 |
}% |
| 12303 |
\LWR@traceinfo{hypertoc done}% |
| 12304 |
} |
| 12305 |
|
| 12306 |
\IfClassLoadedTF{memoir}{}{ |
| 12307 |
\newcounter{lofdepth} |
| 12308 |
\setcounter{lofdepth}{1} |
| 12309 |
} |
| 12310 |
|
| 12311 |
\IfClassLoadedTF{memoir}{}{ |
| 12312 |
\newcounter{lotdepth} |
| 12313 |
\setcounter{lotdepth}{1} |
| 12314 |
} |
| 12315 |
|
| 12316 |
\newcommand{\hypertocfloat}[5]{% |
| 12317 |
\@ifundefined{c@#3depth}{% |
| 12318 |
\newcounter{#3depth}% |
| 12319 |
\setcounter{#3depth}{1}% |
| 12320 |
}{}% |
| 12321 |
\LWR@traceinfo{hypertocfloat depth is #1 #3depth is \arabic{#3depth}}% |
| 12322 |
\ifthenelse{\cnttest{#1}{<=}{\arabic{#3depth}}}% |
| 12323 |
{% |
| 12324 |
\LWR@startpars% |
| 12325 |
\LWR@subhyperrefclass{% |
| 12326 |
\LWR@htmlrefsectionfilename{% |
| 12327 |
\BaseJobname-autopage-\arabic{LWR@nextautopage}% |
| 12328 |
}% |
| 12329 |
\LWR@origpound\LWR@print@mbox{autoid-\arabic{LWR@nextautoid}}}% |
| 12330 |
{#4}{toc#2}% |
| 12331 |
\LWR@maybetocdata% |
| 12332 |
\LWR@stoppars% |
| 12333 |
}% |
| 12334 |
{}% |
| 12335 |
} |
| 12336 |
|
| 12337 |
\DeclareDocumentCommand{\l@book}{m m}{\hypertoc{-2}{book}{#1}{#2}} |
| 12338 |
|
| 12339 |
\DeclareDocumentCommand{\l@part}{m m}{\hypertoc{-1}{part}{#1}{#2}} |
| 12340 |
|
| 12341 |
\@ifundefined{chapter} |
| 12342 |
{} |
| 12343 |
{ |
| 12344 |
\DeclareDocumentCommand{\l@chapter}{m m} |
| 12345 |
{\hypertoc{0}{chapter}{#1}{#2}} |
| 12346 |
} |
| 12347 |
|
| 12348 |
\renewcommand{\l@section}[2]{\hypertoc{1}{section}{#1}{#2}} |
| 12349 |
|
| 12350 |
\renewcommand{\l@subsection}[2]{\hypertoc{2}{subsection}{#1}{#2}} |
| 12351 |
|
| 12352 |
\renewcommand{\l@subsubsection}[2]{\hypertoc{3}{subsubsection}{#1}{#2}} |
| 12353 |
|
| 12354 |
\renewcommand{\l@paragraph}[2]{\hypertoc{4}{paragraph}{#1}{#2}} |
| 12355 |
|
| 12356 |
\renewcommand{\l@subparagraph}[2]{\hypertoc{5}{subparagraph}{#1}{#2}} |
| 12357 |
|
| 12358 |
\renewcommand{\l@figure}[2]{\hypertocfloat{1}{figure}{lof}{#1}{#2}} |
| 12359 |
|
| 12360 |
\renewcommand{\l@table}[2]{\hypertocfloat{1}{table}{lot}{#1}{#2}} |
| 12361 |
|
| 12362 |
\end{warpHTML} |
| 12363 |
|
| 12364 |
|
| 12365 |
|
| 12366 |
|
| 12367 |
\begin{warpHTML} |
| 12368 |
|
| 12369 |
\newcounter{LWR@autoindex} |
| 12370 |
\setcounter{LWR@autoindex}{0} |
| 12371 |
|
| 12372 |
\newcounter{LWR@autoglossary} |
| 12373 |
\setcounter{LWR@autoglossary}{0} |
| 12374 |
|
| 12375 |
\newcommand*{\IndexPageSeparator}{, } |
| 12376 |
\newcommand*{\IndexRangeSeparator}{--} |
| 12377 |
|
| 12378 |
\@ifundefined{chapter} |
| 12379 |
{\newcommand*{\LWR@indexsection}[1]{\section*{#1}}} |
| 12380 |
{\newcommand*{\LWR@indexsection}[1]{\chapter*{#1}}} |
| 12381 |
|
| 12382 |
\AtBeginDocument{ |
| 12383 |
\LWR@traceinfo{AtBeginDocument theindex} |
| 12384 |
|
| 12385 |
\renewenvironment*{theindex}{% |
| 12386 |
\LWR@indexsection{\indexname}% |
| 12387 |
\DeclareCommandCopy{\item}{\LWR@indexitem}% |
| 12388 |
\DeclareCommandCopy{\subitem}{\LWR@indexsubitem}% |
| 12389 |
\DeclareCommandCopy{\subsubitem}{\LWR@indexsubsubitem}% |
| 12390 |
}{} |
| 12391 |
|
| 12392 |
}% AtBeginDocument |
| 12393 |
|
| 12394 |
\newcommand{\LWR@indexitem}[1][\@empty]{ |
| 12395 |
|
| 12396 |
\InlineClass{indexitem}{\LWR@htmlcomment{}}#1% |
| 12397 |
} |
| 12398 |
|
| 12399 |
\newcommand{\LWR@indexsubitem}{ |
| 12400 |
|
| 12401 |
\InlineClass{indexsubitem}{\LWR@htmlcomment{}}% |
| 12402 |
} |
| 12403 |
|
| 12404 |
\newcommand{\LWR@indexsubsubitem}{ |
| 12405 |
|
| 12406 |
\InlineClass{indexsubsubitem}{\LWR@htmlcomment{}}% |
| 12407 |
} |
| 12408 |
|
| 12409 |
\NewDocumentCommand{\LWR@xindex@modifyentry}{>{\SplitArgument{1}{|}}m} |
| 12410 |
{\LWR@xindex@modifyentrysub#1} |
| 12411 |
\newcommand*{\LWR@xindex@modifyentrysub}[2]{% |
| 12412 |
\edef\LWR@tempone{#1}% |
| 12413 |
\edef\LWR@temptwo{#2}% |
| 12414 |
\IfValueTF{#2}{% |
| 12415 |
\ifx#2(% |
| 12416 |
\appto\LWR@tempone{|(}% |
| 12417 |
\else% |
| 12418 |
\ifx#2)% |
| 12419 |
\appto\LWR@tempone{|)}% |
| 12420 |
\else% |
| 12421 |
\appto\LWR@tempone{% |
| 12422 |
|hyperxindexformat\LWRleftbrace% |
| 12423 |
\LWRbackslash#2% |
| 12424 |
\LWRrightbrace% |
| 12425 |
}% |
| 12426 |
\fi% |
| 12427 |
\fi% |
| 12428 |
}% |
| 12429 |
{}% |
| 12430 |
} |
| 12431 |
|
| 12432 |
\newbool{LWR@xindex@tricked} |
| 12433 |
\boolfalse{LWR@xindex@tricked} |
| 12434 |
|
| 12435 |
\def\LWR@wrindex#1{% |
| 12436 |
\ifbool{LWR@xindex}{% |
| 12437 |
\ifbool{LWR@xindex@tricked}{}{% |
| 12438 |
\protected@write\@indexfile{}% |
| 12439 |
{% |
| 12440 |
\LWRpercent\space hyperpage\LWRrightbrace% |
| 12441 |
\LWRpercent\space trick xindex to assume hyperref% |
| 12442 |
}% |
| 12443 |
\global\booltrue{LWR@xindex@tricked}% |
| 12444 |
}% |
| 12445 |
\LWR@xindex@modifyentry{#1}% |
| 12446 |
}{% |
| 12447 |
\def\LWR@tempone{#1}% |
| 12448 |
}% |
| 12449 |
\addtocounter{LWR@autoindex}{1}% |
| 12450 |
\protected@write\@indexfile{}% |
| 12451 |
{\string\indexentry{\LWR@tempone}{\arabic{LWR@autoindex}}}% |
| 12452 |
\label{LWRindex-\arabic{LWR@autoindex}}% |
| 12453 |
\endgroup% |
| 12454 |
\@esphack% |
| 12455 |
} |
| 12456 |
|
| 12457 |
\AtBeginDocument{ |
| 12458 |
\LWR@traceinfo{AtBeginDocument @wrindex} |
| 12459 |
\let\@wrindex\LWR@wrindex |
| 12460 |
} |
| 12461 |
|
| 12462 |
\def\@wrglossary#1{% |
| 12463 |
\addtocounter{LWR@autoglossary}{1}% |
| 12464 |
\LWR@new@label{LWRglossary-\theLWR@autoglossary}% |
| 12465 |
\protected@write\@glossaryfile{}% |
| 12466 |
{\string\glossaryentry{#1}{\theLWR@autoglossary}}% |
| 12467 |
\endgroup% |
| 12468 |
\@esphack% |
| 12469 |
} |
| 12470 |
|
| 12471 |
\newcommand*{\LWR@indexnameref@anonref}[1]{% |
| 12472 |
\LWR@startref{LWRindex-#1}% |
| 12473 |
(*)% |
| 12474 |
\LWR@htmltag{/a}% |
| 12475 |
} |
| 12476 |
|
| 12477 |
\newcommand*{\LWR@indexnameref@ref}[1]{% |
| 12478 |
\edef\LWR@thisref{\csuse{r@LWRindex-#1}}% |
| 12479 |
\ifdefvoid{\LWR@thisref}{}{% |
| 12480 |
\edef\LWR@thisref{\expandafter\@firstoffive\LWR@thisref}% |
| 12481 |
\ifdefvoid{\LWR@thisref}% |
| 12482 |
{\LWR@indexnameref@anonref{#1}}% |
| 12483 |
{\ref{LWRindex-#1}}% |
| 12484 |
}% |
| 12485 |
} |
| 12486 |
|
| 12487 |
\newcommand*{\LWR@indexnameref@refnameref}[1]{% |
| 12488 |
\edef\LWR@thisref{\csuse{r@LWRindex-#1}}% |
| 12489 |
\ifdefvoid{\LWR@thisref}{}{% |
| 12490 |
\edef\LWR@thisref{\expandafter\@firstoffive\LWR@thisref}% |
| 12491 |
\ifdefvoid{\LWR@thisref}{}{% |
| 12492 |
\ifdefstring{\LWR@thisref}{(*)}% |
| 12493 |
{}% |
| 12494 |
{\ref{LWRindex-#1} }% space |
| 12495 |
}% |
| 12496 |
}% |
| 12497 |
\nameref{LWRindex-#1}% |
| 12498 |
} |
| 12499 |
|
| 12500 |
\newcommand*{\LWR@indexnameref@cref}[1]{% |
| 12501 |
\edef\LWR@thisref{\csuse{r@LWRindex-#1}}% |
| 12502 |
\ifdefvoid{\LWR@thisref}{% |
| 12503 |
\nameref{LWRindex-#1}% |
| 12504 |
}{% |
| 12505 |
\edef\LWR@thisref{\expandafter\@firstoffive\LWR@thisref}% |
| 12506 |
\ifdefvoid{\LWR@thisref}{% |
| 12507 |
\nameref{LWRindex-#1}% |
| 12508 |
}{% |
| 12509 |
\ifdefstring{\LWR@thisref}{(*)}{% |
| 12510 |
\LWR@indexnameref@anonref{#1}% |
| 12511 |
}{% |
| 12512 |
\cref{LWRindex-#1}% |
| 12513 |
}% |
| 12514 |
}% |
| 12515 |
}% |
| 12516 |
} |
| 12517 |
|
| 12518 |
\newcommand*{\LWR@indexnameref@crefnameref}[1]{% |
| 12519 |
\edef\LWR@thisref{\csuse{r@LWRindex-#1}}% |
| 12520 |
\ifdefvoid{\LWR@thisref}% |
| 12521 |
{}% |
| 12522 |
{% |
| 12523 |
\edef\LWR@thisref{\expandafter\@firstoffive\LWR@thisref}% |
| 12524 |
\ifdefvoid{\LWR@thisref}% |
| 12525 |
{}% |
| 12526 |
{% |
| 12527 |
\ifdefstring{\LWR@thisref}{(*)}% |
| 12528 |
{}% |
| 12529 |
{\cref{LWRindex-#1}} % space |
| 12530 |
}% |
| 12531 |
}% |
| 12532 |
\nameref{LWRindex-#1}% |
| 12533 |
} |
| 12534 |
|
| 12535 |
\newcommand*{\LWR@indexnameref}[1]{% |
| 12536 |
{% group |
| 12537 |
\ifdef{\caption@xref}{% |
| 12538 |
\renewcommand*{\caption@xref}[2]{(*)}% |
| 12539 |
}{}% |
| 12540 |
\ifdefstring{\LWR@IndexRef}{ref}{% |
| 12541 |
\LWR@indexnameref@ref{#1}% |
| 12542 |
}{% |
| 12543 |
\ifdefstring{\LWR@IndexRef}{nameref}{% |
| 12544 |
\nameref{LWRindex-#1}% |
| 12545 |
}{% |
| 12546 |
\ifdefstring{\LWR@IndexRef}{refnameref}{% |
| 12547 |
\LWR@indexnameref@refnameref{#1}% |
| 12548 |
}{% |
| 12549 |
\ifdefstring{\LWR@IndexRef}{cref}{% |
| 12550 |
\LWR@indexnameref@cref{#1}% |
| 12551 |
}{% |
| 12552 |
\ifdefstring{\LWR@IndexRef}{crefnameref}{% |
| 12553 |
\LWR@indexnameref@crefnameref{#1}% |
| 12554 |
}{% |
| 12555 |
\ifdefstring{\LWR@IndexRef}{autoref}{% |
| 12556 |
\LWR@indexnameref@cref{#1}% |
| 12557 |
}{% text string |
| 12558 |
\ifnumcomp{\value{LWR@linkdepth}}{>}{0}% |
| 12559 |
{}% |
| 12560 |
{% |
| 12561 |
\addtocounter{LWR@linkdepth}{1}% |
| 12562 |
\LWR@startref{LWRindex-#1}% |
| 12563 |
\LWR@IndexRef% |
| 12564 |
\LWR@htmltag{/a}% |
| 12565 |
\addtocounter{LWR@linkdepth}{-1}% |
| 12566 |
}% |
| 12567 |
}}}}}}% |
| 12568 |
}% group |
| 12569 |
} |
| 12570 |
|
| 12571 |
\newrobustcmd{\LWR@doindexentrysubsub}[2]{% |
| 12572 |
\IfInteger{#1}% |
| 12573 |
{\LWR@indexnameref{#1}}% |
| 12574 |
{#1}% |
| 12575 |
\IfValueT{#2}{% |
| 12576 |
\IndexRangeSeparator% |
| 12577 |
\IfInteger{#2}% |
| 12578 |
{\LWR@indexnameref{#2}}% |
| 12579 |
{#2}% |
| 12580 |
}% |
| 12581 |
} |
| 12582 |
\NewDocumentCommand{\LWR@doindexentrysub}{m >{\SplitArgument{1}{#1}}m} |
| 12583 |
{\LWR@doindexentrysubsub#2} |
| 12584 |
|
| 12585 |
\newcommand*{\LWR@doindexentry}[1]{% |
| 12586 |
\relax% required |
| 12587 |
\expandafter\LWR@doindexentrysub\expandafter{\IndexRangeSeparator}{#1}% |
| 12588 |
} |
| 12589 |
|
| 12590 |
\newcommand{\LWR@hyperindexrefnullified}{% |
| 12591 |
\renewrobustcmd{\emph}[1]{\LWR@HTML@emph{\LWR@doindexentry{##1}}}% |
| 12592 |
\renewrobustcmd{\textbf}[1]{\LWR@HTML@textbf{\LWR@doindexentry{##1}}}% |
| 12593 |
\renewrobustcmd{\texteb}[1]{\LWR@HTML@texteb{\LWR@doindexentry{##1}}}% |
| 12594 |
\renewrobustcmd{\textlg}[1]{\LWR@HTML@textlg{\LWR@doindexentry{##1}}}% |
| 12595 |
\renewrobustcmd{\textrm}[1]{\LWR@HTML@textrm{\LWR@doindexentry{##1}}}% |
| 12596 |
\renewrobustcmd{\textsf}[1]{\LWR@HTML@textsf{\LWR@doindexentry{##1}}}% |
| 12597 |
\renewrobustcmd{\texttt}[1]{\LWR@HTML@texttt{\LWR@doindexentry{##1}}}% |
| 12598 |
\renewrobustcmd{\textup}[1]{\LWR@HTML@textup{\LWR@doindexentry{##1}}}% |
| 12599 |
\renewrobustcmd{\textsc}[1]{\LWR@HTML@textsc{\LWR@doindexentry{##1}}}% |
| 12600 |
\renewrobustcmd{\textulc}[1]{\LWR@HTML@textulc{\LWR@doindexentry{##1}}}% |
| 12601 |
\renewrobustcmd{\textsi}[1]{\LWR@HTML@textsi{\LWR@doindexentry{##1}}}% |
| 12602 |
\renewrobustcmd{\textit}[1]{\LWR@HTML@textit{\LWR@doindexentry{##1}}}% |
| 12603 |
\renewrobustcmd{\textsl}[1]{\LWR@HTML@textsl{\LWR@doindexentry{##1}}}% |
| 12604 |
} |
| 12605 |
|
| 12606 |
\newcommand*{\hyperindexref}[1]{% |
| 12607 |
\relax% required |
| 12608 |
\expandafter\LWR@hyperindexref@comma\expandafter{\IndexPageSeparator}{#1}% |
| 12609 |
} |
| 12610 |
\NewDocumentCommand{\LWR@hyperindexref@comma} |
| 12611 |
{m >{\SplitList{#1}} m} |
| 12612 |
{% |
| 12613 |
\def\LWR@hyperindexref@thiscomma{}% |
| 12614 |
\def\LWR@hyperindexref@nextcomma{#1}% |
| 12615 |
\ProcessList{#2}\LWR@hyperindexref@@comma% |
| 12616 |
} |
| 12617 |
\newcommand*{\LWR@hyperindexref@@comma}[1]{% |
| 12618 |
\LWR@hyperindexref@thiscomma% |
| 12619 |
\renewcommand{\LWR@hyperindexref@thiscomma}{\LWR@hyperindexref@nextcomma}% |
| 12620 |
\expandafter\LWR@hyperindexref@range\expandafter{\IndexRangeSeparator}{#1}% |
| 12621 |
} |
| 12622 |
\NewDocumentCommand{\LWR@hyperindexref@range} |
| 12623 |
{m >{\SplitArgument{1}{#1}} m} |
| 12624 |
{\LWR@hyperindexrefsub#2} |
| 12625 |
|
| 12626 |
\newcommand*{\LWR@hyperindexrefsub}[2]{% |
| 12627 |
\LWR@hyperindexrefsubtwo{#1}% |
| 12628 |
\IfValueT{#2}{% |
| 12629 |
\IndexRangeSeparator% |
| 12630 |
\LWR@hyperindexrefsubtwo{#2}% |
| 12631 |
}% |
| 12632 |
} |
| 12633 |
|
| 12634 |
\newcommand*{\LWR@hyperindexrefsubtwo}[1]{% |
| 12635 |
\edef\LWR@tempone{#1}% |
| 12636 |
\IfBeginWith{\LWR@tempone}{ }{% |
| 12637 |
\StrGobbleLeft{\LWR@tempone}{1}[\LWR@tempone]% |
| 12638 |
}{}% |
| 12639 |
\IfInteger{\LWR@tempone}% |
| 12640 |
{\LWR@indexnameref{\LWR@tempone}}% |
| 12641 |
{% |
| 12642 |
\begingroup% |
| 12643 |
\LWR@hyperindexrefnullified% |
| 12644 |
#1% |
| 12645 |
\endgroup% |
| 12646 |
}% |
| 12647 |
} |
| 12648 |
|
| 12649 |
\LetLtxMacro\hyperpage\hyperindexref |
| 12650 |
|
| 12651 |
\def\nohyperpage#1{} |
| 12652 |
|
| 12653 |
\AtBeginDocument{ |
| 12654 |
\def\hyperindexformat#1#2{% |
| 12655 |
#1{\hyperpage{#2}}% |
| 12656 |
}% |
| 12657 |
} |
| 12658 |
|
| 12659 |
\AtBeginDocument{ |
| 12660 |
\let\hyperxindexformat\hyperindexformat |
| 12661 |
} |
| 12662 |
|
| 12663 |
\end{warpHTML} |
| 12664 |
|
| 12665 |
\begin{warpprint} |
| 12666 |
\newcommand{\hyperindexref}[1]{#1} |
| 12667 |
\end{warpprint} |
| 12668 |
|
| 12669 |
\begin{warpall} |
| 12670 |
\providecommand{\glo@name}{} |
| 12671 |
\end{warpall} |
| 12672 |
\begin{warpHTML} |
| 12673 |
\renewcommand{\@biblabel}[1]{[#1]\quad} |
| 12674 |
\AtBeginDocument{ |
| 12675 |
\LWR@traceinfo{AtBeginDocument thebibliography} |
| 12676 |
|
| 12677 |
\AtBeginEnvironment{thebibliography}{ |
| 12678 |
|
| 12679 |
\providecommand*{\LWR@newem}[1]{\textit{#1}} |
| 12680 |
|
| 12681 |
\renewrobustcmd{\em}{% |
| 12682 |
\begingroup |
| 12683 |
\gdef\LWR@em@after{\LWR@em@finish\LWR@newem}% |
| 12684 |
\afterassignment\LWR@em@after |
| 12685 |
\toks@\bgroup |
| 12686 |
} |
| 12687 |
|
| 12688 |
\def\LWR@em@finish#1{% |
| 12689 |
\xdef\LWR@em@after{\noexpand#1{\the\toks@}}% |
| 12690 |
\endgroup |
| 12691 |
\LWR@em@after\egroup |
| 12692 |
} |
| 12693 |
|
| 12694 |
}% \AtBeginEnvironment{thebibliography} |
| 12695 |
|
| 12696 |
}% \AtBeginDocument |
| 12697 |
|
| 12698 |
\end{warpHTML} |
| 12699 |
|
| 12700 |
\begin{warpHTML} |
| 12701 |
\newcommand*{\LWR@restoreMathJaxformatting}{} |
| 12702 |
|
| 12703 |
\newcommand*{\LWR@restoreorigformatting}{% |
| 12704 |
\LWR@traceinfo{LWR@restoreorigformatting}% |
| 12705 |
\renewcommand*{\LWR@formatting}{print}% |
| 12706 |
\linespread{1}% |
| 12707 |
\setbool{LWR@doingparhooks}{false}% |
| 12708 |
\def\color@endgroup{\endgraf\endgroup}% |
| 12709 |
\LetLtxMacro\hfil\LWR@orighfil% |
| 12710 |
\let\hss\LWR@orighss% |
| 12711 |
\let\llap\LWR@origllap% |
| 12712 |
\let\rlap\LWR@origrlap% |
| 12713 |
\let\hfilneg\LWR@orighfilneg% |
| 12714 |
\let\,\LWR@origcomma% disable HTML short unbreakable space |
| 12715 |
\let\textless\LWR@origtextless% |
| 12716 |
\let\textgreater\LWR@origtextgreater% |
| 12717 |
\let\&\LWR@origampersand% |
| 12718 |
\let\%\LWR@origpercent% |
| 12719 |
\LetLtxMacro\em\LWR@origem% |
| 12720 |
\LetLtxMacro\normalfont\LWR@orignormalfont% |
| 12721 |
\let\sp\LWR@origsp% |
| 12722 |
\let\sb\LWR@origsb% |
| 12723 |
\LetLtxMacro\underline\LWR@origunderline% |
| 12724 |
\LetLtxMacro~\LWR@origtilde% |
| 12725 |
\LetLtxMacro\nobreakspace\LWR@orignobreakspace% |
| 12726 |
\LetLtxMacro\endtabular\LWR@origendtabular% |
| 12727 |
\csletcs{endtabular*}{LWR@origendtabular*}% |
| 12728 |
\LetLtxMacro\noalign\LWR@orignoalign% |
| 12729 |
\LetLtxMacro\hline\LWR@orighline% |
| 12730 |
\let\newline\LWR@orignewline% |
| 12731 |
\LetLtxMacro\includegraphics\LWR@origincludegraphics% |
| 12732 |
\LetLtxMacro\@ensuredmath\LWR@origensuredmath% |
| 12733 |
\let\math\LWR@orig@math% |
| 12734 |
\let\endmath\LWR@orig@endmath% |
| 12735 |
\let\displaymath\LWR@orig@displaymath% |
| 12736 |
\let\enddisplaymath\LWR@orig@enddisplaymath% |
| 12737 |
\LWR@restoreorigaccents% |
| 12738 |
\LWR@restoreoriglists% |
| 12739 |
\let\@mpfootnotetext\LWR@orig@mpfootnotetext% |
| 12740 |
\LWR@hook@processingtags% |
| 12741 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 12742 |
{\LWR@restoreMathJaxformatting}% |
| 12743 |
{}% |
| 12744 |
} |
| 12745 |
\end{warpHTML} |
| 12746 |
\begin{warpHTML} |
| 12747 |
\newcommand*{\LWR@dash}{-} |
| 12748 |
\catcode`\$=\active% redefining $ below |
| 12749 |
\catcode`\_=12% redefining \_ below |
| 12750 |
\newcommand*{\LWR@nullfonts}{% |
| 12751 |
\renewcommand*{\$}{-}% |
| 12752 |
\renewcommand*{\%}{-}% |
| 12753 |
\renewcommand*{\_}{-}% |
| 12754 |
\renewcommand*{\}}{-}% |
| 12755 |
\renewcommand*{\{}{-}% |
| 12756 |
\renewcommand*{\&}{-}% used to be 'and' |
| 12757 |
\renewcommand*{\#}{-}% |
| 12758 |
\renewcommand*{\,}{-}% |
| 12759 |
\renewcommand*{~}{-}% |
| 12760 |
\renewcommand*{\`}[1]{##1}% |
| 12761 |
\renewcommand*{\'}[1]{##1}% |
| 12762 |
\renewcommand*{\^}[1]{##1}% |
| 12763 |
\renewcommand*{\~}[1]{##1}% |
| 12764 |
\renewcommand*{\=}[1]{##1}% |
| 12765 |
\renewcommand*{\u}[1]{##1}% |
| 12766 |
\renewcommand*{\.}[1]{##1}% |
| 12767 |
\renewcommand*{\"}[1]{##1}% |
| 12768 |
\renewcommand*{\H}[1]{##1}% |
| 12769 |
\renewcommand*{\v}[1]{##1}% |
| 12770 |
\renewcommand*{\d}[1]{##1}% |
| 12771 |
\renewcommand*{\c}[1]{##1}% |
| 12772 |
\renewcommand*{\b}[1]{##1}% |
| 12773 |
\renewcommand*{\t}[1]{##1}% |
| 12774 |
\let\newline\LWR@dash% |
| 12775 |
\let\textasciicircum\LWR@dash% |
| 12776 |
\let\textasciitilde\LWR@dash% |
| 12777 |
\let\textasteriskcentered\LWR@dash% |
| 12778 |
\let\textbackslash\LWR@dash% |
| 12779 |
\let\textbar\LWR@dash% |
| 12780 |
\let\textbardbl\LWR@dash% |
| 12781 |
\let\textbigcircle\LWR@dash% |
| 12782 |
\let\textbraceleft\LWR@dash% |
| 12783 |
\let\textbraceright\LWR@dash% |
| 12784 |
\let\textbullet\LWR@dash% |
| 12785 |
\let\textcopyright\LWR@dash% |
| 12786 |
\let\textdagger\LWR@dash% |
| 12787 |
\let\textdaggerdbl\LWR@dash% |
| 12788 |
\let\textdollar\LWR@dash% |
| 12789 |
\let\textellipsis\LWR@dash% |
| 12790 |
\let\textemdash\LWR@dash% |
| 12791 |
\let\textendash\LWR@dash% |
| 12792 |
\let\textexclamdown\LWR@dash% |
| 12793 |
\let\textgreater\LWR@dash% |
| 12794 |
\let\textless\LWR@dash% |
| 12795 |
\let\textordfeminine\LWR@dash% |
| 12796 |
\let\textordmasculine\LWR@dash% |
| 12797 |
\let\textparagraph\LWR@dash% |
| 12798 |
\let\textperiodcentered\LWR@dash% |
| 12799 |
\let\textpertenthousand\LWR@dash% |
| 12800 |
\let\textperthousand\LWR@dash% |
| 12801 |
\let\textquestiondown\LWR@dash% |
| 12802 |
\let\textquotedblleft\LWR@dash% |
| 12803 |
\let\textquotedblright\LWR@dash% |
| 12804 |
\let\textquoteleft\LWR@dash% |
| 12805 |
\let\textquoteright\LWR@dash% |
| 12806 |
\let\textregistered\LWR@dash% |
| 12807 |
\let\textsection\LWR@dash% |
| 12808 |
\let\textsterling\LWR@dash% |
| 12809 |
\let\texttrademark\LWR@dash% |
| 12810 |
\let\textunderscore\LWR@dash% |
| 12811 |
\let\textvisiblespace\LWR@dash% |
| 12812 |
\let\copyright\LWR@dash% |
| 12813 |
\let\dag\LWR@dash% |
| 12814 |
\let\ddag\LWR@dash% |
| 12815 |
\let\dots\LWR@dash% |
| 12816 |
\let\P\LWR@dash% |
| 12817 |
\let\pounds\LWR@dash% |
| 12818 |
\let\S\LWR@dash% |
| 12819 |
\renewcommand*{\aa}{a}% |
| 12820 |
\renewcommand*{\AA}{A}% |
| 12821 |
\renewcommand*{\AE}{AE}% |
| 12822 |
\renewcommand*{\ae}{ae}% |
| 12823 |
\renewcommand*{\dh}{d}% |
| 12824 |
\renewcommand*{\DH}{D}% |
| 12825 |
\renewcommand*{\DJ}{D}% |
| 12826 |
\renewcommand*{\dj}{d}% |
| 12827 |
\renewcommand*{\IJ}{IJ}% |
| 12828 |
\renewcommand*{\ij}{ij}% |
| 12829 |
\renewcommand*{\L}{L}% |
| 12830 |
\renewcommand*{\l}{l}% |
| 12831 |
\renewcommand*{\NG}{NG}% |
| 12832 |
\renewcommand*{\ng}{ng}% |
| 12833 |
\renewcommand*{\O}{O}% |
| 12834 |
\renewcommand*{\o}{o}% |
| 12835 |
\renewcommand*{\oe}{oe}% |
| 12836 |
\renewcommand*{\OE}{OE}% |
| 12837 |
\renewcommand*{\ss}{ss}% |
| 12838 |
\renewcommand*{\SS}{SS}% |
| 12839 |
\renewcommand*{\th}{th}% |
| 12840 |
\renewcommand*{\TH}{TH}% |
| 12841 |
\let\guillemotleft\@empty% |
| 12842 |
\let\guilsinglleft\@empty% |
| 12843 |
\let\quotedblbase\@empty% |
| 12844 |
\let\textquotedbl\@empty% |
| 12845 |
\let\guillemotright\@empty% |
| 12846 |
\let\guilsinglright\@empty% |
| 12847 |
\let\quotesinglbase\@empty% |
| 12848 |
\renewcommand*{\HTMLunicode}[1]{}% |
| 12849 |
\renewcommand*{\HTMLentity}[1]{}% |
| 12850 |
\renewcommand{\textsuperscript}[1]{##1}% |
| 12851 |
\renewcommand{\textsubscript}[1]{##1}% |
| 12852 |
\renewcommand{\underline}[1]{##1}% |
| 12853 |
\RenewDocumentCommand{\hspace}{s m}{}% |
| 12854 |
\RenewDocumentCommand{\LWR@htmlspanclass}{o D(){} m +m}{{##4}}% |
| 12855 |
\DeclareExpandableDocumentCommand{\InlineClass}{D{(}{)}{} o m +m}{{##4}}% |
| 12856 |
\def\(##1\){}% |
| 12857 |
\def\[##1\]{}% |
| 12858 |
\RenewDocumentCommand{\LWR@subsingledollar}{s m m m}{}% |
| 12859 |
\renewcommand*{\TeX}{TeX}% |
| 12860 |
\renewcommand*{\LaTeX}{LaTeX}% |
| 12861 |
\renewcommand*{\LaTeXe}{LaTeX2e}% |
| 12862 |
\renewcommand*{\LuaTeX}{LuaTeX}% |
| 12863 |
\renewcommand*{\LuaLaTeX}{LuaLaTeX}% |
| 12864 |
\renewcommand*{\XeTeX}{XeTeX}% |
| 12865 |
\renewcommand*{\XeLaTeX}{XeLaTeX}% |
| 12866 |
\renewcommand*{\ConTeXt}{ConTeXt}% |
| 12867 |
\renewcommand*{\BibTeX}{BibTeX}% |
| 12868 |
\renewcommand*{\MakeIndex}{MakeIndex}% |
| 12869 |
\renewcommand*{\AmS}{AmS}% |
| 12870 |
\renewcommand*{\MiKTeX}{MiKTeX}% |
| 12871 |
\renewcommand*{\LyX}{LyX}% |
| 12872 |
\def\texorpdfstring{\expandafter\@secondoftwo}% |
| 12873 |
} |
| 12874 |
\catcode`\$=3% |
| 12875 |
\catcode`\_=8% |
| 12876 |
\newcommand*{\FilenameNullify}[1]{% |
| 12877 |
\appto{\LWR@nullfonts}{#1}% |
| 12878 |
} |
| 12879 |
\end{warpHTML} |
| 12880 |
|
| 12881 |
\begin{warpHTML} |
| 12882 |
\newcounter{LWR@externalfilecnt} |
| 12883 |
|
| 12884 |
\newbool{LWR@indisplaymathimage} |
| 12885 |
|
| 12886 |
\newbool{LWR@insidemathcomment} |
| 12887 |
\boolfalse{LWR@insidemathcomment} |
| 12888 |
|
| 12889 |
\newbool{LWR@xfakebold} |
| 12890 |
\boolfalse{LWR@xfakebold} |
| 12891 |
|
| 12892 |
\newcommand*{\LWR@orig@setBold}{} |
| 12893 |
|
| 12894 |
\newcommand*{\LWR@orig@unsetBold}{} |
| 12895 |
|
| 12896 |
\newcommand*{\LWR@applyxfakebold}{} |
| 12897 |
|
| 12898 |
\newcommand*{\LWR@setcurrentfont}{% |
| 12899 |
\LWR@traceinfo{Using font family \LWR@f@family}% |
| 12900 |
\@nameuse{LWR@print@\LWR@f@family family}% |
| 12901 |
\LWR@traceinfo{Using font series \LWR@f@series}% |
| 12902 |
\@nameuse{LWR@print@\LWR@f@series series}% |
| 12903 |
\LWR@traceinfo{Using font shape \LWR@f@shape}% |
| 12904 |
\@nameuse{LWR@print@\LWR@f@shape shape}% |
| 12905 |
\LWR@traceinfo{Using font caps shape \LWR@f@shapecaps}% |
| 12906 |
\@nameuse{LWR@print@\LWR@f@shapecaps shape}% |
| 12907 |
} |
| 12908 |
|
| 12909 |
\let\LWR@origtextdollar\$ |
| 12910 |
|
| 12911 |
\renewcommand*{\$}{% |
| 12912 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 12913 |
{\LWR@origtextdollar}% |
| 12914 |
{\HTMLunicode{00024}}% |
| 12915 |
} |
| 12916 |
|
| 12917 |
\AtBeginDocument{ |
| 12918 |
\LWR@traceinfo{AtBeginDocument lwarp_baseline_marker} |
| 12919 |
|
| 12920 |
\ifpdf |
| 12921 |
\newcommand*{\LWR@baselinename}{lwarp_baseline_marker.png} |
| 12922 |
\else |
| 12923 |
\ifXeTeX |
| 12924 |
\newcommand*{\LWR@baselinename}{lwarp_baseline_marker.png} |
| 12925 |
\else |
| 12926 |
\newcommand*{\LWR@baselinename}{lwarp_baseline_marker.eps} |
| 12927 |
\fi |
| 12928 |
\fi |
| 12929 |
|
| 12930 |
\IfFileExists{\LWR@baselinename}% |
| 12931 |
{ |
| 12932 |
\IfPackageLoadedTF{graphicx}{ |
| 12933 |
\newcommand*{\LWR@addbaselinemarker}{% |
| 12934 |
\LWR@origincludegraphics{\LWR@baselinename}% |
| 12935 |
} |
| 12936 |
}{ |
| 12937 |
\IfPackageLoadedTF{graphics}{ |
| 12938 |
\newcommand*{\LWR@addbaselinemarker}{% |
| 12939 |
\LWR@origincludegraphics{\LWR@baselinename}% |
| 12940 |
} |
| 12941 |
}{ |
| 12942 |
\newcommand*{\LWR@addbaselinemarker}{% |
| 12943 |
\global\booltrue{LWR@warnbaselinemarker}% |
| 12944 |
} |
| 12945 |
\AtEndDocument{ |
| 12946 |
\ifbool{LWR@warnbaselinemarker}{ |
| 12947 |
\PackageNoteNoLine{lwarp}{% |
| 12948 |
Load graphicx or graphics for improved\MessageBreak |
| 12949 |
SVG math sizing and baselines% |
| 12950 |
} |
| 12951 |
}{} |
| 12952 |
} |
| 12953 |
} |
| 12954 |
} |
| 12955 |
}{% lwarp_baseline_marker.png or .eps is not present |
| 12956 |
\newcommand*{\LWR@addbaselinemarker}{% |
| 12957 |
\global\booltrue{LWR@warnbaselinemarker}% |
| 12958 |
} |
| 12959 |
\AtEndDocument{ |
| 12960 |
\ifbool{LWR@warnbaselinemarker}{ |
| 12961 |
\PackageWarningNoLine{lwarp}{% |
| 12962 |
File \LWR@baselinename\space is not installed\MessageBreak |
| 12963 |
alongside the lwarp-*.sty files, so\MessageBreak |
| 12964 |
SVG math sizing and baselines may not be accurate} |
| 12965 |
}{} |
| 12966 |
} |
| 12967 |
} |
| 12968 |
|
| 12969 |
}% AtBeginDocument |
| 12970 |
|
| 12971 |
\newbool{LWR@warnbaselinemarker} |
| 12972 |
\boolfalse{LWR@warnbaselinemarker} |
| 12973 |
|
| 12974 |
\newbool{LWR@unknownmathsize} |
| 12975 |
|
| 12976 |
\newcommand*{\LWR@singledollarmeasure}[1]{% |
| 12977 |
\begingroup% |
| 12978 |
\LWR@restoreorigformatting% |
| 12979 |
\RenewDocumentEnvironment{lateximage}{s o s t? o o d()}{}{}% inside group |
| 12980 |
\LWR@print@normalsize% |
| 12981 |
\LWR@setcurrentfont% |
| 12982 |
\global\advance\c@LWR@lateximagedepth 1\relax% |
| 12983 |
\boolfalse{LWR@unknownmathsize}% |
| 12984 |
\ifmmode% |
| 12985 |
\global\sbox{\LWR@singledollarbox}{#1}% |
| 12986 |
\else% |
| 12987 |
\ifbool{LWR@dynamicmath}{% |
| 12988 |
\ifbool{mathjax}{% |
| 12989 |
\global\sbox{\LWR@singledollarbox}% |
| 12990 |
{\LWR@origensuredmath{#1}}% |
| 12991 |
}{% |
| 12992 |
\global\sbox{\LWR@singledollarbox}{#1}% |
| 12993 |
}% |
| 12994 |
}{% |
| 12995 |
\global\sbox{\LWR@singledollarbox}{#1}% |
| 12996 |
}% |
| 12997 |
\fi% |
| 12998 |
\global\sbox{\LWR@singledollarbox}{% |
| 12999 |
\usebox{\LWR@singledollarbox}% |
| 13000 |
\raisebox{-\dp\LWR@singledollarbox}{% |
| 13001 |
\LWR@addbaselinemarker% |
| 13002 |
}% |
| 13003 |
}% |
| 13004 |
\global\advance\c@LWR@lateximagedepth -1\relax% Due to AmS \text macro. |
| 13005 |
\setlength{\LWR@singledollardepth}{% |
| 13006 |
\LateximageFontScale\dp\LWR@singledollarbox% |
| 13007 |
}% |
| 13008 |
\global\LWR@singledollardepth=\LWR@singledollardepth% |
| 13009 |
\setlength{\LWR@singledollarwidth}{% |
| 13010 |
\LateximageFontScale\wd\LWR@singledollarbox% |
| 13011 |
}% |
| 13012 |
\global\LWR@singledollarwidth=\LWR@singledollarwidth% |
| 13013 |
\setlength{\LWR@singledollarheight}{% |
| 13014 |
\LateximageFontScale\ht\LWR@singledollarbox% |
| 13015 |
}% |
| 13016 |
\addtolength{\LWR@singledollarheight}{% |
| 13017 |
\LateximageFontScale\dp\LWR@singledollarbox% |
| 13018 |
}% |
| 13019 |
\global\LWR@singledollarheight=\LWR@singledollarheight% |
| 13020 |
\endgroup% |
| 13021 |
} |
| 13022 |
|
| 13023 |
\newcommand*{\LWR@subsingledollarsvg}[4]{% |
| 13024 |
\LWR@traceinfo{LWR@subsingledollartsvg}% |
| 13025 |
\LWR@singledollarmeasure{#4}% |
| 13026 |
\ifdimgreater{\LWR@singledollarwidth}{.7\LWR@singledollarheight}{% |
| 13027 |
\def\LWR@singledollarstyle{% |
| 13028 |
width:\LWR@convertto{em}{\the\LWR@singledollarwidth} em% |
| 13029 |
}% |
| 13030 |
}{% |
| 13031 |
\def\LWR@singledollarstyle{% |
| 13032 |
height:\LWR@convertto{em}{\the\LWR@singledollarheight} em% |
| 13033 |
}% |
| 13034 |
}% |
| 13035 |
\ifdimless{\LWR@singledollarwidth}{.2em}% |
| 13036 |
{% |
| 13037 |
\def\LWR@singledollarstyle{% |
| 13038 |
height:\LWR@convertto{em}{\the\LWR@singledollarheight} em% |
| 13039 |
}% |
| 13040 |
}% |
| 13041 |
{}% |
| 13042 |
\ifdimless{\LWR@singledollarheight}{.2em}% |
| 13043 |
{% |
| 13044 |
\def\LWR@singledollarstyle{% |
| 13045 |
width:\LWR@convertto{em}{\the\LWR@singledollarwidth} em% |
| 13046 |
}% |
| 13047 |
}% |
| 13048 |
{}% |
| 13049 |
\ifdimgreater{\LWR@singledollardepth}{0.05ex}{% |
| 13050 |
\def\LWR@singledollardepthstyle{% |
| 13051 |
\ ; % extra space |
| 13052 |
\LWR@print@mbox{% |
| 13053 |
vertical-align:-\LWR@convertto{em}{\the\LWR@singledollardepth} em% |
| 13054 |
} % extra space |
| 13055 |
}% |
| 13056 |
}{% |
| 13057 |
\def\LWR@singledollardepthstyle{}% |
| 13058 |
}% |
| 13059 |
\ifbool{LWR@unknownmathsize}{% |
| 13060 |
\def\LWR@singledollarstyle{}% |
| 13061 |
\def\LWR@singledollardepthstyle{}% |
| 13062 |
}{}% |
| 13063 |
\ifbool{LWR@dynamicmath}{% |
| 13064 |
\LWR@traceinfo{subsingledollarsvg: dynamic}% |
| 13065 |
\begin{lateximage}% no hashing |
| 13066 |
[\MathImageAltText]% alt tag |
| 13067 |
?% Do not detokenize the alt tag |
| 13068 |
[]% no add'l hashing |
| 13069 |
[\LWR@singledollarstyle \LWR@singledollardepthstyle]% CSS |
| 13070 |
(math)% ARIA |
| 13071 |
}{% not dynamic math |
| 13072 |
\LWR@traceinfo{subsingledollarsvg: static}% |
| 13073 |
\IfValueTF{#1}{% #1 True |
| 13074 |
\LWR@findcurrenttextcolor% sets \LWR@tempcolor |
| 13075 |
\ifbool{LWR@xfakebold}% |
| 13076 |
{\def\LWR@tempone{Y}}% |
| 13077 |
{\def\LWR@tempone{N}}% |
| 13078 |
\LWR@traceinfo{subsingledollarsvg about to lateximage}% |
| 13079 |
\begin{lateximage}*% use hashing |
| 13080 |
[#2]% alt |
| 13081 |
*% do not add open/closing braces |
| 13082 |
?% Do not detokenize the alt tag |
| 13083 |
[% addl' hashing |
| 13084 |
#3% |
| 13085 |
FM\LWR@f@family% |
| 13086 |
SR\LWR@f@series% |
| 13087 |
SH\LWR@f@shape% |
| 13088 |
SHC\LWR@f@shapecaps% |
| 13089 |
CL\LWR@tempcolor% |
| 13090 |
FB\LWR@tempone% xfakebold |
| 13091 |
]% |
| 13092 |
[\LWR@singledollarstyle \LWR@singledollardepthstyle]% CSS |
| 13093 |
(math)% ARIA |
| 13094 |
\LWR@traceinfo{subsingledollar did lateximage}% |
| 13095 |
}{% #1 False |
| 13096 |
\begin{lateximage}% no hashing |
| 13097 |
[#2]% alt |
| 13098 |
?% Do not detokenize the alt tag |
| 13099 |
[]% no add'l hashing |
| 13100 |
[\LWR@singledollarstyle \LWR@singledollardepthstyle]% CSS |
| 13101 |
(math)% ARIA |
| 13102 |
}% |
| 13103 |
}% not dynamic math |
| 13104 |
\LWR@addbaselinemarker% |
| 13105 |
\LWR@applyxfakebold% |
| 13106 |
\usebox{\LWR@singledollarbox}% |
| 13107 |
\LWR@addbaselinemarker% |
| 13108 |
\end{lateximage}% |
| 13109 |
} |
| 13110 |
|
| 13111 |
\newlength{\LWR@singledollarwidth} |
| 13112 |
\newlength{\LWR@singledollarheight} |
| 13113 |
\newlength{\LWR@singledollardepth} |
| 13114 |
|
| 13115 |
\newsavebox{\LWR@singledollarbox} |
| 13116 |
|
| 13117 |
\NewDocumentCommand{\LWR@subsingledollar}{s m m m}{% |
| 13118 |
\LWR@traceinfo{LWR@subsingledollar !#2!}% |
| 13119 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 13120 |
{% |
| 13121 |
\LWR@traceinfo{LWR@subsingledollar: already in a lateximage}% |
| 13122 |
#4% contents |
| 13123 |
}% |
| 13124 |
{% not in a lateximage |
| 13125 |
\begingroup% |
| 13126 |
\LWR@applyxfakebold% |
| 13127 |
\ifboolexpr{% |
| 13128 |
( |
| 13129 |
bool{mathjax} or |
| 13130 |
( bool{FormatWP} and bool{WPMarkMath} ) |
| 13131 |
) and |
| 13132 |
( not test { |
| 13133 |
\ifstrequal {#2}% from \ensuredmath |
| 13134 |
{\AltTextOpen\MathImageAltText\AltTextClose} |
| 13135 |
} |
| 13136 |
) and |
| 13137 |
( not bool{LWR@dynamicmath} ) |
| 13138 |
}% |
| 13139 |
{% mathjax |
| 13140 |
\LWR@traceinfo{LWR@subsingledollar: Mathjax}% |
| 13141 |
{% |
| 13142 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13143 |
\textbackslash(% |
| 13144 |
{% |
| 13145 |
\ifmmode\else\LWR@print@ttfamily\fi% |
| 13146 |
\LWR@HTMLsanitizedetokenized{\detokenize{#4}}% |
| 13147 |
}% |
| 13148 |
\textbackslash)% |
| 13149 |
}% |
| 13150 |
}% mathjax |
| 13151 |
{% not mathjax |
| 13152 |
\LWR@traceinfo{% |
| 13153 |
LWR@subsingledollar: NOT mathjax, or is ensuremath, or is dynamic% |
| 13154 |
}% |
| 13155 |
\LWR@subsingledollarsvg{#1}{#2}{#3}{#4}% |
| 13156 |
}% not mathjax |
| 13157 |
\endgroup% |
| 13158 |
}% not in a lateximage |
| 13159 |
\gdef\LWR@ThisAltText{}% |
| 13160 |
\LWR@traceinfo{LWR@subsingledollar: done}% |
| 13161 |
} |
| 13162 |
|
| 13163 |
\LetLtxMacro\LWR@origdollar$ |
| 13164 |
\LetLtxMacro\LWR@secondorigdollar$% balance for editor syntax highlighting |
| 13165 |
|
| 13166 |
\LetLtxMacro\LWR@origopenparen\( |
| 13167 |
\LetLtxMacro\LWR@origcloseparen\) |
| 13168 |
\LetLtxMacro\LWR@origopenbracket\[ |
| 13169 |
\LetLtxMacro\LWR@origclosebracket\] |
| 13170 |
\begingroup |
| 13171 |
\catcode`\$=\active% |
| 13172 |
\protected\gdef${\@ifnextchar$\LWR@doubledollar\LWR@singledollar}% |
| 13173 |
|
| 13174 |
\protected\gdef\LWR@newsingledollar{\@ifnextchar$\LWR@doubledollar\LWR@singledollar}% |
| 13175 |
|
| 13176 |
\protected\gdef\LWR@doubledollar$#1$${% |
| 13177 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 13178 |
{% mathjax: intentional blank line: |
| 13179 |
|
| 13180 |
\begingroup% |
| 13181 |
\IfSubStr{\detokenize\expandafter{#1}}{\detokenize{note}}{% |
| 13182 |
\LWR@hidelatexequation{math}{#1}% |
| 13183 |
\InlineClass{hidden}{\LWR@syncnotenumbers}% |
| 13184 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13185 |
\textbackslash[% |
| 13186 |
{% |
| 13187 |
\LWR@print@ttfamily% |
| 13188 |
\LWR@HTMLsanitizedetokenized{\detokenize{#1}}% |
| 13189 |
}% |
| 13190 |
\textbackslash] |
| 13191 |
\InlineClass{hidden}{\LWR@syncnotenames}% |
| 13192 |
}% yes note |
| 13193 |
{% no note |
| 13194 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13195 |
\textbackslash[% |
| 13196 |
{% |
| 13197 |
\LWR@print@ttfamily% |
| 13198 |
\LWR@HTMLsanitizedetokenized{\detokenize{#1}}% |
| 13199 |
}% |
| 13200 |
\textbackslash] |
| 13201 |
}% no note |
| 13202 |
\endgroup% |
| 13203 |
|
| 13204 |
}% mathjax |
| 13205 |
{% not mathjax |
| 13206 |
\begin{BlockClass}{displaymath}% |
| 13207 |
\LWR@newautoidanchor% |
| 13208 |
\booltrue{LWR@indisplaymathimage}% |
| 13209 |
\begin{lateximage}% |
| 13210 |
[% alt text |
| 13211 |
\textbackslash{[} % extra space |
| 13212 |
\LWR@HTMLsanitizedetokenized{\detokenize{#1}} % extra space |
| 13213 |
\textbackslash{]}% |
| 13214 |
]% |
| 13215 |
*% do not add open/closing braces |
| 13216 |
?% Do not detokenize the alt tag |
| 13217 |
(math)% ARIA |
| 13218 |
\LWR@applyxfakebold% |
| 13219 |
\LWR@origdollar\LWR@origdollar#1\LWR@origdollar\LWR@origdollar% |
| 13220 |
\end{lateximage}% |
| 13221 |
\end{BlockClass}% |
| 13222 |
}% not mathjax |
| 13223 |
\gdef\LWR@ThisAltText{}% |
| 13224 |
}% |
| 13225 |
\protected\gdef\LWR@singledollar#1${% |
| 13226 |
\LWR@traceinfo{LWR@singledollar}% |
| 13227 |
\ifbool{mathjax}{% |
| 13228 |
\begingroup% |
| 13229 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13230 |
\LWR@subsingledollar*% |
| 13231 |
{% alt tag |
| 13232 |
\textbackslash( % |
| 13233 |
\LWR@HTMLsanitizedetokenized{\detokenize{#1}} % extra space |
| 13234 |
\textbackslash)% |
| 13235 |
}% |
| 13236 |
{singledollar}% add'l hashing |
| 13237 |
{#1}% contents |
| 13238 |
\endgroup% |
| 13239 |
}{% not mathjax |
| 13240 |
\LWR@subsingledollar*% |
| 13241 |
{% alt tag |
| 13242 |
\textbackslash( % |
| 13243 |
\LWR@HTMLsanitizedetokenized{\detokenize{#1}} % extra space |
| 13244 |
\textbackslash)% |
| 13245 |
}% |
| 13246 |
{singledollar}% add'l hashing |
| 13247 |
{\LWR@origensuredmath{#1}}% contents |
| 13248 |
}% not mathjax |
| 13249 |
\gdef\LWR@ThisAltText{}% |
| 13250 |
} |
| 13251 |
|
| 13252 |
\AtBeginDocument{ |
| 13253 |
\LWR@traceinfo{AtBeginDocument paren math} |
| 13254 |
\protected\gdef\(#1\){$#1$} |
| 13255 |
\protected\gdef\[#1\]{$$#1$$} |
| 13256 |
} |
| 13257 |
|
| 13258 |
\endgroup% active $ |
| 13259 |
\AtBeginDocument{ |
| 13260 |
\LWR@traceinfo{AtBeginDocument bracket math} |
| 13261 |
\LetLtxMacro\LWR@openbracketnormal\[ |
| 13262 |
\LetLtxMacro\LWR@closebracketnormal\] |
| 13263 |
} |
| 13264 |
|
| 13265 |
\LetLtxMacro\LWR@origensuredmath\@ensuredmath |
| 13266 |
|
| 13267 |
\renewcommand{\@ensuredmath}[1]{% |
| 13268 |
\ifbool{mathjax}{% |
| 13269 |
\begingroup% |
| 13270 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13271 |
\LWR@subsingledollar*{\AltTextOpen\MathImageAltText\AltTextClose}% |
| 13272 |
{% |
| 13273 |
\protect\LWR@HTMLsanitizedetokenized{\detokenize\expandafter{#1}}% |
| 13274 |
}% |
| 13275 |
{% |
| 13276 |
\relax% |
| 13277 |
\LWR@origensuredmath{#1}% |
| 13278 |
}% |
| 13279 |
\endgroup% |
| 13280 |
}{% SVG math |
| 13281 |
\ifmmode% |
| 13282 |
\LWR@origensuredmath{#1}% |
| 13283 |
\else% |
| 13284 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 13285 |
{\LWR@origensuredmath{#1}}% |
| 13286 |
{% |
| 13287 |
\LWR@subsingledollar*% |
| 13288 |
{\AltTextOpen\MathImageAltText\AltTextClose}% |
| 13289 |
{% |
| 13290 |
\protect\LWR@HTMLsanitizedetokenized{% |
| 13291 |
\detokenize\expandafter{#1}% |
| 13292 |
}% |
| 13293 |
}% |
| 13294 |
{\LWR@origensuredmath{#1}}% |
| 13295 |
}% |
| 13296 |
\fi% |
| 13297 |
}% |
| 13298 |
\gdef\LWR@ThisAltText{}% |
| 13299 |
} |
| 13300 |
|
| 13301 |
\let\LWR@orig@math\math |
| 13302 |
\let\LWR@orig@endmath\endmath |
| 13303 |
|
| 13304 |
\let\LWR@orig@displaymath\displaymath |
| 13305 |
\let\LWR@orig@enddisplaymath\enddisplaymath |
| 13306 |
|
| 13307 |
\let\math\relax |
| 13308 |
\let\endmath\relax |
| 13309 |
|
| 13310 |
\let\displaymath\relax |
| 13311 |
\let\enddisplaymath\relax |
| 13312 |
|
| 13313 |
\NewEnviron{math}{\expandafter\(\BODY\)} |
| 13314 |
\NewEnviron{LWR@displaymathnormal}{\expandafter\[\BODY\]\@ignoretrue} |
| 13315 |
|
| 13316 |
\LetLtxMacro\displaymath\LWR@displaymathnormal% |
| 13317 |
\LetLtxMacro\enddisplaymath\endLWR@displaymathnormal% |
| 13318 |
\newenvironment{LWR@displaymathother} |
| 13319 |
{% |
| 13320 |
\begin{BlockClass}{displaymath}% |
| 13321 |
\LWR@newautoidanchor% |
| 13322 |
\booltrue{LWR@indisplaymathimage}% |
| 13323 |
\begin{lateximage}[\MathImageAltText]?(math)% [alt](ARIA) |
| 13324 |
\LWR@origdollar\LWR@origdollar% |
| 13325 |
} |
| 13326 |
{% |
| 13327 |
\LWR@origdollar\LWR@origdollar% |
| 13328 |
\end{lateximage}% |
| 13329 |
\end{BlockClass}% |
| 13330 |
} |
| 13331 |
\newenvironment{LWR@equationother} |
| 13332 |
{% |
| 13333 |
\begin{BlockClass}{displaymathnumbered}% |
| 13334 |
\LWR@newautoidanchor% |
| 13335 |
\booltrue{LWR@indisplaymathimage}% |
| 13336 |
\begin{lateximage}[\MathImageAltText]?(math)% [alt](ARIA) |
| 13337 |
\LWR@orig@equation% |
| 13338 |
} |
| 13339 |
{% |
| 13340 |
\LWR@orig@endequation% |
| 13341 |
\end{lateximage}% |
| 13342 |
\end{BlockClass}% |
| 13343 |
} |
| 13344 |
|
| 13345 |
\newcounter{LWR@nextequation} |
| 13346 |
\newcommand\LWR@article@theequation{\@arabic\c@equation} |
| 13347 |
|
| 13348 |
\newcommand\LWR@book@theequation |
| 13349 |
{\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation} |
| 13350 |
|
| 13351 |
\newcommand\LWR@chapter@theequation{\thechapter.\arabic{equation}} |
| 13352 |
\newcommand\LWR@section@thequation{\thesection.\arabic{equation}} |
| 13353 |
\newcommand\LWR@subsection@thequation{\thesubsection.\arabic{equation}} |
| 13354 |
|
| 13355 |
\AtBeginDocument{ |
| 13356 |
\LWR@traceinfo{AtBeginDocument MathJax} |
| 13357 |
% default per article class: |
| 13358 |
\newcommand*{\theMathJaxsubequations}{0} |
| 13359 |
\newcommand*{\theMathJaxsection}{} |
| 13360 |
\newcommand*{\theMathJaxequation}{\arabic{equation}} |
| 13361 |
|
| 13362 |
\ifdefstrequal{\theequation}{\LWR@article@theequation} |
| 13363 |
{}{ |
| 13364 |
\ifdefstrequal{\theequation}{\LWR@book@theequation}{ |
| 13365 |
\renewcommand*{\theMathJaxsection}{\ifnum \c@chapter>\z@ \thechapter.\fi} |
| 13366 |
}{ |
| 13367 |
\ifdefstrequal{\theequation}{\LWR@subsection@thequation}{ |
| 13368 |
\renewcommand*{\theMathJaxsection}{\thesubsection{}.} |
| 13369 |
}{ |
| 13370 |
\ifdefstrequal{\theequation}{\LWR@section@thequation}{ |
| 13371 |
\renewcommand*{\theMathJaxsection}{\thesection{}.} |
| 13372 |
}{ |
| 13373 |
\ifdefstrequal{\theequation}{\LWR@chapter@theequation}{ |
| 13374 |
\renewcommand*{\theMathJaxsection}{\thechapter{}.} |
| 13375 |
}{% unknown format |
| 13376 |
\PackageWarningNoLine{lwarp} |
| 13377 |
{% |
| 13378 |
Unknown equation tag format for \protect\theequation.\MessageBreak |
| 13379 |
Article-style equation numbering will be used% |
| 13380 |
} |
| 13381 |
}}}}} |
| 13382 |
} |
| 13383 |
\newcommand*{\LWR@syncmathjax}{% |
| 13384 |
\LWR@stoppars% |
| 13385 |
\InlineClass{hidden}{ |
| 13386 |
\textbackslash(% |
| 13387 |
\textbackslash{}seteqnumber% |
| 13388 |
\{\theMathJaxsubequations\}% |
| 13389 |
\{\theMathJaxsection\}% |
| 13390 |
\{\theMathJaxequation\}% |
| 13391 |
\textbackslash)% |
| 13392 |
} |
| 13393 |
\LWR@startpars% |
| 13394 |
} |
| 13395 |
\NewDocumentCommand{\LWR@hidelatexequation}{m +m}{% |
| 13396 |
\LWR@stoppars |
| 13397 |
\LWR@htmlopencomment |
| 13398 |
|
| 13399 |
\begingroup |
| 13400 |
\@nameuse{LWR@orig@#1} |
| 13401 |
\LWR@restoreorigformatting |
| 13402 |
\booltrue{LWR@insidemathcomment} |
| 13403 |
\hbadness=10000\relax% |
| 13404 |
#2 |
| 13405 |
\@nameuse{LWR@orig@end#1} |
| 13406 |
\endgroup |
| 13407 |
|
| 13408 |
\LWR@htmlclosecomment |
| 13409 |
\boolfalse{LWR@insidemathcomment} |
| 13410 |
\LWR@startpars |
| 13411 |
} |
| 13412 |
|
| 13413 |
\NewDocumentCommand{\LWR@addmathjax}{m +m}{% |
| 13414 |
\LWR@orignobreakspace\LWR@orignewline |
| 13415 |
{% |
| 13416 |
\LWR@print@ttfamily% |
| 13417 |
\textbackslash{}begin\{#1\} |
| 13418 |
\ifboolexpr{ |
| 13419 |
test {\ifstrequal{#1}{alignat}} or |
| 13420 |
test {\ifstrequal{#1}{alignat*}} or |
| 13421 |
test {\ifstrequal{#1}{alignat+}} |
| 13422 |
}% |
| 13423 |
{\{\arabic{LWR@maxfields@}\}}% |
| 13424 |
{}% |
| 13425 |
\LWR@orignewline% |
| 13426 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13427 |
\LWR@HTMLsanitizeexpanded{\detokenize\expandafter{#2}}% |
| 13428 |
\LWR@orignewline% |
| 13429 |
\textbackslash{}end\{#1\} |
| 13430 |
}% |
| 13431 |
\LWR@orignewline |
| 13432 |
} |
| 13433 |
|
| 13434 |
\AtBeginDocument{ |
| 13435 |
\LWR@traceinfo{AtBeginDocument equation 1} |
| 13436 |
\let\LWR@orig@equation\equation |
| 13437 |
\let\LWR@orig@endequation\endequation |
| 13438 |
\csletcs{LWR@orig@equation*}{equation*} |
| 13439 |
\csletcs{LWR@orig@endequation*}{endequation*} |
| 13440 |
} |
| 13441 |
\newcommand*{\LWR@doequation}[2]{% |
| 13442 |
|
| 13443 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 13444 |
{ |
| 13445 |
\LWR@syncmathjax% |
| 13446 |
\LWR@hidelatexequation{#2}{#1} |
| 13447 |
} |
| 13448 |
{% not mathjax |
| 13449 |
\ifstrequal{#2}{equation*}{% |
| 13450 |
\begin{BlockClass}{displaymath}% |
| 13451 |
}{% |
| 13452 |
\begin{BlockClass}{displaymathnumbered}% |
| 13453 |
}% |
| 13454 |
\LWR@newautoidanchor% |
| 13455 |
\booltrue{LWR@indisplaymathimage}% |
| 13456 |
\begin{lateximage}[% |
| 13457 |
\ifstrequal{#2}{equation*}{% |
| 13458 |
\ifdefequal{\LWR@equationtag}{\theequation}{% |
| 13459 |
}{% |
| 13460 |
(\LWR@equationtag) % tag was given |
| 13461 |
}% |
| 13462 |
}{% |
| 13463 |
(\LWR@equationtag) % automatic numbering |
| 13464 |
}% |
| 13465 |
\textbackslash{begin\{#2\}} % extra space |
| 13466 |
\LWR@HTMLsanitizeexpanded{\detokenize\expandafter{#1}} % extra space |
| 13467 |
\textbackslash{end\{#2\}}% |
| 13468 |
]*?(math)% alt tag, ARIA |
| 13469 |
\LWR@applyxfakebold% |
| 13470 |
\@nameuse{LWR@orig@#2}% |
| 13471 |
#1% contents collected by \collect@body |
| 13472 |
\@nameuse{LWR@orig@end#2}% |
| 13473 |
\end{lateximage}% |
| 13474 |
\end{BlockClass}% |
| 13475 |
}% not mathjax |
| 13476 |
\gdef\LWR@ThisAltText{}% |
| 13477 |
} |
| 13478 |
\newcommand*{\LWR@doendequation}[1]{% |
| 13479 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 13480 |
{% |
| 13481 |
\IfSubStr{\detokenize\expandafter{\BODY}}{\detokenize{note}}{% |
| 13482 |
\InlineClass{hidden}{\LWR@syncnotenumbers}% |
| 13483 |
\LWR@addmathjax{#1}{\BODY}% |
| 13484 |
\InlineClass{hidden}{\LWR@syncnotenames}% |
| 13485 |
}{% |
| 13486 |
\LWR@addmathjax{#1}{\BODY}% |
| 13487 |
}% |
| 13488 |
}{}% |
| 13489 |
|
| 13490 |
\gdef\LWR@ThisAltText{}% |
| 13491 |
} |
| 13492 |
|
| 13493 |
\newcommand*{\LWR@synconenotenumber}[2]{% |
| 13494 |
\textbackslash( |
| 13495 |
\textbackslash{}def\textbackslash{}#1\{#2\} |
| 13496 |
\textbackslash) |
| 13497 |
} |
| 13498 |
|
| 13499 |
\newcommand*{\LWR@syncnotenumbers}{\LWR@synconenotenumber{LWRfootnote}{\thefootnote}} |
| 13500 |
|
| 13501 |
\newcommand*{\LWR@synconenotename}[2]{% |
| 13502 |
\textbackslash( |
| 13503 |
\textbackslash{}def\textbackslash{}#1name\{#2\} |
| 13504 |
\textbackslash) |
| 13505 |
} |
| 13506 |
|
| 13507 |
\newcommand*{\LWR@syncnotenames}{\LWR@synconenotename{LWRfootnote}{\footnotename}} |
| 13508 |
|
| 13509 |
\AtBeginDocument{ |
| 13510 |
\LWR@traceinfo{AtBeginDocument equation 2} |
| 13511 |
\let\equation\relax |
| 13512 |
\let\endequation\relax |
| 13513 |
\csletcs{equation*}{relax} |
| 13514 |
\csletcs{endequation*}{relax} |
| 13515 |
} |
| 13516 |
|
| 13517 |
\AtBeginDocument{ |
| 13518 |
\LWR@traceinfo{AtBeginDocument equation 3} |
| 13519 |
\NewEnviron{equation}% |
| 13520 |
{\LWR@doequation{\BODY}{equation}}% |
| 13521 |
[\LWR@doendequation{equation}] |
| 13522 |
|
| 13523 |
\LetLtxMacro\LWR@equationnormal\equation |
| 13524 |
\LetLtxMacro\endLWR@equationnormal\endequation |
| 13525 |
}% AtBeginDocument |
| 13526 |
|
| 13527 |
\AtBeginDocument{ |
| 13528 |
\LWR@traceinfo{AtBeginDocument equation 4} |
| 13529 |
\NewEnviron{equation*}% |
| 13530 |
{\LWR@doequation{\BODY}{equation*}}% |
| 13531 |
[\LWR@doendequation{equation*}] |
| 13532 |
|
| 13533 |
\csletcs{LWR@equationnormalstar}{equation*} |
| 13534 |
\csletcs{LWR@endequationnormalstar}{endequation*} |
| 13535 |
}% AtBeginDocument |
| 13536 |
|
| 13537 |
\AtBeginDocument{ |
| 13538 |
\LWR@traceinfo{AtBeginDocument equation 5} |
| 13539 |
\LetLtxMacro\LWR@equationless\equation |
| 13540 |
\LetLtxMacro\endLWR@equationless\endequation |
| 13541 |
\csletcs{LWR@equationlessstar}{equation*} |
| 13542 |
\csletcs{LWR@endequationlessstar}{endequation*} |
| 13543 |
} |
| 13544 |
|
| 13545 |
\newcommand*{\displaymathnormal}{% |
| 13546 |
\ifbool{LWR@origmathjax}{\booltrue{mathjax}}{\boolfalse{mathjax}}% |
| 13547 |
\LetLtxMacro\[\LWR@openbracketnormal% |
| 13548 |
\LetLtxMacro\]\LWR@closebracketnormal% |
| 13549 |
\LetLtxMacro\displaymath\LWR@displaymathnormal% |
| 13550 |
\LetLtxMacro\enddisplaymath\endLWR@displaymathnormal% |
| 13551 |
\LetLtxMacro\equation\LWR@equationnormal% |
| 13552 |
\LetLtxMacro\endequation\endLWR@equationnormal% |
| 13553 |
\csletcs{equation*}{LWR@equationnormalstar}% |
| 13554 |
\csletcs{endequation*}{LWR@endequationnormalstar}% |
| 13555 |
} |
| 13556 |
|
| 13557 |
\newcommand*{\displaymathother}{% |
| 13558 |
\boolfalse{mathjax}% |
| 13559 |
\LetLtxMacro\displaymath\LWR@displaymathother% |
| 13560 |
\LetLtxMacro\enddisplaymath\endLWR@displaymathother% |
| 13561 |
\LetLtxMacro\[\LWR@displaymathother% |
| 13562 |
\LetLtxMacro\]\endLWR@displaymathother% |
| 13563 |
\LetLtxMacro\equation\LWR@equationother% |
| 13564 |
\LetLtxMacro\endequation\endLWR@equationother% |
| 13565 |
\csletcs{equation*}{displaymath}% |
| 13566 |
\csletcs{endequation*}{enddisplaymath}% |
| 13567 |
} |
| 13568 |
|
| 13569 |
\end{warpHTML} |
| 13570 |
|
| 13571 |
\begin{warpprint} |
| 13572 |
|
| 13573 |
\newcommand*{\displaymathnormal}{} |
| 13574 |
\newcommand*{\displaymathother}{} |
| 13575 |
\newcommand*{\theMathJaxsubequations}{0} |
| 13576 |
\newcommand*{\theMathJaxsection}{} |
| 13577 |
\newcommand*{\theMathJaxequation}{\arabic{equation}} |
| 13578 |
|
| 13579 |
\end{warpprint} |
| 13580 |
|
| 13581 |
\begin{warpHTML} |
| 13582 |
|
| 13583 |
\newbool{LWR@amsmultline} |
| 13584 |
\boolfalse{LWR@amsmultline} |
| 13585 |
|
| 13586 |
\newcommand*{\LWR@beginhideamsmath}{ |
| 13587 |
\LWR@stoppars |
| 13588 |
\LWR@orignobreakspace\LWR@orignewline |
| 13589 |
\LWR@htmlopencomment |
| 13590 |
|
| 13591 |
\begingroup |
| 13592 |
\LWR@restoreorigformatting |
| 13593 |
\hbadness=10000\relax% |
| 13594 |
\booltrue{LWR@insidemathcomment} |
| 13595 |
} |
| 13596 |
|
| 13597 |
\newcommand*{\LWR@endhideamsmath}{ |
| 13598 |
\endgroup |
| 13599 |
|
| 13600 |
\LWR@htmlclosecomment |
| 13601 |
\boolfalse{LWR@insidemathcomment} |
| 13602 |
\LWR@orignewline |
| 13603 |
\LWR@startpars |
| 13604 |
} |
| 13605 |
|
| 13606 |
|
| 13607 |
\let\LWR@origeqnarray\eqnarray |
| 13608 |
\let\LWR@origendeqnarray\endeqnarray |
| 13609 |
\newbool{LWR@numbereqnarray} |
| 13610 |
\booltrue{LWR@numbereqnarray} |
| 13611 |
\newcommand{\LWR@eqnarrayfactor}{% |
| 13612 |
\ifboolexpr{bool{mathjax} or ( bool{FormatWP} and bool{WPMarkMath} ) }% |
| 13613 |
{% |
| 13614 |
\LWR@syncmathjax% |
| 13615 |
\boolfalse{LWR@amsmultline}% |
| 13616 |
\boolfalse{LWR@HTMLsanitize@tmpb@removebackslash}% |
| 13617 |
\ifbool{LWR@numbereqnarray}% |
| 13618 |
{% |
| 13619 |
\LWR@beginhideamsmath% |
| 13620 |
\LWR@origeqnarray% |
| 13621 |
\BODY% |
| 13622 |
\LWR@origendeqnarray% |
| 13623 |
\LWR@endhideamsmath% |
| 13624 |
\LWR@addmathjax{eqnarray}{\BODY}% |
| 13625 |
}% |
| 13626 |
{% not LWR@numbereqnarray |
| 13627 |
\LWR@addmathjax{eqnarray*}{\BODY}% |
| 13628 |
}% LWR@numbereqnarray |
| 13629 |
}% mathjax |
| 13630 |
{% not mathjax |
| 13631 |
\ifbool{LWR@numbereqnarray}% |
| 13632 |
{% |
| 13633 |
\begin{BlockClass}{displaymathnumbered}% |
| 13634 |
\LWR@newautoidanchor% |
| 13635 |
\booltrue{LWR@indisplaymathimage}% |
| 13636 |
\begin{lateximage}[% |
| 13637 |
(\LWR@startingequationtag\textendash\LWR@equationtag)% |
| 13638 |
\LWR@addmathjax{eqnarray}{\BODY}% |
| 13639 |
]% |
| 13640 |
*?(math)% |
| 13641 |
\LWR@applyxfakebold% |
| 13642 |
\LWR@origeqnarray% |
| 13643 |
\BODY% |
| 13644 |
\LWR@origendeqnarray% |
| 13645 |
\end{lateximage}% |
| 13646 |
\end{BlockClass}% |
| 13647 |
}% |
| 13648 |
{% not LWR@numbereqnarray |
| 13649 |
\begin{BlockClass}{displaymath}% |
| 13650 |
\LWR@newautoidanchor% |
| 13651 |
\booltrue{LWR@indisplaymathimage}% |
| 13652 |
\begin{lateximage}[% |
| 13653 |
\LWR@addmathjax{eqnarray*}{\BODY}% |
| 13654 |
]*?(math)% |
| 13655 |
\LWR@applyxfakebold% |
| 13656 |
\def\@eqncr{\nonumber\@seqncr}% |
| 13657 |
\csuse{LWR@origeqnarray}% |
| 13658 |
\BODY% |
| 13659 |
\nonumber\csuse{LWR@origendeqnarray}% |
| 13660 |
\end{lateximage}% |
| 13661 |
\end{BlockClass}% |
| 13662 |
}% LWR@numbereqnarray |
| 13663 |
}% not mathjax |
| 13664 |
\booltrue{LWR@numbereqnarray}% |
| 13665 |
\gdef\LWR@ThisAltText{}% |
| 13666 |
} |
| 13667 |
\RenewEnviron{eqnarray} |
| 13668 |
{% |
| 13669 |
|
| 13670 |
\LWR@eqnarrayfactor |
| 13671 |
|
| 13672 |
} |
| 13673 |
\csgpreto{eqnarray*}{\boolfalse{LWR@numbereqnarray}} |
| 13674 |
\end{warpHTML} |
| 13675 |
|
| 13676 |
\begin{warpHTML} |
| 13677 |
\newcounter{LWR@lateximagenumber} |
| 13678 |
\setcounter{LWR@lateximagenumber}{0} |
| 13679 |
|
| 13680 |
\newcounter{LWR@lateximagedepth} |
| 13681 |
\setcounter{LWR@lateximagedepth}{0} |
| 13682 |
\newcounter{LWR@saved@lateximagedepth} |
| 13683 |
\setcounter{LWR@saved@lateximagedepth}{0} |
| 13684 |
|
| 13685 |
\edef\LWR@hashmark{\string#} % for use in \write |
| 13686 |
\edef\LWR@percent{\@percentchar} % for use in \write |
| 13687 |
\newcounter{LWR@LIpage} |
| 13688 |
\end{warpHTML} |
| 13689 |
|
| 13690 |
\begin{warpall} |
| 13691 |
|
| 13692 |
\newcommand*{\LateximageFontSizeName}{normalsize} |
| 13693 |
|
| 13694 |
\newcommand*{\LateximageFontScale}{1} |
| 13695 |
|
| 13696 |
\end{warpall} |
| 13697 |
|
| 13698 |
|
| 13699 |
\begin{warpHTML} |
| 13700 |
|
| 13701 |
\newcounter{LWR@startingequation} |
| 13702 |
|
| 13703 |
\@ifundefined{chapter} |
| 13704 |
{ |
| 13705 |
\renewcommand{\theLWR@startingequation}{% |
| 13706 |
\arabic{LWR@startingequation}% |
| 13707 |
} |
| 13708 |
} |
| 13709 |
{% chapter defined |
| 13710 |
\renewcommand{\theLWR@startingequation}{% |
| 13711 |
\ifnumcomp{\value{chapter}}{>}{0}{\arabic{chapter}.}{}% |
| 13712 |
\arabic{LWR@startingequation}% |
| 13713 |
} |
| 13714 |
} |
| 13715 |
|
| 13716 |
\newbool{LWR@isstartingequation} |
| 13717 |
|
| 13718 |
\let\LWR@startingequationtag\theLWR@startingequation |
| 13719 |
|
| 13720 |
\newcommand*{\LWR@equationtag}{} |
| 13721 |
|
| 13722 |
\AtBeginDocument{ |
| 13723 |
\LWR@traceinfo{AtBeginDocument svg math} |
| 13724 |
|
| 13725 |
\ifbool{mathjax}{}{% not mathjax |
| 13726 |
|
| 13727 |
\NewDocumentCommand{\LWR@remembertag}{m}{% |
| 13728 |
\ifbool{LWR@isstartingequation}% |
| 13729 |
{% |
| 13730 |
\global\boolfalse{LWR@isstartingequation}% |
| 13731 |
\xdef\LWR@startingequationtag{#1}% |
| 13732 |
}{}% |
| 13733 |
\xdef\LWR@equationtag{#1}% |
| 13734 |
}% |
| 13735 |
|
| 13736 |
}% not mathjax |
| 13737 |
}% AtBeginDocument |
| 13738 |
|
| 13739 |
|
| 13740 |
\newcommand*{\LWR@amsmathbody}[1] |
| 13741 |
{% |
| 13742 |
\textbackslash\{begin\}\{#1\} % extra space |
| 13743 |
\LWR@HTMLsanitizeexpanded{\detokenize\expandafter{\the\@envbody}}% |
| 13744 |
\textbackslash\{end\}\{#1\}% |
| 13745 |
} |
| 13746 |
|
| 13747 |
\newcommand*{\LWR@amsmathbodynumbered}[1] |
| 13748 |
{% |
| 13749 |
\ifnumcomp{\value{LWR@startingequation}}{=}{\value{equation}}% |
| 13750 |
{(\LWR@equationtag)}% |
| 13751 |
{(\LWR@startingequationtag\textendash\LWR@equationtag)} % extra space |
| 13752 |
\LWR@amsmathbody{#1} % extra space |
| 13753 |
} |
| 13754 |
|
| 13755 |
|
| 13756 |
\newcommand{\LWR@lateximage@oneimageb}[4]{% |
| 13757 |
\LWR@subinlineimage{#1}{lateximage}% |
| 13758 |
{% |
| 13759 |
\LWR@print@mbox{% |
| 13760 |
\LWR@ImagesDirectory\OSPathSymbol% |
| 13761 |
#2% |
| 13762 |
}% |
| 13763 |
}{svg}{#3}{#4}% |
| 13764 |
} |
| 13765 |
|
| 13766 |
\newcommand{\LWR@lateximage@oneimage}[5]{% |
| 13767 |
\LWR@traceinfo{LWR@lateximage@oneimage !#1!#2!#3!#4!#5!}% |
| 13768 |
\ifdefvoid{\LWR@ThisAltText}{% |
| 13769 |
\IfBooleanTF{#4}{% |
| 13770 |
\LWR@lateximage@oneimageb{#1}{#2}{#3}{#5}% |
| 13771 |
}{% |
| 13772 |
\LWR@lateximage@oneimageb% |
| 13773 |
{\AltTextOpen#1\AltTextClose}% |
| 13774 |
{#2}{#3}{#5}% |
| 13775 |
}% |
| 13776 |
}{% |
| 13777 |
\LWR@lateximage@oneimageb% |
| 13778 |
{\AltTextOpen\LWR@ThisAltText\AltTextClose}% |
| 13779 |
{#2}{#3}{#5}% |
| 13780 |
}% |
| 13781 |
} |
| 13782 |
|
| 13783 |
\catcode`\$=\active% |
| 13784 |
|
| 13785 |
\NewDocumentEnvironment{lateximage}{s o s t? O{} O{} D(){}}% |
| 13786 |
{% |
| 13787 |
\LWR@traceinfo{lateximage !#1!#2!#3!#4!#5!#6!}% |
| 13788 |
\LWR@traceinfo{lateximage: starting on \jobname.pdf page \arabic{page}}% |
| 13789 |
\LWR@traceinfo{lateximage: entering depth is \arabic{LWR@lateximagedepth}}% |
| 13790 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{0}% |
| 13791 |
{% |
| 13792 |
\global\advance\c@LWR@lateximagedepth 1\relax% Due to AmS \text macro. |
| 13793 |
}% |
| 13794 |
{% start of outer-most lateximage |
| 13795 |
\LWR@traceinfo{lateximage: starting outer-most lateximage}% |
| 13796 |
\setcounter{LWR@startingequation}{\value{equation}}% |
| 13797 |
\addtocounter{LWR@startingequation}{1}% |
| 13798 |
\booltrue{LWR@isstartingequation}% |
| 13799 |
\let\LWR@startingequationtag\theLWR@startingequation% |
| 13800 |
\let\LWR@equationtag\theequation% |
| 13801 |
\addtocounter{LWR@lateximagenumber}{1}% |
| 13802 |
\LWR@traceinfo{lateximage: LWR@lateximagenumber is \arabic{LWR@lateximagenumber}}% |
| 13803 |
\boolfalse{mathjax}% |
| 13804 |
\LWR@ensuredoingapar% |
| 13805 |
\hbadness=10000\relax% |
| 13806 |
\addtocounter{LWR@externalfilecnt}{1}% |
| 13807 |
\LWR@traceinfo{lateximage: LWR@externalfilecnt is \arabic{LWR@externalfilecnt}}% |
| 13808 |
\setcounterpageref{LWR@LIpage}{% |
| 13809 |
LWRlateximage-\BaseJobname-\arabic{LWR@lateximagenumber}% |
| 13810 |
}% |
| 13811 |
\LWR@traceinfo{lateximage: LWR@LIpage is \arabic{LWR@LIpage}}% |
| 13812 |
\LWR@htmltag{span\LWR@indentHTML% |
| 13813 |
id=\textquotedbl{}% |
| 13814 |
lateximage-\BaseJobname-\arabic{LWR@lateximagenumber}% |
| 13815 |
\textquotedbl\LWR@indentHTML |
| 13816 |
class=\textquotedbl{}lateximagesource\textquotedbl\LWR@orignewline |
| 13817 |
}% |
| 13818 |
\LWR@traceinfo{lateximage: about to write to \BaseJobname-images.txt}% |
| 13819 |
\IfBooleanTF{#1}% starred |
| 13820 |
{% hash |
| 13821 |
\ifdefvoid{\LWR@ThisAltText}{% |
| 13822 |
\IfBooleanTF{#3}{% no open/close tags? |
| 13823 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13824 |
{% don't detokenize |
| 13825 |
\edef\LWR@hashedname{% |
| 13826 |
\LWR@mdfive{#2-!-#5}% |
| 13827 |
}% |
| 13828 |
}% |
| 13829 |
{% do detokenize |
| 13830 |
\edef\LWR@hashedname{% |
| 13831 |
\LWR@mdfive{\detokenize\expandafter{#2}-!-#5}% |
| 13832 |
}% |
| 13833 |
}% |
| 13834 |
}{% |
| 13835 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13836 |
{% don't detokenize |
| 13837 |
\edef\LWR@hashedname{% |
| 13838 |
\LWR@mdfive{\AltTextOpen#2\AltTextClose-!-#5}% |
| 13839 |
}% |
| 13840 |
}% |
| 13841 |
{% do detokenize |
| 13842 |
\edef\LWR@hashedname{% |
| 13843 |
\LWR@mdfive{\detokenize\expandafter{\AltTextOpen#2\AltTextClose}-!-#5}% |
| 13844 |
}% |
| 13845 |
}% |
| 13846 |
}% |
| 13847 |
}{% |
| 13848 |
\edef\LWR@hashedname{% |
| 13849 |
\LWR@mdfive{\detokenize\expandafter{\AltTextOpen\LWR@ThisAltText\AltTextClose}-!-#5}% |
| 13850 |
}% |
| 13851 |
}% |
| 13852 |
\LWR@traceinfo{lateximage: hash is \LWR@hashedname}% |
| 13853 |
\immediate\write\LWR@lateximagesfile{% |
| 13854 |
|\arabic{LWR@LIpage}|true|\LWR@hashedname|% |
| 13855 |
}% |
| 13856 |
}% hash |
| 13857 |
{% no hash |
| 13858 |
\LWR@traceinfo{lateximage: hash false}% |
| 13859 |
\immediate\write\LWR@lateximagesfile{% |
| 13860 |
|\arabic{LWR@LIpage}|false|\LWR@ImagesName\arabic{LWR@externalfilecnt}|% |
| 13861 |
}% |
| 13862 |
}% no hash |
| 13863 |
\LWR@traceinfo{lateximage: about to create open comment}% |
| 13864 |
\LWR@htmlopencomment% |
| 13865 |
\addtocounter{LWR@lateximagedepth}{1}% |
| 13866 |
\LWR@traceinfo{lateximage: about to create a new page}% |
| 13867 |
\LWR@maybe@orignewpage% |
| 13868 |
\LWR@traceinfo{lateximage: about to create minipage}% |
| 13869 |
\setcounter{LWR@mpfootnote@store}{\value{mpfootnote}} |
| 13870 |
\ifdimless{\linewidth}{6in}{% |
| 13871 |
\LWR@print@minipage{\linewidth}% |
| 13872 |
}{% |
| 13873 |
\LWR@print@minipage{6in}% |
| 13874 |
}% |
| 13875 |
\ifnumgreater{\value{LWR@minipage@depth}}{0}% |
| 13876 |
{\setcounter{mpfootnote}{\value{LWR@mpfootnote@store}}}% |
| 13877 |
{}% |
| 13878 |
\@nameuse{LWR@print@\LateximageFontSizeName}% |
| 13879 |
\LWR@traceinfo{lateximage: about to temporarily restore formatting}% |
| 13880 |
\LWR@restoreorigformatting% |
| 13881 |
\ifnumgreater{\value{LWR@minipage@depth}}{0}% |
| 13882 |
{}% |
| 13883 |
{% |
| 13884 |
\def\@mpfn{footnote}% |
| 13885 |
\def\thempfn{\thefootnote}% |
| 13886 |
\LetLtxMacro\@footnotetext\LWR@footnotetext% |
| 13887 |
}% |
| 13888 |
\LWR@traceinfo{lateximage: about to create label |
| 13889 |
LWRlateximage-\BaseJobname-\arabic{LWR@lateximagenumber}}% |
| 13890 |
\LWR@orig@label{LWRlateximage-\BaseJobname-\arabic{LWR@lateximagenumber}}% |
| 13891 |
\LWR@traceinfo{lateximage: finished creating the label}% |
| 13892 |
\ifdefvoid{\LWR@ruleHTMLcolor}{}{% |
| 13893 |
\LWR@print@arrayrulecolor[HTML]{\LWR@ruleHTMLcolor}% |
| 13894 |
}% |
| 13895 |
\LetLtxMacro$\LWR@origdollar% |
| 13896 |
\catcode`\$=3% math shift |
| 13897 |
\LetLtxMacro\(\LWR@origopenparen% |
| 13898 |
\LetLtxMacro\)\LWR@origcloseparen% |
| 13899 |
\ifbool{LWR@indisplaymathimage}{}{% not in display math |
| 13900 |
\LetLtxMacro\[\LWR@origopenbracket% |
| 13901 |
\LetLtxMacro\]\LWR@origclosebracket% |
| 13902 |
\let\equation\LWR@orig@equation% |
| 13903 |
\let\endequation\LWR@orig@endequation% |
| 13904 |
\csletcs{equation*}{LWR@orig@equation*}% |
| 13905 |
\csletcs{endequation*}{LWR@orig@endequation*}% |
| 13906 |
}% not in display math |
| 13907 |
\LetLtxMacro\LWR@newsingledollar$% |
| 13908 |
\LetLtxMacro\LWR@newsingledollar$% syntax highlighting |
| 13909 |
\boolfalse{LWR@verbtags}% |
| 13910 |
\boolfalse{LWR@HTMLsanitize@tmpb@enable}% |
| 13911 |
}% end of outer-most lateximage |
| 13912 |
\LWR@traceinfo{lateximage: finished start of environment}% |
| 13913 |
}% end of \begin{lateximage} |
| 13914 |
{% start of \end{lateximage} |
| 13915 |
\LWR@traceinfo{lateximage: starting end of lateximage}% |
| 13916 |
\LWR@traceinfo{lateximage: internal depth was \arabic{LWR@lateximagedepth}}% |
| 13917 |
\ifnumcomp{\value{LWR@lateximagedepth}}{>}{1}% |
| 13918 |
{% |
| 13919 |
\LWR@traceinfo{lateximage: unnesting}% |
| 13920 |
\global\advance\c@LWR@lateximagedepth -1\relax% |
| 13921 |
}% |
| 13922 |
{% end of outer-most lateximage |
| 13923 |
\LWR@traceinfo{lateximage: ending outer-most lateximage}% |
| 13924 |
\endLWR@print@minipage% |
| 13925 |
\LWR@maybe@orignewpage% |
| 13926 |
\LWR@print@vspace*{.5\baselineskip}% |
| 13927 |
\LWR@htmlclosecomment% |
| 13928 |
\LWR@traceinfo{lateximage: The page after the image is \arabic{page}}% |
| 13929 |
\LWR@traceinfo{about to LWR@lateximage@oneimage !#2!}% |
| 13930 |
\IfBooleanTF{#1}% starred? |
| 13931 |
{% starred, hash |
| 13932 |
\IfValueTF{#2}% alt argument |
| 13933 |
{% alt argument given |
| 13934 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13935 |
{% don't detokenize |
| 13936 |
\LWR@lateximage@oneimage{#2}% |
| 13937 |
{\LWR@hashedname}{#6}{#3}{#7}% |
| 13938 |
}% don't detokenize |
| 13939 |
{% detokenize |
| 13940 |
\expandafter\LWR@lateximage@oneimage\expandafter{\detokenize{#2}}% |
| 13941 |
{\LWR@hashedname}{#6}{#3}{#7}% |
| 13942 |
}% detokenize |
| 13943 |
}% alt argument given |
| 13944 |
{% alt argument not given |
| 13945 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13946 |
{% don't detokenize |
| 13947 |
\LWR@lateximage@oneimage{\ImageAltText}% |
| 13948 |
{\LWR@hashedname}{#6}{#3}{#7}% |
| 13949 |
}% don't detokenize |
| 13950 |
{% detokenize |
| 13951 |
\expandafter\LWR@lateximage@oneimage\expandafter{\detokenize\expandafter{\ImageAltText}}% |
| 13952 |
{\LWR@hashedname}{#6}{#3}{#7}% |
| 13953 |
}% detokenize |
| 13954 |
}% alt argument not given |
| 13955 |
}% starred, hash |
| 13956 |
{% not starred, no hash |
| 13957 |
\IfValueTF{#2}% alt argument |
| 13958 |
{% alt argument given |
| 13959 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13960 |
{% don't detokenize |
| 13961 |
\LWR@lateximage@oneimage{#2}% |
| 13962 |
{\LWR@ImagesName\theLWR@externalfilecnt}{#6}{#3}{#7}% |
| 13963 |
}% don't detokenize |
| 13964 |
{% detokenize |
| 13965 |
\expandafter\LWR@lateximage@oneimage\expandafter{\detokenize{#2}}% |
| 13966 |
{\LWR@ImagesName\theLWR@externalfilecnt}{#6}{#3}{#7}% |
| 13967 |
}% detokenize |
| 13968 |
}% alt argument given |
| 13969 |
{% alt argument not given |
| 13970 |
\IfBooleanTF{#4}% '?': don't detokenize |
| 13971 |
{% don't detokenize |
| 13972 |
\LWR@lateximage@oneimage{\ImageAltText}% |
| 13973 |
{\LWR@ImagesName\theLWR@externalfilecnt}{#6}{#3}{#7}% |
| 13974 |
}% don't detokenize |
| 13975 |
{% detokenize |
| 13976 |
\expandafter\LWR@lateximage@oneimage\expandafter{\detokenize\expandafter{\ImageAltText}}% |
| 13977 |
{\LWR@ImagesName\theLWR@externalfilecnt}{#6}{#3}{#7}% |
| 13978 |
}% detokenize |
| 13979 |
}% alt argument not given |
| 13980 |
}% not starred, no hash |
| 13981 |
\LWR@ensuredoingapar% |
| 13982 |
\LWR@htmltag{/span}% |
| 13983 |
\ifbool{HTMLDebugComments}{% |
| 13984 |
\LWR@htmlcomment{End of lateximage}% |
| 13985 |
}{}% |
| 13986 |
\addtocounter{LWR@lateximagedepth}{-1}% |
| 13987 |
\gdef\LWR@ThisAltText{}% |
| 13988 |
}% end of outer-most lateximage |
| 13989 |
\LWR@traceinfo{lateximage: exiting depth is \arabic{LWR@lateximagedepth}}% |
| 13990 |
\LWR@traceinfo{lateximage: done}% |
| 13991 |
}% |
| 13992 |
\catcode`\$=3% math shift |
| 13993 |
\end{warpHTML} |
| 13994 |
|
| 13995 |
\begin{warpprint} |
| 13996 |
|
| 13997 |
\NewDocumentEnvironment{lateximage}{s o s t? o o d()} |
| 13998 |
{}{} |
| 13999 |
|
| 14000 |
\end{warpprint} |
| 14001 |
|
| 14002 |
|
| 14003 |
\begin{warpHTML} |
| 14004 |
|
| 14005 |
\newenvironment*{LWR@HTML@center} |
| 14006 |
{% |
| 14007 |
\LWR@forcenewpage% |
| 14008 |
\ifbool{FormatWP}% |
| 14009 |
{\BlockClass[\LWR@print@mbox{text-align:center}]{center}}% |
| 14010 |
{\BlockClass{center}}% |
| 14011 |
} |
| 14012 |
{\endBlockClass} |
| 14013 |
|
| 14014 |
\LWR@formattedenv{center} |
| 14015 |
|
| 14016 |
\newenvironment*{LWR@HTML@flushright} |
| 14017 |
{% |
| 14018 |
\LWR@forcenewpage% |
| 14019 |
\ifbool{FormatWP}% |
| 14020 |
{\BlockClass[\LWR@print@mbox{text-align:right}]{flushright}}% |
| 14021 |
{\BlockClass{flushright}}% |
| 14022 |
} |
| 14023 |
{\endBlockClass} |
| 14024 |
|
| 14025 |
\LWR@formattedenv{flushright} |
| 14026 |
|
| 14027 |
\newenvironment*{LWR@HTML@flushleft} |
| 14028 |
{% |
| 14029 |
\LWR@forcenewpage% |
| 14030 |
\ifbool{FormatWP}% |
| 14031 |
{\BlockClass[\LWR@print@mbox{text-align:left}]{flushleft}}% |
| 14032 |
{\BlockClass{flushleft}}% |
| 14033 |
} |
| 14034 |
{\endBlockClass} |
| 14035 |
|
| 14036 |
\LWR@formattedenv{flushleft} |
| 14037 |
|
| 14038 |
|
| 14039 |
\newcommand*{\LWR@HTML@centering}{% |
| 14040 |
\ifbool{HTMLDebugComments}{% |
| 14041 |
\LWR@htmlcomment{centering}% |
| 14042 |
}{}% |
| 14043 |
} |
| 14044 |
\LWR@formatted{centering} |
| 14045 |
|
| 14046 |
\newcommand*{\LWR@HTML@raggedleft}{% |
| 14047 |
\ifbool{HTMLDebugComments}{% |
| 14048 |
\LWR@htmlcomment{raggedleft}% |
| 14049 |
}{}% |
| 14050 |
} |
| 14051 |
\LWR@formatted{raggedleft} |
| 14052 |
|
| 14053 |
\newcommand*{\LWR@HTML@raggedright}{% |
| 14054 |
\ifbool{HTMLDebugComments}{% |
| 14055 |
\LWR@htmlcomment{raggedright}% |
| 14056 |
}{}% |
| 14057 |
} |
| 14058 |
\LWR@formatted{raggedright} |
| 14059 |
|
| 14060 |
\renewcommand{\leftline}[1]{\begin{flushleft}#1\end{flushleft}} |
| 14061 |
|
| 14062 |
\renewcommand{\centerline}[1]{\begin{center}#1\end{center}} |
| 14063 |
|
| 14064 |
\renewcommand{\rightline}[1]{\begin{flushright}#1\end{flushright}} |
| 14065 |
|
| 14066 |
\end{warpHTML} |
| 14067 |
|
| 14068 |
\begin{warpHTML} |
| 14069 |
\newcommand*{\LWR@PreloadedPackage}[1]{% |
| 14070 |
\IfPackageLoadedTF{#1}% |
| 14071 |
{% |
| 14072 |
\AtBeginDocument{ |
| 14073 |
\LWR@traceinfo{AtBeginDocument preloading lwarp-#1}% |
| 14074 |
\LWR@origRequirePackage{lwarp-#1}% |
| 14075 |
} |
| 14076 |
}% |
| 14077 |
{}% |
| 14078 |
} |
| 14079 |
|
| 14080 |
\LWR@PreloadedPackage{nameref} |
| 14081 |
|
| 14082 |
\LWR@PreloadedPackage{inputtrc} |
| 14083 |
|
| 14084 |
\LWR@PreloadedPackage{textcomp} |
| 14085 |
|
| 14086 |
\LWR@PreloadedPackage{xunicode} |
| 14087 |
|
| 14088 |
\LWR@PreloadedPackage{graphics} |
| 14089 |
\LWR@PreloadedPackage{graphicx} |
| 14090 |
|
| 14091 |
\LWR@PreloadedPackage{tagpdf-base} |
| 14092 |
|
| 14093 |
\LWR@PreloadedPackage{scalefnt} |
| 14094 |
|
| 14095 |
\LWR@PreloadedPackage{fontaxes} |
| 14096 |
|
| 14097 |
\LWR@PreloadedPackage{cmbright} |
| 14098 |
\LWR@PreloadedPackage{fourier} |
| 14099 |
\LWR@PreloadedPackage{kpfonts} |
| 14100 |
\LWR@PreloadedPackage{kpfonts-otf} |
| 14101 |
\LWR@PreloadedPackage{libertinust1math} |
| 14102 |
\LWR@PreloadedPackage{pxfonts} |
| 14103 |
\LWR@PreloadedPackage{txfonts} |
| 14104 |
\LWR@PreloadedPackage{txgreeks} |
| 14105 |
\LWR@PreloadedPackage{newpxmath} |
| 14106 |
\LWR@PreloadedPackage{newtxmath} |
| 14107 |
\LWR@PreloadedPackage{newtxsf} |
| 14108 |
\LWR@PreloadedPackage{mathalpha} |
| 14109 |
\LWR@PreloadedPackage{unicode-math} |
| 14110 |
|
| 14111 |
\LWR@PreloadedPackage{realscripts} |
| 14112 |
|
| 14113 |
\LWR@PreloadedPackage{nfssext-cfr} |
| 14114 |
|
| 14115 |
\LWR@PreloadedPackage{ulem} |
| 14116 |
|
| 14117 |
\LWR@PreloadedPackage{xetexko} |
| 14118 |
|
| 14119 |
\LWR@PreloadedPackage{geometry} |
| 14120 |
|
| 14121 |
\LWR@PreloadedPackage{plext} |
| 14122 |
|
| 14123 |
\LWR@PreloadedPackage{stfloats} |
| 14124 |
|
| 14125 |
\LWR@PreloadedPackage{lltjext} |
| 14126 |
|
| 14127 |
\LWR@PreloadedPackage{luatexko} |
| 14128 |
|
| 14129 |
\end{warpHTML} |
| 14130 |
|
| 14131 |
|
| 14132 |
|
| 14133 |
|
| 14134 |
|
| 14135 |
\begin{warpHTML} |
| 14136 |
|
| 14137 |
\newrobustcmd{\LWR@siunitx@textcelsius}{\HTMLentity{deg}C} |
| 14138 |
\newrobustcmd{\LWR@siunitx@textdegree}{\HTMLentity{deg}} |
| 14139 |
\newrobustcmd{\LWR@siunitx@textprime}{\HTMLunicode{2032}} |
| 14140 |
\newrobustcmd{\LWR@siunitx@textdblprime}{\HTMLunicode{2033}} |
| 14141 |
\newrobustcmd{\LWR@siunitx@textplanckbar}{\text{\textit{\HTMLunicode{210F}}}} |
| 14142 |
|
| 14143 |
\appto\LWR@restoreorigformatting{% |
| 14144 |
\renewrobustcmd{\LWR@siunitx@textcelsius}{\text{\ensuremath{^\circ}C}}% |
| 14145 |
\renewrobustcmd{\LWR@siunitx@textdegree}{\text{\ensuremath{^\circ}}}% |
| 14146 |
\renewrobustcmd{\LWR@siunitx@textprime}{\text{\ensuremath{^\prime}}}% |
| 14147 |
\renewrobustcmd{\LWR@siunitx@textdblprime}{\text{\ensuremath{^{\prime\prime}}}}% |
| 14148 |
\renewrobustcmd{\LWR@siunitx@textplanckbar}{\text{\ensuremath{\hbar}}}% |
| 14149 |
} |
| 14150 |
|
| 14151 |
\end{warpHTML} |
| 14152 |
|
| 14153 |
\begin{warpprint} |
| 14154 |
\NewDocumentCommand{\HTMLDeclareSIUnit}{o +m m}{} |
| 14155 |
\end{warpprint} |
| 14156 |
|
| 14157 |
\begin{warpprint} |
| 14158 |
\define@key{Gin}{class}{} |
| 14159 |
\AtBeginDocument{ |
| 14160 |
\LWR@traceinfo{AtBeginDocument overpic} |
| 14161 |
\IfPackageLoadedTF{overpic}{ |
| 14162 |
\newcommand*{\overpicfontsize}{12} |
| 14163 |
\newcommand*{\overpicfontskip}{14} |
| 14164 |
}{} |
| 14165 |
} |
| 14166 |
\end{warpprint} |
| 14167 |
|
| 14168 |
\begin{warpall} |
| 14169 |
\AtBeginDocument{ |
| 14170 |
\LWR@traceinfo{AtBeginDocument xcolor} |
| 14171 |
\IfPackageLoadedTF{xcolor}{ |
| 14172 |
\LWR@traceinfo{patching xcolor} |
| 14173 |
\LetLtxMacro\colorboxBlock\colorbox |
| 14174 |
\LetLtxMacro\LWR@orig@print@fcolorbox\fcolorbox |
| 14175 |
|
| 14176 |
\newsavebox{\LWR@colorminipagebox} |
| 14177 |
|
| 14178 |
\NewDocumentCommand{\LWR@print@fcolorbox}{o m o m +m}{% |
| 14179 |
\LWR@traceinfo{LWR@print@fcolorbox #2 #4}% |
| 14180 |
\begin{lrbox}{\LWR@colorminipagebox}% |
| 14181 |
#5% |
| 14182 |
\end{lrbox}% |
| 14183 |
\ifstrequal{#4}{none}% |
| 14184 |
{% #4 none |
| 14185 |
\LWR@traceinfo{background is none}% |
| 14186 |
{% scope the \colorlet |
| 14187 |
\colorlet{LWR@currentcolor}{.}% |
| 14188 |
\color{#2}% |
| 14189 |
\fbox{% |
| 14190 |
\color{LWR@currentcolor}% |
| 14191 |
\usebox{\LWR@colorminipagebox}% |
| 14192 |
}% fbox |
| 14193 |
}% colorlet |
| 14194 |
}% #4 none |
| 14195 |
{% #4 not none |
| 14196 |
\LWR@traceinfo{background not none}% |
| 14197 |
\IfValueTF{#1}% |
| 14198 |
{% |
| 14199 |
\IfValueTF{#3}% |
| 14200 |
{\LWR@orig@print@fcolorbox[#1]{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14201 |
{\LWR@orig@print@fcolorbox[#1]{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14202 |
}% |
| 14203 |
{% no value #1 |
| 14204 |
\IfValueTF{#3}% |
| 14205 |
{\LWR@orig@print@fcolorbox{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14206 |
{\LWR@orig@print@fcolorbox{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14207 |
}% no value #1 |
| 14208 |
}% #4 not none |
| 14209 |
\LWR@traceinfo{LWR@print@fcolorbox done}% |
| 14210 |
} |
| 14211 |
\renewrobustcmd*{\fcolorbox}{\LWR@print@fcolorbox}% |
| 14212 |
\newcommand*{\LWR@print@fcolorboxBlock}{\LWR@print@fcolorbox} |
| 14213 |
|
| 14214 |
\newrobustcmd*{\fcolorboxBlock}{\LWR@print@fcolorboxBlock} |
| 14215 |
|
| 14216 |
\NewDocumentEnvironment{fcolorminipage}{o m o m O{c} O{} o m} |
| 14217 |
{% |
| 14218 |
\LWR@traceinfo{*** fcolorminipage: #2 #4 #8}% |
| 14219 |
\begin{lrbox}{\LWR@colorminipagebox}% |
| 14220 |
\IfValueTF{#7}% |
| 14221 |
{\begin{minipage}[#5][#6][#7]{#8}}% |
| 14222 |
{\begin{minipage}[#5][#6][#5]{#8}}% |
| 14223 |
}% |
| 14224 |
{% |
| 14225 |
\end{minipage}% |
| 14226 |
\end{lrbox}% |
| 14227 |
\LWR@traceinfo{*** starting end fcolorminipage #1 #2 #3 #4 #8}% |
| 14228 |
\ifstrequal{#4}{none}% |
| 14229 |
{% #4 none |
| 14230 |
{% scope the \colorlet |
| 14231 |
\colorlet{LWR@currentcolor}{.}% |
| 14232 |
\color{#2}% |
| 14233 |
\fbox{% |
| 14234 |
\color{LWR@currentcolor}% |
| 14235 |
\usebox{\LWR@colorminipagebox}% |
| 14236 |
}% fbox |
| 14237 |
}% colorlet |
| 14238 |
}% #4 none |
| 14239 |
{% #4 not none |
| 14240 |
\IfValueTF{#1}% |
| 14241 |
{% |
| 14242 |
\IfValueTF{#3}% |
| 14243 |
{\LWR@orig@print@fcolorbox[#1]{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14244 |
{\LWR@orig@print@fcolorbox[#1]{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14245 |
}% |
| 14246 |
{% no value #1 |
| 14247 |
\IfValueTF{#3}% |
| 14248 |
{\LWR@orig@print@fcolorbox{#2}[#3]{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14249 |
{\LWR@orig@print@fcolorbox{#2}{#4}{\usebox{\LWR@colorminipagebox}}}% |
| 14250 |
}% no value #1 |
| 14251 |
}% #4 not none |
| 14252 |
\LWR@traceinfo{*** finished end fcolorminipage}% |
| 14253 |
} |
| 14254 |
|
| 14255 |
\LWR@formatted{colorbox} |
| 14256 |
\LWR@formatted{colorboxBlock} |
| 14257 |
\LWR@formatted{fcolorbox} |
| 14258 |
\LWR@formatted{fcolorboxBlock} |
| 14259 |
\LWR@formattedenv{fcolorminipage} |
| 14260 |
|
| 14261 |
\LWR@traceinfo{xcolor patches done} |
| 14262 |
}{}% xcolor loaded |
| 14263 |
}% AtBeginDocument |
| 14264 |
\end{warpall} |
| 14265 |
|
| 14266 |
\begin{warpprint} |
| 14267 |
|
| 14268 |
\AtBeginDocument{ |
| 14269 |
\LWR@traceinfo{AtBeginDocument chemmacros} |
| 14270 |
\IfPackageLoadedTF{chemmacros}{ |
| 14271 |
\DeclareDocumentEnvironment{polymerdelims}{} |
| 14272 |
{}{} |
| 14273 |
|
| 14274 |
\DeclareDocumentEnvironment{redoxreaction}{m m} |
| 14275 |
{\rule{0pt}{#1}}{\rule[-#2]{0pt}{#2}} |
| 14276 |
}{}% chemmacros |
| 14277 |
}% AtBeginDocument |
| 14278 |
|
| 14279 |
\end{warpprint} |
| 14280 |
|
| 14281 |
\begin{warpHTML} |
| 14282 |
|
| 14283 |
\AtEndPreamble{ |
| 14284 |
\RequirePackage{cleveref} |
| 14285 |
} |
| 14286 |
|
| 14287 |
\end{warpHTML} |
| 14288 |
\begin{warpHTML} |
| 14289 |
|
| 14290 |
\VerifyCommand[lwarp][latex]{\label} |
| 14291 |
{3FB4D89D15FDC24A8AA3A2C581E3C48D} |
| 14292 |
|
| 14293 |
\LetLtxMacro\LWR@orig@label\label |
| 14294 |
\LetLtxMacro\label\LWR@new@label |
| 14295 |
|
| 14296 |
\AtBeginDocument{% |
| 14297 |
\LWR@traceinfo{AtBeginDocument pageref} |
| 14298 |
\LetLtxMacro\LWR@orig@pageref\pageref% |
| 14299 |
\LetLtxMacro\pageref\LWR@new@pageref% |
| 14300 |
} |
| 14301 |
|
| 14302 |
\xpatchcmd{\LWR@orig@label} |
| 14303 |
{{\@currentlabelname}} |
| 14304 |
{{\detokenize\expandafter{\@currentlabelname}}} |
| 14305 |
{} |
| 14306 |
{ |
| 14307 |
\PackageWarning{lwarp}{% |
| 14308 |
Could not patch \string\label:\string\@currentlabelname.\MessageBreak |
| 14309 |
This may cause an error with section names or float captions\MessageBreak |
| 14310 |
containing math, for example.\MessageBreak |
| 14311 |
(Recent updates in the LaTeX kernel may make things work again% |
| 14312 |
} |
| 14313 |
} |
| 14314 |
\end{warpHTML} |
| 14315 |
|
| 14316 |
|
| 14317 |
\begin{warpall} |
| 14318 |
|
| 14319 |
\IfPackageLoadedTF{tagpdf-base} |
| 14320 |
{ |
| 14321 |
\BeforeBeginEnvironment{picture}{\begin{lateximage}[picture]} |
| 14322 |
\AfterEndEnvironment{picture}{\end{lateximage}} |
| 14323 |
} |
| 14324 |
{% |
| 14325 |
\RenewDocumentCommand\picture{O{}m} |
| 14326 |
{% |
| 14327 |
\leavevmode% |
| 14328 |
\ifblank{#1}{}{\setkeys{igraph}{#1}}% |
| 14329 |
\begin{lateximage}[picture]% |
| 14330 |
\pictur@#2% |
| 14331 |
}% |
| 14332 |
\xapptocmd{\endpicture}{\end{lateximage}}{}{}% |
| 14333 |
} |
| 14334 |
|
| 14335 |
\end{warpall} |
| 14336 |
|
| 14337 |
|
| 14338 |
\begin{warpHTML} |
| 14339 |
|
| 14340 |
\newlength{\LWR@minipagewidth} |
| 14341 |
\newlength{\LWR@minipageheight} |
| 14342 |
\newcounter{LWR@virtualpagedepth} |
| 14343 |
\setcounter{LWR@virtualpagedepth}{0} |
| 14344 |
\NewDocumentEnvironment{LWR@setvirtualpage}{s O{1}}{% |
| 14345 |
\ifnumequal{\value{LWR@virtualpagedepth}}{0}{% |
| 14346 |
\IfBooleanT{#1}{\LWR@maybe@orignewpage}% |
| 14347 |
\setlength{\linewidth}{6in/#2}% |
| 14348 |
\setlength{\textwidth}{6in}% |
| 14349 |
\setlength{\textheight}{9in}% |
| 14350 |
}{}% |
| 14351 |
\addtocounter{LWR@virtualpagedepth}{1}% |
| 14352 |
} |
| 14353 |
{\addtocounter{LWR@virtualpagedepth}{-1}} |
| 14354 |
\newbool{LWR@minipagefullwidth} |
| 14355 |
\boolfalse{LWR@minipagefullwidth} |
| 14356 |
\newbool{LWR@forceminipagefullwidth} |
| 14357 |
\boolfalse{LWR@forceminipagefullwidth} |
| 14358 |
\newcommand*{\minipagefullwidth}{\global\booltrue{LWR@minipagefullwidth}} |
| 14359 |
\newcommand*{\UseMinipageWidths}{\boolfalse{LWR@forceminipagefullwidth}} |
| 14360 |
\newcommand*{\IgnoreMinipageWidths}{\booltrue{LWR@forceminipagefullwidth}} |
| 14361 |
\end{warpHTML} |
| 14362 |
\begin{warpprint} |
| 14363 |
\newcommand*{\minipagefullwidth}{} |
| 14364 |
\newcommand*{\UseMinipageWidths}{} |
| 14365 |
\newcommand*{\IgnoreMinipageWidths}{} |
| 14366 |
\end{warpprint} |
| 14367 |
\begin{warpHTML} |
| 14368 |
\newbool{LWR@minipagethispar} |
| 14369 |
\boolfalse{LWR@minipagethispar} |
| 14370 |
|
| 14371 |
\newcounter{LWR@minipage@depth} |
| 14372 |
\setcounter{LWR@minipage@depth}{0} |
| 14373 |
\newcounter{LWR@mpfootnote@store} |
| 14374 |
|
| 14375 |
\NewDocumentEnvironment{LWR@HTML@sub@minipage}{m m m m} |
| 14376 |
{% |
| 14377 |
\LWR@traceinfo{minipage}% |
| 14378 |
\begin{LWR@setvirtualpage}*% |
| 14379 |
\setlength{\LWR@minipagewidth}{#4}% |
| 14380 |
\ifnumequal{\value{LWR@virtualpagedepth}}{1}{% |
| 14381 |
\addtolength{\LWR@minipagewidth}{3em}% room for frames |
| 14382 |
}{}% |
| 14383 |
\LWR@traceinfo{computed width is \LWR@printlength{\LWR@minipagewidth}}% |
| 14384 |
\setlength{\LWR@minipageheight}{\textheight}% default unless specified |
| 14385 |
\ifblank{#2}{}{\setlength{\LWR@minipageheight}{#2}}% |
| 14386 |
\ifbool{FormatWP}{\newline}{}% |
| 14387 |
\LWR@stoppars% |
| 14388 |
\ifbool{FormatWP}{% |
| 14389 |
|
| 14390 |
\addtocounter{LWR@thisautoidWP}{1}% |
| 14391 |
\LWR@htmltag{% |
| 14392 |
div id=\textquotedbl% |
| 14393 |
\LWR@print@mbox{autoidWP-\arabic{LWR@thisautoidWP}}% |
| 14394 |
\textquotedbl\ % space |
| 14395 |
class=\textquotedbl{}wpminipage\textquotedbl% |
| 14396 |
}% |
| 14397 |
|
| 14398 |
}{}% |
| 14399 |
\LWR@traceinfo{minipage: creating div class}% |
| 14400 |
\LWR@htmltag{div class=\textquotedbl{}minipage\textquotedbl\ style=\textquotedbl% |
| 14401 |
\ifthenelse{\equal{#1}{t}}{\LWR@print@mbox{vertical-align:bottom} ; }{}% |
| 14402 |
\ifthenelse{\equal{#1}{c}}{\LWR@print@mbox{vertical-align:middle} ; }{}% |
| 14403 |
\ifthenelse{\equal{#1}{b}}{\LWR@print@mbox{vertical-align:top} ; }{}% |
| 14404 |
\ifthenelse{\equal{#3}{t}}{\LWR@print@mbox{justify-content:flex-start} ; }{}% |
| 14405 |
\ifthenelse{\equal{#3}{c}}{\LWR@print@mbox{justify-content:center} ; }{}% |
| 14406 |
\ifthenelse{\equal{#3}{b}}{\LWR@print@mbox{justify-content:flex-end} ; }{}% |
| 14407 |
\ifthenelse{\equal{#3}{s}}{\LWR@print@mbox{justify-content:space-between} ; }{}% |
| 14408 |
\LWR@traceinfo{minipage: about to print the width of \LWR@printlength{\LWR@minipagewidth}}% |
| 14409 |
\ifbool{LWR@minipagefullwidth}% |
| 14410 |
{\global\boolfalse{LWR@minipagefullwidth}}% |
| 14411 |
{% |
| 14412 |
\ifbool{LWR@forceminipagefullwidth}% |
| 14413 |
{}% |
| 14414 |
{% |
| 14415 |
\ifdimequal{#4}{\linewidth}% |
| 14416 |
{}% |
| 14417 |
{width:\LWR@printlength{\LWR@minipagewidth} ; }% |
| 14418 |
}% |
| 14419 |
}% |
| 14420 |
\LWR@traceinfo{minipage: about to print the height}% |
| 14421 |
\ifblank{#2}{}{height:\LWR@printlength{\LWR@minipageheight} ; }% |
| 14422 |
\textquotedbl% |
| 14423 |
}% |
| 14424 |
|
| 14425 |
\ifnumequal{\value{LWR@virtualpagedepth}}{1}{% |
| 14426 |
\addtolength{\LWR@minipagewidth}{-3em}% undo frame padding |
| 14427 |
}{}% |
| 14428 |
\setlength{\linewidth}{\LWR@minipagewidth}% |
| 14429 |
\LWR@print@raggedright% |
| 14430 |
\LWR@newautopagelabel{page}% |
| 14431 |
\def\@mpfn{mpfootnote}% |
| 14432 |
\def\thempfn{\thempfootnote}\c@mpfootnote\z@% |
| 14433 |
\let\@footnotetext\@mpfootnotetext% |
| 14434 |
\addtocounter{LWR@minipage@depth}{1}% |
| 14435 |
\LWR@startpars% |
| 14436 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkMinipages}}{% |
| 14437 |
|
| 14438 |
=== begin minipage === |
| 14439 |
|
| 14440 |
}{}% |
| 14441 |
\LWR@traceinfo{minipage: finished starting the minipage}% |
| 14442 |
}% finished \minipage |
| 14443 |
{% \endminipage |
| 14444 |
\LWR@printpendingmpfootnotes% |
| 14445 |
\ifboolexpr{bool{FormatWP} and bool{WPMarkMinipages}}{% |
| 14446 |
|
| 14447 |
=== end minipage === |
| 14448 |
|
| 14449 |
}{}% |
| 14450 |
\LWR@stoppars% |
| 14451 |
|
| 14452 |
\ifbool{FormatWP}{% |
| 14453 |
|
| 14454 |
\LWR@htmlelementend{div}% |
| 14455 |
|
| 14456 |
}{}% |
| 14457 |
\addtocounter{LWR@minipage@depth}{-1}% |
| 14458 |
\LWR@htmldivclassend{minipage}% |
| 14459 |
|
| 14460 |
\end{LWR@setvirtualpage}% |
| 14461 |
\LWR@startpars% |
| 14462 |
\ifbool{FormatWP}{\newline}{}% |
| 14463 |
\global\booltrue{LWR@minipagethispar}% |
| 14464 |
\LWR@traceinfo{LWR@minipage: done}% |
| 14465 |
} |
| 14466 |
|
| 14467 |
\NewDocumentEnvironment{LWR@HTML@minipage}{O{t} O{} O{t} m} |
| 14468 |
{\LWR@HTML@sub@minipage{#1}{#2}{#3}{#4}} |
| 14469 |
{\endLWR@HTML@sub@minipage} |
| 14470 |
|
| 14471 |
\LWR@formattedenv{minipage} |
| 14472 |
\NewDocumentCommand{\LWR@HTML@parbox}{O{t} O{} O{t} m +m} |
| 14473 |
{ |
| 14474 |
\LWR@traceinfo{parbox of width #4}% |
| 14475 |
\begin{minipage}[#1][#2][#3]{#4}% |
| 14476 |
#5 |
| 14477 |
\end{minipage}% |
| 14478 |
} |
| 14479 |
|
| 14480 |
\LWR@formatted{parbox} |
| 14481 |
\newcommand*{\LWR@HTML@mbox}[1]{{#1}} |
| 14482 |
|
| 14483 |
\LWR@formatted{mbox} |
| 14484 |
\NewDocumentCommand{\LWR@@makebox@paren}{m m}{% |
| 14485 |
\IfValueTF{#2}{% |
| 14486 |
\setlength{\LWR@tempwidth}{#1\unitlength}% |
| 14487 |
\setlength{\LWR@tempheight}{#2\unitlength}% |
| 14488 |
\appto{\LWR@temptwo}{% |
| 14489 |
\LWR@print@mbox{width:\LWR@printlength{\LWR@tempwidth}} ; % space |
| 14490 |
\LWR@print@mbox{height:\LWR@printlength{\LWR@tempheight}} ; % space |
| 14491 |
}% |
| 14492 |
}{% |
| 14493 |
\PackageError{lwarp}% |
| 14494 |
{(width,height) is missing a comma ',' character}% |
| 14495 |
{\protect\makebox\space and \protect\framebox\space accept |
| 14496 |
a size in the format (width,height).}% |
| 14497 |
}% |
| 14498 |
} |
| 14499 |
\newcommand*{\LWR@@makebox@align}[1]{% |
| 14500 |
\def\LWR@align{center}% |
| 14501 |
\ifstrequal{#1}{l}{\def\LWR@align{left}}{}% |
| 14502 |
\ifstrequal{#1}{r}{\def\LWR@align{right}}{}% |
| 14503 |
\ifstrequal{#1}{s}{\def\LWR@align{justify}}{}% |
| 14504 |
\appto{\LWR@temptwo}{% |
| 14505 |
\LWR@print@mbox{text-align:\LWR@align} ; % |
| 14506 |
}% |
| 14507 |
} |
| 14508 |
\NewDocumentCommand{\LWR@HTML@makebox}{>{\SplitArgument{1}{,}}d() o o +m}{% |
| 14509 |
\begin{LWR@setvirtualpage}% |
| 14510 |
\def\LWR@temptwo{}% |
| 14511 |
\IfValueTF{#1}% |
| 14512 |
{% (width,height) .. |
| 14513 |
\LWR@@makebox@paren #1% |
| 14514 |
\IfValueT{#2}% |
| 14515 |
{% (width,height) [posn] |
| 14516 |
\LWR@@makebox@align{#2}% |
| 14517 |
}% |
| 14518 |
}% |
| 14519 |
{% [width] |
| 14520 |
\IfValueT{#2}% [width] |
| 14521 |
{% |
| 14522 |
\setlength{\LWR@tempwidth}{#2}% |
| 14523 |
\ifdimgreater{\LWR@tempwidth}{0pt}{% |
| 14524 |
\appto{\LWR@temptwo}{% |
| 14525 |
width:\LWR@printlength{\LWR@tempwidth} ; % space |
| 14526 |
}% |
| 14527 |
}{}% |
| 14528 |
}% |
| 14529 |
}% |
| 14530 |
\IfValueT{#3}% |
| 14531 |
{% [width] [posn] |
| 14532 |
\LWR@@makebox@align{#3}% |
| 14533 |
}% |
| 14534 |
\InlineClass[% |
| 14535 |
\LWR@print@mbox{display:inline-block} ; % |
| 14536 |
\LWR@temptwo% |
| 14537 |
]% |
| 14538 |
{makebox}% |
| 14539 |
{#4}% |
| 14540 |
\end{LWR@setvirtualpage}% |
| 14541 |
} |
| 14542 |
\LWR@formatted{makebox} |
| 14543 |
\NewDocumentCommand{\LWR@HTML@framebox}{d() o o +m}{% |
| 14544 |
\fbox{\makebox(#1)[#2][#3]{#4}}% |
| 14545 |
} |
| 14546 |
|
| 14547 |
\LWR@formatted{framebox} |
| 14548 |
\newlength{\LWR@atleastonept} |
| 14549 |
|
| 14550 |
\newcommand*{\LWR@forceminwidth}[1]{% |
| 14551 |
\setlength{\LWR@atleastonept}{#1}% |
| 14552 |
\ifthenelse{% |
| 14553 |
\lengthtest{\LWR@atleastonept>0pt}\AND% |
| 14554 |
\lengthtest{\LWR@atleastonept<1pt}% |
| 14555 |
}% |
| 14556 |
{\setlength{\LWR@atleastonept}{1pt}}% |
| 14557 |
{}% |
| 14558 |
} |
| 14559 |
|
| 14560 |
\newcommand*{\LWR@fboxstyle}{% |
| 14561 |
\LWR@findcurrenttextcolor% |
| 14562 |
border:\LWR@printlength{\LWR@atleastonept} solid \LWR@origpound\LWR@tempcolor ; % |
| 14563 |
padding:\LWR@printlength{\fboxsep} ; % |
| 14564 |
color:\LWR@origpound\LWR@tempcolor% |
| 14565 |
} |
| 14566 |
\newcommand{\LWR@HTML@fbox}[1]{% |
| 14567 |
\LWR@traceinfo{HTML fbox}% |
| 14568 |
\LWR@forceminwidth{\fboxrule}% |
| 14569 |
\LWR@traceinfo{HTML fbox B}% |
| 14570 |
\InlineClass[% |
| 14571 |
\LWR@print@mbox{display:inline-block} ; % |
| 14572 |
\LWR@fboxstyle% |
| 14573 |
]{fbox}{#1}% |
| 14574 |
\LWR@traceinfo{HTML fbox: done}% |
| 14575 |
} |
| 14576 |
\AtBeginDocument{% |
| 14577 |
\LWR@traceinfo{AtBeginDocument fbox} |
| 14578 |
\LWR@formatted{fbox}% |
| 14579 |
} |
| 14580 |
\end{warpHTML} |
| 14581 |
|
| 14582 |
\begin{warpall} |
| 14583 |
\let\fboxBlock\fbox |
| 14584 |
\end{warpall} |
| 14585 |
|
| 14586 |
\begin{warpHTML} |
| 14587 |
\newcommand{\LWR@HTML@fboxBlock}[1]{% |
| 14588 |
\LWR@forceminwidth{\fboxrule}% |
| 14589 |
\LWR@stoppars% |
| 14590 |
\begin{BlockClass}[\LWR@fboxstyle]{fboxBlock} |
| 14591 |
#1 |
| 14592 |
\end{BlockClass} |
| 14593 |
\LWR@startpars% |
| 14594 |
} |
| 14595 |
|
| 14596 |
\LWR@formatted{fboxBlock} |
| 14597 |
|
| 14598 |
\end{warpHTML} |
| 14599 |
\begin{warpall} |
| 14600 |
|
| 14601 |
\newsavebox{\LWR@fminipagebox} |
| 14602 |
|
| 14603 |
\NewDocumentEnvironment{fminipage}{O{t} o O{t} m} |
| 14604 |
{% |
| 14605 |
\IfValueTF{#3}% |
| 14606 |
{\def\LWR@thisalign{#3}} |
| 14607 |
{\def\LWR@thisalign{#1}}% |
| 14608 |
\IfValueTF{#2}% |
| 14609 |
{\minipage[#1][#2+2\fboxsep+2\fboxrule][\LWR@thisalign]{#4+2\fboxsep+2\fboxrule}}% |
| 14610 |
{\minipage[#1]{#4+2\fboxsep+2\fboxrule}}% |
| 14611 |
\begin{lrbox}{\LWR@fminipagebox}% |
| 14612 |
\IfValueTF{#2}% |
| 14613 |
{\minipage[#1][#2][\LWR@thisalign]{#4}}% |
| 14614 |
{\minipage[#1]{#4}}% |
| 14615 |
} |
| 14616 |
{% |
| 14617 |
\endminipage% |
| 14618 |
\end{lrbox}% |
| 14619 |
\fbox{\usebox{\LWR@fminipagebox}}% |
| 14620 |
\endminipage% |
| 14621 |
} |
| 14622 |
\end{warpall} |
| 14623 |
\begin{warpHTML} |
| 14624 |
|
| 14625 |
\NewDocumentEnvironment{LWR@HTML@fminipage}{O{t} o O{t} m} |
| 14626 |
{% |
| 14627 |
\LWR@traceinfo{fminipage #1 #2 #3 #4}% |
| 14628 |
\begin{LWR@setvirtualpage}*% |
| 14629 |
\setlength{\LWR@tempwidth}{#4}% |
| 14630 |
\IfValueT{#2}{\setlength{\LWR@tempheight}{#2}}% |
| 14631 |
\LWR@forceminwidth{\fboxrule}% |
| 14632 |
\LWR@stoppars% |
| 14633 |
\begin{BlockClass}[% |
| 14634 |
\LWR@fboxstyle ; % |
| 14635 |
\IfValueT{#2}{height:\LWR@printlength{\LWR@tempheight} ; }% |
| 14636 |
\ifbool{LWR@minipagefullwidth}% |
| 14637 |
{\global\boolfalse{LWR@minipagefullwidth}}% |
| 14638 |
{% |
| 14639 |
\ifbool{LWR@forceminipagefullwidth}% |
| 14640 |
{}% |
| 14641 |
{% |
| 14642 |
\ifdimequal{\LWR@tempwidth}{\linewidth}% |
| 14643 |
{}% |
| 14644 |
{width:\LWR@printlength{\LWR@tempwidth} ; }% |
| 14645 |
}% |
| 14646 |
}% |
| 14647 |
]{fminipage}% |
| 14648 |
} |
| 14649 |
{% |
| 14650 |
\end{BlockClass}% |
| 14651 |
\end{LWR@setvirtualpage}% |
| 14652 |
\global\booltrue{LWR@minipagethispar}% |
| 14653 |
\LWR@traceinfo{fminipage done}% |
| 14654 |
} |
| 14655 |
|
| 14656 |
\LWR@formattedenv{fminipage} |
| 14657 |
\NewDocumentCommand{\LWR@HTML@raisebox}{m o o m}{% |
| 14658 |
#4% |
| 14659 |
} |
| 14660 |
|
| 14661 |
\LWR@formatted{raisebox} |
| 14662 |
|
| 14663 |
\end{warpHTML} |
| 14664 |
|
| 14665 |
|
| 14666 |
\begin{warpall} |
| 14667 |
|
| 14668 |
\newbool{FixSmallCaps} |
| 14669 |
\boolfalse{FixSmallCaps} |
| 14670 |
|
| 14671 |
\end{warpall} |
| 14672 |
|
| 14673 |
\begin{warpHTML} |
| 14674 |
|
| 14675 |
|
| 14676 |
\DeclareRobustCommand{\LWR@HTML@emph}[1]{% |
| 14677 |
{% |
| 14678 |
\LWR@HTML@itshape% |
| 14679 |
\LWR@htmlspan{em}{#1}% |
| 14680 |
}% |
| 14681 |
} |
| 14682 |
|
| 14683 |
\LWR@formatted{emph} |
| 14684 |
|
| 14685 |
\DeclareRobustCommand{\LWR@HTML@textmd}[1]{% |
| 14686 |
{% |
| 14687 |
\LWR@HTML@mdseries% |
| 14688 |
\InlineClass(font-weight:normal){textmd}{#1}% |
| 14689 |
}% |
| 14690 |
} |
| 14691 |
|
| 14692 |
\LWR@formatted{textmd} |
| 14693 |
|
| 14694 |
\DeclareRobustCommand{\LWR@HTML@textbf}[1]{% |
| 14695 |
{% |
| 14696 |
\LWR@HTML@bfseries% |
| 14697 |
\LWR@htmlspan{b}{#1}% |
| 14698 |
}% |
| 14699 |
} |
| 14700 |
|
| 14701 |
\LWR@formatted{textbf} |
| 14702 |
|
| 14703 |
\AtBeginDocument{ |
| 14704 |
\LWR@traceinfo{AtBeginDocument font control} |
| 14705 |
\IfPackageLoadedTF{nfssext-cfr}{ |
| 14706 |
\providerobustcmd{\texteb}[1]{} |
| 14707 |
\DeclareRobustCommand{\LWR@HTML@texteb}[1]{% |
| 14708 |
{% |
| 14709 |
\LWR@HTML@ebweight% |
| 14710 |
\InlineClass{texteb}{#1}% |
| 14711 |
}% |
| 14712 |
} |
| 14713 |
\LWR@formatted{texteb} |
| 14714 |
} |
| 14715 |
{% if not loaded |
| 14716 |
\providerobustcmd{\texteb}[1]{} |
| 14717 |
} |
| 14718 |
} |
| 14719 |
|
| 14720 |
\AtBeginDocument{ |
| 14721 |
\IfPackageLoadedTF{nfssext-cfr}{ |
| 14722 |
\providerobustcmd{\textlg}[1]{} |
| 14723 |
\DeclareRobustCommand{\LWR@HTML@textlg}[1]{% |
| 14724 |
{% |
| 14725 |
\LWR@HTML@lgweight% |
| 14726 |
\InlineClass{textlg}{#1}% |
| 14727 |
}% |
| 14728 |
} |
| 14729 |
|
| 14730 |
\LWR@formatted{textlg} |
| 14731 |
}{% if not loaded |
| 14732 |
\providerobustcmd{\textlg}[1]{} |
| 14733 |
} |
| 14734 |
} |
| 14735 |
|
| 14736 |
\DeclareRobustCommand{\LWR@HTML@textrm}[1]{% |
| 14737 |
{% |
| 14738 |
\LWR@HTML@rmfamily% |
| 14739 |
\InlineClass(font-family:serif){textrm}{#1}% |
| 14740 |
}% |
| 14741 |
} |
| 14742 |
|
| 14743 |
\LWR@formatted{textrm} |
| 14744 |
|
| 14745 |
\DeclareRobustCommand{\LWR@HTML@textsf}[1]{% |
| 14746 |
{% |
| 14747 |
\LWR@HTML@sffamily% |
| 14748 |
\InlineClass(font-family:sans){textsf}{#1}% |
| 14749 |
}% |
| 14750 |
} |
| 14751 |
|
| 14752 |
\LWR@formatted{textsf} |
| 14753 |
|
| 14754 |
\DeclareRobustCommand{\LWR@HTML@texttt}[1]{% |
| 14755 |
{% |
| 14756 |
\LWR@HTML@ttfamily% |
| 14757 |
\LWR@htmlspan{kbd}{#1}% |
| 14758 |
}% |
| 14759 |
} |
| 14760 |
|
| 14761 |
\LWR@formatted{texttt} |
| 14762 |
|
| 14763 |
\DeclareRobustCommand{\LWR@HTML@textup}[1]{% |
| 14764 |
{% |
| 14765 |
\LWR@HTML@upshape% |
| 14766 |
\InlineClass(font-style:normal){textup}{#1}% |
| 14767 |
}% |
| 14768 |
} |
| 14769 |
|
| 14770 |
\LWR@formatted{textup} |
| 14771 |
|
| 14772 |
\DeclareRobustCommand{\LWR@HTML@textit}[1]{% |
| 14773 |
{% |
| 14774 |
\LWR@HTML@itshape% |
| 14775 |
\LWR@htmlspan{i}{#1}% |
| 14776 |
}% |
| 14777 |
} |
| 14778 |
|
| 14779 |
\LWR@formatted{textit} |
| 14780 |
|
| 14781 |
\DeclareRobustCommand{\LWR@HTML@textsc}[1]{% |
| 14782 |
{% |
| 14783 |
\LWR@HTML@scshape% |
| 14784 |
\InlineClass{textsc}{#1}% |
| 14785 |
}% |
| 14786 |
} |
| 14787 |
|
| 14788 |
\LWR@formatted{textsc} |
| 14789 |
|
| 14790 |
\DeclareRobustCommand{\LWR@HTML@textulc}[1]{% |
| 14791 |
{% |
| 14792 |
\LWR@HTML@ulcshape% |
| 14793 |
\InlineClass{textulc}{#1}% |
| 14794 |
}% |
| 14795 |
} |
| 14796 |
|
| 14797 |
\LWR@formatted{textulc} |
| 14798 |
|
| 14799 |
\AtBeginDocument{ |
| 14800 |
\@ifundefined{textsi}{ |
| 14801 |
\LetLtxMacro\LWR@print@textsi\LWR@print@textsc |
| 14802 |
}{} |
| 14803 |
|
| 14804 |
\DeclareRobustCommand{\LWR@HTML@textsi}[1]{% |
| 14805 |
{% |
| 14806 |
\LWR@HTML@sishape% |
| 14807 |
\textsc{\textit{#1}}% |
| 14808 |
}% |
| 14809 |
} |
| 14810 |
|
| 14811 |
\LWR@formatted{textsi} |
| 14812 |
} |
| 14813 |
|
| 14814 |
\DeclareRobustCommand{\LWR@HTML@textsl}[1]{% |
| 14815 |
{% |
| 14816 |
\slshape% |
| 14817 |
\InlineClass(font-style:oblique){textsl}{#1}% |
| 14818 |
}% |
| 14819 |
} |
| 14820 |
|
| 14821 |
\LWR@formatted{textsl} |
| 14822 |
|
| 14823 |
\newrobustcmd{\LWR@HTML@textssc}[1]{\textsc{#1}} |
| 14824 |
\LWR@formatted{textssc} |
| 14825 |
|
| 14826 |
\DeclareRobustCommand{\LWR@HTML@textnormal}[1]{% |
| 14827 |
\LWR@HTML@mdseries% |
| 14828 |
\LWR@HTML@rmfamily% |
| 14829 |
\LWR@HTML@upshape% |
| 14830 |
\LWR@HTML@ulcshape% |
| 14831 |
\InlineClass(% |
| 14832 |
font-weight: normal; |
| 14833 |
font-family: serif; |
| 14834 |
font-style: normal; |
| 14835 |
font-variant: normal; |
| 14836 |
font-variant-numeric: normal ; |
| 14837 |
){textnormal}{#1}% |
| 14838 |
} |
| 14839 |
|
| 14840 |
\LWR@formatted{textnormal} |
| 14841 |
|
| 14842 |
\FilenameNullify{% |
| 14843 |
\LetLtxMacro\emph\@firstofone% |
| 14844 |
\LetLtxMacro\textmd\@firstofone% |
| 14845 |
\LetLtxMacro\textbf\@firstofone% |
| 14846 |
\LetLtxMacro\texteb\@firstofone% |
| 14847 |
\LetLtxMacro\textlg\@firstofone% |
| 14848 |
\LetLtxMacro\textrm\@firstofone% |
| 14849 |
\LetLtxMacro\textsf\@firstofone% |
| 14850 |
\LetLtxMacro\texttt\@firstofone% |
| 14851 |
\LetLtxMacro\textup\@firstofone% |
| 14852 |
\LetLtxMacro\textit\@firstofone% |
| 14853 |
\LetLtxMacro\textsc\@firstofone% |
| 14854 |
\LetLtxMacro\textulc\@firstofone% |
| 14855 |
\LetLtxMacro\textsi\@firstofone% |
| 14856 |
\LetLtxMacro\textsl\@firstofone% |
| 14857 |
\LetLtxMacro\textssc\@firstofone% |
| 14858 |
\LetLtxMacro\textnormal\@firstofone% |
| 14859 |
} |
| 14860 |
|
| 14861 |
\newcommand*{\LWR@f@family}{rm} |
| 14862 |
\newcommand*{\LWR@f@series}{md} |
| 14863 |
\newcommand*{\LWR@f@shape}{up} |
| 14864 |
\newcommand*{\LWR@f@shapecaps}{ulc} |
| 14865 |
|
| 14866 |
\newcounter{LWR@textcurrentfontdepth} |
| 14867 |
\setcounter{LWR@textcurrentfontdepth}{0} |
| 14868 |
|
| 14869 |
\newcommand*{\LWR@textcurrentfont}[1]{% |
| 14870 |
\ifnumcomp{\value{LWR@textcurrentfontdepth}}{>}{0}% |
| 14871 |
{% |
| 14872 |
\addtocounter{LWR@textcurrentfontdepth}{1}% |
| 14873 |
#1% |
| 14874 |
\addtocounter{LWR@textcurrentfontdepth}{-1}% |
| 14875 |
}% |
| 14876 |
{% |
| 14877 |
\addtocounter{LWR@textcurrentfontdepth}{1}% |
| 14878 |
\ifboolexpr{% |
| 14879 |
test {\ifdefstring{\LWR@f@family}{rm}} and |
| 14880 |
test {\ifdefstring{\LWR@f@series}{md}} and |
| 14881 |
test {\ifdefstring{\LWR@f@shape}{up}} and |
| 14882 |
test {\ifdefstring{\LWR@f@shapecaps}{ulc}} |
| 14883 |
}% |
| 14884 |
{\InlineClass{textnormal}{#1}}% |
| 14885 |
{% |
| 14886 |
\InlineClass{% |
| 14887 |
text\LWR@f@family\LWR@orignobreakspace{}% |
| 14888 |
text\LWR@f@series\LWR@orignobreakspace{}% |
| 14889 |
text\LWR@f@shape\LWR@orignobreakspace{}% |
| 14890 |
text\LWR@f@shapecaps% |
| 14891 |
}% |
| 14892 |
{#1}% |
| 14893 |
}% |
| 14894 |
\addtocounter{LWR@textcurrentfontdepth}{-1}% |
| 14895 |
}% |
| 14896 |
} |
| 14897 |
|
| 14898 |
\newenvironment*{LWR@blocktextcurrentfont}{% |
| 14899 |
\LWR@stoppars% |
| 14900 |
\BlockClass{% |
| 14901 |
text\LWR@f@family\LWR@orignobreakspace{}% |
| 14902 |
text\LWR@f@series\LWR@orignobreakspace{}% |
| 14903 |
text\LWR@f@shape\LWR@orignobreakspace{}% |
| 14904 |
text\LWR@f@shapecaps% |
| 14905 |
}% |
| 14906 |
}{\endBlockClass\LWR@startpars} |
| 14907 |
|
| 14908 |
\newrobustcmd*{\LWR@HTML@mdseries}{% |
| 14909 |
\LWR@print@mdseries% |
| 14910 |
\renewcommand*{\LWR@f@series}{md}% |
| 14911 |
} |
| 14912 |
\LWR@formatted{mdseries} |
| 14913 |
|
| 14914 |
\newrobustcmd*{\LWR@HTML@bfseries}{% |
| 14915 |
\LWR@print@bfseries% |
| 14916 |
\renewcommand*{\LWR@f@series}{bf}% |
| 14917 |
} |
| 14918 |
\LWR@formatted{bfseries} |
| 14919 |
|
| 14920 |
\AtBeginDocument{ |
| 14921 |
\IfPackageLoadedTF{nfssext-cfr}{ |
| 14922 |
\providerobustcmd{\ebweight}{} |
| 14923 |
\newrobustcmd*{\LWR@HTML@ebweight}{% |
| 14924 |
\LWR@print@ebweight% |
| 14925 |
\renewcommand*{\LWR@f@series}{eb}% |
| 14926 |
} |
| 14927 |
\LWR@formatted{ebweight} |
| 14928 |
}{} |
| 14929 |
} |
| 14930 |
|
| 14931 |
\AtBeginDocument{ |
| 14932 |
\IfPackageLoadedTF{nfssext-cfr}{ |
| 14933 |
\providerobustcmd{\lgweight}{} |
| 14934 |
\newrobustcmd*{\LWR@HTML@lgweight}{% |
| 14935 |
\LWR@print@lgweight% |
| 14936 |
\renewcommand*{\LWR@f@series}{lg}% |
| 14937 |
} |
| 14938 |
\LWR@formatted{lgweight} |
| 14939 |
}{} |
| 14940 |
} |
| 14941 |
|
| 14942 |
\newrobustcmd*{\LWR@HTML@rmfamily}{% |
| 14943 |
\LWR@print@rmfamily% |
| 14944 |
\renewcommand*{\LWR@f@family}{rm}% |
| 14945 |
} |
| 14946 |
\LWR@formatted{rmfamily} |
| 14947 |
|
| 14948 |
\newrobustcmd*{\LWR@HTML@sffamily}{% |
| 14949 |
\LWR@print@sffamily% |
| 14950 |
\renewcommand*{\LWR@f@family}{sf}% |
| 14951 |
} |
| 14952 |
\LWR@formatted{sffamily} |
| 14953 |
|
| 14954 |
\newrobustcmd*{\LWR@HTML@ttfamily}{% |
| 14955 |
\LWR@print@ttfamily% |
| 14956 |
\renewcommand*{\LWR@f@family}{tt}% |
| 14957 |
} |
| 14958 |
\LWR@formatted{ttfamily} |
| 14959 |
\newrobustcmd*{\LWR@HTML@upshape}{% |
| 14960 |
\LWR@print@upshape% |
| 14961 |
\renewcommand*{\LWR@f@shape}{up}% |
| 14962 |
} |
| 14963 |
\AtBeginDocument{\LWR@formatted{upshape}} |
| 14964 |
|
| 14965 |
\newrobustcmd*{\LWR@HTML@itshape}{% |
| 14966 |
\LWR@print@itshape% |
| 14967 |
\renewcommand*{\LWR@f@shape}{it}% |
| 14968 |
} |
| 14969 |
\AtBeginDocument{\LWR@formatted{itshape}} |
| 14970 |
|
| 14971 |
\newrobustcmd*{\LWR@HTML@scshape}{% |
| 14972 |
\ifbool{FixSmallCaps}{}{% |
| 14973 |
\LWR@print@scshape% |
| 14974 |
}% |
| 14975 |
\renewcommand*{\LWR@f@shapecaps}{sc}% |
| 14976 |
} |
| 14977 |
\AtBeginDocument{\LWR@formatted{scshape}} |
| 14978 |
|
| 14979 |
\@ifundefined{ulcshape}{ |
| 14980 |
\LetLtxMacro\ulcshape\upshape |
| 14981 |
}{} |
| 14982 |
\newrobustcmd*{\LWR@HTML@ulcshape}{% |
| 14983 |
\LWR@print@ulcshape% |
| 14984 |
\renewcommand*{\LWR@f@shapecaps}{ulc}% |
| 14985 |
} |
| 14986 |
\AtBeginDocument{\LWR@formatted{ulcshape}} |
| 14987 |
|
| 14988 |
\@ifundefined{sishape}{ |
| 14989 |
\LetLtxMacro\sishape\scshape |
| 14990 |
}{} |
| 14991 |
\newrobustcmd*{\LWR@HTML@sishape}{% |
| 14992 |
\ifbool{FixSmallCaps}{}{% |
| 14993 |
\LWR@print@sishape% |
| 14994 |
}% |
| 14995 |
\renewcommand*{\LWR@f@shape}{it} |
| 14996 |
\renewcommand*{\LWR@f@shapecaps}{sc}% |
| 14997 |
} |
| 14998 |
\AtBeginDocument{\LWR@formatted{sishape}} |
| 14999 |
|
| 15000 |
\newrobustcmd*{\LWR@HTML@slshape}{% |
| 15001 |
\LWR@print@slshape% |
| 15002 |
\renewcommand*{\LWR@f@shape}{sl}% |
| 15003 |
} |
| 15004 |
\AtBeginDocument{\LWR@formatted{slshape}} |
| 15005 |
|
| 15006 |
\newrobustcmd{\LWR@HTML@sscshape}{\LWR@HTML@scshape} |
| 15007 |
\AtBeginDocument{\LWR@formatted{sscshape}} |
| 15008 |
|
| 15009 |
\newrobustcmd*{\LWR@HTML@normalfont}{\rmfamily\mdseries\upshape\ulcshape} |
| 15010 |
\LWR@formatted{normalfont} |
| 15011 |
|
| 15012 |
\FilenameNullify{% |
| 15013 |
\LetLtxMacro\rmfamily\@empty% |
| 15014 |
\LetLtxMacro\sffamily\@empty% |
| 15015 |
\LetLtxMacro\ttfamily\@empty% |
| 15016 |
\LetLtxMacro\bfseries\@empty% |
| 15017 |
\LetLtxMacro\ebweight\@empty% |
| 15018 |
\LetLtxMacro\lgweight\@empty% |
| 15019 |
\LetLtxMacro\mdseries\@empty% |
| 15020 |
\LetLtxMacro\upshape\@empty% |
| 15021 |
\LetLtxMacro\slshape\@empty% |
| 15022 |
\LetLtxMacro\sishape\@empty% |
| 15023 |
\LetLtxMacro\scshape\@empty% |
| 15024 |
\LetLtxMacro\itshape\@empty% |
| 15025 |
\LetLtxMacro\ulcshape\@empty% |
| 15026 |
\LetLtxMacro\sscshape\@empty% |
| 15027 |
\LetLtxMacro\normalfont\@empty% |
| 15028 |
} |
| 15029 |
|
| 15030 |
|
| 15031 |
\renewcommand{\sp}[1]{\text{<sup>#1</sup>}{}} |
| 15032 |
|
| 15033 |
|
| 15034 |
\renewcommand{\sb}[1]{\text{<sub>#1</sub>}{}} |
| 15035 |
|
| 15036 |
\newrobustcmd{\LWR@HTML@textsuperscript}[1]{\LWR@htmlspan{sup}{#1}} |
| 15037 |
\LWR@formatted{textsuperscript} |
| 15038 |
|
| 15039 |
\newcommand{\LWR@HTML@@textsuperscript}[1]{\LWR@htmlspan{sup}{#1}} |
| 15040 |
\LWR@formatted{@textsuperscript} |
| 15041 |
|
| 15042 |
\newrobustcmd{\LWR@HTML@textsubscript}[1]{\LWR@htmlspan{sub}{#1}} |
| 15043 |
\LWR@formatted{textsubscript} |
| 15044 |
|
| 15045 |
\newcommand{\LWR@HTML@@textsubscript}[1]{\LWR@htmlspan{sub}{#1}} |
| 15046 |
\LWR@formatted{@textsubscript} |
| 15047 |
|
| 15048 |
\AtBeginDocument{\let\up\textsuperscript} |
| 15049 |
|
| 15050 |
\AtBeginDocument{\let\fup\textsuperscript} |
| 15051 |
|
| 15052 |
\renewcommand{\underline}[1]{% |
| 15053 |
\InlineClass% |
| 15054 |
(text-decoration:underline; text-decoration-skip: auto)% |
| 15055 |
{underline}{#1}% |
| 15056 |
} |
| 15057 |
|
| 15058 |
\newcommand{\LWR@overline}[1]{% |
| 15059 |
\InlineClass% |
| 15060 |
(text-decoration:overline; text-decoration-skip: auto)% |
| 15061 |
{overline}{#1}% |
| 15062 |
} |
| 15063 |
|
| 15064 |
\newcommand*{\LWR@currenttextcolor}{black} |
| 15065 |
\newcommand*{\LWR@tempcolor}{} |
| 15066 |
\newcommand*{\LWR@tempcolortwo}{} |
| 15067 |
\newcommand*{\LWR@findcurrenttextcolor}{% |
| 15068 |
\renewcommand{\LWR@tempcolor}{000000}% |
| 15069 |
} |
| 15070 |
\NewDocumentCommand{\LWR@textcurrentcolor}{m}{% |
| 15071 |
\renewcommand*{\LWR@currenttextcolor}{black}% |
| 15072 |
#1% |
| 15073 |
} |
| 15074 |
|
| 15075 |
\end{warpHTML} |
| 15076 |
|
| 15077 |
\begin{warpprint} |
| 15078 |
|
| 15079 |
\newcommand*{\LWR@textcurrentfont}[1]{#1} |
| 15080 |
|
| 15081 |
\newenvironment*{LWR@blocktextcurrentfont}{}{} |
| 15082 |
|
| 15083 |
\newcommand*{\FilenameNullify}[1]{} |
| 15084 |
|
| 15085 |
\end{warpprint} |
| 15086 |
|
| 15087 |
|
| 15088 |
\begin{warpHTML} |
| 15089 |
\newbool{LWR@HTMLsanitize@nobreakspace} |
| 15090 |
\booltrue{LWR@HTMLsanitize@nobreakspace} |
| 15091 |
\AtBeginDocument{% |
| 15092 |
\LWR@traceinfo{AtBeginDocument direct formatting} |
| 15093 |
\renewrobustcmd*{\,}{\HTMLunicode{202f}}% HTML thin non-breakable space, not using LWR@formatted |
| 15094 |
\newrobustcmd*{\LWR@HTML@thinspace}{\HTMLunicode{202f}}% HTML thin non-breakable space |
| 15095 |
\LWR@formatted{thinspace} |
| 15096 |
\newrobustcmd*{\LWR@HTML@negthinspace}{\HTMLunicode{202f}} % HTML thin non-breakable space |
| 15097 |
\LWR@formatted{negthinspace} |
| 15098 |
\renewrobustcmd*{~}{% |
| 15099 |
\ifbool{LWR@HTMLsanitize@nobreakspace}% |
| 15100 |
{\leavevmode\nobreak\HTMLentity{nbsp}}% |
| 15101 |
{\LWR@orignobreakspace}% |
| 15102 |
} |
| 15103 |
|
| 15104 |
\LetLtxMacro\nobreakspace~ |
| 15105 |
\expandafter\LetLtxMacro\csname ?-\string\nobreakspace\endcsname~ |
| 15106 |
\newrobustcmd*{\LWR@HTML@textellipsis}{\HTMLunicode{2026}} |
| 15107 |
\LWR@formatted{textellipsis} |
| 15108 |
\newrobustcmd*{\LWR@HTML@vdots}{\HTMLunicode{22EE}} |
| 15109 |
\LWR@formatted{vdots} |
| 15110 |
}% AtBeginDocument |
| 15111 |
\newcommand*{\LWR@font@size}{normalsize} |
| 15112 |
|
| 15113 |
\newrobustcmd*{\LWR@HTML@normalsize}{\renewcommand*{\LWR@font@size}{normalsize}} |
| 15114 |
\LWR@formatted{normalsize} |
| 15115 |
|
| 15116 |
\newrobustcmd*{\LWR@HTML@small}{\renewcommand*{\LWR@font@size}{small}} |
| 15117 |
\LWR@formatted{small} |
| 15118 |
|
| 15119 |
\newrobustcmd*{\LWR@HTML@footnotesize}{\renewcommand*{\LWR@font@size}{footnotesize}} |
| 15120 |
\LWR@formatted{footnotesize} |
| 15121 |
|
| 15122 |
\newrobustcmd*{\LWR@HTML@scriptsize}{\renewcommand*{\LWR@font@size}{scriptsize}} |
| 15123 |
\LWR@formatted{scriptsize} |
| 15124 |
|
| 15125 |
\newrobustcmd*{\LWR@HTML@tiny}{\renewcommand*{\LWR@font@size}{tiny}} |
| 15126 |
\LWR@formatted{tiny} |
| 15127 |
|
| 15128 |
\newrobustcmd*{\LWR@HTML@large}{\renewcommand*{\LWR@font@size}{large}} |
| 15129 |
\LWR@formatted{large} |
| 15130 |
|
| 15131 |
\newrobustcmd*{\LWR@HTML@Large}{\renewcommand*{\LWR@font@size}{Large}} |
| 15132 |
\LWR@formatted{Large} |
| 15133 |
|
| 15134 |
\newrobustcmd*{\LWR@HTML@LARGE}{\renewcommand*{\LWR@font@size}{LARGE}} |
| 15135 |
\LWR@formatted{LARGE} |
| 15136 |
|
| 15137 |
\newrobustcmd*{\LWR@HTML@huge}{\renewcommand*{\LWR@font@size}{huge}} |
| 15138 |
\LWR@formatted{huge} |
| 15139 |
|
| 15140 |
\newrobustcmd*{\LWR@HTML@Huge}{\renewcommand*{\LWR@font@size}{Huge}} |
| 15141 |
\LWR@formatted{Huge} |
| 15142 |
\DeclareDocumentCommand{\onecolumn}{}{} |
| 15143 |
|
| 15144 |
\DeclareDocumentCommand{\twocolumn}{O{}}{ |
| 15145 |
|
| 15146 |
#1 |
| 15147 |
|
| 15148 |
} |
| 15149 |
|
| 15150 |
\newcommand*{\LWR@HTML@hfill}{\qquad} |
| 15151 |
\LWR@formatted{hfill} |
| 15152 |
|
| 15153 |
\newcommand*{\LWR@HTML@hrulefill}{% |
| 15154 |
\ifbool{LWR@doingapar}% |
| 15155 |
{\rule{1in}{1pt}}% |
| 15156 |
{% |
| 15157 |
\LWR@findcurrenttextcolor% |
| 15158 |
\ifdefstring{\LWR@tempcolor}{000000}% |
| 15159 |
{% |
| 15160 |
\begin{BlockClass}{hrule}% |
| 15161 |
\end{BlockClass}% |
| 15162 |
}% |
| 15163 |
{% |
| 15164 |
\begin{BlockClass}[% |
| 15165 |
border-top: 1px solid \LWR@origpound\LWR@tempcolor % space |
| 15166 |
]{hrule}% |
| 15167 |
\end{BlockClass}% |
| 15168 |
}% |
| 15169 |
}% |
| 15170 |
}% |
| 15171 |
\LWR@formatted{hrulefill} |
| 15172 |
|
| 15173 |
\newcommand*{\LWR@HTML@dotfill}{\dots} |
| 15174 |
\LWR@formatted{dotfill} |
| 15175 |
|
| 15176 |
\renewcommand*{\newpage}{ |
| 15177 |
|
| 15178 |
} |
| 15179 |
|
| 15180 |
\newrobustcmd*{\LWR@newlinebr}{\unskip\LWR@htmltag{br /}\LWR@orignewline}% |
| 15181 |
\LetLtxMacro\newline\LWR@newlinebr |
| 15182 |
|
| 15183 |
\LetLtxMacro\LWR@origendofline\\ |
| 15184 |
\NewDocumentCommand{\LWR@endofline}{s O{0pt}} |
| 15185 |
{% |
| 15186 |
\newline% |
| 15187 |
\setlength{\LWR@templengthone}{#2}% |
| 15188 |
\ifdimgreater{\LWR@templengthone}{0pt}{\newline}{}% |
| 15189 |
} |
| 15190 |
|
| 15191 |
\newcommand*{\LWR@minipagestartpars}{% |
| 15192 |
\ifbool{LWR@minipagethispar}{\LWR@startpars}{}% |
| 15193 |
} |
| 15194 |
|
| 15195 |
\newcommand*{\LWR@minipagestoppars}{% |
| 15196 |
\ifbool{LWR@minipagethispar}{\LWR@stoppars}{}% |
| 15197 |
} |
| 15198 |
|
| 15199 |
\newrobustcmd*{\LWR@HTML@quad}{% |
| 15200 |
\LWR@minipagestoppars% |
| 15201 |
\HTMLunicode{2003}% |
| 15202 |
\LWR@minipagestartpars% |
| 15203 |
} |
| 15204 |
\LWR@formatted{quad} |
| 15205 |
|
| 15206 |
\newrobustcmd*{\LWR@HTML@qquad}{\quad\quad} |
| 15207 |
\LWR@formatted{qquad} |
| 15208 |
|
| 15209 |
\newrobustcmd*{\LWR@HTML@enskip}{% |
| 15210 |
\LWR@minipagestoppars% |
| 15211 |
\HTMLunicode{2002}% |
| 15212 |
\LWR@minipagestartpars% |
| 15213 |
} |
| 15214 |
\LWR@formatted{enskip} |
| 15215 |
|
| 15216 |
\newlength{\LWR@tempwidth} |
| 15217 |
\newlength{\LWR@tempheight} |
| 15218 |
\newlength{\LWR@tempraise} |
| 15219 |
|
| 15220 |
\NewDocumentCommand{\LWR@HTML@hspace}{s m}{% |
| 15221 |
\setlength{\LWR@tempwidth}{#2}% |
| 15222 |
\ifnum\gluestretchorder\LWR@tempwidth>0% |
| 15223 |
\setlength{\LWR@tempwidth}{2em}% |
| 15224 |
\fi% |
| 15225 |
\ifdimcomp{\LWR@tempwidth}{>}{0pt}{% |
| 15226 |
\LWR@minipagestoppars% |
| 15227 |
\ifdimcomp{\LWR@tempwidth}{=}{.16667em}% |
| 15228 |
{% |
| 15229 |
\HTMLunicode{2009}% thin breakable space |
| 15230 |
}% |
| 15231 |
{% |
| 15232 |
\LWR@htmltagc{% |
| 15233 |
span style=\textquotedbl{}width:\LWR@printlength{\LWR@tempwidth}; % extra space |
| 15234 |
display:inline-block\textquotedbl% |
| 15235 |
}% |
| 15236 |
\ifbool{FormatWP}{% |
| 15237 |
\setlength{\LWR@templengthone}{\LWR@tempwidth}% |
| 15238 |
\whiledo{\lengthtest{\LWR@templengthone>1em}}{% |
| 15239 |
\quad% |
| 15240 |
\addtolength{\LWR@templengthone}{-1em}% |
| 15241 |
}% |
| 15242 |
}% |
| 15243 |
{\LWR@htmlcomment{}}% |
| 15244 |
\LWR@htmltagc{/span}% |
| 15245 |
}% |
| 15246 |
\LWR@minipagestartpars% |
| 15247 |
}{}% width greater than 0 |
| 15248 |
}% |
| 15249 |
\LWR@formatted{hspace} |
| 15250 |
|
| 15251 |
\NewDocumentCommand{\LWR@HTML@vspace}{s m}{} |
| 15252 |
|
| 15253 |
\LWR@formatted{vspace} |
| 15254 |
|
| 15255 |
\renewcommand*{\linebreak}[1][]{\newline} |
| 15256 |
|
| 15257 |
\renewcommand*{\nolinebreak}[1][]{} |
| 15258 |
|
| 15259 |
\renewcommand*{\pagebreak}[1][]{ |
| 15260 |
|
| 15261 |
} |
| 15262 |
|
| 15263 |
\renewcommand*{\nopagebreak}[1][]{} |
| 15264 |
|
| 15265 |
\RenewDocumentCommand{\enlargethispage}{s m}{} |
| 15266 |
\renewcommand*{\clearpage}{} |
| 15267 |
\renewcommand*{\cleardoublepage}{} |
| 15268 |
\newcommand*{\LWR@HTML@rule}[3][]{% |
| 15269 |
\setlength{\LWR@tempwidth}{#2}% |
| 15270 |
\ifthenelse{\lengthtest{\LWR@tempwidth=0pt}}% |
| 15271 |
{}% zero- width |
| 15272 |
{% non-zero width |
| 15273 |
\ifthenelse{% |
| 15274 |
\lengthtest{\LWR@tempwidth>0pt}\AND% |
| 15275 |
\lengthtest{\LWR@tempwidth<1pt}% |
| 15276 |
}% |
| 15277 |
{\setlength{\LWR@tempwidth}{1pt}}% |
| 15278 |
{}% |
| 15279 |
\setlength{\LWR@tempheight}{#3}% |
| 15280 |
\ifthenelse{% |
| 15281 |
\lengthtest{\LWR@tempheight>0pt}\AND% |
| 15282 |
\lengthtest{\LWR@tempheight<1pt}% |
| 15283 |
}% |
| 15284 |
{\setlength{\LWR@tempheight}{1pt}}% |
| 15285 |
{}% |
| 15286 |
\LWR@minipagestoppars% |
| 15287 |
\LWR@findcurrenttextcolor% |
| 15288 |
\LWR@htmltagc{% |
| 15289 |
span\LWR@indentHTML% |
| 15290 |
style=\textquotedbl% |
| 15291 |
\ifbool{FormatWP}{}{background:\LWR@currenttextcolor ; }% |
| 15292 |
width:\LWR@printlength{\LWR@tempwidth} ; % |
| 15293 |
height:\LWR@printlength{\LWR@tempheight} ; % |
| 15294 |
\ifblank{#1}% |
| 15295 |
{}% |
| 15296 |
{% |
| 15297 |
\setlength{\LWR@tempraise}{0pt-#1}% |
| 15298 |
\setlength{\LWR@tempraise}{\LWR@tempraise*2}% |
| 15299 |
\LWR@indentHTML% |
| 15300 |
-ms-transform: translate(0pt,\LWR@printlength{\LWR@tempraise}); % |
| 15301 |
\LWR@indentHTML% |
| 15302 |
-webkit-transform: translate(0pt,\LWR@printlength{\LWR@tempraise}); % |
| 15303 |
\LWR@indentHTML% |
| 15304 |
transform: translate(0pt,\LWR@printlength{\LWR@tempraise}); % |
| 15305 |
\LWR@indentHTML% |
| 15306 |
}% |
| 15307 |
display:inline-block;\textquotedbl\LWR@orignewline% |
| 15308 |
}% |
| 15309 |
\ifbool{FormatWP}{% |
| 15310 |
\setlength{\LWR@templengthone}{\LWR@tempwidth}% |
| 15311 |
\whiledo{\lengthtest{\LWR@templengthone>1em}}{% |
| 15312 |
\_{}% |
| 15313 |
\addtolength{\LWR@templengthone}{-1em}% |
| 15314 |
}% |
| 15315 |
}% |
| 15316 |
{\LWR@htmlcomment{}}% |
| 15317 |
\LWR@htmltagc{/span}% |
| 15318 |
\LWR@minipagestartpars% |
| 15319 |
}% non-zero width |
| 15320 |
} |
| 15321 |
|
| 15322 |
\LWR@formatted{rule} |
| 15323 |
\end{warpHTML} |
| 15324 |
|
| 15325 |
|
| 15326 |
\begin{warpHTML} |
| 15327 |
|
| 15328 |
\newrobustcmd*{\LWR@phantomsection}{% |
| 15329 |
\begingroup% |
| 15330 |
\boolfalse{LWR@forcinghtmltoc}% |
| 15331 |
\section*{}% |
| 15332 |
\endgroup% |
| 15333 |
} |
| 15334 |
|
| 15335 |
\end{warpHTML} |
| 15336 |
|
| 15337 |
|
| 15338 |
\begin{warpall} |
| 15339 |
\newbool{LWR@warnXe} |
| 15340 |
\boolfalse{LWR@warnXe} |
| 15341 |
|
| 15342 |
\newrobustcmd*{\Xe} |
| 15343 |
{% |
| 15344 |
X\hspace{-.1667em}\raisebox{-.5ex}{E}% |
| 15345 |
\global\booltrue{LWR@warnXe}% |
| 15346 |
} |
| 15347 |
|
| 15348 |
\AtBeginDocument{ |
| 15349 |
\LWR@traceinfo{AtBeginDocument logos} |
| 15350 |
\IfPackageLoadedTF{graphics}{ |
| 15351 |
\IfPackageLoadedTF{metalogo}{}{ |
| 15352 |
\renewrobustcmd*{\Xe} |
| 15353 |
{X\hspace{-.1667em}\raisebox{-.5ex}{\reflectbox{E}}} |
| 15354 |
} |
| 15355 |
}{} |
| 15356 |
} |
| 15357 |
|
| 15358 |
\AtEndDocument{ |
| 15359 |
\ifbool{LWR@warnXe}{ |
| 15360 |
\PackageNoteNoLine{lwarp}{Load graphicx or graphics |
| 15361 |
for improved XeTeX logo} |
| 15362 |
}{} |
| 15363 |
} |
| 15364 |
|
| 15365 |
\providerobustcmd*{\XeTeX}{\mbox{\Xe\hspace{-.125em}\TeX}} |
| 15366 |
\providerobustcmd*{\XeLaTeX}{\mbox{\Xe\hspace{-.125em}\LaTeX}} |
| 15367 |
\providerobustcmd*{\AmS}{% |
| 15368 |
\leavevmode\hbox{$\mathcal A\kern-.2em\lower.376ex% |
| 15369 |
\hbox{$\mathcal M$}\kern-.2em\mathcal S$}% |
| 15370 |
} |
| 15371 |
\newrobustcmd*{\LyX}{\textsf{LyX}} |
| 15372 |
\providerobustcmd*{\LuaTeX}{\mbox{Lua\TeX}} |
| 15373 |
\providerobustcmd*{\LuaLaTeX}{\mbox{Lua\LaTeX}} |
| 15374 |
\providerobustcmd*{\BibTeX}{\mbox{B\textsc{ib}\TeX}} |
| 15375 |
\providerobustcmd*{\MakeIndex}{\mbox{\textit{MakeIndex}}} |
| 15376 |
\providerobustcmd*{\ConTeXt}{\mbox{Con\TeX{}t}} |
| 15377 |
\providerobustcmd*{\MiKTeX}{\mbox{MiK\TeX}} |
| 15378 |
\end{warpall} |
| 15379 |
\begin{warpHTML} |
| 15380 |
\newrobustcmd*{\LWR@HTML@TeX} |
| 15381 |
{% |
| 15382 |
\InlineClass{latexlogofont}% |
| 15383 |
{% |
| 15384 |
\InlineClass{latexlogo}% |
| 15385 |
{% |
| 15386 |
T% |
| 15387 |
\InlineClass{latexlogosub}{e}% |
| 15388 |
X% |
| 15389 |
}% |
| 15390 |
}% |
| 15391 |
} |
| 15392 |
\AtBeginDocument{\LWR@formatted{TeX}}% may have been patched by metalogo |
| 15393 |
\newrobustcmd*{\LWR@HTML@LaTeX} |
| 15394 |
{% |
| 15395 |
\InlineClass{latexlogofont}% |
| 15396 |
{% |
| 15397 |
\InlineClass{latexlogo}% |
| 15398 |
{% |
| 15399 |
L% |
| 15400 |
\InlineClass{latexlogosup}{a}% |
| 15401 |
T% |
| 15402 |
\InlineClass{latexlogosub}{e}% |
| 15403 |
X% |
| 15404 |
}% |
| 15405 |
}% |
| 15406 |
} |
| 15407 |
|
| 15408 |
\AtBeginDocument{\LWR@formatted{LaTeX}}% may have been patched by metalogo |
| 15409 |
|
| 15410 |
\newrobustcmd*{\LWR@HTML@LaTeXe} |
| 15411 |
{% |
| 15412 |
\LaTeX% |
| 15413 |
\InlineClass{latexlogofont}{% |
| 15414 |
\InlineClass{latexlogotwoe}{% |
| 15415 |
2% |
| 15416 |
\InlineClass{latexlogotwoesub}{\HTMLunicode{03B5}}% |
| 15417 |
}% |
| 15418 |
}% |
| 15419 |
} |
| 15420 |
\AtBeginDocument{\LWR@formatted{LaTeXe}}% may have been patched by metalogo |
| 15421 |
\newrobustcmd*{\LWR@HTML@LuaTeX}{\InlineClass{latexlogofont}{Lua}\TeX} |
| 15422 |
\AtBeginDocument{\LWR@formatted{LuaTeX}}% may have been patched by metalogo |
| 15423 |
|
| 15424 |
\newrobustcmd*{\LWR@HTML@LuaLaTeX}{\InlineClass{latexlogofont}{Lua}\LaTeX} |
| 15425 |
\AtBeginDocument{\LWR@formatted{LuaLaTeX}}% may have been patched by metalogo |
| 15426 |
\newrobustcmd*{\LWR@HTML@Xe} |
| 15427 |
{% |
| 15428 |
X% |
| 15429 |
\InlineClass{xelatexlogosub}{\HTMLunicode{18e}}% |
| 15430 |
} |
| 15431 |
\AtBeginDocument{\LWR@formatted{Xe}}% may have been patched by metalogo |
| 15432 |
|
| 15433 |
\newrobustcmd*{\LWR@HTML@XeTeX}{\InlineClass{xelatexlogo}{\Xe}\TeX} |
| 15434 |
\AtBeginDocument{\LWR@formatted{XeTeX}}% may have been patched by metalogo |
| 15435 |
|
| 15436 |
\newrobustcmd*{\LWR@HTML@XeLaTeX}{\InlineClass{xelatexlogo}{\Xe}\LaTeX} |
| 15437 |
\AtBeginDocument{\LWR@formatted{XeLaTeX}}% may have been patched by metalogo |
| 15438 |
\newrobustcmd*{\LWR@HTML@ConTeXt}{% |
| 15439 |
\InlineClass{latexlogofont}{Con}\TeX{}% |
| 15440 |
\InlineClass{latexlogofont}{t}% |
| 15441 |
} |
| 15442 |
\LWR@formatted{ConTeXt} |
| 15443 |
\newrobustcmd*{\LWR@HTML@BibTeX} |
| 15444 |
{\InlineClass{latexlogofont}{B\textsc{ib}}\TeX} |
| 15445 |
\LWR@formatted{BibTeX} |
| 15446 |
|
| 15447 |
\newrobustcmd*{\LWR@HTML@MakeIndex} |
| 15448 |
{\InlineClass{latexlogofont}{\textit{MakeIndex}}} |
| 15449 |
\LWR@formatted{MakeIndex} |
| 15450 |
\AtBeginDocument{% |
| 15451 |
\newrobustcmd*{\LWR@HTML@AmS} |
| 15452 |
{% |
| 15453 |
\InlineClass{amslogo}{% |
| 15454 |
\textit{% |
| 15455 |
A% |
| 15456 |
\InlineClass{latexlogosub}{M}% |
| 15457 |
S% |
| 15458 |
}% |
| 15459 |
}% |
| 15460 |
}% |
| 15461 |
\LWR@formatted{AmS} |
| 15462 |
} |
| 15463 |
\newrobustcmd*{\LWR@HTML@MiKTeX}{\InlineClass{latexlogofont}{MiK}\TeX} |
| 15464 |
\LWR@formatted{MiKTeX} |
| 15465 |
\newrobustcmd*{\LWR@HTML@LyX}{\InlineClass{lyxlogo}{LyX}} |
| 15466 |
\LWR@formatted{LyX} |
| 15467 |
\end{warpHTML} |
| 15468 |
|
| 15469 |
|
| 15470 |
\begin{warpHTML} |
| 15471 |
|
| 15472 |
\AfterEndPreamble{\LWR@LwarpStart} |
| 15473 |
\AtEndDocument{\LWR@LwarpEnd} |
| 15474 |
\DeclareHookRule{enddocument}{lwarp}{after}{legacy} |
| 15475 |
|
| 15476 |
\end{warpHTML} |
| 15477 |
|
| 15478 |
\begin{warpHTML} |
| 15479 |
\RequirePackage{array} |
| 15480 |
\edef\LWR@detect@centeringarraybackslash{\centering\arraybackslash} |
| 15481 |
\edef\LWR@detect@raggedrightarraybackslash{\raggedright\arraybackslash} |
| 15482 |
\edef\LWR@detect@raggedleftarraybackslash{\raggedleft\arraybackslash} |
| 15483 |
\def\LWR@detect@itshape{\itshape} |
| 15484 |
\def\LWR@detect@bfseries{\bfseries} |
| 15485 |
\def\LWR@detect@bfit{\bfseries\itshape} |
| 15486 |
\end{warpHTML} |
| 15487 |
|
| 15488 |
\begin{warpHTML} |
| 15489 |
\AtBeginDocument{ |
| 15490 |
\LWR@traceinfo{AtBeginDocument everyshi} |
| 15491 |
\IfPackageLoadedTF{everyshi}{ |
| 15492 |
\RequirePackage{lwarp-everyshi} |
| 15493 |
}{} |
| 15494 |
} |
| 15495 |
\end{warpHTML} |
| 15496 |
|
| 15497 |
\begin{warpHTML} |
| 15498 |
\RequirePackage{lwarp-textcomp} |
| 15499 |
\end{warpHTML} |
| 15500 |
|
| 15501 |
\begin{warpHTML} |
| 15502 |
\IfPackageLoadedTF{amsthm}{ |
| 15503 |
\RequirePackage{lwarp-amsthm} |
| 15504 |
}{} |
| 15505 |
\IfPackageLoadedTF{amsmath}{ |
| 15506 |
\RequirePackage{lwarp-amsmath} |
| 15507 |
}{} |
| 15508 |
\IfPackageLoadedTF{centernot}{ |
| 15509 |
\RequirePackage{lwarp-centernot} |
| 15510 |
}{} |
| 15511 |
\end{warpHTML} |
| 15512 |
|
| 15513 |
\begin{warpHTML} |
| 15514 |
\IfClassLoadedTF{scrbook}{\RequirePackage{lwarp-patch-komascript}}{} |
| 15515 |
\IfClassLoadedTF{scrartcl}{\RequirePackage{lwarp-patch-komascript}}{} |
| 15516 |
\IfClassLoadedTF{scrreprt}{\RequirePackage{lwarp-patch-komascript}}{} |
| 15517 |
\end{warpHTML} |
| 15518 |
|
| 15519 |
\begin{warpprint} |
| 15520 |
\IfClassLoadedTF{memoir}{\LWR@origRequirePackage{xcolor}}{} |
| 15521 |
\end{warpprint} |
| 15522 |
|
| 15523 |
\begin{warpHTML} |
| 15524 |
\IfClassLoadedTF{memoir}{\RequirePackage{lwarp-patch-memoir}}{} |
| 15525 |
\end{warpHTML} |
| 15526 |
|
| 15527 |
\begin{warpHTML} |
| 15528 |
\newcommand*{\LWR@patchujtclasses}{ |
| 15529 |
\def\@partnameformat{} |
| 15530 |
\def\@partcntformat##1{% |
| 15531 |
\prepartname% |
| 15532 |
\csname the##1\endcsname% |
| 15533 |
\postpartname% |
| 15534 |
\quad% |
| 15535 |
} |
| 15536 |
\@ifundefined{chapter}{}{ |
| 15537 |
\def\@chapcntformat##1{% |
| 15538 |
\prechaptername% |
| 15539 |
\csname the##1\endcsname% |
| 15540 |
\postchaptername% |
| 15541 |
\quad% |
| 15542 |
} |
| 15543 |
} |
| 15544 |
\renewcommand*{\LWR@printchaptername}{} |
| 15545 |
\renewcommand{\thepart}{\@Roman\c@part} |
| 15546 |
\@ifundefined{chapter}{ |
| 15547 |
\renewcommand{\thesection}{\@arabic\c@section} |
| 15548 |
}{ |
| 15549 |
\renewcommand{\thechapter}{\@arabic\c@chapter} |
| 15550 |
\renewcommand{\thesection}{\thechapter.\@arabic\c@section} |
| 15551 |
} |
| 15552 |
\renewcommand{\thesubsection}{\thesection.\@arabic\c@subsection} |
| 15553 |
\renewcommand{\thesubsubsection}{% |
| 15554 |
\thesubsection.\@arabic\c@subsubsection} |
| 15555 |
\renewcommand{\theparagraph}{% |
| 15556 |
\thesubsubsection.\@arabic\c@paragraph} |
| 15557 |
\renewcommand{\thesubparagraph}{% |
| 15558 |
\theparagraph.\@arabic\c@subparagraph} |
| 15559 |
\@ifundefined{chapter}{ |
| 15560 |
\renewcommand{\thefigure}{\@arabic\c@figure} |
| 15561 |
\renewcommand{\thetable}{\@arabic\c@table} |
| 15562 |
}{ |
| 15563 |
\renewcommand{\thefigure}{% |
| 15564 |
\ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@figure} |
| 15565 |
\renewcommand{\thetable}{% |
| 15566 |
\ifnum\c@chapter>\z@\thechapter.\fi\@arabic\c@table} |
| 15567 |
} |
| 15568 |
} |
| 15569 |
|
| 15570 |
\IfClassLoadedTF{ujarticle}{\LWR@patchujtclasses}{} |
| 15571 |
\IfClassLoadedTF{ujbook}{\LWR@patchujtclasses}{} |
| 15572 |
\IfClassLoadedTF{ujreport}{\LWR@patchujtclasses}{} |
| 15573 |
\IfClassLoadedTF{utarticle}{\LWR@patchujtclasses}{} |
| 15574 |
\IfClassLoadedTF{utbook}{\LWR@patchujtclasses}{} |
| 15575 |
\IfClassLoadedTF{utreport}{\LWR@patchujtclasses}{} |
| 15576 |
\IfClassLoadedTF{ltjarticle}{\LWR@patchujtclasses}{} |
| 15577 |
\IfClassLoadedTF{ltjbook}{\LWR@patchujtclasses}{} |
| 15578 |
\IfClassLoadedTF{ltjreport}{\LWR@patchujtclasses}{} |
| 15579 |
\IfClassLoadedTF{ltjsarticle}{\LWR@patchujtclasses}{} |
| 15580 |
\IfClassLoadedTF{ltjsbook}{\LWR@patchujtclasses}{} |
| 15581 |
\IfClassLoadedTF{ltjsreport}{\LWR@patchujtclasses}{} |
| 15582 |
\IfClassLoadedTF{ltjskiyou}{\LWR@patchujtclasses}{} |
| 15583 |
\IfClassLoadedTF{ltjspf}{\LWR@patchujtclasses}{} |
| 15584 |
\IfClassLoadedTF{ltjtarticle}{\LWR@patchujtclasses}{} |
| 15585 |
\IfClassLoadedTF{ltjtbook}{\LWR@patchujtclasses}{} |
| 15586 |
\IfClassLoadedTF{ltjtreport}{\LWR@patchujtclasses}{} |
| 15587 |
\end{warpHTML} |
| 15588 |
|
| 15589 |
\begin{warpHTML} |
| 15590 |
\AtBeginDocument{ |
| 15591 |
\LWR@traceinfo{AtBeginDocument ctexpatch}% |
| 15592 |
\IfPackageLoadedTF{ctexpatch}{% |
| 15593 |
\def\@partcntformat#1{% |
| 15594 |
\LWR@isolate{\CTEX@partname}~% |
| 15595 |
\CTEX@part@aftername% |
| 15596 |
}% |
| 15597 |
|
| 15598 |
\def\@partnameformat{} |
| 15599 |
|
| 15600 |
\def\@chapcntformat#1{% |
| 15601 |
\LWR@isolate{\CTEX@chaptername}~% |
| 15602 |
\CTEX@chapter@aftername% |
| 15603 |
}% |
| 15604 |
|
| 15605 |
\renewcommand*{\LWR@printchaptername}{} |
| 15606 |
}{} |
| 15607 |
} |
| 15608 |
\end{warpHTML} |
| 15609 |
\begin{warpHTML} |
| 15610 |
\AtBeginDocument{ |
| 15611 |
\LWR@traceinfo{AtBeginDocument kotexutf} |
| 15612 |
\IfPackageLoadedTF{kotexutf}{% |
| 15613 |
\def\LWR@kotexutf@setref#1#2#3{% |
| 15614 |
\@setref@dhucs@orig{#1}{#2}{#3}% |
| 15615 |
\ifx#1\relax\else |
| 15616 |
\bgroup |
| 15617 |
\dhucs@make@cjkchar@null |
| 15618 |
\edef\@temp{\expandafter#2#1}\global\josatoks\expandafter{\@temp}% |
| 15619 |
\egroup |
| 15620 |
\fi% |
| 15621 |
}% |
| 15622 |
|
| 15623 |
\ifdefequal{\@setref}{\LWR@kotexutf@setref}{ |
| 15624 |
\let\@setref\@setref@dhucs@orig |
| 15625 |
}{} |
| 15626 |
}{} |
| 15627 |
} |
| 15628 |
\end{warpHTML} |
| 15629 |
|
| 15630 |
\begin{warpHTML} |
| 15631 |
\AtBeginDocument{ |
| 15632 |
\LWR@traceinfo{AtBeginDocument polyglossia warning} |
| 15633 |
|
| 15634 |
\IfPackageLoadedTF{polyglossia}{ |
| 15635 |
\PackageNoteNoLine{lwarp} |
| 15636 |
{% |
| 15637 |
Polyglossia has been loaded. Lwarp also uses cleveref.\MessageBreak |
| 15638 |
See the cleveref documentation regarding\MessageBreak |
| 15639 |
polyglossia support. Some languages are not supported.\MessageBreak |
| 15640 |
--- \MessageBreak |
| 15641 |
If the error\MessageBreak |
| 15642 |
\space\space Undefined control sequence ... |
| 15643 |
\protect\__hook begindocument\MessageBreak |
| 15644 |
occurs here, use the polyglossia macro:\MessageBreak |
| 15645 |
\space\space\protect\setmainlanguage\protect{...\protect} |
| 15646 |
} |
| 15647 |
}{ |
| 15648 |
\IfPackageLoadedTF{babel}{ |
| 15649 |
\PackageNoteNoLine{lwarp} |
| 15650 |
{% |
| 15651 |
Babel has been loaded. Lwarp also uses cleveref.\MessageBreak |
| 15652 |
See the cleveref documentation regarding\MessageBreak |
| 15653 |
babel support. Some languages are not supported% |
| 15654 |
} |
| 15655 |
}{} |
| 15656 |
} |
| 15657 |
|
| 15658 |
} |
| 15659 |
\end{warpHTML} |
| 15660 |
\newcommand*{\LWR@mathjaxwarn}[2]{% |
| 15661 |
\IfPackageLoadedTF{lwarp-#1}{% |
| 15662 |
\ifblank{#2}{% |
| 15663 |
\PackageWarningNoLine{lwarp} |
| 15664 |
{% |
| 15665 |
Lwarp provides emulation for MathJax when used\MessageBreak |
| 15666 |
with the #1 package% |
| 15667 |
} |
| 15668 |
}{% |
| 15669 |
\PackageWarningNoLine{lwarp} |
| 15670 |
{% |
| 15671 |
Lwarp provides emulation for MathJax when used\MessageBreak |
| 15672 |
with the #1 package.\MessageBreak |
| 15673 |
#2% |
| 15674 |
} |
| 15675 |
}% |
| 15676 |
}{}% |
| 15677 |
} |
| 15678 |
|
| 15679 |
\newcommand*{\LWR@nomathjaxwarn}[2]{% |
| 15680 |
\IfPackageLoadedTF{lwarp-#1}{% |
| 15681 |
\ifblank{#2}{% |
| 15682 |
\PackageWarningNoLine{lwarp} |
| 15683 |
{% |
| 15684 |
Lwarp does not provide MathJax support for #1.\MessageBreak |
| 15685 |
Use SVG math by removing the Lwarp mathjax option% |
| 15686 |
} |
| 15687 |
}{% |
| 15688 |
\PackageWarningNoLine{lwarp} |
| 15689 |
{% |
| 15690 |
Lwarp does not provide MathJax support for #1.\MessageBreak |
| 15691 |
#2% |
| 15692 |
} |
| 15693 |
}% |
| 15694 |
}{}% |
| 15695 |
} |
| 15696 |
\newcommand*{\LWR@forceSVGmessage}[1]{% |
| 15697 |
SVG math output may be enabled for select math\MessageBreak |
| 15698 |
expressions to preserve #1 visual\MessageBreak |
| 15699 |
features for those particular expressions.\MessageBreak |
| 15700 |
Before the chosen inline math, use \protect\inlinemathother\MessageBreak |
| 15701 |
to begin using SVG math, and \protect\inlinemathnormal\MessageBreak |
| 15702 |
afterward to resume using MathJax math.\MessageBreak |
| 15703 |
Before display math, use \protect\displaymathother\MessageBreak |
| 15704 |
to begin using SVG math, and use \protect\displaymathnormal\MessageBreak |
| 15705 |
after to resume using MathJax for the following math.\MessageBreak |
| 15706 |
Or, use SVG math for all expressions by removing\MessageBreak |
| 15707 |
the mathjax option for the lwarp package% |
| 15708 |
} |
| 15709 |
\AtBeginDocument{ |
| 15710 |
\LWR@traceinfo{AtBeginDocument MathJax warnings} |
| 15711 |
\ifbool{mathjax}{ |
| 15712 |
\LWR@nomathjaxwarn{aligned-overset}{} |
| 15713 |
\LWR@nomathjaxwarn{amscdx}{\LWR@forceSVGmessage{amscdx}} |
| 15714 |
\LWR@mathjaxwarn{arydshln} |
| 15715 |
{In a math array, do not use the optional argument\MessageBreak |
| 15716 |
for \protect\cdashline.\space\space |
| 15717 |
Furthermore, \protect\cline\space is not\MessageBreak |
| 15718 |
supported by MathJax} |
| 15719 |
\LWR@nomathjaxwarn{autoaligne}{} |
| 15720 |
\LWR@mathjaxwarn{autonum} |
| 15721 |
{MathJax does not support equation+.\MessageBreak |
| 15722 |
You may use the warpprint and warpHTML\MessageBreak |
| 15723 |
environments to isolate the package load\MessageBreak |
| 15724 |
and the equation+ environments} |
| 15725 |
\LWR@mathjaxwarn{bigdelim} |
| 15726 |
{Delimiters appear only of the first line} |
| 15727 |
\LWR@nomathjaxwarn{boldtensors}{} |
| 15728 |
\LWR@mathjaxwarn{booktabs} |
| 15729 |
{\protect\cmidrule\space is not displayed} |
| 15730 |
\LWR@mathjaxwarn{breqn} |
| 15731 |
{Each environment becomes an SVG image} |
| 15732 |
\LWR@mathjaxwarn{colortbl} |
| 15733 |
{Colors are ignored in MathJax.\MessageBreak |
| 15734 |
(Text mode tabular does support colortbl.)\MessageBreak |
| 15735 |
\LWR@forceSVGmessage{colortbl}} |
| 15736 |
\LWR@mathjaxwarn{delarray}{\LWR@forceSVGmessage{delarray}} |
| 15737 |
\LWR@nomathjaxwarn{gauss}{\LWR@forceSVGmessage{gauss}} |
| 15738 |
\LWR@mathjaxwarn{hhline} |
| 15739 |
{A simple \protect\hline\space is used} |
| 15740 |
\LWR@mathjaxwarn{isomath} |
| 15741 |
{Some of the symbol font macros such as \protect\mathsfbfit\MessageBreak |
| 15742 |
do not use a sans font because MathJax does not yet\MessageBreak |
| 15743 |
have sans Greek. Tensors may look like vectors% |
| 15744 |
} |
| 15745 |
\LWR@nomathjaxwarn{jkmath}{\LWR@forceSVGmessage{jkmath}} |
| 15746 |
\LWR@mathjaxwarn{libertinust1math} |
| 15747 |
{Some of the symbol font macros such as \protect\mathsfbfit\MessageBreak |
| 15748 |
do not use a sans font because MathJax does not yet\MessageBreak |
| 15749 |
have sans Greek. Tensors may look like vectors% |
| 15750 |
} |
| 15751 |
\LWR@mathjaxwarn{mathtools} |
| 15752 |
{See the Lwarp manual regarding the disallowspaces\MessageBreak |
| 15753 |
and showonlyrefs options, the alignat environment,\MessageBreak |
| 15754 |
\protect\DeclarePairedDelimiter\space and related,\MessageBreak |
| 15755 |
and \protect\MakeAboxedCommand% |
| 15756 |
} |
| 15757 |
\LWR@mathjaxwarn{mathspec} |
| 15758 |
{Double quotes are removed, even inside \protect\text} |
| 15759 |
\LWR@mathjaxwarn{mismath} |
| 15760 |
{MathJax does not support \protect\enumber, |
| 15761 |
\protect\inumber,\MessageBreak |
| 15762 |
\protect\jnumber, \protect\pinumber, \protect\MathUp, \protect\MathIt,\MessageBreak |
| 15763 |
\protect\MathNumbers, or \protect\MathNormal.\MessageBreak |
| 15764 |
\protect\itpi\space is made available as a clone of \protect\pi.\MessageBreak |
| 15765 |
Tensors are not sans serif% |
| 15766 |
} |
| 15767 |
\LWR@mathjaxwarn{multirow} |
| 15768 |
{Multirow works as expected in text mode, but\MessageBreak |
| 15769 |
limited emulation is provided for MathJax math.\MessageBreak |
| 15770 |
\protect\multirow\space ignores all arguments except\MessageBreak |
| 15771 |
the text} |
| 15772 |
\LWR@mathjaxwarn{nicematrix} |
| 15773 |
{Keys/values are ignored in MathJax.\MessageBreak |
| 15774 |
\protect\Cdots, etc. do not span multiple cells.\MessageBreak |
| 15775 |
AutoNiceMatrix, etc. are not supported for MathJax.\MessageBreak |
| 15776 |
\protect\CodeBefore, \protect\Body, and \protect\CodeAfter\MessageBreak |
| 15777 |
\space\space also are not supported for MathJax.\MessageBreak |
| 15778 |
\LWR@forceSVGmessage{nicematrix}% |
| 15779 |
} |
| 15780 |
\LWR@nomathjaxwarn{pb-diagram}{\LWR@forceSVGmessage{pb-diagram}} |
| 15781 |
\LWR@mathjaxwarn{siunitx} |
| 15782 |
{Place \protect\sisetup\space before \protect\begin{document}.\MessageBreak |
| 15783 |
Many optional arguments are ignored} |
| 15784 |
\LWR@nomathjaxwarn{tensind}{} |
| 15785 |
\LWR@mathjaxwarn{unicode-math} |
| 15786 |
{Do not use embedded Unicode characters.\MessageBreak |
| 15787 |
(Not all characters are encoded correctly.)\MessageBreak |
| 15788 |
Some symbol fonts are not supported by MathJax,\MessageBreak |
| 15789 |
and are only approximated.\MessageBreak |
| 15790 |
Greek macros such as \protect\alpha\space respond to the math-style\MessageBreak |
| 15791 |
option. Latin symbols does not, per MathJax\MessageBreak |
| 15792 |
limitations, unless placed inside \protect\symbit\space or similar} |
| 15793 |
\LWR@nomathjaxwarn{unitsdef}{} |
| 15794 |
\LWR@mathjaxwarn{witharrows} |
| 15795 |
{Arrows can only point to the next line.\MessageBreak |
| 15796 |
Text is only placed on a single line} |
| 15797 |
\LWR@nomathjaxwarn{xy} |
| 15798 |
{In text, xy works as-is. SVG images will be generated.\MessageBreak |
| 15799 |
\LWR@forceSVGmessage{xy}} |
| 15800 |
}{} |
| 15801 |
} |
| 15802 |
\AtBeginDocument{ |
| 15803 |
\LWR@traceinfo{AtBeginDocument done} |
| 15804 |
} |
| 15805 |
|
| 15806 |
\endinput |
| 15807 |
%% |
| 15808 |
%% End of file `lwarp.sty'. |