mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-13 14:55:51 +00:00
Seperated recipe into multiple pages
This commit is contained in:
parent
f0115e017c
commit
1538da9e7e
8 changed files with 224 additions and 233 deletions
30
book/basic-features/equations.md
Normal file
30
book/basic-features/equations.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Equations
|
||||
|
||||
Equations can be included in two ways: inline or display mode. To make an inline equation, just put the LaTeX equation between \$-signs. For example, `$F = m \cdot a$` produces: $F = m \cdot a$.
|
||||
|
||||
Display mode equations (the ones that take up a whole line), can be inserted using double \$-signs, like this:
|
||||
|
||||
$$
|
||||
F = m \cdot a
|
||||
$$
|
||||
|
||||
which will produce:
|
||||
|
||||
$$
|
||||
F = m \cdot a
|
||||
$$
|
||||
|
||||
> **Warning**
|
||||
>
|
||||
> Make sure there is a blank line *before* the display mode equations, otherwise it will render as inline and display the outer set of $$$ symbols. Also, the Euro symbol is not included in MathJax (see note below) and must be specified using `\unicode{0x20AC}` (note that it displays incorrectly in some Markdown renderers like VS Code).
|
||||
|
||||
To number the equations and refer in text, you need to provide a label to the equation. Just put the label between brackets and place it after the last \$\$, like this:
|
||||
|
||||
$$
|
||||
F = m \cdot a
|
||||
$$ (newtons_second_law)
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> The Jupyter Book uses MathJax to display equations, which provides some LaTeX-like functionality, but not all! For example, the Euro symbol is missing, and packages like `siunitx` are not available (hint, use `\textrm{}` and `\textrm{}`). When something is not working, it's useful to search for MathJax-specific solutions (hint, include "mathjax" in your Google search).
|
||||
>
|
||||
Loading…
Add table
Add a link
Reference in a new issue