Skip to content

Instantly share code, notes, and snippets.

@bewuethr
Last active May 22, 2022 18:43
Show Gist options
  • Save bewuethr/691b4870828d7b2261113f14eef56b5f to your computer and use it in GitHub Desktop.
Save bewuethr/691b4870828d7b2261113f14eef56b5f to your computer and use it in GitHub Desktop.
Math test

Math test

Cauchy's Theorem

Let $U$ be an open subset of the complex plane $\mathbb{C}$, and suppose the closed disk $D$ defined as

$$ D = {z:|z-z_{0}|\leq r} $$

is completely contained in $U$. Let $f: U\to\mathbb{C}$ be a holomorphic function, and let $\gamma$ be the circle, oriented counterclockwise, forming the boundary of $D$. Then for every $a$ in the interior of $D$,

$$ f(a) = \frac{1}{2\pi i} \oint_{\gamma}\frac{f(z)}{z-a} dz. $$

$$ \newcommand\myexp[1]{e^{#1}} $$

$\myexp{i}$ $$\myexp{i}$$

${n\in\mathbb{N}:: n \text{even}}$

$\frac{f}{a}$

$$ a+b

  • c
$$

$$ a + b $$

$$ a < b > c $$

$$ a c $$

$(a+b)!$

  • $E = mc^2$
  • $a^2 + b^2 = c^2$

$$a = b$$

ABC $ABCXYZ$ XYZ

abc $abcxyz$ xyz

# Math test
## Cauchy's Theorem
Let $U$ be an open subset of the complex plane $\mathbb{C}$, and suppose the
closed disk $D$ defined as
$$
D = \{z:|z-z_{0}|\leq r\}
$$
is completely contained in $U$. Let $f: U\to\mathbb{C}$ be a holomorphic
function, and let $\gamma$ be the circle, oriented counterclockwise, forming
the boundary of $D$. Then for every $a$ in the interior of $D$,
$$
f(a) = \frac{1}{2\pi i} \oint_{\gamma}\frac{f(z)}{z-a} dz.
$$
$$
\newcommand\myexp[1]{e^{#1}}
$$
$\myexp{i}$
$$\myexp{i}$$
$\{n\in\mathbb{N}:\: n \text{even}\}$
&dollar;\frac{f}{a}&dollar;
$$
a+b
<ul><li>c</li></ul>
$$
$$
a + b
<img/>
$$
$$
a < b > c
$$
$$
a <b > c
$$
$[(a+b)!](c+d)$
- $E = mc^2$
- $a^2 + b^2 = c^2$
$$a = b$$
ABC $ABCXYZ$ XYZ
abc $abcxyz$ xyz
@bewuethr
Copy link
Author

bewuethr commented May 22, 2022

rawinput.txt shows the markdown input; github.md is what it looks like when rendered by GitHub.

Output using

pandoc --from markdown --to html --mathjax

with pandoc 2.18 is

image

Notice that the one blemish around n \text{even} is because there's a space missing: n\ \text{even} would look fine. I kept it just the way the article shows it, though.

Specifying GitHub Flavored Markdown as the input format with

pandoc --from gfm --to html --mathjax

doesn't change anything in the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment