[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: [regression] superscript not available after non-alphanumer
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: [regression] superscript not available after non-alphanumeric [8.2.7b (8.2.7b-dist @ /home/benda/gnto/usr/share/emacs/site-lisp/org-mode/)] |
Date: |
Fri, 27 Jun 2014 13:55:34 +0200 |
Hello,
address@hidden 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