emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] latex export of \ce question


From: Rasmus
Subject: Re: [O] latex export of \ce question
Date: Tue, 22 Apr 2014 14:32:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

John Kitchin <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]