Skip to content

Commit 905b7f9

Browse files
longye-tianmmcky
andauthored
[general] remark_admonition + upgrade sphinx-proof and quantecon-book-theme (#493)
* [geom_series] remark_admonition Dear John, This pull request is for #442. I use the geom_series.md lecture as an example to test the current admonition style. Best, Longye * TST: install main branch version of sphinx-proof * test with new css definition * test the new css styling for remark * test updated quantecon-book-theme * upgrade quantecon-book-theme==0.7.2 * update branch until released for sphinx-proof * enable sphinx-proof==0.2.0 * update software for collab testing * remark_money_inflation Add remark admonition for money_inflation.md * remark_unpleasent Add remark admonition to unpleasent.md * remark_money_inflation_nonlinear Add remark admonition for money_inflation_nonlinear.md --------- Co-authored-by: mmcky <[email protected]> Co-authored-by: Matt McKay <[email protected]>
1 parent 1e15713 commit 905b7f9

File tree

7 files changed

+25
-9
lines changed

7 files changed

+25
-9
lines changed

Diff for: .github/workflows/collab.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install Build Software
3131
shell: bash -l {0}
3232
run: |
33-
pip install jupyter-book==0.15.1 docutils==0.17.1 quantecon-book-theme==0.7.1 sphinx-tojupyter==0.3.0 sphinxext-rediraffe==0.2.7 sphinx-exercise==0.4.1 sphinxcontrib-youtube==1.1.0 sphinx-togglebutton==0.3.1 arviz==0.13.0 sphinx_proof==0.1.3 sphinx_reredirects==0.1.3
33+
pip install jupyter-book==0.15.1 docutils==0.17.1 quantecon-book-theme==0.7.2 sphinx-tojupyter==0.3.0 sphinxext-rediraffe==0.2.7 sphinx-exercise==0.4.1 sphinxcontrib-youtube==1.1.0 sphinx-togglebutton==0.3.1 arviz==0.13.0 sphinx_proof==0.2.0 sphinx_reredirects==0.1.3
3434
# Build of HTML (Execution Testing)
3535
- name: Build HTML
3636
shell: bash -l {0}

Diff for: environment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ dependencies:
99
- pip:
1010
- jupyter-book==0.15.1
1111
- docutils==0.17.1
12-
- quantecon-book-theme==0.7.1
12+
- quantecon-book-theme==0.7.2
1313
- sphinx-tojupyter==0.3.0
1414
- sphinxext-rediraffe==0.2.7
1515
- sphinx-exercise==0.4.1
16-
- sphinx-proof==0.1.3
16+
- sphinx-proof==0.2.0
1717
- ghp-import==1.1.0
1818
- sphinxcontrib-youtube==1.1.0
1919
- sphinx-togglebutton==0.3.1

Diff for: lectures/_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ sphinx:
4545
width: 80%
4646
nb_code_prompt_show: "Show {type}"
4747
suppress_warnings: [mystnb.unknown_mime_type, myst.domains]
48+
proof_minimal_theme: true
4849
# -------------
4950
html_js_files:
5051
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js

Diff for: lectures/geom_series.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,12 @@ $$
105105
1 + c + c^2 + c^3 + \cdots + c^T = \frac{1 - c^{T+1}}{1-c}
106106
$$
107107

108-
**Remark:** The above formula works for any value of the scalar
108+
```{prf:remark}
109+
:label: geom_formula
110+
The above formula works for any value of the scalar
109111
$c$. We don't have to restrict $c$ to be in the
110112
set $(-1,1)$.
113+
```
111114

112115
We now move on to describe some famous economic applications of
113116
geometric series.

Diff for: lectures/money_inflation.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -385,13 +385,21 @@ m_t & = b_{t-1} p_t
385385
\end{aligned}
386386
$$ (eq:method1)
387387
388-
**Remark 1:** method 1 uses an indirect approach to computing an equilibrium by first computing an equilibrium $\{R_t, b_t\}_{t=0}^\infty$ sequence and then using it to back out an equilibrium $\{p_t, m_t\}_{t=0}^\infty$ sequence.
389-
388+
```{prf:remark}
389+
:label: method_1
390+
Method 1 uses an indirect approach to computing an equilibrium by first computing an equilibrium $\{R_t, b_t\}_{t=0}^\infty$ sequence and then using it to back out an equilibrium $\{p_t, m_t\}_{t=0}^\infty$ sequence.
391+
```
390392
391-
**Remark 2:** notice that method 1 starts by picking an **initial condition** $R_0$ from a set $[\frac{\gamma_2}{\gamma_1}, R_u]$. Equilibrium $\{p_t, m_t\}_{t=0}^\infty$ sequences are not unique. There is actually a continuum of equilibria indexed by a choice of $R_0$ from the set $[\frac{\gamma_2}{\gamma_1}, R_u]$.
393+
```{prf:remark}
394+
:label: initial_condition
395+
Notice that method 1 starts by picking an **initial condition** $R_0$ from a set $[\frac{\gamma_2}{\gamma_1}, R_u]$. Equilibrium $\{p_t, m_t\}_{t=0}^\infty$ sequences are not unique. There is actually a continuum of equilibria indexed by a choice of $R_0$ from the set $[\frac{\gamma_2}{\gamma_1}, R_u]$.
396+
```
392397
393-
**Remark 3:** associated with each selection of $R_0$ there is a unique $p_0$ described by
398+
```{prf:remark}
399+
:label: unique_selection
400+
Associated with each selection of $R_0$ there is a unique $p_0$ described by
394401
equation {eq}`eq:p0fromR0`.
402+
```
395403
396404
### Method 2
397405

Diff for: lectures/money_inflation_nonlinear.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ $$ (eq:msupply)
6868
6969
where $g$ is the part of government expenditures financed by printing money.
7070
71-
**Remark:** Please notice that while equation {eq}`eq:mdemand` is linear in logs of the money supply and price level, equation {eq}`eq:msupply` is linear in levels. This will require adapting the equilibrium computation methods that we deployed in {doc}`money_inflation`.
71+
```{prf:remark}
72+
:label: linear_log
73+
Please notice that while equation {eq}`eq:mdemand` is linear in logs of the money supply and price level, equation {eq}`eq:msupply` is linear in levels. This will require adapting the equilibrium computation methods that we deployed in {doc}`money_inflation`.
74+
```
7275
7376
7477

Diff for: lectures/unpleasant.md

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ p_T = \frac{m_0}{\gamma_1 - \overline g - \gamma_2 R_u^{-1}} = \gamma_1^{-1}
241241
$$ (eq:pTformula)
242242
243243
```{prf:remark}
244+
:label: equivalence
244245
We can verify the equivalence of the two formulas on the right sides of {eq}`eq:pTformula` by recalling that
245246
$R_u$ is a root of the quadratic equation {eq}`eq:up_steadyquadratic` that determines steady state rates of return on currency.
246247
```

0 commit comments

Comments
 (0)