-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path_quarto.yml
More file actions
184 lines (168 loc) · 5.98 KB
/
_quarto.yml
File metadata and controls
184 lines (168 loc) · 5.98 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
project:
type: book
output-dir: _book
book:
title: "Finite Difference Computing with PDEs"
subtitle: "A Devito Approach"
author:
- name: Gerard J. Gorman
affiliation: Imperial College London
date: today
chapters:
- index.qmd
- chapters/preface/index.qmd
- part: "Main Chapters"
chapters:
- chapters/devito_intro/index.qmd
- chapters/wave/index.qmd
- chapters/diffu/index.qmd
- chapters/advec/index.qmd
- chapters/nonlin/index.qmd
- chapters/elliptic/index.qmd
- chapters/systems/index.qmd
- part: "Appendices"
chapters:
- chapters/appendices/formulas/index.qmd
- chapters/appendices/trunc/index.qmd
- chapters/appendices/softeng2/index.qmd
repo-url: https://github.com/devitocodes/devito_book
site-url: https://devitocodes.github.io/devito_book
bibliography: references.bib
format:
html:
theme: cosmo
css: styles/draft.css
code-fold: false
toc: true
number-sections: true
number-depth: 3
crossref:
chapters: true
pdf:
documentclass: scrbook
classoption:
- oneside
- open=any
papersize: letter
toc: true
number-sections: true
number-depth: 3
colorlinks: true
default-image-extension: png
pdf-engine: pdflatex
keep-tex: true
geometry:
- margin=1in
include-in-header:
text: |
% Draft watermark
\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkScale{1}
\SetWatermarkColor[gray]{0.9}
% Required packages
\usepackage{bm} % For bold math symbols
% Custom LaTeX macros from the book
\newcommand{\half}{\frac{1}{2}}
\newcommand{\halfi}{{1/2}}
\newcommand{\tp}{\thinspace .}
\newcommand{\uex}{u_{\mbox{\footnotesize e}}}
\newcommand{\uexd}[1]{u_{\mbox{\footnotesize e}, #1}}
\newcommand{\vex}{v_{\mbox{\footnotesize e}}}
\newcommand{\Vex}{V_{\mbox{\footnotesize e}}}
\newcommand{\vexd}[1]{v_{\mbox{\footnotesize e}, #1}}
\newcommand{\Aex}{A_{\mbox{\footnotesize e}}}
\newcommand{\wex}{w_{\mbox{\footnotesize e}}}
% Operators
\newcommand{\Ddt}[1]{\frac{D #1}{dt}}
\newcommand{\E}[1]{\hbox{E}\lbrack #1 \rbrack}
\newcommand{\Var}[1]{\hbox{Var}\lbrack #1 \rbrack}
\newcommand{\Std}[1]{\hbox{Std}\lbrack #1 \rbrack}
\newcommand{\xpoint}{\bm{x}}
\newcommand{\normalvec}{\bm{n}}
\newcommand{\Oof}[1]{\mathcal{O}(#1)}
% Boldface vectors/tensors
\newcommand{\x}{\bm{x}}
\newcommand{\X}{\bm{X}}
\newcommand{\uu}{\bm{u}}
\newcommand{\vv}{\bm{v}}
\newcommand{\w}{\bm{w}}
\newcommand{\acc}{\bm{a}}
\newcommand{\rpos}{\bm{r}}
\newcommand{\V}{\bm{V}}
\newcommand{\e}{\bm{e}}
\newcommand{\f}{\bm{f}}
\newcommand{\F}{\bm{F}}
\newcommand{\stress}{\bm{\sigma}}
\newcommand{\strain}{\bm{\varepsilon}}
\newcommand{\stressc}{{\sigma}}
\newcommand{\strainc}{{\varepsilon}}
\newcommand{\I}{\bm{I}}
\newcommand{\T}{\bm{T}}
\newcommand{\U}{\bm{U}}
\newcommand{\q}{\bm{q}}
\newcommand{\g}{\bm{g}}
\newcommand{\dfc}{\alpha}
% Unit vectors
\newcommand{\ii}{\bm{i}}
\newcommand{\jj}{\bm{j}}
\newcommand{\kk}{\bm{k}}
\newcommand{\ir}{\bm{i}_r}
\newcommand{\ith}{\bm{i}_{\theta}}
\newcommand{\iz}{\bm{i}_z}
% Index sets
\newcommand{\Ix}{\mathcal{I}_x}
\newcommand{\Iy}{\mathcal{I}_y}
\newcommand{\Iz}{\mathcal{I}_z}
\newcommand{\It}{\mathcal{I}_t}
\newcommand{\If}{\mathcal{I}_s}
\newcommand{\Ifd}{{I_d}}
\newcommand{\Ifb}{{I_b}}
\newcommand{\setb}[1]{#1^0}
\newcommand{\sete}[1]{#1^{-1}}
\newcommand{\setl}[1]{#1^-}
\newcommand{\setr}[1]{#1^+}
\newcommand{\seti}[1]{#1^i}
\newcommand{\sequencei}[1]{\left\{ {#1}_i \right\}_{i\in\If}}
\newcommand{\sequencej}[1]{\left\{ {#1}_j \right\}_{j\in\If}}
% Superscripts for intermediate solutions
\newcommand{\stepzero}{*}
\newcommand{\stephalf}{***}
\newcommand{\stepone}{**}
% Finite elements
\newcommand{\basphi}{\varphi}
\newcommand{\baspsi}{\psi}
\newcommand{\refphi}{\tilde\basphi}
\newcommand{\psib}{\bm{\psi}}
\newcommand{\sinL}[1]{\sin\left((#1+1)\pi\frac{x}{L}\right)}
\newcommand{\xno}[1]{x_{#1}}
\newcommand{\Xno}[1]{X_{(#1)}}
\newcommand{\yno}[1]{y_{#1}}
\newcommand{\Yno}[1]{Y_{(#1)}}
\newcommand{\xdno}[1]{\bm{x}_{#1}}
% FEniCS commands
\newcommand{\dX}{\, \mathrm{d}X}
\newcommand{\dx}{\, \mathrm{d}x}
\newcommand{\ds}{\, \mathrm{d}s}
\newcommand{\Real}{\mathbb{R}}
\newcommand{\Integerp}{\mathbb{N}}
\newcommand{\Integer}{\mathbb{Z}}
# Quarto variables
# These can be referenced as {{< var name >}} in documents
src: "https://github.com/devitocodes/devito_book/tree/devito/src"
src_vib: "https://github.com/devitocodes/devito_book/tree/devito/src/vib"
src_wave: "https://github.com/devitocodes/devito_book/tree/devito/src/wave"
src_diffu: "https://github.com/devitocodes/devito_book/tree/devito/src/diffu"
src_nonlin: "https://github.com/devitocodes/devito_book/tree/devito/src/nonlin"
src_trunc: "https://github.com/devitocodes/devito_book/tree/devito/src/trunc"
src_advec: "https://github.com/devitocodes/devito_book/tree/devito/src/advec"
src_elliptic: "https://github.com/devitocodes/devito_book/tree/devito/src/elliptic"
src_systems: "https://github.com/devitocodes/devito_book/tree/devito/src/systems"
src_formulas: "https://github.com/devitocodes/devito_book/tree/devito/src/formulas"
src_softeng2: "https://github.com/devitocodes/devito_book/tree/devito/src/softeng2"
crossref:
eq-prefix: ""
fig-prefix: "Figure"
tbl-prefix: "Table"
sec-prefix: "Section"
chapters: true