-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.yml
109 lines (99 loc) · 4.1 KB
/
_config.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
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
#######################################################################################
# A default configuration that will be loaded for all jupyter books
# See the documentation for help and more options:
# https://jupyterbook.org/customize/config.html
#######################################################################################
# Book settings
title : EMD-falsify # The title of the book. Will be placed in the left navbar.
author : Alexandre René # The author of the book
copyright : "2023" # Copyright year to be placed in the footer
logo : "" # A path to the book logo
exclude_patterns : [_build, Thumbs.db, .DS_Store, "**.ipynb_checkpoints", ".*", "**.egg-info", "*.mypy_cache", "**__pycache__", "**/.pytest_cache",
".jupyter", ".jupyter_cache", "build/**",
"**purgatory", "**.smt"]
# Force re-execution of notebooks on each build.
# See https://jupyterbook.org/content/execute.html
execute:
execute_notebooks: cache
cache : ".jupyter_cache"
exclude_patterns : ["**purgatory",
"tasks.md", # Not executable as a notebook (Task is split over multiple cells)
]
# Define the name of the latex output file for PDF builds
latex:
latex_documents:
targetname: emd-falsify.tex
# Parse and render settings
parse:
myst_enable_extensions: # default extensions to enable in the myst parser. See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
- amsmath
- colon_fence
- deflist
- dollarmath
# - html_admonition
- html_image
- linkify
- replacements
# - smartquotes
- substitution
- tasklist
myst_url_schemes: [mailto, http, https] # URI schemes that will be recognised as external URLs in Markdown links
myst_dmath_double_inline: true # Allow display math ($$) within an inline context
myst_linkify_fuzzy_links: false
myst_dmath_allow_labels: true
myst_heading_anchors: 2
myst_substitutions:
prolog: |
```{role} raw-latex(raw)
:format: latex
```
```{role} raw-html(raw)
:format: html
```
# Add a bibtex file so that we can create citations
bibtex_bibfiles:
- references.bib
# Information about where the book exists on the web
repository:
url: https://github.com/alcrene/emd-falsify # Online location of your book
path_to_book: docs # Optional path to your book, relative to the repository root
branch: main # Which branch of the repository should be used when creating links (optional)
# Add GitHub buttons to your book
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
use_issues_button: true
use_repository_button: true
# Sphinx options
sphinx:
config:
mathjax3_config:
# The `mtext` font is used for non-math symbols, like the content of `\text` commands.
# By inheriting this font, we ensure that textual elements in equations use the same font
# as the main text of our book. Otherwise text is rendered in the TeX Serif font, which looks out of place on a web page with sans serif.
# NB: Not just the font family, but the actual font is matched.
chtml:
mtextInheritFont: true
svg:
mtextInheritFont: true
tex:
macros:
"nN" : "\\mathcal{N}"
"RR" : "\\mathbb{R}"
"EE" : "{\\mathbb{E}}"
"VV" : "{\\mathbb{V}}"
"Unif" : "\\mathop{\\mathrm{Unif}}"
"Beta" : "{\\mathop{\\mathrm{Beta}}}"
# emd.md
"D" : "\\mathcal{D}"
"l" : "l"
"Me" : "\\mathcal{M}^ε"
"Philt" : ["\\widetilde{Φ}_{|#1}", 1]
"Bemd" : ["B_{#1}^{\\mathrm{EMD}}", 1]
"Bconf" : ["B^{\\mathrm{conf}}_{#1}", 1]
# path_sampling.md
"lnLtt": "{q^*}"
"Mvar" : "{\\mathop{\\mathrm{Mvar}}}"
"pathP": "{\\mathop{\\mathfrak{Q}}}"
"lnLh" : "{\\hat{q}}"
"emdstd": "{\\sqrt{c} δ^{\\mathrm{EMD}}}"
"EMD" : "{\\mathrm{EMD}}"