@pretextbook/pretext-html 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -10
- package/assets/preview-html.xsl +8 -4
- package/assets/preview-revealjs.xsl +85 -0
- package/assets/upstream.json +1 -1
- package/assets/xsl/LICENSE-pretext +16 -0
- package/assets/xsl/README.md +25 -24
- package/assets/xsl/entities.ent +27 -0
- package/assets/xsl/extract-biblio-csl.xsl +6 -4
- package/assets/xsl/extract-dynamic.xsl +14 -12
- package/assets/xsl/extract-interactive.xsl +2 -2
- package/assets/xsl/extract-pg.xsl +123 -306
- package/assets/xsl/extract-qrcode.xsl +12 -2
- package/assets/xsl/extract-sageplot.xsl +1 -1
- package/assets/xsl/extract-trace.xsl +3 -3
- package/assets/xsl/extract-youtube.xsl +1 -1
- package/assets/xsl/latex/pretext-latex-texstyle.xsl +4 -5
- package/assets/xsl/localizations/README.md +24 -24
- package/assets/xsl/pretext-assembly.xsl +463 -368
- package/assets/xsl/pretext-beamer.xsl +43 -146
- package/assets/xsl/pretext-braille-preprint.xsl +458 -202
- package/assets/xsl/pretext-common.xsl +486 -510
- package/assets/xsl/pretext-epub.xsl +318 -78
- package/assets/xsl/pretext-fo.xsl +80 -96
- package/assets/xsl/pretext-html.xsl +413 -318
- package/assets/xsl/pretext-jupyter.xsl +534 -322
- package/assets/xsl/pretext-latex-classic.xsl +14 -15
- package/assets/xsl/pretext-latex-common.xsl +393 -2397
- package/assets/xsl/pretext-latex.xsl +1995 -5
- package/assets/xsl/pretext-markdown.xsl +919 -0
- package/assets/xsl/pretext-numbers.xsl +57 -39
- package/assets/xsl/pretext-revealjs.xsl +241 -33
- package/assets/xsl/pretext-runestone-fitb.xsl +34 -35
- package/assets/xsl/pretext-runestone-static.xsl +17 -17
- package/assets/xsl/pretext-runestone.xsl +36 -34
- package/assets/xsl/pretext-sage-doctest.xsl +2 -2
- package/assets/xsl/pretext-text-utilities.xsl +69 -1
- package/assets/xsl/pretext-text.xsl +1077 -107
- package/assets/xsl/pretext-view-source.xsl +5 -3
- package/assets/xsl/pretext-ww-problem-sets.xsl +6 -1
- package/assets/xsl/publisher-variables.xsl +397 -477
- package/assets/xsl/support/play-button/README.md +1 -3
- package/assets/xsl/tests/README.md +1 -1
- package/assets/xsl/utilities/README.md +6 -8
- package/assets/xsl/utilities/report-publisher-variables.xsl +15 -0
- package/assets/xsl-bundle.json +1 -1
- package/dist/cli-DZsyZERX.js +694 -0
- package/dist/cli.js +1 -1
- package/dist/index.browser.d.ts +5 -0
- package/dist/index.browser.js +499 -344
- package/dist/index.d.ts +5 -0
- package/dist/index.js +23 -18
- package/dist/publication.d.ts +26 -12
- package/dist/renderer.d.ts +68 -0
- package/dist/reveal.d.ts +77 -0
- package/dist/reveal.js +110 -0
- package/dist/target.d.ts +34 -0
- package/package.json +12 -1
- package/dist/cli-CzoinNle.js +0 -639
|
@@ -287,7 +287,7 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
|
|
|
287
287
|
<xsl:template match="slide//ol/li|slide//ul/li">
|
|
288
288
|
<xsl:text>\item{}</xsl:text>
|
|
289
289
|
<xsl:if test="title">
|
|
290
|
-
<xsl:text> \
|
|
290
|
+
<xsl:text> \ptxlititle{</xsl:text>
|
|
291
291
|
<xsl:apply-templates select="." mode="title-full"/>
|
|
292
292
|
<xsl:text>}\par</xsl:text>
|
|
293
293
|
</xsl:if>
|
|
@@ -434,12 +434,14 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
|
|
|
434
434
|
<!-- Preamble -->
|
|
435
435
|
<!-- ######## -->
|
|
436
436
|
|
|
437
|
-
<!-- N.B.
|
|
438
|
-
<!--
|
|
439
|
-
<!--
|
|
440
|
-
<!--
|
|
441
|
-
<!--
|
|
442
|
-
<!--
|
|
437
|
+
<!-- N.B. This preamble is assembled largely from the shared preamble -->
|
|
438
|
+
<!-- pieces of pretext-latex-common.xsl (tcolorbox setup, images, -->
|
|
439
|
+
<!-- tables, side-by-side, code, font hooks), so the environments the -->
|
|
440
|
+
<!-- inherited content templates emit are all defined. Two fragments -->
|
|
441
|
+
<!-- remain local duplicates: the semantic macros (a subset, with -->
|
|
442
|
+
<!-- Beamer-specific treatment of \alert and no styling hooks) and -->
|
|
443
|
+
<!-- the engine/font setup (fontenc/fontspec, where the regular -->
|
|
444
|
+
<!-- "font-support" prescribes document fonts a theme should control). -->
|
|
443
445
|
<xsl:template name="beamer-preamble">
|
|
444
446
|
<xsl:text>\documentclass[11pt, compress]{beamer}
</xsl:text>
|
|
445
447
|
<xsl:if test="$latex.preamble.early != ''">
|
|
@@ -466,121 +468,38 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
|
|
|
466
468
|
<xsl:text>%% Some aspects of the preamble are conditional,
</xsl:text>
|
|
467
469
|
<xsl:text>%% the LaTeX engine is one such determinant
</xsl:text>
|
|
468
470
|
<xsl:text>\usepackage{ifthen}
</xsl:text>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
+
<!-- The style-writer font hooks that shared preamble pieces -->
|
|
472
|
+
<!-- presume; under Beamer the theme controls fonts, so the -->
|
|
473
|
+
<!-- no-op defaults are exactly right -->
|
|
474
|
+
<xsl:call-template name="automatic-font-control"/>
|
|
475
|
+
<xsl:text>%% Shared tcolorbox styles restore paragraph shape via \ptxsetparstyle;
</xsl:text>
|
|
476
|
+
<xsl:text>%% under Beamer the theme's paragraph shape should rule, so a no-op
</xsl:text>
|
|
477
|
+
<xsl:text>\newcommand{\ptxsetparstyle}{}
</xsl:text>
|
|
478
|
+
<!-- The shared tcolorbox setup: package, libraries, stock styles -->
|
|
479
|
+
<xsl:call-template name="tcolorbox-init"/>
|
|
480
|
+
<xsl:text>%% Boxes default to white backgrounds and frames, so tcolorbox
</xsl:text>
|
|
481
|
+
<xsl:text>%% content does not pick up colors from the Beamer theme
</xsl:text>
|
|
471
482
|
<xsl:text>\tcbset{colback=white, colframe=white}
</xsl:text>
|
|
472
|
-
|
|
473
|
-
<xsl:
|
|
474
|
-
<xsl:text>colback=white, colbacktitle=white, coltitle=black, opacityfill=0.0} }
</xsl:text>
|
|
475
|
-
<xsl:if test="$document-root//image">
|
|
476
|
-
<xsl:text>%% "tcolorbox" environment for a single image, as in the LaTeX conversion
</xsl:text>
|
|
477
|
-
<xsl:text>\tcbset{ imagestyle/.style={bwminimalstyle} }
</xsl:text>
|
|
478
|
-
<xsl:text>\NewTColorBox{tcbimage}{mmm}{imagestyle,left skip=#1\linewidth,width=#2\linewidth}
</xsl:text>
|
|
479
|
-
<xsl:text>\NewDocumentEnvironment{image}{mmmm}{\notblank{#4}{\leavevmode\nopagebreak\vspace{#4}}{}\begin{tcbimage}{#1}{#2}{#3}}{\end{tcbimage}%
}</xsl:text>
|
|
480
|
-
<xsl:text>
</xsl:text>
|
|
481
|
-
</xsl:if>
|
|
483
|
+
<!-- The shared "tcolorbox" environment for a single image -->
|
|
484
|
+
<xsl:call-template name="image-tcolorbox"/>
|
|
482
485
|
<xsl:if test="$document-root//ol[@cols]|$document-root//ul[@cols]">
|
|
483
486
|
<xsl:text>%% Multiple column lists
</xsl:text>
|
|
484
487
|
<xsl:text>\usepackage{multicol}
</xsl:text>
|
|
485
488
|
</xsl:if>
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
<xsl:text>\definecolor{identifiers}{rgb}{0.375,0,0.375}
</xsl:text>
|
|
496
|
-
<xsl:text>\definecolor{comments}{rgb}{0.5,0,0}
</xsl:text>
|
|
497
|
-
<xsl:text>\definecolor{strings}{rgb}{0,0.5,0}
</xsl:text>
|
|
498
|
-
<xsl:text>\definecolor{keywords}{rgb}{0,0,0.5}
</xsl:text>
|
|
499
|
-
<xsl:text>\lstdefinestyle{programcodestyle}{identifierstyle=\color{identifiers},commentstyle=\color{comments},stringstyle=\color{strings},keywordstyle=\color{keywords}, breaklines=true, breakatwhitespace=true, columns=fixed, extendedchars=true, aboveskip=0pt, belowskip=0pt}
</xsl:text>
|
|
500
|
-
<xsl:text>\lstdefinestyle{programcodenumberedstyle}{style=programcodestyle, numbers=left}
</xsl:text>
|
|
501
|
-
<xsl:text>\tcbset{ programboxstyle/.style={left=3ex, right=0pt, top=0ex, bottom=0ex, middle=0pt, toptitle=0pt, bottomtitle=0pt, boxsep=0pt, 
</xsl:text>
|
|
502
|
-
<xsl:text>listing only, fontupper=\small\ttfamily,
</xsl:text>
|
|
503
|
-
<xsl:text>colback=white, sharp corners, boxrule=-0.3pt, leftrule=0.5pt,
</xsl:text>
|
|
504
|
-
<xsl:text>parbox=false,
</xsl:text>
|
|
505
|
-
<xsl:text>} }
</xsl:text>
|
|
506
|
-
<xsl:text>\tcbset{ programboxnumberedstyle/.style={programboxstyle, left=6ex} }
</xsl:text>
|
|
507
|
-
<xsl:text>%% Arguments: language, left margin, width, right margin (latter ignored)
</xsl:text>
|
|
508
|
-
<xsl:text>\newtcblisting{program}[4]{programboxstyle, left skip=#2\linewidth, width=#3\linewidth, listing options={language=#1, style=programcodestyle}}
</xsl:text>
|
|
509
|
-
<xsl:text>\newtcblisting{programnumbered}[4]{programboxnumberedstyle, left skip=#2\linewidth, width=#3\linewidth, listing options={language=#1, style=programcodenumberedstyle}}
</xsl:text>
|
|
510
|
-
<xsl:text>\newcommand{\programfragment}[2]{\lstinline[language=#1, style=programcodestyle, basicstyle=\ttfamily]#2}
</xsl:text>
|
|
511
|
-
</xsl:if>
|
|
512
|
-
<xsl:if test="$b-has-console">
|
|
513
|
-
<xsl:text>%% Console session with prompt, input, output
</xsl:text>
|
|
514
|
-
<xsl:text>\newcommand{\consoleinput}[1]{\textbf{#1}}
</xsl:text>
|
|
515
|
-
<xsl:text>\lstdefinestyle{consolecodestyle}{language=none, escapeinside={(*}{*)}, identifierstyle=, commentstyle=, stringstyle=, keywordstyle=, breaklines=false, breakatwhitespace=false, columns=fixed, extendedchars=true, aboveskip=0pt, belowskip=0pt}
</xsl:text>
|
|
516
|
-
<xsl:text>\tcbset{ consoleboxstyle/.style={left=0pt, right=0pt, top=0ex, bottom=0ex, middle=0pt, toptitle=0pt, bottomtitle=0pt, boxsep=0pt,
</xsl:text>
|
|
517
|
-
<xsl:text>listing only, fontupper=\small\ttfamily,
</xsl:text>
|
|
518
|
-
<xsl:text>colback=white, boxrule=-0.3pt,
</xsl:text>
|
|
519
|
-
<xsl:text>parbox=false,
</xsl:text>
|
|
520
|
-
<xsl:text>} }
</xsl:text>
|
|
521
|
-
<xsl:text>%% Arguments: left margin, width, right margin (latter ignored)
</xsl:text>
|
|
522
|
-
<xsl:text>\newtcblisting{console}[3]{consoleboxstyle, left skip=#1\linewidth, width=#2\linewidth, listing options={style=consolecodestyle}}
</xsl:text>
|
|
523
|
-
</xsl:if>
|
|
524
|
-
<xsl:if test="$b-has-sage">
|
|
525
|
-
<xsl:text>%% The listings package as tcolorbox for Sage code
</xsl:text>
|
|
526
|
-
<xsl:text>\definecolor{sageblue}{HTML}{</xsl:text><xsl:value-of select="$sage-input-background"/><xsl:text>}
</xsl:text>
|
|
527
|
-
<xsl:text>\tcbset{ sagestyle/.style={left=0pt, right=0pt, top=0ex, bottom=0ex, middle=0pt, toptitle=0pt, bottomtitle=0pt,
</xsl:text>
|
|
528
|
-
<xsl:text>boxsep=4pt, listing only, fontupper=\small\ttfamily,
</xsl:text>
|
|
529
|
-
<xsl:text>parbox=false, 
</xsl:text>
|
|
530
|
-
<xsl:text>listing options={language=Python,breaklines=true,breakatwhitespace=true, extendedchars=true, aboveskip=0pt, belowskip=0pt}} }
</xsl:text>
|
|
531
|
-
<xsl:text>\newtcblisting{sageinput}{sagestyle, colback=sageblue, sharp corners, boxrule=0.5pt, }
</xsl:text>
|
|
532
|
-
<xsl:text>\newtcblisting{sageoutput}{sagestyle, colback=white, colframe=white, frame empty, before skip=0pt, after skip=0pt, }
</xsl:text>
|
|
533
|
-
</xsl:if>
|
|
534
|
-
</xsl:if>
|
|
535
|
-
<xsl:if test="$document-root//sidebyside">
|
|
536
|
-
<xsl:text>%% tcolorbox styles for sidebyside layout
</xsl:text>
|
|
537
|
-
<xsl:text>\tcbset{ sbsstyle/.style={raster before skip=2.0ex, raster equal height=rows, raster force size=false} }
</xsl:text>
|
|
538
|
-
<xsl:text>\tcbset{ sbspanelstyle/.style={bwminimalstyle} }
</xsl:text>
|
|
539
|
-
<xsl:text>%% "xparse" environment for entire sidebyside
</xsl:text>
|
|
540
|
-
<xsl:text>\NewDocumentEnvironment{sidebyside}{mmmm}
</xsl:text>
|
|
541
|
-
<xsl:text> {\begin{tcbraster}
</xsl:text>
|
|
542
|
-
<xsl:text> [sbsstyle,raster columns=#1,
</xsl:text>
|
|
543
|
-
<xsl:text> raster left skip=#2\linewidth,raster right skip=#3\linewidth,raster column skip=#4\linewidth]}
</xsl:text>
|
|
544
|
-
<xsl:text> {\end{tcbraster}}
</xsl:text>
|
|
545
|
-
<xsl:text>%% "tcolorbox" environment for a panel of sidebyside
</xsl:text>
|
|
546
|
-
<xsl:text>\NewTColorBox{sbspanel}{mO{top}}{sbspanelstyle,width=#1\linewidth,valign=#2}
</xsl:text>
|
|
547
|
-
</xsl:if>
|
|
548
|
-
<xsl:if test="$document-root//tabular">
|
|
549
|
-
<xsl:text>%% For improved tables
</xsl:text>
|
|
550
|
-
<xsl:text>\usepackage{array}
</xsl:text>
|
|
551
|
-
<xsl:text>\setlength{\extrarowheight}{0.2ex}
</xsl:text>
|
|
552
|
-
<xsl:text>%% Variable thickness horizontal rules, full and partial
</xsl:text>
|
|
553
|
-
<xsl:text>\newcommand{\hrulethin} {\noalign{\hrule height 0.04em}}
</xsl:text>
|
|
554
|
-
<xsl:text>\newcommand{\hrulemedium}{\noalign{\hrule height 0.07em}}
</xsl:text>
|
|
555
|
-
<xsl:text>\newcommand{\hrulethick} {\noalign{\hrule height 0.11em}}
</xsl:text>
|
|
556
|
-
<xsl:text>\let\oldsetlength\setlength
</xsl:text>
|
|
557
|
-
<xsl:text>\newlength{\Oldarrayrulewidth}
</xsl:text>
|
|
558
|
-
<xsl:text>\newcommand{\crulethin}[1]%
</xsl:text>
|
|
559
|
-
<xsl:text>{\noalign{\global\oldsetlength{\Oldarrayrulewidth}{\arrayrulewidth}}%
</xsl:text>
|
|
560
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{0.04em}}\cline{#1}%
</xsl:text>
|
|
561
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{\Oldarrayrulewidth}}}%
</xsl:text>
|
|
562
|
-
<xsl:text>\newcommand{\crulemedium}[1]%
</xsl:text>
|
|
563
|
-
<xsl:text>{\noalign{\global\oldsetlength{\Oldarrayrulewidth}{\arrayrulewidth}}%
</xsl:text>
|
|
564
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{0.07em}}\cline{#1}%
</xsl:text>
|
|
565
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{\Oldarrayrulewidth}}}
</xsl:text>
|
|
566
|
-
<xsl:text>\newcommand{\crulethick}[1]%
</xsl:text>
|
|
567
|
-
<xsl:text>{\noalign{\global\oldsetlength{\Oldarrayrulewidth}{\arrayrulewidth}}%
</xsl:text>
|
|
568
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{0.11em}}\cline{#1}%
</xsl:text>
|
|
569
|
-
<xsl:text>\noalign{\global\oldsetlength{\arrayrulewidth}{\Oldarrayrulewidth}}}
</xsl:text>
|
|
570
|
-
<xsl:text>%% Single letter column specifiers defined via array package
</xsl:text>
|
|
571
|
-
<xsl:text>\newcolumntype{A}{!{\vrule width 0.04em}}
</xsl:text>
|
|
572
|
-
<xsl:text>\newcolumntype{B}{!{\vrule width 0.07em}}
</xsl:text>
|
|
573
|
-
<xsl:text>\newcolumntype{C}{!{\vrule width 0.11em}}
</xsl:text>
|
|
574
|
-
</xsl:if>
|
|
575
|
-
<xsl:if test="$document-root//cell/line">
|
|
576
|
-
<xsl:text>\newcommand{\tablecelllines}[3]%
</xsl:text>
|
|
577
|
-
<xsl:text>{\begin{tabular}[#2]{@{}#1@{}}#3\end{tabular}}
</xsl:text>
|
|
578
|
-
</xsl:if>
|
|
489
|
+
<!-- The shared support for programs, consoles, Sage code, and -->
|
|
490
|
+
<!-- verbatim-ish material ("pre", "cd", literate programming) -->
|
|
491
|
+
<xsl:call-template name="code-support"/>
|
|
492
|
+
<!-- The shared side-by-side environments; their styles employ -->
|
|
493
|
+
<!-- the \blocktitlefont and \ptxsetparstyle hooks defined above -->
|
|
494
|
+
<xsl:call-template name="sidebyside-environment"/>
|
|
495
|
+
<!-- The shared table support: rules, column types, and the -->
|
|
496
|
+
<!-- "tabularbox" that the inherited "tabular" templates rely on -->
|
|
497
|
+
<xsl:call-template name="tables"/>
|
|
579
498
|
<xsl:text>\newcommand{\lt}{<}
</xsl:text>
|
|
580
499
|
<xsl:text>\newcommand{\gt}{>}
</xsl:text>
|
|
581
500
|
<xsl:text>\newcommand{\amp}{&}
</xsl:text>
|
|
582
501
|
<xsl:text>%% Begin: Semantic Macros
</xsl:text>
|
|
583
|
-
<xsl:text>\newcommand{\
|
|
502
|
+
<xsl:text>\newcommand{\ptxmono}[1]{\texttt{#1}}
</xsl:text>
|
|
584
503
|
<xsl:variable name="one-line-reps" select="
|
|
585
504
|
($document-root//abbr)[1]|
|
|
586
505
|
($document-root//acro)[1]|
|
|
@@ -589,13 +508,15 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
|
|
|
589
508
|
<xsl:apply-templates select="." mode="tex-macro"/>
|
|
590
509
|
</xsl:for-each>
|
|
591
510
|
<xsl:if test="$document-root//alert">
|
|
592
|
-
|
|
511
|
+
<!-- Beamer has its own theme-aware, overlay-capable \alert, -->
|
|
512
|
+
<!-- so the PreTeXt semantic macro is realized through it -->
|
|
513
|
+
<xsl:text>\newcommand{\ptxalert}[1]{\alert{#1}}
</xsl:text>
|
|
593
514
|
</xsl:if>
|
|
594
515
|
<xsl:if test="$document-root//term">
|
|
595
|
-
<xsl:text>\newcommand{\
|
|
516
|
+
<xsl:text>\newcommand{\ptxterminology}[1]{\textbf{#1}}
</xsl:text>
|
|
596
517
|
</xsl:if>
|
|
597
518
|
<xsl:if test="$document-root//pubtitle">
|
|
598
|
-
<xsl:text>\newcommand{\
|
|
519
|
+
<xsl:text>\newcommand{\ptxpubtitle}[1]{\textsl{#1}}
</xsl:text>
|
|
599
520
|
</xsl:if>
|
|
600
521
|
<xsl:if test="$document-root//fillin[not(parent::m or parent::me or parent::men or parent::mrow)]">
|
|
601
522
|
<xsl:call-template name="fillin-text"/>
|
|
@@ -604,42 +525,18 @@ along with PreTeXt. If not, see <http://www.gnu.org/licenses/>.
|
|
|
604
525
|
<xsl:call-template name="fillin-math"/>
|
|
605
526
|
</xsl:if>
|
|
606
527
|
<xsl:if test="$document-root//swungdash">
|
|
607
|
-
<xsl:text>\newcommand{\
|
|
608
|
-
</xsl:if>
|
|
609
|
-
<xsl:if test="$document-root//quantity">
|
|
610
|
-
<xsl:text>%% Used for units and number formatting
</xsl:text>
|
|
611
|
-
<xsl:text>\usepackage[per-mode=fraction]{siunitx}
</xsl:text>
|
|
612
|
-
<xsl:text>\sisetup{inter-unit-product=\cdot}
</xsl:text>
|
|
613
|
-
<xsl:text>\ifxetex\sisetup{math-micro=\text{µ},text-micro=µ}\fi
</xsl:text>
|
|
614
|
-
<xsl:text>\ifluatex\sisetup{math-micro=\text{µ},text-micro=µ}\fi
</xsl:text>
|
|
615
|
-
<xsl:text>%% Common non-SI units
</xsl:text>
|
|
616
|
-
<xsl:for-each select="document('pretext-units.xsl')//base[@siunitx]">
|
|
617
|
-
<xsl:text>\DeclareSIUnit\</xsl:text>
|
|
618
|
-
<xsl:value-of select="@full" />
|
|
619
|
-
<xsl:text>{</xsl:text>
|
|
620
|
-
<xsl:choose>
|
|
621
|
-
<xsl:when test="@siunitx='none'">
|
|
622
|
-
<xsl:value-of select="@short" />
|
|
623
|
-
</xsl:when>
|
|
624
|
-
<xsl:otherwise>
|
|
625
|
-
<xsl:value-of select="@siunitx" />
|
|
626
|
-
</xsl:otherwise>
|
|
627
|
-
</xsl:choose>
|
|
628
|
-
<xsl:text>}
</xsl:text>
|
|
629
|
-
</xsl:for-each>
|
|
528
|
+
<xsl:text>\newcommand{\ptxswungdash}{\raisebox{-2.25ex}{\scalebox{2}{\~{}}}}
</xsl:text>
|
|
630
529
|
</xsl:if>
|
|
530
|
+
<!-- The shared siunitx support for "quantity" -->
|
|
531
|
+
<xsl:call-template name="quantity-support"/>
|
|
631
532
|
<xsl:if test="$document-root//case[@direction]">
|
|
632
533
|
<xsl:text>%% Arrows for iff proofs, with trailing space
</xsl:text>
|
|
633
|
-
<xsl:text>\newcommand{\
|
|
634
|
-
<xsl:text>\newcommand{\
|
|
534
|
+
<xsl:text>\newcommand{\ptxforwardimplication}{($\Rightarrow$)}
</xsl:text>
|
|
535
|
+
<xsl:text>\newcommand{\ptxbackwardimplication}{($\Leftarrow$)}
</xsl:text>
|
|
635
536
|
</xsl:if>
|
|
636
537
|
<xsl:if test="$document-root//ol/li/title|$document-root//ul/li/title">
|
|
637
538
|
<xsl:text>%% Style of a title on a list item, for ordered and unordered lists
</xsl:text>
|
|
638
|
-
<xsl:text>\newcommand{\
|
|
639
|
-
</xsl:if>
|
|
640
|
-
<xsl:if test="$document-root//xref">
|
|
641
|
-
<xsl:text>%% Font for cross-reference numbers, a no-op on slides
</xsl:text>
|
|
642
|
-
<xsl:text>\newcommand{\xreffont}{}
</xsl:text>
|
|
539
|
+
<xsl:text>\newcommand{\ptxlititle}[1]{{\slshape#1}}
</xsl:text>
|
|
643
540
|
</xsl:if>
|
|
644
541
|
<xsl:text>%% End: Semantic Macros
</xsl:text>
|
|
645
542
|
<xsl:if test="$latex.preamble.late != ''">
|