| 1 |
# |
| 2 |
# Following is the asciidoctor-pdf default theme [1], with small |
| 3 |
# customizations, mostly for header and footer, marked "EE". |
| 4 |
# |
| 5 |
# [1] https://github.com/asciidoctor/asciidoctor-pdf/blob/master/data/themes/default-theme.yml |
| 6 |
# |
| 7 |
font: |
| 8 |
catalog: |
| 9 |
# Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols |
| 10 |
Noto Serif: |
| 11 |
normal: notoserif-regular-subset.ttf |
| 12 |
bold: notoserif-bold-subset.ttf |
| 13 |
italic: notoserif-italic-subset.ttf |
| 14 |
bold_italic: notoserif-bold_italic-subset.ttf |
| 15 |
# M+ 1mn supports ASCII and the circled numbers used for conums |
| 16 |
M+ 1mn: |
| 17 |
normal: mplus1mn-regular-ascii-conums.ttf |
| 18 |
bold: mplus1mn-bold-ascii.ttf |
| 19 |
italic: mplus1mn-italic-ascii.ttf |
| 20 |
bold_italic: mplus1mn-bold_italic-ascii.ttf |
| 21 |
# M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols |
| 22 |
# It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font |
| 23 |
M+ 1p Fallback: |
| 24 |
normal: mplus1p-regular-fallback.ttf |
| 25 |
bold: mplus1p-regular-fallback.ttf |
| 26 |
italic: mplus1p-regular-fallback.ttf |
| 27 |
bold_italic: mplus1p-regular-fallback.ttf |
| 28 |
fallbacks: |
| 29 |
- M+ 1p Fallback |
| 30 |
page: |
| 31 |
background_color: ffffff |
| 32 |
layout: portrait |
| 33 |
margin: [0.5in, 0.67in, 0.67in, 0.67in] |
| 34 |
# margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress |
| 35 |
margin_inner: 0.75in |
| 36 |
margin_outer: 0.59in |
| 37 |
#size: A4 # EE |
| 38 |
size: Letter # EE |
| 39 |
base: |
| 40 |
align: justify |
| 41 |
# color as hex string (leading # is optional) |
| 42 |
font_color: 333333 |
| 43 |
# color as RGB array |
| 44 |
#font_color: [51, 51, 51] |
| 45 |
# color as CMYK array (approximated) |
| 46 |
#font_color: [0, 0, 0, 0.92] |
| 47 |
#font_color: [0, 0, 0, 92%] |
| 48 |
font_family: Noto Serif |
| 49 |
# choose one of these font_size/line_height_length combinations |
| 50 |
#font_size: 14 |
| 51 |
#line_height_length: 20 |
| 52 |
#font_size: 11.25 |
| 53 |
#line_height_length: 18 |
| 54 |
#font_size: 11.2 |
| 55 |
#line_height_length: 16 |
| 56 |
font_size: 10.5 |
| 57 |
#line_height_length: 15 |
| 58 |
# correct line height for Noto Serif metrics |
| 59 |
line_height_length: 12 |
| 60 |
#font_size: 11.25 |
| 61 |
#line_height_length: 18 |
| 62 |
line_height: $base_line_height_length / $base_font_size |
| 63 |
font_size_large: round($base_font_size * 1.25) |
| 64 |
font_size_small: round($base_font_size * 0.85) |
| 65 |
font_size_min: $base_font_size * 0.75 |
| 66 |
font_style: normal |
| 67 |
border_color: eeeeee |
| 68 |
border_radius: 4 |
| 69 |
border_width: 0.5 |
| 70 |
# FIXME vertical_rhythm is weird; we should think in terms of ems |
| 71 |
#vertical_rhythm: $base_line_height_length * 2 / 3 |
| 72 |
# correct line height for Noto Serif metrics (comes with built-in line height) |
| 73 |
vertical_rhythm: $base_line_height_length |
| 74 |
horizontal_rhythm: $base_line_height_length |
| 75 |
# QUESTION should vertical_spacing be block_spacing instead? |
| 76 |
vertical_spacing: $vertical_rhythm |
| 77 |
link: |
| 78 |
font_color: 428bca |
| 79 |
# literal is currently used for inline monospaced in prose and table cells |
| 80 |
literal: |
| 81 |
font_color: b12146 |
| 82 |
font_family: M+ 1mn |
| 83 |
menu_caret_content: " <font size=\"1.15em\"><color rgb=\"b12146\">\u203a</color></font> " |
| 84 |
heading: |
| 85 |
align: left |
| 86 |
#font_color: 181818 |
| 87 |
font_color: $base_font_color |
| 88 |
font_family: $base_font_family |
| 89 |
font_style: bold |
| 90 |
# h1 is used for part titles (book doctype) or the doctitle (article doctype) |
| 91 |
#h1_font_size: floor($base_font_size * 2.6) # EE |
| 92 |
h1_font_size: floor($base_font_size * 2.5) # EE, squeeze title onto one line |
| 93 |
# h2 is used for chapter titles (book doctype only) |
| 94 |
h2_font_size: floor($base_font_size * 2.15) |
| 95 |
h3_font_size: round($base_font_size * 1.7) |
| 96 |
h4_font_size: $base_font_size_large |
| 97 |
h5_font_size: $base_font_size |
| 98 |
h6_font_size: $base_font_size_small |
| 99 |
#line_height: 1.4 |
| 100 |
# correct line height for Noto Serif metrics (comes with built-in line height) |
| 101 |
line_height: 1 |
| 102 |
margin_top: $vertical_rhythm * 0.4 |
| 103 |
margin_bottom: $vertical_rhythm * 0.9 |
| 104 |
title_page: |
| 105 |
align: right |
| 106 |
logo: |
| 107 |
top: 10% |
| 108 |
title: |
| 109 |
top: 55% |
| 110 |
font_size: $heading_h1_font_size |
| 111 |
font_color: 999999 |
| 112 |
line_height: 0.9 |
| 113 |
subtitle: |
| 114 |
font_size: $heading_h3_font_size |
| 115 |
font_style: bold_italic |
| 116 |
line_height: 1 |
| 117 |
authors: |
| 118 |
margin_top: $base_font_size * 1.25 |
| 119 |
font_size: $base_font_size_large |
| 120 |
font_color: 181818 |
| 121 |
revision: |
| 122 |
margin_top: $base_font_size * 1.25 |
| 123 |
block: |
| 124 |
margin_top: 0 |
| 125 |
margin_bottom: $vertical_rhythm |
| 126 |
caption: |
| 127 |
align: left |
| 128 |
font_size: $base_font_size * 0.95 |
| 129 |
font_style: italic |
| 130 |
# FIXME perhaps set line_height instead of / in addition to margins? |
| 131 |
margin_inside: $vertical_rhythm / 3 |
| 132 |
#margin_inside: $vertical_rhythm / 4 |
| 133 |
margin_outside: 0 |
| 134 |
lead: |
| 135 |
font_size: $base_font_size_large |
| 136 |
line_height: 1.4 |
| 137 |
abstract: |
| 138 |
font_color: 5c6266 |
| 139 |
font_size: $lead_font_size |
| 140 |
line_height: $lead_line_height |
| 141 |
font_style: italic |
| 142 |
first_line_font_style: bold |
| 143 |
title: |
| 144 |
align: center |
| 145 |
font_color: $heading_font_color |
| 146 |
font_family: $heading_font_family |
| 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 |
# tip: |
| 155 |
# name: fa-lightbulb-o |
| 156 |
# stroke_color: 111111 |
| 157 |
# size: 24 |
| 158 |
label: |
| 159 |
text_transform: uppercase |
| 160 |
font_style: bold |
| 161 |
blockquote: |
| 162 |
font_color: $base_font_color |
| 163 |
font_size: $base_font_size_large |
| 164 |
border_color: $base_border_color |
| 165 |
border_width: 5 |
| 166 |
# FIXME disable negative padding bottom once margin collapsing is implemented |
| 167 |
padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2] |
| 168 |
cite_font_size: $base_font_size_small |
| 169 |
cite_font_color: 999999 |
| 170 |
# code is used for source blocks (perhaps change to source or listing?) |
| 171 |
code: |
| 172 |
font_color: $base_font_color |
| 173 |
font_family: $literal_font_family |
| 174 |
font_size: ceil($base_font_size) |
| 175 |
padding: $code_font_size |
| 176 |
line_height: 1.25 |
| 177 |
# line_gap is an experimental property to control how a background color is applied to an inline block element |
| 178 |
line_gap: 3.8 |
| 179 |
background_color: f5f5f5 |
| 180 |
border_color: cccccc |
| 181 |
border_radius: $base_border_radius |
| 182 |
border_width: 0.75 |
| 183 |
conum: |
| 184 |
font_family: M+ 1mn |
| 185 |
font_color: $literal_font_color |
| 186 |
font_size: $base_font_size |
| 187 |
line_height: 4 / 3 |
| 188 |
example: |
| 189 |
border_color: $base_border_color |
| 190 |
border_radius: $base_border_radius |
| 191 |
border_width: 0.75 |
| 192 |
background_color: ffffff |
| 193 |
# FIXME reenable padding bottom once margin collapsing is implemented |
| 194 |
padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm] |
| 195 |
image: |
| 196 |
align: left |
| 197 |
prose: |
| 198 |
margin_top: $block_margin_top |
| 199 |
margin_bottom: $block_margin_bottom |
| 200 |
sidebar: |
| 201 |
background_color: eeeeee |
| 202 |
border_color: e1e1e1 |
| 203 |
border_radius: $base_border_radius |
| 204 |
border_width: $base_border_width |
| 205 |
# FIXME reenable padding bottom once margin collapsing is implemented |
| 206 |
padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25] |
| 207 |
title: |
| 208 |
align: center |
| 209 |
font_color: $heading_font_color |
| 210 |
font_family: $heading_font_family |
| 211 |
font_size: $heading_h4_font_size |
| 212 |
font_style: $heading_font_style |
| 213 |
thematic_break: |
| 214 |
border_color: $base_border_color |
| 215 |
border_style: solid |
| 216 |
border_width: $base_border_width |
| 217 |
margin_top: $vertical_rhythm * 0.5 |
| 218 |
margin_bottom: $vertical_rhythm * 1.5 |
| 219 |
description_list: |
| 220 |
term_font_style: bold |
| 221 |
term_spacing: $vertical_rhythm / 4 |
| 222 |
description_indent: $horizontal_rhythm * 1.25 |
| 223 |
outline_list: |
| 224 |
indent: $horizontal_rhythm * 1.5 |
| 225 |
#marker_font_color: 404040 |
| 226 |
# NOTE outline_list_item_spacing applies to list items that do not have complex content |
| 227 |
item_spacing: $vertical_rhythm / 2 |
| 228 |
table: |
| 229 |
background_color: $page_background_color |
| 230 |
#head_background_color: <hex value> |
| 231 |
#head_font_color: $base_font_color |
| 232 |
head_font_style: bold |
| 233 |
#body_background_color: <hex value> |
| 234 |
body_stripe_background_color: f9f9f9 |
| 235 |
foot_background_color: f0f0f0 |
| 236 |
border_color: dddddd |
| 237 |
border_width: $base_border_width |
| 238 |
cell_padding: 3 |
| 239 |
caption: |
| 240 |
side: bottom |
| 241 |
toc: |
| 242 |
indent: $horizontal_rhythm |
| 243 |
line_height: 1.4 |
| 244 |
dot_leader: |
| 245 |
#content: ". " |
| 246 |
font_color: a9a9a9 |
| 247 |
#levels: 2 3 |
| 248 |
# NOTE in addition to footer, header is also supported |
| 249 |
footer: |
| 250 |
font_size: $base_font_size_small |
| 251 |
# NOTE if background_color is set, background and border will span width of page |
| 252 |
#border_color: dddddd # EE |
| 253 |
#border_width: 0.25 # EE |
| 254 |
height: $base_line_height_length * 2.5 |
| 255 |
line_height: 1 |
| 256 |
padding: [$base_line_height_length / 2, 1, 0, 1] |
| 257 |
vertical_align: top |
| 258 |
#image_vertical_align: <alignment> or <number> |
| 259 |
# additional attributes for content: |
| 260 |
# * {page-count} |
| 261 |
# * {page-number} |
| 262 |
# * {document-title} |
| 263 |
# * {document-subtitle} |
| 264 |
# * {chapter-title} |
| 265 |
# * {section-title} |
| 266 |
# * {section-or-chapter-title} |
| 267 |
recto: |
| 268 |
#columns: "<50% =0% >50%" |
| 269 |
right: |
| 270 |
#content: '{page-number}' # EE |
| 271 |
#content: '{section-or-chapter-title} | {page-number}' |
| 272 |
#content: '{document-title} | {page-number}' |
| 273 |
content: '{document-title}{nbsp}{nbsp}{nbsp} *{page-number}*' # EE |
| 274 |
#center: |
| 275 |
# content: '{page-number}' |
| 276 |
left: # EE |
| 277 |
content: '{status}' # EE |
| 278 |
verso: |
| 279 |
#columns: $footer_recto_columns |
| 280 |
left: |
| 281 |
#content: $footer_recto_right_content # EE |
| 282 |
#content: '{page-number} | {chapter-title}' |
| 283 |
content: '*{page-number}* {nbsp}{nbsp}{nbsp}{document-title}' # EE |
| 284 |
#center: |
| 285 |
# content: '{page-number}' |
| 286 |
right: # EE |
| 287 |
content: '{status}' # EE |
| 288 |
header: # EE |
| 289 |
font_size: $base_font_size_small # EE |
| 290 |
border_color: dddddd # EE |
| 291 |
border_width: 0.25 # EE |
| 292 |
height: $base_line_height_length * 2.5 # EE |
| 293 |
line_height: 1 # EE |
| 294 |
padding: [$base_line_height_length / 2, 1, 0, 1] # EE |
| 295 |
vertical_align: top # EE |
| 296 |
recto: # EE |
| 297 |
right: # EE |
| 298 |
content: '{section-or-chapter-title}' # EE |
| 299 |
verso: # EE |
| 300 |
left: # EE |
| 301 |
content: '{section-or-chapter-title}' # EE |