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