Skip to content

Commit 06e32e7

Browse files
authored
Upgrade sphinx-tojupyter to 0.5.0 with LaTeX Macros Support (#146)
* test: Install sphinx-tojupyter feat/latex-macros-support branch for testing * config: Update _config.yml with sphinx-tojupyter settings and 2-space indentation * deps: Upgrade sphinx-tojupyter to 0.5.0 with LaTeX macros support
1 parent 059c3c3 commit 06e32e7

File tree

2 files changed

+56
-42
lines changed

2 files changed

+56
-42
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- pip:
99
- jupyter-book==1.0.4post1
1010
- quantecon-book-theme==0.10.0
11-
- sphinx-tojupyter==0.4.0
11+
- sphinx-tojupyter==0.5.0
1212
- sphinx-proof==0.3.0
1313
- sphinxext-rediraffe==0.2.7
1414
- sphinx-exercise==1.2.1

lectures/_config.yml

Lines changed: 55 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,51 +5,65 @@ logo: _static/qe-logo-large.png
55
description: These lectures provides a short introduction to continuous time Markov chains designed and written by Thomas J. Sargent and John Stachurski.
66

77
sphinx:
8-
config:
9-
html_theme: quantecon_book_theme
10-
html_theme_options:
11-
header_organisation_url: https://quantecon.org
12-
header_organisation: QuantEcon
13-
repository_url: https://github.com/jstac/continuous_time_mcs
14-
# nb_repository_url: https://github.com/QuantEcon/lecture-python.notebooks
15-
twitter: quantecon
16-
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
17-
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
18-
description: These lectures provides a short introduction to continuous time Markov chains designed and written by Thomas J. Sargent and John Stachurski.
19-
keywords: Python, QuantEcon, Quantitative Economics, Economics, John Stachurski, Schmidt Futures, Markov Chains
20-
analytics:
21-
google_analytics_id: G-MVZ2FSB14W
22-
bibtex_reference_style: author_year
23-
mathjax3_config:
24-
tex:
25-
macros:
26-
"Exp" : "\\operatorname{Exp}"
27-
"Binomial" : "\\operatorname{Binomial}"
28-
"Poisson" : "\\operatorname{Poisson}"
29-
"BB" : "\\mathbb{B}"
30-
"EE" : "\\mathbb{E}"
31-
"PP" : "\\mathbb{P}"
32-
"RR" : "\\mathbb{R}"
33-
"NN" : "\\mathbb{N}"
34-
"ZZ" : "\\mathbb{Z}"
35-
"dD" : "\\mathcal{D}"
36-
"fF" : "\\mathcal{F}"
37-
"lL" : "\\mathcal{L}"
38-
"linop" : "\\mathcal{L}(\\mathbb{B})"
39-
"linopell" : "\\mathcal{L}(\\ell_1)"
8+
config:
9+
html_theme: quantecon_book_theme
10+
html_theme_options:
11+
header_organisation_url: https://quantecon.org
12+
header_organisation: QuantEcon
13+
repository_url: https://github.com/jstac/continuous_time_mcs
14+
# nb_repository_url: https://github.com/QuantEcon/lecture-python.notebooks
15+
twitter: quantecon
16+
twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png
17+
og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png
18+
description: These lectures provides a short introduction to continuous time Markov chains designed and written by Thomas J. Sargent and John Stachurski.
19+
keywords: Python, QuantEcon, Quantitative Economics, Economics, John Stachurski, Schmidt Futures, Markov Chains
20+
analytics:
21+
google_analytics_id: G-MVZ2FSB14W
22+
bibtex_reference_style: author_year
23+
mathjax3_config:
24+
tex:
25+
macros:
26+
"Exp" : "\\operatorname{Exp}"
27+
"Binomial" : "\\operatorname{Binomial}"
28+
"Poisson" : "\\operatorname{Poisson}"
29+
"BB" : "\\mathbb{B}"
30+
"EE" : "\\mathbb{E}"
31+
"PP" : "\\mathbb{P}"
32+
"RR" : "\\mathbb{R}"
33+
"NN" : "\\mathbb{N}"
34+
"ZZ" : "\\mathbb{Z}"
35+
"dD" : "\\mathcal{D}"
36+
"fF" : "\\mathcal{F}"
37+
"lL" : "\\mathcal{L}"
38+
"linop" : "\\mathcal{L}(\\mathbb{B})"
39+
"linopell" : "\\mathcal{L}(\\ell_1)"
40+
# sphinx-tojupyter
41+
tojupyter_static_file_path: ["_static"]
42+
tojupyter_target_html: true
43+
tojupyter_urlpath: "https://continuous-time-mcs.quantecon.org/"
44+
tojupyter_image_urlpath: "https://continuous-time-mcs.quantecon.org/_static/"
45+
tojupyter_lang_synonyms: ["ipython", "ipython3", "python"]
46+
tojupyter_kernels:
47+
python3:
48+
kernelspec:
49+
display_name: "Python"
50+
language: python3
51+
name: python3
52+
file_extension: ".py"
53+
tojupyter_images_markdown: true
4054

41-
extra_extensions:
42-
- sphinx_proof
43-
- sphinx_exercise
44-
- sphinx_tojupyter
55+
extra_extensions:
56+
- sphinx_proof
57+
- sphinx_exercise
58+
- sphinx_tojupyter
4559

4660
execute:
47-
execute_notebooks: cache
61+
execute_notebooks: cache
4862

4963
latex:
50-
latex_engine: "xelatex"
51-
latex_documents:
52-
targetname: book.tex
64+
latex_engine: "xelatex"
65+
latex_documents:
66+
targetname: book.tex
5367

5468
bibtex_bibfiles:
55-
- references.bib
69+
- references.bib

0 commit comments

Comments
 (0)