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{\foo}{\mathrm{foo}} |
||||||
|
7 | ``` |
||||||
|
8 | |||||||
|
9 | # Math test simple |
||||||
| 10 | ||||||||
|
11 | This does not render, $\foo$! |
||||||
|
12 | |||||||
| 13 | And |
|||||||
| 14 | ||||||||
|
15 | $$x^2. \eqT{square}$$ |
||||||
| 16 | ||||||||
| 17 | After some text we reference it as $\eqRef{square}$ |
|||||||
