Skip to content

Commit d243689

Browse files
committed
copy config to paperback
1 parent 8086385 commit d243689

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

book/book.toml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ monofontfallback = [
5353
]
5454
linkcolor = "Links"
5555
urlcolor = "Links"
56-
linkstyle = "bold"
5756
urlstyle = "rm"
5857
documentclass = "book"
5958
fontsize = "11pt"
@@ -63,7 +62,6 @@ header-includes = [
6362
# Reduce font size of code blocks
6463
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
6564
]
66-
highlight-style = "book/custom.theme"
6765

6866
[output.pandoc.profile.paperback]
6967
output-file = "100-exercises-to-learn-rust.pdf"
@@ -94,11 +92,12 @@ sansfontfallback = ["Noto Color Emoji:mode=harf"]
9492
monofontfallback = [
9593
"Noto Color Emoji:mode=harf",
9694
]
95+
linkcolor = "Links"
96+
urlcolor = "Links"
9797
urlstyle = "rm"
98-
documentclass = "book"
99-
fontsize = "11pt"
10098
geometry = "papersize={8in,10in},top=2cm,bottom=2cm,left=2.8cm,right=2.5cm"
10199
header-includes = [
100+
"\\definecolor{Links}{HTML}{6200EE}",
102101
# Reduce font size of code blocks
103102
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
104103
]
@@ -116,14 +115,24 @@ metadata-file = "metadata.yml"
116115

117116
[output.pandoc.profile.html.variables]
118117
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
119-
mainfont = "Noto Serif"
120-
sansfont = "Noto Sans"
118+
mainfont = "CoreSansA45.ttf"
119+
mainfontoptions = [
120+
"BoldFont=CoreSansA65.ttf",
121+
"ItalicFont=CoreSansA45It.ttf",
122+
"BoldItalicFont=CoreSansA65It.ttf",
123+
]
124+
sansfont = "CoreSansA45.ttf"
125+
sansfontoptions = [
126+
"BoldFont=CoreSansA65.ttf",
127+
"ItalicFont=CoreSansA45It.ttf",
128+
"BoldItalicFont=CoreSansA65It.ttf",
129+
]
121130
monofont = "Noto Sans Mono"
122131
mainfontfallback = ["Noto Color Emoji:mode=harf"]
123132
sansfontfallback = ["Noto Color Emoji:mode=harf"]
124133
monofontfallback = [
125134
"Noto Color Emoji:mode=harf",
126135
]
127-
linkcolor = "blue"
128-
urlcolor = "blue"
136+
linkcolor = "Links"
137+
urlcolor = "Links"
129138
urlstyle = "rm"

0 commit comments

Comments
 (0)