Cheatsheet#
Citations#
[Seigel, 1959] did something great
Evaluate code#
import pygimli as pg
mesh = pg.createGrid(20,5)
data = pg.x(mesh)
pg.show(mesh, data)
(<Axes: xlabel='$x$ in m', ylabel='$y$ in m'>,
<matplotlib.colorbar.Colorbar at 0x14a461ad4110>)
Some Markdown features#
Math#
Since Pythagoras, we know that \(a^2 + b^2 = c^2\)
(1)#\[\begin{split}
(a + b)^2 = (a + b)(a + b) \\
= a^2 + 2ab + b^2
\end{split}\]
The equation {eq}“mymath2” is also a quadratic equation.
Custom latex macros#
Some custom latex macros inspired by physics latex package:
Macro |
Output |
|---|---|
\order{h^{2}} |
\(\order{h^{2}}\) |
\vb{v} |
\(\vb{v}\) |
\grad{u} |
\(\grad{u}\) |
\div{\vb{v}} |
\(\div{\vb{v}}\) |
\curl{\vb{v}} |
\(\curl{\vb{v}}\) |
\laplacian{u} |
\(\laplacian{u}\) |
\sin(x) |
\(\sin(x)\) |
\dd x |
\(\dd x\) |
Some text-like stuff!
Here’s my title
Here’s my admonition content.
Tables#
foo |
bar |
|---|---|
baz |
bim |
Typography#
strong, emphasis, literal text, *escaped symbols*
Footnotes#
A longer footnote definition.[1]
This is not part of the footnote.
Cards#
Header
Card Title
Card content
Tabs#
Content 1
Content 2