Skip to content

Commit f8a29aa

Browse files
authored
Update good-practice.md
1 parent b7cea93 commit f8a29aa

1 file changed

Lines changed: 22 additions & 24 deletions

File tree

docs/teacher/guides/good-practice.md

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -72,32 +72,30 @@ 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-
89-
![Image showing a example of a table](images/table.png)
90-
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+
9188
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-
```
9989

100-
![Image showing a example of a algined working](images/aligned.png)
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+
10199

102100
3. Use `\left` and `\right` for equations with multiple brackets
103101

0 commit comments

Comments
 (0)