@@ -28,29 +28,40 @@ show-hidden-lines = true
|
||||
[output.pandoc.profile.pdf] # options to pass to Pandoc (see https://pandoc.org/MANUAL.html)
|
||||
output-file = "100-exercises-to-learn-rust.pdf"
|
||||
to = "latex"
|
||||
highlight-style = "tango"
|
||||
highlight-style = "./custom.theme"
|
||||
# We use `lualatext` because, right now, it's the only engine
|
||||
# that supports fallback fonts, which we need for emojis.
|
||||
pdf-engine = "lualatex"
|
||||
metadata-file = "metadata.yml"
|
||||
|
||||
[output.pandoc.profile.pdf.variables]
|
||||
mainfont = "CoreSansA45.ttf"
|
||||
mainfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
sansfont = "CoreSansA45.ttf"
|
||||
sansfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
|
||||
mainfont = "Noto Serif"
|
||||
sansfont = "Noto Sans"
|
||||
monofont = "Noto Sans Mono"
|
||||
mainfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
sansfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
monofontfallback = [
|
||||
"Noto Color Emoji:mode=harf",
|
||||
]
|
||||
linkcolor = "blue"
|
||||
urlcolor = "blue"
|
||||
linkcolor = "Links"
|
||||
urlcolor = "Links"
|
||||
urlstyle = "rm"
|
||||
documentclass = "book"
|
||||
fontsize = "11pt"
|
||||
fontsize = "10pt"
|
||||
geometry = "papersize={8in,10in},top=2cm,bottom=2cm,left=2.4cm,right=2.4cm"
|
||||
header-includes = [
|
||||
"\\definecolor{Links}{HTML}{6200EE}",
|
||||
# Reduce font size of code blocks
|
||||
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
|
||||
]
|
||||
@@ -65,20 +76,33 @@ metadata-file = "metadata.yml"
|
||||
pdf-engine = "lualatex"
|
||||
|
||||
[output.pandoc.profile.paperback.variables]
|
||||
mainfont = "CoreSansA45.ttf"
|
||||
mainfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
sansfont = "CoreSansA45.ttf"
|
||||
sansfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
|
||||
mainfont = "Noto Serif"
|
||||
sansfont = "Noto Sans"
|
||||
monofont = "Noto Sans Mono"
|
||||
mainfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
sansfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
monofontfallback = [
|
||||
"Noto Color Emoji:mode=harf",
|
||||
]
|
||||
linkcolor = "Links"
|
||||
urlcolor = "Links"
|
||||
urlstyle = "rm"
|
||||
documentclass = "book"
|
||||
fontsize = "11pt"
|
||||
fontsize = "10pt"
|
||||
geometry = "papersize={8in,10in},top=2cm,bottom=2cm,left=2.8cm,right=2.5cm"
|
||||
header-includes = [
|
||||
"\\definecolor{Links}{HTML}{6200EE}",
|
||||
# Reduce font size of code blocks
|
||||
"\\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\\\\{\\},fontsize=\\small}",
|
||||
]
|
||||
@@ -95,15 +119,25 @@ standalone = true
|
||||
metadata-file = "metadata.yml"
|
||||
|
||||
[output.pandoc.profile.html.variables]
|
||||
mainfont = "CoreSansA45.ttf"
|
||||
mainfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
sansfont = "CoreSansA45.ttf"
|
||||
sansfontoptions = [
|
||||
"BoldFont=CoreSansA65.ttf",
|
||||
"ItalicFont=CoreSansA45It.ttf",
|
||||
"BoldItalicFont=CoreSansA65It.ttf",
|
||||
]
|
||||
# You can get these fonts here: https://fonts.google.com/selection?query=noto+color+
|
||||
mainfont = "Noto Serif"
|
||||
sansfont = "Noto Sans"
|
||||
monofont = "Noto Sans Mono"
|
||||
mainfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
sansfontfallback = ["Noto Color Emoji:mode=harf"]
|
||||
monofontfallback = [
|
||||
"Noto Color Emoji:mode=harf",
|
||||
]
|
||||
linkcolor = "blue"
|
||||
urlcolor = "blue"
|
||||
linkcolor = "Links"
|
||||
urlcolor = "Links"
|
||||
urlstyle = "rm"
|
||||
|
||||
Reference in New Issue
Block a user