Skip to content
Snippets Groups Projects
Commit 019cf0c4 authored by Timon Idema's avatar Timon Idema
Browse files

Added index (auto-generated).

parent c1e3325a
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ parts: ...@@ -9,6 +9,7 @@ parts:
chapters: chapters:
- file: content/markdown - file: content/markdown
- file: content/interactivemarkdown - file: content/interactivemarkdown
- file: content/testfile
- file: content/jupyterquiz.md - file: content/jupyterquiz.md
- caption: Demonstrating Jupyter notebooks - caption: Demonstrating Jupyter notebooks
numbered: True numbered: True
...@@ -18,5 +19,7 @@ parts: ...@@ -18,5 +19,7 @@ parts:
numbered: True numbered: True
chapters: chapters:
- file: content/git - file: content/git
- caption: Index
chapters:
- file: genindex
\ No newline at end of file
File added
File added
...@@ -14,12 +14,15 @@ kernelspec: ...@@ -14,12 +14,15 @@ kernelspec:
## Plots ## Plots
In a printed book, graphs can be included as figures. We can do the same in an online book, but we can also do much more. The simplest extension is to not create a figure file which we include, but to create the figure from code. The upshot of this approach is that students can go in and see how the figure is made. For example, {numref}`fig:free_energy_density` below shows the van der Waals free energy density, In a printed book, graphs can be included as figures. We can do the same in an online book, but we can also do much more. The simplest extension is to not create a figure file which we include, but to create the figure from code. The upshot of this approach is that students can go in and see how the figure is made. For example, {numref}`fig:free_energy_density` below shows the van der Waals free energy density,
```{index} Van der Waals free energy density
```
$$ $$
f_\mathrm{VdW}(\rho) = k_\mathrm{B} T \rho \left[\ln\left(\frac{\rho}{1-b \rho}\right) - 1\right] - a \rho^2, f_\mathrm{VdW}(\rho) = k_\mathrm{B} T \rho \left[\ln\left(\frac{\rho}{1-b \rho}\right) - 1\right] - a \rho^2,
$$ (VdWfreeenergydensity) $$ (VdWfreeenergydensity)
combined with the common tangent construction to obtain the densities of coexisting phases. combined with the common tangent construction to obtain the densities of coexisting phases.
```{index} common tangent construction.
```
```{code-cell} ipython3 ```{code-cell} ipython3
:tags: [hide-input, remove-output] :tags: [hide-input, remove-output]
...@@ -142,6 +145,9 @@ line with the same slope. ...@@ -142,6 +145,9 @@ line with the same slope.
## Interactive plots ## Interactive plots
```{index} interactive plots
```
We can make the plot in {numref}`fig:free_energy_density` even more useful by making it interactive, letting students see how the plot changes if we change a parameter, *without* having to dive in the code. The interactive version is shown in the figure below. We can make the plot in {numref}`fig:free_energy_density` even more useful by making it interactive, letting students see how the plot changes if we change a parameter, *without* having to dive in the code. The interactive version is shown in the figure below.
```{code-cell} ipython3 ```{code-cell} ipython3
......
This diff is collapsed.
# Index
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment