Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 2.56 KB

1970-01-01-mathjax.md

File metadata and controls

76 lines (59 loc) · 2.56 KB
title description tags usemathjax related noindex
Styleguide. But math!
Minimal style tests for math.
mathematics
true
excludeOthers
true
true

Inline math is useful: $A + B + \underbrace{C + D}_{\small\text{Floppy disk!}}$.

Monospaced math: $\texttt{char} \subset \texttt{int} \subset \texttt{long}$.

Centred equations are also fun!

$$ e^{i\pi} + 1 = 0 \qquad 1^{2^{3^{4^5}}} $$

$$ e^{i\pi} + 1 = 0 \qquad \begin{align} x + y + z &= 1 \\\ 2x - y + 3z &= 2 \\\ 4x - 5y + 10z &= 3 \\\ \end{align} $$

$$ \begin{align} x + y + z &= 1 \\\ 2x - y + 3z &= 2 \\\ 4x - 5y + 10z &= 3 \\\ \end{align} $$

$$ \begin{bmatrix} 1 & 0 & 0 \\\ 0 & 1 & 0 \\\ 0 & 0 & 1 \\\ \end{bmatrix} $$

Check line breaks here:

  • \text and friends: $\texttt{The quick brown } \text{fox jumps } \textsf{over the lazy dog}\dots\ \texttt{And } \texttt{over } \texttt{the } \texttt{rainbow } \texttt{dost } \texttt{thy } \texttt{chicken } \texttt{poop } \texttt{fly}\dots$

  • \text + \break: $\texttt{The quick brown } \text{fox jumps } \textsf{over the lazy dog}\dots\ \break \texttt{And } \texttt{over } \texttt{the } \break\texttt{rainbow } \texttt{dost } \break \texttt{thy } \texttt{chicken } \texttt{poop } \texttt{fly}\dots$

  • \text + \break + \equiv: $\texttt{Maybe (Either (a, a) (Bool, a))} \break \equiv \texttt{(Maybe a, Maybe a)}$

  • \text + \break + =: $\texttt{Maybe (Either (a, a) (Bool, a))} \break = \texttt{(Maybe a, Maybe a)}$

  • \break: $F \break 1$

  • \text + \goodbreak: $\texttt{The quick brown } \text{fox jumps } \textsf{over the lazy dog}\dots\ \goodbreak \texttt{And } \texttt{over } \texttt{the } \goodbreak\texttt{rainbow } \texttt{dost } \goodbreak \texttt{thy } \texttt{chicken } \texttt{poop } \texttt{fly}\dots$

  • \break: $1 + 2 + 3 + 4 + 5 \break + \cdots + 15 + 20 + 25 \break + \cdots + 100 + 200 + 300 \break + \cdots + 500 + 100 + 1500 \break + \cdots + \cdots + \cdots + 0 \break = -1$

$$ \texttt{The quick brown } \text{fox jumps } \textsf{over the lazy dog}.\ \text{Cat ipsum dolor sit amet, always hungry.}\ \text{Poop on grasses i show my fluffy belly but it's a trap! if you pet it i will tear up your hand and sniff sniff sniff sniff but step on your keyboard while you're gaming and then turn in a circle but human is washing you why halp oh the horror flee scratch hiss bite hell is other people.} $$

$$ \texttt{Maybe (Either (a, a) (Bool, a))} \equiv \texttt{(Maybe a, Maybe a)} $$

$$ 1 + 2 + 3 + 4 + 5 + \cdots + 15 + 20 + 25 + \cdots + 100 + 200 + 300 + \cdots + 500 + 100 + 1500 + \cdots + \cdots + \cdots + 0 = -1 $$