Blame
|
1 | ```math |
||||||
|
2 | \newcommand{\LetThereBe}[2]{\newcommand{#1}{#2}} \newcommand{\letThereBe}[3]{\newcommand{#1}[#2]{#3}} |
||||||
|
3 | \letThereBe{\addTag}{2}{\cssId{#1-#2}{\tag{#2}}} \letThereBe{\refTag}{2}{\href{###1-#2}{(\text{#2})}} |
||||||
|
4 | \letThereBe{\eqT}{1}{\addTag{eq}{#1}}\letThereBe{\secT}{1}{\addTag{sec}{#1}} |
||||||
|
5 | \letThereBe{\eqRef}{1}{\refTag{eq}{#1}} \letThereBe{\secRef}{1}{\refTag{sec}{#1}} |
||||||
|
6 | \letThereBe{\set}{1}{\left\{ #1 \right\}} |
||||||
|
7 | \LetThereBe{\foo}{\mathrm{foo}} |
||||||
|
8 | ``` |
||||||
|
9 | |||||||
|
10 | # Math test simple |
||||||
| 11 | ||||||||
|
12 | This does not render, $\foo$! |
||||||
|
13 | |||||||
| 14 | And |
|||||||
| 15 | ||||||||
|
16 | $$x^2. \eqT{square}$$ |
||||||
| 17 | ||||||||
| 18 | After some text we reference it as $\eqRef{square}$ |
|||||||
