From mboxrd@z Thu Jan 1 00:00:00 1970 From: heroxbd@gentoo.org Subject: syntax specification (was Re: Bug: [regression] superscript not available after non-alphanumeric) Date: Sat, 28 Jun 2014 10:39:09 +0900 Message-ID: <86fvipols2.fsf_-_@moguhome00.in.awa.tohoku.ac.jp> References: <86simqocpz.fsf@moguhome00.in.awa.tohoku.ac.jp> <878uoiy3bd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0hbt-000283-E6 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 21:39:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0hbo-0004C8-P4 for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 21:39:21 -0400 Received: from dev.gentoo.org ([2001:470:ea4a:1:214:c2ff:fe64:b2d3]:33493 helo=smtp.gentoo.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0hbo-0004Bo-Ig for emacs-orgmode@gnu.org; Fri, 27 Jun 2014 21:39:16 -0400 Received: from moguhome00.in.awa.tohoku.ac.jp (ernie02-dmz.awa.tohoku.ac.jp [130.34.99.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: heroxbd) by smtp.gentoo.org (Postfix) with ESMTPSA id 62E7733FFDE for ; Sat, 28 Jun 2014 01:39:14 +0000 (UTC) In-Reply-To: <878uoiy3bd.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 27 Jun 2014 13:55:34 +0200") 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: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: > 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 Thank you for the explanation. I got to know what went wrong. I am wondering where the claims "you cannot nest braces" and "Per Org syntax, you have to add a non-blank character before the caret" come from. Is there a general principle guideline for the org syntax, or is it a taste of the maintainer only? Is it true when an exporter maintainer changes, the syntax changes to his somehow incompatible preference? In [1], Carsten regarded "you have to add a non-blank character before the caret" as a bug and fixed it; while you regard it as a rule. I am curious about what was the compelling motivation to make this shift. Interpreting \ce{^{238}U} directly complicates the exporter parser logic, while gives LaTeX composers a syntax sugar. The inconvenience of "\(^2\)H" is similar to "\_leading_under_line". Either syntax is not superior to the other. Maintaining a stable syntax is the principle in this case. Don't get me wrong. I appreciate and respect your new-school exporting framework, and the sexy features it makes possible. I am to express my value and concern on the longterm specification (and consequently usability) of the org syntax. Cheers, Benda 1. http://lists.gnu.org/archive/html/emacs-orgmode/2009-09/msg00887.html