# ------------------------------------------------------------------------------ # ~/_data/asciidoc2pdf/default-theme.yml # J1 Theme definitions for PDF output # # Product/Info: # https://jekyll-one.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE # ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------ # Font (catalog) settings # font: catalog: Roboto: normal: Roboto-Regular.ttf italic: Roboto-Italic.ttf bold: Roboto-Bold.ttf bold_italic: Roboto-BoldItalic.ttf Emoji: normal: OpenSansEmoji.ttf bold: OpenSansEmoji.ttf italic: OpenSansEmoji.ttf bold_italic: OpenSansEmoji.ttf # Noto Serif supports Latin, Latin-1 Supplement, Latin Extended-A, Greek, Cyrillic, Vietnamese & an assortment of symbols Noto Serif: normal: notoserif-regular-subset.ttf bold: notoserif-bold-subset.ttf italic: notoserif-italic-subset.ttf bold_italic: notoserif-bold_italic-subset.ttf # M+ 1mn supports ASCII and the circled numbers used for conums M+ 1mn: normal: mplus1mn-regular-ascii-conums.ttf bold: mplus1mn-bold-ascii.ttf italic: mplus1mn-italic-ascii.ttf bold_italic: mplus1mn-bold_italic-ascii.ttf # M+ 1p supports Latin, Latin-1 Supplement, Latin Extended, Greek, Cyrillic, Vietnamese, Japanese & an assortment of symbols # It also provides arrows for ->, <-, => and <= replacements in case these glyphs are missing from font M+ 1p Fallback: normal: mplus1p-regular-fallback.ttf bold: mplus1p-regular-fallback.ttf italic: mplus1p-regular-fallback.ttf bold_italic: mplus1p-regular-fallback.ttf fallbacks: - M+ 1p Fallback - Emoji # ------------------------------------------------------------------------------ # General page settings # page: background_color: ffffff layout: portrait margin: [0.5in, 0.67in, 0.67in, 0.67in] margin_inner: 0.75in # margin_inner and margin_outer keys are used for recto/verso print margins when media=prepress margin_outer: 0.59in size: A4 # ------------------------------------------------------------------------------ # Base settings # # NOTE: color as hex string (leading # is optional) # base: align: justify font_color: #333333 font_family: Roboto # Noto Serif font_size: 14 line_height_length: 16 # correct line height for Roboto metrics line_height: $base_line_height_length / $base_font_size font_size_large: round($base_font_size * 1.25) font_size_small: round($base_font_size * 0.85) font_size_min: round($base_font_size * 0.75) font_style: normal border_color: #424242 border_radius: 4 border_width: 0.25 #.5 icon_size_xlarge: 64 icon_size_large: 32 icon_size: 16 icon_size_small: 12 # ------------------------------------------------------------------------------ # Custom Variables # vertical_rhythm: FIXME vertical_rhythm is weird; we should think in terms of ems # vertical_spacing: QUESTION should vertical_spacing be block_spacing instead? # menu_caret_content: " \u203a " vertical_rhythm: $base_line_height_length #vertical_rhythm: $base_line_height_length * 2 / 3 horizontal_rhythm: $base_line_height_length vertical_spacing: $vertical_rhythm # ------------------------------------------------------------------------------ # HTML/Link settings # link: font_color: 428bca # ------------------------------------------------------------------------------ # literal settings # # NOTE: literal is currently used for inline monospaced in prose and table cells # literal: font_color: b12146 font_family: M+ 1mn # ------------------------------------------------------------------------------ # Heading settings # heading: align: left font_color: $base_font_color font_family: $base_font_family font_style: bold h1_font_size: floor($base_font_size * 2.6) # h1 is used for part titles (book doctype only) h2_font_size: floor($base_font_size * 2.15) # h2 is used for chapter titles (book doctype only) h3_font_size: round($base_font_size * 1.7) h4_font_size: $base_font_size_large h5_font_size: $base_font_size h6_font_size: $base_font_size_small line_height: 1 # correct line height for Noto Serif metrics (comes with built-in line height) margin_top: $vertical_rhythm * 0.4 margin_bottom: $vertical_rhythm * 0.9 # ------------------------------------------------------------------------------ # Title page settings # title_page: align: right logo: top: 10% title: top: 55% font_size: $heading_h1_font_size font_color: 999999 line_height: 0.9 subtitle: font_size: $heading_h3_font_size font_style: bold_italic line_height: 1 authors: margin_top: $base_font_size * 1.25 font_size: $base_font_size_large font_color: 181818 revision: margin_top: $base_font_size * 1.25 # ------------------------------------------------------------------------------ # Block settings # block: margin_top: 0 margin_bottom: $vertical_rhythm # ------------------------------------------------------------------------------ # Caption settings # margin_inside: FIXME perhaps set line_height instead of / in addition to margins? # caption: align: left font_size: $base_font_size * 0.95 font_style: italic margin_inside: $vertical_rhythm / 3 #margin_inside: $vertical_rhythm / 4 margin_outside: 0 # ------------------------------------------------------------------------------ # Lead settings # lead: font_size: $base_font_size_large line_height: 1.4 # ------------------------------------------------------------------------------ # Abstract settings # abstract: font_color: 5c6266 font_size: $lead_font_size line_height: $lead_line_height font_style: italic first_line_font_style: bold title: align: center font_color: $heading_font_color font_family: $heading_font_family font_size: $heading_h4_font_size font_style: $heading_font_style # ------------------------------------------------------------------------------ # Admonition settings # admonition: font_size: $base_font_size_small column_rule_color: $base_border_color column_rule_width: $base_border_width padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm] label_padding: [0, $horizontal_rhythm, 0, $horizontal_rhythm] icon: note: size: $base_icon_size_xlarge tip: size: $base_icon_size_xlarge warning: size: $base_icon_size_xlarge important: size: $base_icon_size_xlarge caution: size: $base_icon_size_xlarge # tip: # name: fa-lightbulb-o # stroke_color: 111111 # size: 24 label: text_transform: uppercase font_style: bold # ------------------------------------------------------------------------------ # Blockquote settings # padding: FIXME disable negative padding bottom once margin collapsing is implemented # blockquote: font_color: $base_font_color font_size: $base_font_size_large border_color: $base_border_color border_width: 5 padding: [0, $horizontal_rhythm, $block_margin_bottom * -0.75, $horizontal_rhythm + $blockquote_border_width / 2] cite_font_size: $base_font_size_small cite_font_color: 999999 # ------------------------------------------------------------------------------ # Code settings # NOTE: code is used for source blocks (perhaps change to source or listing?) # code: font_color: $base_font_color font_family: $literal_font_family font_size: $base_font_size_small #ceil($base_font_size) padding: $code_font_size line_height: 1.25 line_gap: 3.8 # line_gap is an experimental property to control how a background color is applied to an inline block element background_color: f5f5f5 border_color: cccccc border_radius: $base_border_radius border_width: 0.75 # ------------------------------------------------------------------------------ # Callout settings # conum: font_family: M+ 1mn font_color: $literal_font_color font_size: $base_font_size line_height: 4 / 3 # ------------------------------------------------------------------------------ # Example settings # example: border_color: $base_border_color border_radius: $base_border_radius border_width: 0.75 background_color: ffffff # FIXME reenable padding bottom once margin collapsing is implemented padding: [$vertical_rhythm, $horizontal_rhythm, 0, $horizontal_rhythm] # ------------------------------------------------------------------------------ # Image settings # image: align: left # ------------------------------------------------------------------------------ # Prose settings # prose: margin_top: $block_margin_top margin_bottom: $block_margin_bottom # ------------------------------------------------------------------------------ # Sidebar settings # sidebar: background_color: eeeeee border_color: e1e1e1 border_radius: $base_border_radius border_width: $base_border_width # FIXME reenable padding bottom once margin collapsing is implemented padding: [$vertical_rhythm, $vertical_rhythm * 1.25, 0, $vertical_rhythm * 1.25] title: align: center font_color: $heading_font_color font_family: $heading_font_family font_size: $heading_h4_font_size font_style: $heading_font_style # ------------------------------------------------------------------------------ # BREAK settings # thematic_break: border_color: $base_border_color border_style: solid border_width: $base_border_width margin_top: $vertical_rhythm * 0.5 margin_bottom: $vertical_rhythm * 1.5 # ------------------------------------------------------------------------------ # LIST settings # description_list: term_font_style: bold term_spacing: $vertical_rhythm / 4 description_indent: $horizontal_rhythm * 1.25 outline_list: indent: $horizontal_rhythm * 1.5 #marker_font_color: 404040 # NOTE outline_list_item_spacing applies to list items that do not have complex content item_spacing: $vertical_rhythm / 2 # ------------------------------------------------------------------------------ # Table settings # table: font_size: $base_font_size_small #10.5 grid_width: $table_border_width background_color: $page_background_color head_background_color: #E8EAF6 head_font_color: $base_font_color head_font_style: bold body_background_color: #fafafa body_stripe_background_color: #f8f8f7 foot_background_color: #f0f0f0 border_color: #212121 border_width: $base_border_width cell_padding: 8 # ------------------------------------------------------------------------------ # Toc settings # toc: indent: $horizontal_rhythm line_height: 1.4 dot_leader: #content: ". " font_color: a9a9a9 levels: 2 3 4 # ------------------------------------------------------------------------------ # Footer settings # # NOTE in addition to footer, header is also supported # footer: font_size: $base_font_size_small # NOTE if background_color is set, background and border will span width of page border_color: dddddd border_width: 0.25 height: $base_line_height_length * 2.5 line_height: 1 padding: [$base_line_height_length / 2, 1, 0, 1] vertical_align: top #image_vertical_align: or # additional attributes for content: # * {page-count} # * {page-number} # * {document-title} # * {document-subtitle} # * {chapter-title} # * {section-title} # * {section-or-chapter-title} recto: #columns: "<50% =0% >50%" right: content: '{page-number}' #content: '{section-or-chapter-title} | {page-number}' #content: '{document-title} | {page-number}' #center: # content: '{page-number}' verso: #columns: $footer_recto_columns left: content: $footer_recto_right_content #content: '{page-number} | {chapter-title}' #center: # content: '{page-number}'