From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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 Message-ID: <878uoiy3bd.fsf@nicolasgoaziou.fr> References: <86simqocpz.fsf@moguhome00.in.awa.tohoku.ac.jp> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Ukm-0000Jb-TB for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 07:55:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0Ukc-00010G-Dd for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 07:55:40 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0Ukc-0000zU-8P for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 07:55:30 -0400 In-Reply-To: <86simqocpz.fsf@moguhome00.in.awa.tohoku.ac.jp> (heroxbd@gentoo.org's message of "Fri, 27 Jun 2014 19:42:32 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: heroxbd@gentoo.org Cc: emacs-orgmode@gnu.org Hello, heroxbd@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