John Kitchin <jkitc...@andrew.cmu.edu> writes: > Hi all, > > I often have to use the mhchem latex package to write chemical formulas, > and I have teh following export issue. > > If I have this in an org file: > > \ce{ABO_3} > > \ce{ABO_{3-\delta}} > > this exports as > \ce{ABO_3} > > \ce\{ABO$_{\text{3-}\delta}$\} > > The first one is fine, but the second one is not. The nested {} seems to > mess it up. Is there a way to get this to export correctly?
You could use snippets. If you prefer the macro syntax you could also use that. . . #+MACRO: ce @@latex:ce($1)@@ @@latex:ce{ABO_{3-\delta}}@@ {{{ce(ABO_{3-\delta})}}} -- This is the kind of tedious nonsense up with which I will not put