66 title : " Finite Difference Computing with PDEs"
77 subtitle : " A Devito Approach"
88 author :
9- - name : Hans Petter Langtangen
10- - name : Svein Linge
9+ - name : Gerard J. Gorman
10+ affiliation : Imperial College London
1111 date : today
1212 chapters :
1313 - index.qmd
1414 - chapters/preface/index.qmd
15+ # Note: chapters/vib/ exists on disk but is excluded from the build.
16+ # The vibration ODE content from the original Langtangen & Linge text
17+ # has not yet been ported to the Devito approach. Readers interested
18+ # in vibration ODEs can refer to Langtangen_deqbook_vib in the bibliography.
1519 - part : " Main Chapters"
1620 chapters :
1721 - chapters/devito_intro/index.qmd
1822 - chapters/wave/index.qmd
1923 - chapters/diffu/index.qmd
2024 - chapters/advec/index.qmd
2125 - chapters/nonlin/index.qmd
26+ - chapters/elliptic/index.qmd
27+ - chapters/systems/index.qmd
28+ - part : " Applications"
29+ chapters :
30+ - chapters/applications/electromagnetics/index.qmd
2231 - part : " Appendices"
2332 chapters :
2433 - chapters/appendices/formulas/index.qmd
@@ -39,6 +48,86 @@ format:
3948 number-depth : 3
4049 crossref :
4150 chapters : true
51+ include-in-header :
52+ text : |
53+ <script>
54+ MathJax = {
55+ tex: {
56+ macros: {
57+ half: "\\frac{1}{2}",
58+ halfi: "{1/2}",
59+ tp: "\\thinspace .",
60+ Ddt: ["\\frac{D #1}{dt}", 1],
61+ E: ["\\text{E}\\lbrack #1 \\rbrack", 1],
62+ Var: ["\\text{Var}\\lbrack #1 \\rbrack", 1],
63+ Std: ["\\text{Std}\\lbrack #1 \\rbrack", 1],
64+ xpoint: "\\boldsymbol{x}",
65+ normalvec: "\\boldsymbol{n}",
66+ Oof: ["\\mathcal{O}(#1)", 1],
67+ x: "\\boldsymbol{x}",
68+ X: "\\boldsymbol{X}",
69+ uu: "\\boldsymbol{u}",
70+ vv: "\\boldsymbol{v}",
71+ w: "\\boldsymbol{w}",
72+ acc: "\\boldsymbol{a}",
73+ rpos: "\\boldsymbol{r}",
74+ V: "\\boldsymbol{V}",
75+ e: "\\boldsymbol{e}",
76+ f: "\\boldsymbol{f}",
77+ F: "\\boldsymbol{F}",
78+ stress: "\\boldsymbol{\\sigma}",
79+ strain: "\\boldsymbol{\\varepsilon}",
80+ stressc: "{\\sigma}",
81+ strainc: "{\\varepsilon}",
82+ I: "\\boldsymbol{I}",
83+ T: "\\boldsymbol{T}",
84+ U: "\\boldsymbol{U}",
85+ q: "\\boldsymbol{q}",
86+ g: "\\boldsymbol{g}",
87+ dfc: "\\alpha",
88+ ii: "\\boldsymbol{i}",
89+ jj: "\\boldsymbol{j}",
90+ kk: "\\boldsymbol{k}",
91+ ir: "\\boldsymbol{i}_r",
92+ ith: "\\boldsymbol{i}_{\\theta}",
93+ iz: "\\boldsymbol{i}_z",
94+ Ix: "\\mathcal{I}_x",
95+ It: "\\mathcal{I}_y",
96+ Iz: "\\mathcal{I}_z",
97+ It: "\\mathcal{I}_t",
98+ If: "\\mathcal{I}_s",
99+ Ifd: "{I_d}",
100+ Ifb: "{I_b}",
101+ setb: ["#1^0", 1],
102+ sete: ["#1^{-1}", 1],
103+ setl: ["#1^-", 1],
104+ setr: ["#1^+", 1],
105+ seti: ["#1^i", 1],
106+ sequencei: ["\\left\\{ {#1}_i \\right\\}_{i\\in\\If}", 1],
107+ sequencej: ["\\left\\{ {#1}_j \\right\\}_{j\\in\\If}", 1],
108+ stepzero: "*",
109+ stephalf: "***",
110+ stepone: "**",
111+ basphi: "\\varphi",
112+ baspsi: "\\psi",
113+ refphi: "\\tilde\\basphi",
114+ psib: "\\boldsymbol{\\psi}",
115+ sinL: ["\\sin\\left((#1+1)\\pi\\frac{x}{L}\\right)", 1],
116+ xno: ["x_{#1}", 1],
117+ Xno: ["X_{(#1)}", 1],
118+ yno: ["y_{#1}", 1],
119+ Yno: ["Y_{(#1)}", 1],
120+ xdno: ["\\boldsymbol{x}_{#1}", 1],
121+ dX: "\\, \\mathrm{d}X",
122+ dx: "\\, \\mathrm{d}x",
123+ ds: "\\, \\mathrm{d}s",
124+ Real: "\\mathbb{R}",
125+ Integerp: "\\mathbb{N}",
126+ Integer: "\\mathbb{Z}"
127+ }
128+ }
129+ };
130+ </script>
42131 pdf :
43132 documentclass : scrbook
44133 classoption :
@@ -63,26 +152,20 @@ format:
63152 \SetWatermarkColor[gray]{0.9}
64153
65154 % Required packages
155+ \usepackage[T1]{fontenc} % Proper glyph support for accents and symbols
156+ \usepackage{textcomp} % Additional text symbols
66157 \usepackage{bm} % For bold math symbols
67158
68159 % Custom LaTeX macros from the book
69160 \newcommand{\half}{\frac{1}{2}}
70161 \newcommand{\halfi}{{1/2}}
71162 \newcommand{\tp}{\thinspace .}
72163
73- \newcommand{\uex}{u_{\mbox{\footnotesize e}}}
74- \newcommand{\uexd}[1]{u_{\mbox{\footnotesize e}, #1}}
75- \newcommand{\vex}{v_{\mbox{\footnotesize e}}}
76- \newcommand{\Vex}{V_{\mbox{\footnotesize e}}}
77- \newcommand{\vexd}[1]{v_{\mbox{\footnotesize e}, #1}}
78- \newcommand{\Aex}{A_{\mbox{\footnotesize e}}}
79- \newcommand{\wex}{w_{\mbox{\footnotesize e}}}
80-
81164 % Operators
82165 \newcommand{\Ddt}[1]{\frac{D #1}{dt}}
83- \newcommand{\E}[1]{\hbox {E}\lbrack #1 \rbrack}
84- \newcommand{\Var}[1]{\hbox {Var}\lbrack #1 \rbrack}
85- \newcommand{\Std}[1]{\hbox {Std}\lbrack #1 \rbrack}
166+ \newcommand{\E}[1]{\text {E}\lbrack #1 \rbrack}
167+ \newcommand{\Var}[1]{\text {Var}\lbrack #1 \rbrack}
168+ \newcommand{\Std}[1]{\text {Std}\lbrack #1 \rbrack}
86169
87170 \newcommand{\xpoint}{\bm{x}}
88171 \newcommand{\normalvec}{\bm{n}}
@@ -169,8 +252,11 @@ src_diffu: "https://github.com/devitocodes/devito_book/tree/devito/src/diffu"
169252src_nonlin : " https://github.com/devitocodes/devito_book/tree/devito/src/nonlin"
170253src_trunc : " https://github.com/devitocodes/devito_book/tree/devito/src/trunc"
171254src_advec : " https://github.com/devitocodes/devito_book/tree/devito/src/advec"
255+ src_elliptic : " https://github.com/devitocodes/devito_book/tree/devito/src/elliptic"
256+ src_systems : " https://github.com/devitocodes/devito_book/tree/devito/src/systems"
172257src_formulas : " https://github.com/devitocodes/devito_book/tree/devito/src/formulas"
173258src_softeng2 : " https://github.com/devitocodes/devito_book/tree/devito/src/softeng2"
259+ src_em : " https://github.com/devitocodes/devito_book/tree/devito/src/em"
174260
175261crossref :
176262 eq-prefix : " "
0 commit comments