forked from leovan/quarto-pseudocode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_quarto.yml
58 lines (54 loc) · 1.52 KB
/
_quarto.yml
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
project:
type: book
book:
title: "Quarto Pseudocode Extension Book Example"
author: "范叶亮 | Leo Van"
chapters:
- index.qmd
- 01-introduction.qmd
- 02-examples.qmd
filters:
- pseudocode
link-citations: true
format:
html:
include-in-header:
text: |
<script>
MathJax = {
loader: {
load: ['[tex]/boldsymbol']
},
tex: {
tags: "all",
inlineMath: [['$','$'], ['\\(','\\)']],
displayMath: [['$$','$$'], ['\\[','\\]']],
processEscapes: true,
processEnvironments: true,
packages: {
'[+]': ['boldsymbol']
}
}
};
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
pdf:
include-in-header:
text: |
\usepackage{xeCJK}
include-before-body:
text: |
\renewcommand{\Return}{\State \textbf{return}~}
\newcommand{\Print}{\State \textbf{print}~}
\newcommand{\Break}{\State \textbf{break}}
\newcommand{\Continue}{\State \textbf{continue}}
\newcommand{\True}{\textbf{true}}
\newcommand{\False}{\textbf{false}}
\renewcommand{\And}{\textbf{and}~}
\newcommand{\Or}{\textbf{or}~}
\renewcommand{\Not}{\textbf{not}~}
\newcommand{\To}{\textbf{to}~}
\newcommand{\DownTo}{\textbf{downto}~}
\numberwithin{algorithm}{chapter}
pdf-engine: xelatex
toc-depth: 2