Skip to content

Commit be139fd

Browse files
committed
Revert "Update good-practice.md"
This reverts commit f8a29aa.
1 parent f8a29aa commit be139fd

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

docs/teacher/guides/good-practice.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -72,30 +72,32 @@ 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-
\begin{array}{|c|c|}
78-
\hline
79-
\theta_{2,0} & \theta_{1,L}\\
80-
\hline
81-
-6700 & 130.5641\\
82-
\hline
83-
-6600 & 161.6086\\
84-
\hline
85-
\end{array}
86-
![Image showing a example of a table](images/table.png)
87-
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+
89+
![Image showing a example of a table](images/table.png)
90+
8891
2. Use `\begin{aligned}` to keep your working formatted nicely
92+
```
93+
\begin{aligned}
94+
M_{d e f} &=\dfrac{1}{2}(M+M^T)\\
95+
& =\dfrac{1}{2} \begin{pmatrix} 4 & 14\\ -6 & -11 \end{pmatrix}+\begin{pmatrix} 4 & -6\\ 14 & -11 \end{pmatrix}\\
96+
& =\begin{pmatrix} 4 & 4\\ 4 & -11 \end{pmatrix}
97+
\end{aligned}
98+
```
8999

90-
91-
\begin{aligned}
92-
M_{d e f} &=\dfrac{1}{2}(M+M^T)\\
93-
& =\dfrac{1}{2} \begin{pmatrix} 4 & 14\\ -6 & -11 \end{pmatrix}+\begin{pmatrix} 4 & -6\\ 14 & -11 \end{pmatrix}\\
94-
& =\begin{pmatrix} 4 & 4\\ 4 & -11 \end{pmatrix}
95-
\end{aligned}
96-
97-
![Image showing a example of a algined working](images/aligned.png)
98-
100+
![Image showing a example of a algined working](images/aligned.png)
99101

100102
3. Use `\left` and `\right` for equations with multiple brackets
101103

0 commit comments

Comments
 (0)