Hello,

hero...@gentoo.org writes:

> #+begin_org
>   \ce{^{238}U}, ^2H
> #+end_org
>
> is exported as
>
> #+begin_latex
>   \ce\{$^{\text{238}}$U\}, \^{}2H
> #+end_latex
>
> on org-mode 8.2.7b

If you want to insert raw LaTeX in an Org buffer, then \ce{^{238}U} is
invalid because you cannot nest braces. You can write instead:

  @@latex:\ce{^{238}U}@@

or you can define a macro, e.g.,:

  #+MACRO: ce @@latex:\ce{$1}@@

and then use

  {{{ce(^{238}U)}}}

Also, ^2H is not recognized as superscript _on purpose_. Per Org syntax,
you have to add a non-blank character before the caret. Otherwise, there
would be ambiguity between underline (e.g., _under_) and subscript
(_under). And superscript syntax follows subscript's.

In this case, you can probably use a math snippet, e.g.,

  \(^2\)H


Regards,

-- 
Nicolas Goaziou

Reply via email to