Latex and gitbook

A collection of recipes about gitbook and tex friendship 💚

Quantum computing

Brackets

\left\langle \frac{1}{2} \middle| 1 \right\rangle

12|1\left\langle \frac{1}{2} \middle| 1 \right\rangle

Diagrams

\begin{matrix}
  && \Bbb Q(\sqrt{2},i) & \\
  &\huge\diagup & \huge| & \huge\diagdown \\
  \Bbb Q(\sqrt{2}) & & \Bbb Q(i\sqrt{2})&  & \Bbb Q(i)\\
  &\huge\diagdown & \huge| & \huge\diagup \\
  &&\Bbb Q
\end{matrix}

Q(2,i)Q(2)Q(i2)Q(i)Q\begin{matrix} && \Bbb Q(\sqrt{2},i) & \\ &\huge\diagup & \huge| & \huge\diagdown \\ \Bbb Q(\sqrt{2}) & & \Bbb Q(i\sqrt{2})& & \Bbb Q(i)\\ &\huge\diagdown & \huge| & \huge\diagup \\ &&\Bbb Q \end{matrix}

Mathematics

Fractions and brackets

Function definition

Equations align

Hat

ı^ȷ^a^bab^\hat\imath \\ \hat\jmath \\ \hat ab \\ \hat{ab}

Matrices

Type 1

Type 2

Limits

k=1nak\sum_{k=1}^n a_k

References

A complete list is available at https://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm

Last updated

Was this helpful?