File: pdf-theme-UserManual.yaml

package info (click to toggle)
virtualbox 7.1.12-dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 565,672 kB
  • sloc: ansic: 2,330,854; cpp: 2,193,228; asm: 230,777; python: 223,895; xml: 86,771; sh: 25,541; makefile: 8,158; perl: 5,697; java: 5,337; cs: 4,872; pascal: 1,782; javascript: 1,692; objc: 1,131; lex: 931; php: 906; sed: 899; yacc: 707
file content (285 lines) | stat: -rw-r--r-- 8,998 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
# $Id: pdf-theme-UserManual.yaml $

brand:
    color:
        primary:    '#1a3355'
        secondary:  '#6d767e'
        tertiary:   '#b9c7d0'
        inverse:    '#e5ebeb'
        links:      '#4169e1'
        note:
            background:
                attention:  '#fff3ce'
                caution:    '#f8d8db'
                info:       '#dbe5f1'
                tip:        '#d0e8de'

pdf2:
  font:
    sans:           'Noto Sans'
    serif:          'Noto Serif'
    monospaced:     'DejaVu Sans Mono'
    # ^^^ - Important to have proper unicode monospace font so we can use non-breaking hyphen (U+2011)
    #       in syntax diagrams.
    #
    # If the PDF contains any use of font "Helvetica" then it might be that the topic nesting is too deep.
    # Maximum nesting is 4 (not sure what limits it), but all config for h5 is ignored.

page:
    size:               PA4
    mirror-margins:     true

header:
    color:              $brand-color-secondary
    display-align:      before
    end-indent:         10mm
    font-family:        $pdf2-font-sans
    padding-after:      6pt
    padding-before:     12pt
    start-indent:       10mm
    odd:
        content:        '{chapter}'
        text-align:     end
    even:
        content:        '{title}'
        text-align:     start

footer:
    color:              $brand-color-secondary
    end-indent:         10mm
    font-family:        $pdf2-font-sans
    padding-after:      12pt
    padding-before:     6pt
    start-indent:       10mm
    odd:
        content:        '{folio}'
        font-weight:    bold
        text-align:     end
    even:
        content:        '{folio}'
        font-weight:    bold
        text-align:     start

style:
    body:
        font-family:        $pdf2-font-serif
        font-size:          11pt
        line-height:        1.3
        start-indent:       48pt

    cmdname:
        color:              $brand-color-primary
        font-family:        $pdf2-font-monospaced
        font-weight:        bold

    codeblock:
        background-color:   $brand-color-inverse
        border:             solid 1pt $brand-color-tertiary
        font-family:        $pdf2-font-monospaced
        font-size:          8pt
        keep-together.within-page: always
        space-after:        8pt

    codeph:
        color:              $brand-color-secondary
        font-family:        $pdf2-font-monospaced
        font-size:          '0.9 * from-parent(font-size)'

    cover:
        background-image:   en_US/images/vboxlogo.svg
        background-repeat:  no-repeat
        background-position-horizontal: center

    cover-title:
        color:              $brand-color-primary
        font-family:        $pdf2-font-sans
        font-size:          48pt
        font-weight:        bold
        line-height:        1.3
        space-before:       165mm

    example-title:
        color:              $brand-color-secondary

    fig:
        caption:
            color:          $brand-color-secondary
            font-family:    $pdf2-font-sans
            font-size:      9pt
            font-style:     italic
            font-weight:    normal

    filepath:
        color:              $brand-color-secondary
        font-family:        $pdf2-font-monospaced

    h1:
        border-after:       solid 2pt $brand-color-inverse
        color:              $brand-color-primary
        font-family:        $pdf2-font-sans
        font-size:          18pt
        font-weight:        bold
        space-before:       0pt
        padding-top:        0pt
        space-after:        9pt
        title-numbering:    true

    h2:
        border-after:       solid 1pt $brand-color-inverse
        color:              $brand-color-primary
        font-family:        $pdf2-font-sans
        font-size:          16pt
        font-style:         italic
        space-before:       16pt
        space-after:        8pt
        title-numbering:    true

    h3:
        color:              $brand-color-primary
        font-family:        $pdf2-font-sans
        font-size:          14pt
        font-weight:        bold
        space-before:       21pt
        space-after:        7pt
        title-numbering:    true

    h4:
        color:              $brand-color-primary
        font-family:        $pdf2-font-sans
        font-size:          12pt
        font-weight:        bold
        font-style:         italic
        space-before:       15pt
        start-indent:       'from-parent(start-indent)'
        title-numbering:    true

    link:
        color:              $brand-color-links
        font-style:         italic

    note:
        background-color:   $brand-color-note-background-info
        border:             solid 1pt $brand-color-tertiary
        keep-together.within-page: always
        label:
            font-family:    $pdf2-font-sans
            space-end:      2pt
        padding-start:      6pt
        start-indent:       '6pt + from-parent(start-indent)'
        padding-end:        6pt
        end-indent:         '6pt + from-parent(end-indent)'
        space-before:       6pt
        space-after:        12pt
        attention:
            background-color:   $brand-color-note-background-attention
        caution:
            background-color:   $brand-color-note-background-caution
        important:
            background-color:   $brand-color-note-background-attention
        notice:
            background-color:   $brand-color-note-background-attention
        restriction:
            background-color:   $brand-color-note-background-attention
        tip:
            background-color:   $brand-color-note-background-tip
        warning:
            background-color:   $brand-color-note-background-caution

    section-title:
        color:              $brand-color-secondary
        font-family:        $pdf2-font-sans

    shortdesc:
        color:              $brand-color-secondary
        line-height:        1.3

    table:
        caption:
            color:          $brand-color-secondary
            font-family:    $pdf2-font-sans
            font-size:      9pt
            font-style:     italic
            font-weight:    normal
        font-family:        $pdf2-font-sans
        font-size:          9pt
        header:
            background-color:   $brand-color-inverse
            font-family:    $pdf2-font-monospaced       # Hack for arrow glyphs

    toc-1:
        color:          $brand-color-primary
        font-family:    $pdf2-font-sans
        space-before:   6pt
        start-indent:   0pt

    toc-2:
        color:          black
        space-before:   4pt
        start-indent:   12pt

    toc-3:
        color:          black
        space-before:   2pt
        start-indent:   32pt

    toc-4:
        color:          black
        space-before:   2pt
        start-indent:   48pt

    varname:
        color:          $brand-color-secondary
        font-family:    $pdf2-font-monospaced
        font-style:     italic


    #
    # The following properties requires an pdf-generator git newer than February 2023,
    # or version 0.6.2+ (unreleased).
    #

    # We need to specify the font for each of these elements, so we get a consistent
    # monospace font capable of doing non-breaking hyphen glyps. The default "Courier"
    # does not do the job, at least not on Windows.
    delim:
        font-family:        $pdf2-font-monospaced
    groupchoice:
        font-family:        $pdf2-font-monospaced
    groupcomp:
        font-family:        $pdf2-font-monospaced
    groupseq:
        font-family:        $pdf2-font-monospaced
    kwd:
        font-family:        $pdf2-font-monospaced
    oper:
        font-family:        $pdf2-font-monospaced
    repsep:
        font-family:        $pdf2-font-monospaced
    sep:
        font-family:        $pdf2-font-monospaced
    syntaxdiagram:
        font-family:        $pdf2-font-monospaced
        font-size:          10pt                # Needed for long unbreakable synopsis bits
        start-indent:       '1cm + from-parent(start-indent)'
        text-indent:        -1cm
        keep-together.within-page: always
    var:
        font-family:        $pdf2-font-monospaced
    pre:
        font-family:        $pdf2-font-monospaced
        font-size:          9pt                 # Needed for 80 column
    userinput:
        font-family:        $pdf2-font-monospaced
        font-size:          10pt                # More line length without annoying line breaks
    screen:
        font-family:        $pdf2-font-monospaced
        font-size:          10pt                # More line length without annoying line breaks
    systemoutput:
        font-family:        $pdf2-font-monospaced
        font-size:          10pt                # More line length without annoying line breaks


    # Prevent a parameter and it's definition from ending up on different pages.
    plentry:
        keep-together.within-page: always