Open madsmh opened 1 month ago
Hi @madsmh , I use the Latex Suite plugin, and I set myself a replacement for chemistry :
{
trigger: "!chem",
replacement: "```tikz\n\\usepackage{chemfig}\n\\begin{document}\n\t\\chemname{\n\t\t\\chemfig{ $0 }\n\t}{$1}\n\\end{document}\n```",
options: "tA"
}
So now I just have to type !chem
and the whole boilerplate pops up !
I'm sure you could come up with something similar for tikzcd
, although it would be nice to have this in the plugin automatically.
Thanks! This is very helpful!
You're welcome!
I mostly use TikzJax for commutative diagrams with tikzcd, and rarely, if ever, change the preamble. It would nice to be able to specify a standard preamble so I wouldn't have to enter the same one many times. It would also be nice to get avoid having to type \begin{document} and \end{document} in each diagram.
Best, Mads