annotate docs/_latex/my-doc-style.sty @ 299:11f4f4d2ec03 default tip

Update to latest Sphinx customizations
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 06 Jun 2026 12:12:06 +0200
parents 0052d12ec437
children
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}[%
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
22 2026/06/06 rv:ddd6d2bb4fdb (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{}
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
40
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
41 % \textsf consumes an argument!
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
42 \newcommand{\mds@titlefont}{\textsf}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
43 \newcommand{\mds@titlefontsize}{\small}
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
44 %
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 % 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
46 % 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
47 %
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 \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
49 \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 \else
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
51 % \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
52 \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
53 \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
54 \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
55 \else%
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
56 \hfill\mds@titlefontsize\mds@titlefont{(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
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 \else%
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
59 \hfill\mds@titlefontsize\mds@titlefont{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
60 \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
61 \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
62 }
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
63 \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
64
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
65 %
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 % 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
67 % (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
68 %
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 % 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
70 % 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
71 % (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
72 % 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
73 % 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
74 %
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 % 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
76 % (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
77 %
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
78 % \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
79 % \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
80 %
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
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 %
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 % 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
84 % 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
85 %
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 \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
87
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
88 \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
89 \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
90 \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
91 \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
92 \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
93 \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
94 \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
95 \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
96 \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
97 }
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
98
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 \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
100 \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
101 \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
102 \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
103 \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
104 \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
105 \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
106 \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
107 }
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 \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
109 \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
110 \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
111 \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
112 \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
113 \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
114 \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
115 }
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
116
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
117 \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
118 % 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
119 \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
120 \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
121 }
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
122
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
123 %
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
124 % Use the installed sans font as document body font and let all headings
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
125 % use the main/serif font.
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
126 %
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
127 \newcommand{\SwitchFamilyDefaultToSans}{%
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
128 \renewcommand*{\familydefault}{\sfdefault}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
129 \@ifpackageloaded{fncychap}{%
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
130 \ChNameVar{\Large\rm}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
131 \ChTitleVar{\large\rm}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
132 }{}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
133 \renewcommand{\mds@titlefont}{\textrm}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
134 \renewcommand{\mds@titlefontsize}{\footnotesize}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
135 \renewcommand{\DUroletextother}{\textrm}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
136 }
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
137
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
138 %
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
139 % For SmallCaps support and/or custom reST roles:
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
140 % 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
141 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
142
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
143 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
144 % SmallCaps role support (:smallcaps:).
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
145 % Here without argument declaration because \textsc
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
146 % expects one and will consume it instead.
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
147 %
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
148 \newcommand{\DUrolesmallcaps}{\textsc}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
149
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
150 % Testing sans serif fonts with ":textsf:" role
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
151 % Here without argument declaration because \textsf
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
152 % expects one and will consume it instead.
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
153 \newcommand{\DUroletextsf}{\textsf}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
154
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
155 % Testing serif fonts with ":textrm:" role
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
156 % Here without argument declaration because \textrm
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
157 % expects one and will consume it instead.
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
158 \newcommand{\DUroletextrm}{\textrm}
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
159
299
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
160 % Testing serif fonts with ":textother:" role
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
161 % Here without argument declaration because \textrm or \textsf
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
162 % expect one and will consume it instead.
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
163 \newcommand{\DUroletextother}{\textsf}
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
164
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
165
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
166 % TeX logos using hologo.
11f4f4d2ec03 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 298
diff changeset
167 % The role argument will consumed by the \hologo command.
298
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
168 \newcommand*{\DUrolehologo}{\hologo}
0052d12ec437 Update to latest Sphinx customizations
Franz Glasner <fzglas.hg@dom66.de>
parents: 280
diff changeset
169
213
d470250f8451 Title/metadata of PDF documentation builds:
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
170 \endinput