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