-
Notifications
You must be signed in to change notification settings - Fork 1
/
pandoc.toml
42 lines (32 loc) · 1.21 KB
/
pandoc.toml
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
[book]
title = "数据结构与算法 - Rust 语言实现"
description = ""
authors = ["Xu Shaohua <[email protected]>"]
language = "zh-CN"
[rust]
edition = "2021"
[build]
build-dir = "book-pandoc"
create-missing = false
[output.pandoc]
hosted-html = "https://algs.biofan.org"
[output.pandoc.profile.pdf]
output-file = "TheAlgorithms.pdf" # output file (within the profile's build directory)
to = "latex" # output format
# PDF-specific settings
pdf-engine = "xelatex" # engine to use to produce PDF output
# `mdbook-pandoc` overrides Pandoc's defaults for the following options to better support mdBooks
file-scope = true # parse each file individually before combining
number-sections = true # number sections headings
standalone = true # produce output with an appropriate header and footer
table-of-contents = true # include an automatically generated table of contents
[output.pandoc.profile.pdf.variables]
# To pass variables (https://pandoc.org/MANUAL.html#variables) to pandoc
#CJKmainfont = "AR PL UKai CN"
CJKmainfont = "WenQuanYi Micro Hei"
geometry = "a4paper, margin=20mm"
colorlinks = "true"
linkcolor = "blue"
urlcolor = "blue"
# adjusts line spacing using the setspace package, e.g. 1.25, 1.5
linestretch = "1.25"