-
-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathBook.js
More file actions
67 lines (67 loc) · 1.37 KB
/
Book.js
File metadata and controls
67 lines (67 loc) · 1.37 KB
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
module.exports = {
sections: ['Abstract', 'Index', 'Introduction'],
languages: {
en: require('./Book.en.js'),
ru: require('./Book.ru.js'),
cz: require('./Book.cz.js'),
},
title: {
bold: true,
fontSize: 28,
alignment: 'center',
margin: [40, 20, 40, 0],
},
subtitle: {
bold: true,
fontSize: 14,
alignment: 'center',
margin: [40, 20, 40, 0],
},
copyright: {
fontSize: 14,
alignment: 'center',
margin: [40, 60, 40, 0],
},
location: {
fontSize: 14,
alignment: 'center',
margin: [40, 40, 40, 0],
},
caption: {
fontSize: 15,
bold: true,
margin: [30, 5, 30, 5],
},
index: {
fontSize: 11,
margin: [30, 2, 30, 2],
preserveLeadingSpaces: true,
},
para: {
fontSize: 11,
alignment: 'justify',
margin: [30, 5, 30, 5],
},
code: {
border: false,
layout: 'noBorders',
fontSize: 11,
color: '#555',
fillColor: '#EEE',
font: 'Mono',
},
fonts: {
Roboto: {
normal: 'fonts/Roboto-Regular.ttf',
bold: 'fonts/Roboto-Medium.ttf',
italics: 'fonts/Roboto-Italic.ttf',
bolditalics: 'fonts/Roboto-MediumItalic.ttf',
},
Mono: {
normal: 'fonts/RobotoMono-Regular.ttf',
bold: 'fonts/RobotoMono-Medium.ttf',
italics: 'fonts/RobotoMono-Italic.ttf',
bolditalics: 'fonts/RobotoMono-MediumItalic.ttf',
},
},
};