@@ -72,40 +72,42 @@ Live preview instantly renders a student's input. This is very useful for long/c
7272
7373## Latex help
7474
75- 1 . Use ` \begin{array} ` to generate a compact table i.e.
76-
77- ```
78- \begin{array}{|c|c|}
79- \hline
80- \theta_{2,0} & \theta_{1,L}\\
81- \hline
82- -6700 & 130.5641\\
83- \hline
84- -6600 & 161.6086\\
85- \hline
86- \end{array}
87- ```
88- ![ Image showing a example of a table] ( images/table.png )
89-
75+ 1 . Use ` \begin{array} ` to generate a compact table i.e.
76+
77+ ``` latex
78+ \begin{array}{|c|c|}
79+ \hline
80+ \theta_{2,0} & \theta_{1,L}\\
81+ \hline
82+ -6700 & 130.5641\\
83+ \hline
84+ -6600 & 161.6086\\
85+ \hline
86+ \end{array}
87+ ```
88+
89+ 
90+
90912. Use `\begin{aligned}` to keep your working formatted nicely
91- ```
92- \begin{aligned}
93- M_{d e f} &=\dfrac{1}{2}(M+M^T)\\
94- & =\dfrac{1}{2} \begin{pmatrix} 4 & 14\\ -6 & -11 \end{pmatrix}+\begin{pmatrix} 4 & -6\\ 14 & -11 \end{pmatrix}\\
95- & =\begin{pmatrix} 4 & 4\\ 4 & -11 \end{pmatrix}
96- \end{aligned}
97- ```
9892
99- ![ Image showing a example of a algined working] ( images/aligned.png )
93+ ```latex
94+ \begin{aligned}
95+ M_{d e f} &=\dfrac{1}{2}(M+M^T)\\
96+ & =\dfrac{1}{2} \begin{pmatrix} 4 & 14\\ -6 & -11 \end{pmatrix}+\begin{pmatrix} 4 & -6\\ 14 & -11 \end{pmatrix}\\
97+ & =\begin{pmatrix} 4 & 4\\ 4 & -11 \end{pmatrix}
98+ \end{aligned}
99+ ```
100+
101+ 
100102
1011033. Use `\left` and `\right` for equations with multiple brackets
102104
103- ```
104- f(x)=\left (\frac{(\cos (x) -x) + i(\sin (x) - x)}{wi} \right)
105- ```
105+ ```latex
106+ f(x)=\left (\frac{(\cos (x) -x) + i(\sin (x) - x)}{wi} \right)
107+ ```
106108
107- ![ Image showing a example of a brackets] ( images/bracket.png )
109+ 
108110
109- This also works for ` [ ] ` and ` \{ \} `
111+ This also works for `[ ]` and `\{ \}`
110112
1111134. Use `\sin`, `\cos`, etc. as a shortcut for `\text{sin }`, `\text{cos }`, etc.
0 commit comments