Repository navigation
Expand file tree
/
Copy pathconfig.toml.example
More file actions
312 lines (248 loc) · 13.1 KB
/
Copy pathconfig.toml.example
File metadata and controls
312 lines (248 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# =============================================================================
# md-to-latex configuration example (.toml.example)
# =============================================================================
#
# This file documents every configurable design token for the `--config`
# feature. It is a template, not the live config: copy it to `design.toml`,
# edit values to taste, and pass it to md2latex.
#
# Copy to design.toml and use with: md2latex input.md -c design.toml -o output.tex
#
# Every UNCOMMENTED key below holds its exact current default: loading this
# file unchanged produces byte-identical output to running md2latex with no
# config file at all. Keys that are commented out are OPTIONAL extras that
# default to off / unset (they need extra LaTeX packages or engines).
#
# TOML syntax notes:
# - Comments start with `#` and run to end of line.
# - Strings are double-quoted. A backslash inside a string is written `\\`
# (so "0.8\\linewidth" parses to the single-backslash 0.8\linewidth).
# - Booleans are bare lowercase `true` / `false`, never quoted.
#
# =============================================================================
# -----------------------------------------------------------------------------
# [document] Document class and base font size
# -----------------------------------------------------------------------------
[document]
# LaTeX document class for \documentclass[<font_size>]{<class>}.
# Valid options: any class on your TeX distribution (article, report,
# book, scrartcl, ...). Default: article.
class = "article"
# Base font size of the document. Valid options are the standard LaTeX
# sizes: 10pt, 11pt, 12pt (other sizes need the extsizes package).
# Default: 11pt.
font_size = "11pt"
# -----------------------------------------------------------------------------
# [page] Page geometry
# -----------------------------------------------------------------------------
[page]
# Margin applied to all four sides of the page, as a LaTeX length.
# Default: 1in.
margin = "1in"
# Paper size. OPTIONAL (commented out): overrides the geometry paper size.
# Valid options: the full geometry option names: letterpaper, a4paper,
# a5paper, legalpaper, executivepaper, landscape, ... Plain "a4" or
# "letter" is NOT valid: geometry requires the full "a4paper" form.
# Default: letterpaper (the LaTeX default), which is why this key is off by
# default and uncommenting it is a no-op.
# paper = "letterpaper"
# -----------------------------------------------------------------------------
# [fonts] Custom fonts (OPTIONAL - every key commented out)
# -----------------------------------------------------------------------------
# NOTE: setting ANY key in this section requires compiling with XeLaTeX or
# LuaLaTeX (the fontspec package), NOT pdflatex. With no font keys set, the
# document uses the default Computer Modern family via lmodern, so leaving
# this whole section commented keeps pdflatex compatibility.
[fonts]
# Body (serif) font family name as installed on the system, e.g.
# "Source Sans Pro", "TeX Gyre Termes". When only main_font_dir is set,
# the family name is derived from the directory name instead.
# Default: unset (Computer Modern).
# main_font = "Source Sans Pro"
# Directory containing the font files (e.g. "./fonts/Inter/"). Use this
# instead of main_font when the font is not installed as a named system
# family. The weight files in the directory are detected automatically.
# main_font_dir = "./fonts/Inter/"
# Sans-serif font family name, e.g. "Lato", "Helvetica".
# Default: unset (LaTeX default sans family).
# sans_font = "Lato"
# Directory containing the sans-serif font files (e.g. "./fonts/Lato/").
# sans_font_dir = "/usr/local/share/fonts/lato/"
# Monospace font family name, e.g. "JetBrains Mono", "Source Code Pro".
# Default: unset (LaTeX default mono family).
# mono_font = "JetBrains Mono"
# Directory containing the monospace font files (e.g. "./fonts/JetBrainsMono/").
# mono_font_dir = "/usr/local/share/fonts/jetbrains-mono/"
# Scale factor applied to the monospace font, e.g. 0.9 to make wider code
# lines fit the text column. Default: 1.0.
# mono_font_scale = 0.9
# -----------------------------------------------------------------------------
# [spacing] Paragraph spacing and line stretch
# -----------------------------------------------------------------------------
[spacing]
# First-line indent of paragraphs, as a LaTeX length.
# Default: 0pt (paragraphs are flush-left, no indent).
parindent = "0pt"
# Vertical space inserted between paragraphs, as a LaTeX length.
# Default: 6pt.
parskip = "6pt"
# Line-spacing multiplier via the setspace package, e.g. 1.5 for
# one-and-a-half spacing. OPTIONAL (commented out): unset means no
# \setstretch is emitted (LaTeX default 1.0). Requires the setspace package.
# setstretch = 1.5
# -----------------------------------------------------------------------------
# [colors] Text and link colors (OPTIONAL - every key commented out)
# -----------------------------------------------------------------------------
# NOTE: requires the xcolor package. Valid color forms:
# named: "black", "red", "blue", "gray", ...
# HTML: "HTML{1a2b3c}" (hex RGB, no leading #)
# rgb: "rgb{0.1,0.2,0.3}" (components in 0..1)
[colors]
# Body text color, in any xcolor form above. Default: black.
# text_color = "black"
# Hyperlink color, in any xcolor form above. Default: black (hyperref is
# loaded with hidelinks, so links render in the text color until this key
# is set; setting it enables hyperref's colorlinks).
# link_color = "blue"
# -----------------------------------------------------------------------------
# [tables] Table styling: borders, colors, padding, and presets
# -----------------------------------------------------------------------------
# NOTE: the color and padding tokens below require a TeX engine that supports
# colortbl (pdflatex works; the preamble auto-loads \usepackage[table]{xcolor}
# whenever any color token or preset needs it). Border-width tokens alone
# (including the shorthands) need nothing extra.
[tables]
# Table styling preset. Valid options:
# "plain" default, the current look (booktabs rules only)
# "striped" alternating row shading (header gray!30, alt rows gray!10)
# "colored-header" header row only gets a gray!25 background
# "minimal" no rules at all (all rule widths forced to 0pt)
# Individual tokens below override the preset's values, and an explicit
# per-side/per-cell border token overrides even a preset. OPTIONAL (commented
# out): unset means "plain".
# style = "plain"
# Shorthand for all four outer border widths at once (top, bottom, left,
# right), as a LaTeX length. Setting this is equivalent to setting all four
# outer_border_* keys below to the same value; any explicit per-side key
# overrides this value for that side. OPTIONAL (commented out).
# outer_border = "1pt"
# Width of the top rule (legacy \toprule). Overrides the legacy
# heavy_rule_width for this side. OPTIONAL (commented out).
# Default: 1pt (the heavy_rule_width value below).
# outer_border_top = "1pt"
# Width of the bottom rule (legacy \bottomrule). Overrides the legacy
# heavy_rule_width for this side. OPTIONAL (commented out).
# Default: 1pt (the heavy_rule_width value below).
# outer_border_bottom = "1pt"
# Width of the left rule (\vline on the left edge of the table). OPTIONAL
# (commented out). Default: 0pt (no left border), matching current output.
# outer_border_left = "0pt"
# Width of the right rule (\vline on the right edge of the table). OPTIONAL
# (commented out). Default: 0pt (no right border), matching current output.
# outer_border_right = "0pt"
# Shorthand for both cell border widths at once: sets cell_border_h and
# cell_border_v to the same value. Any explicit per-cell key below overrides
# this value for that direction. OPTIONAL (commented out).
# cell_border = "0.5pt"
# Width of the horizontal rule under the header row (legacy \midrule) and
# between grouped headers (legacy \cmidrule). Overrides the legacy
# light_rule_width. OPTIONAL (commented out).
# Default: 0.5pt (the light_rule_width value below).
# cell_border_h = "0.5pt"
# Width of the vertical rules between columns (\vline separators). OPTIONAL
# (commented out). Default: 0pt (no vertical rules), matching current output.
# cell_border_v = "0pt"
# Background color of the header row, in any xcolor form (named: "gray",
# HTML: "HTML{1a2b3c}", rgb: "rgb{0.1,0.2,0.3}", or "gray!25"). Requires the
# colortbl engine support noted above. OPTIONAL (commented out).
# Default: none (header row has no background).
# header_bg = "gray!25"
# Text color of the header row, in any xcolor form (see header_bg). Requires
# colortbl support. OPTIONAL (commented out). Default: none (text inherits
# the document color).
# header_fg = "white"
# Background color of body (non-header) rows, in any xcolor form. Requires
# colortbl support. OPTIONAL (commented out). Default: none (transparent).
# row_bg = "gray!10"
# Background color of every other body row, enabling alternating row shading
# via \rowcolors. Takes effect only when combined with a header background or
# a row_bg; the header row keeps its own background. Requires colortbl
# support. OPTIONAL (commented out). Default: none (no shading).
# row_bg_alt = "gray!10"
# Color of all table rules (borders and separators), in any xcolor form.
# Requires colortbl support. OPTIONAL (commented out). Default: none (rules
# keep the document's default color).
# rule_color = "gray"
# Horizontal padding inside each cell, as a LaTeX length (sets \tabcolsep).
# OPTIONAL (commented out). Default: 6pt (the LaTeX default).
# cell_padding = "6pt"
# Vertical padding inside each cell as a multiplier (sets \arraystretch; e.g.
# 1.5 for extra breathing room). OPTIONAL (commented out). Default: 1.0 (the
# LaTeX default).
# row_padding = 1.0
# Extra space between columns, on top of the natural gap. The default table
# is natural-width: columns sit with the standard 2 x cell_padding gap
# (6pt each side -> 12pt between columns, matching GitHub-style rendering).
# Setting column_gap ADDS fixed space between every pair of columns on top
# of that (final gap = 2 x cell_padding + column_gap), via \extracolsep.
# OPTIONAL (commented out). Default: unset (no extra space).
# column_gap = "12pt"
# Width of the top and bottom rules (\toprule / \bottomrule), as a LaTeX
# length. Default: 1pt (2px on a Retina 2x display). The new per-side
# outer_border_top / outer_border_bottom tokens override this value when set.
heavy_rule_width = "1pt"
# Width of the header separator rule (\midrule), as a LaTeX length.
# Default: 0.5pt (1px on a Retina 2x display). The new cell_border_h token
# overrides this value when set.
light_rule_width = "0.5pt"
# Width of the partial rules for grouped headers (\cmidrule), as a LaTeX
# length. Default: 0.5pt. The new cell_border_h token overrides this value
# when set.
cmidrule_width = "0.5pt"
# -----------------------------------------------------------------------------
# [code] Code block (lstlisting) styling (OPTIONAL - every key commented out)
# -----------------------------------------------------------------------------
[code]
# Font size inside code blocks, as a LaTeX size command INCLUDING the
# backslash, e.g. "\\small", "\\footnotesize", "\\tiny". TOML doubles the
# backslash, so "\\small" parses to \small; the value is used verbatim.
# Default: unset (listings default size).
# font_size = "\\small"
# Line-number placement for code blocks. Valid options: "none" (default),
# "left", "right".
# numbers = "none"
# Frame style drawn around code blocks. Valid options: "none" (default),
# "single", "shadowbox", "leftline", "topline", "bottomline", ...
# frame = "none"
# Background color of code blocks, in any xcolor form (e.g. "gray!10" or
# "HTML{F5F5F5}"). Default: none (transparent). Requires xcolor.
# background = "gray!10"
# -----------------------------------------------------------------------------
# [images] Image sizing
# -----------------------------------------------------------------------------
[images]
# Default width passed to \includegraphics[width=<default_width>]{...}, as a
# LaTeX length expression. The backslash is escaped as `\\` per TOML string
# rules (parses to the single character \linewidth).
# Default: 0.8\linewidth.
default_width = "0.8\\linewidth"
# -----------------------------------------------------------------------------
# [footer] Page footer
# -----------------------------------------------------------------------------
[footer]
# Whether page numbers are printed in the footer, shown as "1 / TOTAL"
# via the lastpage package. Boolean, true or false. Default: true.
page_numbers = true
# Where the footer page number sits. Valid options: "right" (default),
# "center", "none".
style = "right"
# -----------------------------------------------------------------------------
# [headings] Heading numbering
# -----------------------------------------------------------------------------
[headings]
# Whether headings carry section numbers. false emits starred commands
# (\section*, \subsection*, ...) so headings are unnumbered and stay
# flush-left, matching current output. true emits unstarred commands
# (\section, ...) with LaTeX's default numbering.
# Default: false.
numbered = false