annotate docs/_latex/my-doc-style.sty @ 298:0052d12ec437

Update to latest Sphinx customizations
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 02 Jun 2026 12:33:54 +0200
parents 1b0e58f60f73
children 11f4f4d2ec03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 % -*- coding: utf-8 -*-
280
1b0e58f60f73 Update to latest my-doc-XXX.sty for PDF builds
Franz Glasner <fzglas.hg@dom66.de>
parents: 256
diff changeset
2 % SPDX-FileCopyrightText: © 2026 Franz Glasner
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
3 % SPDX-License-Identifier: BSD-3-Clause OR MIT
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
4 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
5 % Some font hacks for my Sphinx PDF documents.
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6 %
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
7 % Options:
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
8 % - stdtitle=<bool>: Use the Sphinx standard title when `true' or an
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
9 % augmented title (build date, VCS revision id).
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
10 % Default: false.
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
11 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
12 % Commands:
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
13 % - \vcsrevision#1
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
14 % - \builddate#1
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
15 % - \SuppressSectionNumbering
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
16 % - \SuppressSubsectionNumbering
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
17 % - \SuppressSubsubsectionNumbering
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
18 % - \EndSuppressNumbering
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 %
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 \NeedsTeXFormat{LaTeX2e}
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 \ProvidesPackage{my-doc-style}[%
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
22 2026/06/02 rv:c7ae4cfc2c5c (Franz Glasner) Some style customizations (title et al.)]
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
23 \RequirePackage{xkeyval}
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
24 \RequirePackage{hologo}
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
25
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
26 % A key compatible with options processing but bool (because DeclareBoolOptionX)
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
27 % If given than the Sphinx standard titlepage is used without changes.
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
28 \define@boolkey{my-doc-style.sty}{stdtitle}[true]{}
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
29
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
30 \ExecuteOptionsX{stdtitle=false}
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
31 \ProcessOptionsX\relax
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
32
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
33 %
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
34 % For the title page: "Last updated on ..."
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
35 %
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
36 \DeclareRobustCommand*\vcsrevision[1]{\gdef\mds@vcs@revision{#1}}
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
37 \DeclareRobustCommand*\builddate[1]{\gdef\mds@builddate{#1}}
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
38 \vcsrevision{}
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
39 \builddate{}
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
40 %
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
41 % If the option "stdtitle" was not enabled augment the titlepage with
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
42 % the documentation build date and the VCS revision id.
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
43 %
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
44 \csname ifKV@my-doc-style.sty@stdtitle\endcsname
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
45 \relax
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
46 \else
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
47 % \sphinxmaketitle calls the macro \@thanks: (ab)use this
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
48 \gdef\@thanks{%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
49 \ifx\mds@builddate\@empty\relax%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
50 \ifx\mds@vcs@revision\@empty\relax%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
51 \else%
247
76996a1e4ca7 Use "rev " instead of "rv:" in the revision footer
Franz Glasner <fzglas.hg@dom66.de>
parents: 217
diff changeset
52 \hfill\normalsize\textsf{(rev\ \mds@vcs@revision )}%
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
53 \fi%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
54 \else%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
55 \hfill\normalsize\textsf{Last updated on \mds@builddate%
247
76996a1e4ca7 Use "rev " instead of "rv:" in the revision footer
Franz Glasner <fzglas.hg@dom66.de>
parents: 217
diff changeset
56 \ifx\mds@vcs@revision\@empty\relax\else\enspace(rev\ \mds@vcs@revision )\fi}
216
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
57 \fi%
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
58 }
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
59 \fi
8ef73270beae Make my-doc-style.sty more flexible by providing the "stdtitle" option to switch off the customized titlepage content
Franz Glasner <fzglas.hg@dom66.de>
parents: 213
diff changeset
60
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
61 %
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
62 % Allow to suppress section numbering for some parts of the document
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
63 % (e.g. in changelog entries).
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
64 %
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
65 % Sphinx employs the "titlesec" package to style its chapter and section
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
66 % headings and uses its \titleformat command with a 0.5em separation
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
67 % (see \titleformat calls in sphinxlatexstyleheadings.sty).
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
68 % So make \the<section> output nothing (e.g. the section number)
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
69 % but just a compensation for this whitespace.
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
70 %
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
71 % Each suppress command suppresses its level and all levels below
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
72 % (compare with the \titleformat calls in sphinxlatexstyleheadings.sty).
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
73 %
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
74 % \EndSuppressNumbering ends exactly one preceding
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
75 % \SuppressSubsectionNumbering or \SuppressSubsubsectionNumbering.
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
76 %
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
77
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
78 %
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
79 % A counter to store the current (Sphinx-set) tocdepth.
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
80 % Needed because counters are global in LaTeX.
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
81 %
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
82 \newcounter{@mds@stored@tocdepth}
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
83
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
84 \def\SuppressSectionNumbering{%
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
85 \begingroup
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
86 \setcounter{@mds@stored@tocdepth}{\value{tocdepth}}
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
87 \addtocontents{toc}{\setcounter{tocdepth}{0}}% No \section in ToC
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
88 \renewcommand\thesection{\hspace{-0.5em}}
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
89 \renewcommand\thesubsection{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
90 \renewcommand\thesubsubsection{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
91 \renewcommand\theparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
92 \renewcommand\thesubparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
93 }
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
94
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
95 \def\SuppressSubsectionNumbering{%
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
96 \begingroup
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
97 \setcounter{@mds@stored@tocdepth}{\value{tocdepth}}
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
98 \addtocontents{toc}{\setcounter{tocdepth}{1}}% Allow \section in ToC
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
99 \renewcommand\thesubsection{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
100 \renewcommand\thesubsubsection{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
101 \renewcommand\theparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
102 \renewcommand\thesubparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
103 }
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
104 \def\SuppressSubsubsectionNumbering{%
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
105 \begingroup
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
106 \setcounter{@mds@stored@tocdepth}{\value{tocdepth}}
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
107 \addtocontents{toc}{\setcounter{tocdepth}{2}}% Allow \subsection in ToC
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
108 \renewcommand\thesubsubsection{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
109 \renewcommand\theparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
110 \renewcommand\thesubparagraph{\hspace{-0.5em}}
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
111 }
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
112
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
113 \def\EndSuppressNumbering{%
255
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
114 % Reset the tocdepth to the previous value
fac80ec8e752 FIX: Need to manipulate tocdepth to also suppress ToC entries for sections without numbers
Franz Glasner <fzglas.hg@dom66.de>
parents: 252
diff changeset
115 \addtocontents{toc}{\setcounter{tocdepth}{\the@mds@stored@tocdepth}}% Default
251
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
116 \endgroup
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
117 }
733f1661fcb4 Implement TeX commands to allow to suppress the output of section numbers for some levels.
Franz Glasner <fzglas.hg@dom66.de>
parents: 248
diff changeset
118
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
119 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
120 % For SmallCaps support and/or custom reST roles:
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
121 % see also: https://docutils.sourceforge.io/docs/user/latex.html
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
122 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
123
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
124 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
125 % SmallCaps role support (:smallcaps:).
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
126 % Here without argument declaration because \textsc
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
127 % expects one and will consume it instead.
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
128 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
129 \newcommand{\DUrolesmallcaps}{\textsc}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
130
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
131 % Testing sans serif fonts with ":textsf:" role
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
132 % Here without argument declaration because \textsf
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
133 % expects one and will consume it instead.
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
134 \newcommand{\DUroletextsf}{\textsf}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
135
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
136
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
137 % TeX logos using hologo
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
138 \newcommand*{\DUrolehologo}{\hologo}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
139
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
140 \endinput