Latex macros in Weave.jl generated Jupyter notebooks

How do I add latex macros when I use Weave.notebook ?

I tried putting them in between dollar signs but that would only work inside the same dollar signs, the next latex expression wouldn’t know about the macros.

For Weaving latex I used to use a template but notebook doesn’t seem to support that