MathJax Cheatsheet: Unterschied zwischen den Versionen

Aus MattWiki
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:


== Cheatsheet ==
== Cheatsheet ==
{|
{| class="wikitable" style="background-color:#ffffff;"
!Description
!Description
!Example
!Example
Zeile 21: Zeile 21:
|<code>a^2 + b^2 = c^2</code>
|<code>a^2 + b^2 = c^2</code>
|-
|-
|Matrix
|Matrix with Parentheses
|
|<math>\begin{pmatrix}
|
0 & 1 \\
1 & 0
\end{pmatrix}</math>
|  
\begin{pmatrix}
0 & 1 \\
1 & 0
\end{pmatrix}
|-
|-
|Complex Matrix
|Complex Matrix with Parentheses
|<math>\begin{pmatrix}
|<math>\begin{pmatrix}
& Bob & Alice \\
& Bob & Alice \\
Zeile 31: Zeile 38:
Alice & 1 & 0
Alice & 1 & 0
\end{pmatrix}</math>
\end{pmatrix}</math>
|\begin{pmatrix} & ​Bob & Alice \\\ Bob & 0 & 1 \\\​Alice & 1 & 0  \end{pmatrix}
|
\begin{pmatrix}
  & ​Bob & Alice \\
Bob & 0 & 1 \\
Alice & 1 & 0   
\end{pmatrix}
|}
|}



Version vom 16. Februar 2025, 12:16 Uhr

This is a cheat sheet on which code / markdown notation leads to which MathJax output. As MathJax seems to be somewhat compatible to LaTeX, some LaTeX Keywords seem to work too.

When using inside Obsidian.md the code representing the MathJax formula needs start and end with the dollar sign, i.e.: $a_1..a_n$

Cheatsheet

Description Example Code / Markdown
Subscript a1..an a_1..a_n
Double Subscript r01+r02+...+r0n {r_{0_1}​​ + r_{0_2} ​+ ... + r_{0_n}
Superscript / Exponent a2+b2=c2 a^2 + b^2 = c^2
Matrix with Parentheses (0110)
\begin{pmatrix}
0 & 1 \\ 
1 & 0
\end{pmatrix}
Complex Matrix with Parentheses (BobAliceBob01Alice10)
\begin{pmatrix}
 & ​Bob & Alice \\
Bob & 0 & 1 \\
Alice & 1 & 0  
\end{pmatrix}


Sources

I found the following sources which helped me out: