Skip to content

Commit 9c53cd6

Browse files
committed
Updated LaTeX preamble.
1 parent bcc7330 commit 9c53cd6

2 files changed

Lines changed: 12 additions & 56 deletions

File tree

doc/conf.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@
119119
# ==============================================================================
120120
# Options for LaTeX / PDF output
121121
# ==============================================================================
122-
preamblePath = Path("preamble.tex")
123-
try:
124-
with preamblePath.open("r", encoding="utf-8") as fileHandle:
125-
latexPreamble = fileHandle.read()
126-
except Exception as ex:
127-
print(f"[ERROR:] While reading '{preamblePath}'.")
128-
print(ex)
129-
latexPreamble = ""
122+
# preamblePath = Path("preamble.tex")
123+
# try:
124+
# with preamblePath.open("r", encoding="utf-8") as fileHandle:
125+
# latexPreamble = fileHandle.read()
126+
# except Exception as ex:
127+
# print(f"[ERROR:] While reading '{preamblePath}'.")
128+
# print(ex)
129+
# latexPreamble = ""
130130

131131
latex_engine = "lualatex"
132132
latex_use_xindy = False
@@ -148,12 +148,14 @@
148148
% Set Symbol font
149149
\\usepackage{newunicodechar}
150150
\\newfontfamily{\\emojifont}[Renderer=OpenType]{NotoColorEmoji.ttf}
151+
\\usepackage{pytooling}
151152
"""),
152153
"passoptionstopackages": dedent("""\
153154
\\PassOptionsToPackage{verbatimvisiblespace=\\ }{sphinx}
154155
"""),
155-
"preamble": latexPreamble, # Additional stuff for the LaTeX preamble.
156-
#'figure_align': 'htbp', # Latex figure (float) alignment
156+
# "preamble": latexPreamble, # Additional stuff for the LaTeX preamble.
157+
# "sphinxsetup": "verbatimvisiblespace=\\textvisiblespace"
158+
# "figure_align": "htbp", # Latex figure (float) alignment
157159
"makeindex": r"\usepackage[columns=1]{idxlayout}\makeindex",
158160
"printindex": r"\def\twocolumn[#1]{#1}\printindex",
159161
}

doc/preamble.tex

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,5 @@
55
% - Alternatively, compile with XeLaTeX or LuaLaTeX.
66
% - https://GitHub.com/sphinx-doc/sphinx/issues/3511
77
%
8-
%%\usepackage{fontspec}
9-
%
10-
%% Set Main fonts
11-
%\usepackage{libertinus-otf}
12-
%%\usepackage{noto-emoji}
13-
%
14-
%% Set Math font
15-
%\usepackage{unicode-math}
16-
%\setmathfont{LibertinusMath}
17-
%
18-
%% Set Symbol font
19-
%\usepackage{newunicodechar}
20-
%\newfontfamily{\emojifont}[Renderer=OpenType]{NotoColorEmoji.ttf}
21-
\newunicodechar{≤}{\ensuremath{\le}}
22-
\newunicodechar{—}{---}
23-
\newunicodechar{…}{\dots}
24-
\newunicodechar{␣}{xxyyzz} % open box = visible space U+2423
25-
\newunicodechar{⟲}{\nvcirclearrowleft} % circular arrow counterclockwise U+27F2
26-
27-
\newunicodechar{🍎}{{\emojifont 🍎}} % red apple
28-
\newunicodechar{🍏}{{\emojifont 🍏}} % green apple
29-
\newunicodechar{🐧}{{\emojifont 🐧}} % penguin
30-
\newunicodechar{⛄}{{\emojifont ⛄}} % snowman
31-
\newunicodechar{🪟}{{\emojifont 🪟}} % window
32-
\newunicodechar{🏢}{{\emojifont 🏢}} % glas building
33-
\newunicodechar{🐍}{{\emojifont 🐍}} % green snake
34-
\newunicodechar{🔴}{{\emojifont 🔴}} % red circle
35-
\newunicodechar{🟠}{{\emojifont 🟠}} % orange circle
36-
\newunicodechar{🟡}{{\emojifont 🟡}} % yellow circle
37-
\newunicodechar{🟢}{{\emojifont 🟢}} % green circle
38-
\newunicodechar{🟣}{{\emojifont 🟣}} % purple circle
39-
\newunicodechar{⚫}{{\emojifont ⚫}} % black circle U+26AB
40-
\newunicodechar{🟧}{{\emojifont 🟧}} % red square U+1F7E7
41-
\newunicodechar{🟨}{{\emojifont 🟨}} % yellow square U+1F7E8
42-
\newunicodechar{🟫}{{\emojifont 🟫}} % braun square U+1F7EB
43-
\newunicodechar{🟦}{{\emojifont 🟦}} % blue square U+1F7E6
44-
\newunicodechar{🟪}{{\emojifont 🟪}} % purple square U+1F7EA
45-
\newunicodechar{⬛}{{\emojifont ⬛}} % black square U+2B1B
46-
\newunicodechar{📦}{{\emojifont 📦}}
47-
\newunicodechar{📂}{{\emojifont 📂}}
48-
\newunicodechar{🗑}{{\emojifont 🗑}} % Wastebasket 🗑️ U+1F5D1
49-
\newunicodechar{⚙}{{\emojifont ⚙}} % Gear ⚙️ U+2699
50-
\newunicodechar{❌}{{\emojifont ❌}} % Red X U+274C
51-
\newunicodechar{🚫}{{\emojifont 🚫}} % Prohibited 🚫 U+
52-
\newunicodechar{⚠}{{\emojifont ⚠}} % Warning ⚠️ U+26A0
53-
\newunicodechar{✅}{{\emojifont ✅}} % Green checkbox U+2705
548

559
% ================================================================================

0 commit comments

Comments
 (0)