Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/themes/default-pdf-theme.yml
18081 views
1
#
2
# This file was copied from default-theme.yml of ascii-doctor-pdf, and customized for the BEAM book.
3
# - header and footer was customized
4
# - Title page
5
# - VERSION Admonition
6
page:
7
background_color: FFFFFF
8
layout: portrait
9
initial_zoom: FitH
10
margin: [0.82in, 0.67in, 0.75in, 0.67in]
11
# margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress
12
margin_inner: 0.55in
13
margin_outer: 0.39in
14
size: A4
15
base:
16
align: justify
17
# color as hex string (leading # is optional)
18
font_color: 000000
19
font_family: Times-Roman
20
font_size: 10
21
line_height_length: 11.25
22
line_height: $base_line_height_length / $base_font_size
23
font_size_large: round($base_font_size * 1.25)
24
font_size_small: round($base_font_size * 0.85)
25
font_size_min: $base_font_size * 0.75
26
font_style: normal
27
border_color: EEEEEE
28
border_radius: 4
29
border_width: 0.5
30
header:
31
border-color: #dddddd
32
height: 0.65in
33
line-height: 1.0
34
vertical-align: bottom
35
recto:
36
right:
37
content: '{document-title} {part-title}'
38
verso:
39
left:
40
content: $header-recto-right-content
41
running-content:
42
start-at: 4
43
footer:
44
border-color: #dddddd
45
height: 0.65in
46
line-height: 1.0
47
vertical-align: top
48
padding: [3, 0, 0, 0]
49
recto:
50
right:
51
content: '{part-title} {chapter-title} {page-number}/{page-count}'
52
verso:
53
left:
54
content: '{page-number}/{page-count} {section-or-chapter-title}'
55
role:
56
line-through:
57
text_decoration: line-through
58
underline:
59
text_decoration: underline
60
big:
61
font_size: $base_font_size_large
62
small:
63
font_size: $base_font_size_small
64
subtitle:
65
font_color: 999999
66
font_size: 0.8em
67
font_style: normal_italic
68
vertical_rhythm: $base_line_height_length
69
horizontal_rhythm: $base_line_height_length
70
vertical_spacing: $vertical_rhythm
71
link:
72
font_color: 428BCA
73
# literal is currently used for inline monospaced in prose and table cells
74
literal:
75
font_color: B12146
76
button:
77
content: "[\u2009%s\u2009]"
78
font_style: bold
79
key:
80
background_color: F5F5F5
81
border_color: CCCCCC
82
border_offset: 2
83
border_radius: 2
84
border_width: 0.5
85
separator: "\u202f+\u202f"
86
mark:
87
background_color: FFFF00
88
border_offset: 1
89
menu:
90
caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> "
91
heading:
92
align: left
93
font_color: $base_font_color
94
font_style: bold
95
# h1 is used for part titles (book doctype) or the doctitle (article doctype)
96
h1_font_size: floor($base_font_size * 3.6)
97
# h2 is used for chapter titles (book doctype only)
98
h2_font_size: floor($base_font_size * 2.15)
99
h3_font_size: round($base_font_size * 1.7)
100
h4_font_size: $base_font_size_large
101
h5_font_size: $base_font_size
102
h6_font_size: $base_font_size_small
103
line_height: 1
104
margin_top: $vertical_rhythm * 0.4
105
margin_bottom: $vertical_rhythm * 0.9
106
min_height_after: $base_line_height_length * 1.5
107
title_page:
108
align: right
109
logo:
110
top: 10%
111
title:
112
top: 55%
113
font_size: $heading_h1_font_size
114
font_color: 000000
115
line_height: 0.9
116
subtitle:
117
font_size: $heading_h3_font_size
118
font_style: bold_italic
119
line_height: 1
120
authors:
121
margin_top: $heading_h3_font_size * 1.25
122
font_size: $heading_h3_font_size
123
font_color: 181818
124
revision:
125
margin_top: $base_font_size * 1.25
126
block:
127
margin_top: 0
128
margin_bottom: $vertical_rhythm
129
caption:
130
align: left
131
font_size: $base_font_size * 0.95
132
font_style: italic
133
margin_inside: $vertical_rhythm / 3
134
margin_outside: 0
135
lead:
136
font_size: $base_font_size_large
137
line_height: 1.4
138
abstract:
139
font_color: 5C6266
140
font_size: $lead_font_size
141
line_height: $lead_line_height
142
font_style: italic
143
first_line_font_style: bold
144
title:
145
align: center
146
font_color: $heading_font_color
147
font_size: $heading_h4_font_size
148
font_style: $heading_font_style
149
admonition:
150
column_rule_color: $base_border_color
151
column_rule_width: $base_border_width
152
padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm]
153
icon:
154
version:
155
name: fa-tags
156
stroke_color: A26D6D
157
size: 24
158
label:
159
text_transform: uppercase
160
font_style: bold
161
blockquote:
162
font_size: $base_font_size_large
163
border_color: $base_border_color
164
border_width: 0
165
border_left_width: 5
166
padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_left_width / 2]
167
cite_font_size: $base_font_size_small
168
cite_font_color: 999999
169
verse:
170
font_size: $blockquote_font_size
171
border_color: $blockquote_border_color
172
border_width: $blockquote_border_width
173
border_left_width: $blockquote_border_left_width
174
padding: $blockquote_padding
175
cite_font_size: $blockquote_cite_font_size
176
cite_font_color: $blockquote_cite_font_color
177
# code is used for source blocks (perhaps change to source or listing?)
178
code:
179
font_color: $base_font_color
180
#font_family: Courier
181
font_size: ceil($base_font_size)
182
padding: $code_font_size
183
line_height: 1.25
184
# line_gap is an experimental property to control how a background color is applied to an inline block element
185
line_gap: 3.8
186
background_color: F5F5F5
187
conum:
188
font_color: $literal_font_color
189
font_size: $base_font_size
190
line_height: 4 / 3
191
glyphs: circled
192
example:
193
border_color: $base_border_color
194
border_radius: $base_border_radius
195
border_width: 0.75
196
background_color: $page_background_color
197
padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm]
198
image:
199
align: center
200
caption:
201
align: center
202
prose:
203
margin_top: $block_margin_top
204
margin_bottom: $block_margin_bottom
205
sidebar:
206
background_color: EEEEEE
207
border_color: E1E1E1
208
border_radius: $base_border_radius
209
border_width: $base_border_width
210
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25]
211
title:
212
align: center
213
font_color: $heading_font_color
214
font_size: $heading_h4_font_size
215
font_style: $heading_font_style
216
thematic_break:
217
border_color: $base_border_color
218
border_style: solid
219
border_width: $base_border_width
220
margin_top: $vertical_rhythm * 0.5
221
margin_bottom: $vertical_rhythm * 1.5
222
description_list:
223
term_font_style: bold
224
term_spacing: $vertical_rhythm / 4
225
description_indent: $horizontal_rhythm * 1.25
226
outline_list:
227
indent: $horizontal_rhythm * 1.5
228
# NOTE outline_list_item_spacing applies to list items that do not have complex content
229
item_spacing: $vertical_rhythm / 2
230
table:
231
background_color: $page_background_color
232
border_color: DDDDDD
233
border_width: $base_border_width
234
cell_padding: 3
235
head:
236
font_style: bold
237
border_bottom_width: $base_border_width * 2.5
238
body:
239
stripe_background_color: F9F9F9
240
foot:
241
background_color: F0F0F0
242
sectnums:
243
levels: 5
244
toc:
245
indent: $horizontal_rhythm
246
line_height: 1.4
247
dot_leader:
248
content: ". "
249
font_color: A9A9A9
250
footnotes:
251
font_size: round($base_font_size * 0.75)
252
item_spacing: $outline_list_item_spacing / 2
253
254