From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Superscripts and subscripts Date: Fri, 19 Apr 2013 20:20:52 +0200 Message-ID: <87k3nynzzv.fsf@gmail.com> References: <87d2tv3s5b.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTFvd-0000za-Mx for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 14:20:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTFvc-0002Ew-55 for emacs-orgmode@gnu.org; Fri, 19 Apr 2013 14:20:57 -0400 In-Reply-To: <87d2tv3s5b.fsf@bzg.ath.cx> (Bastien's message of "Tue, 16 Apr 2013 08:29:20 +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: Bastien Cc: Org-mode , "Thomas S. Dye" Hello, Bastien writes: > tsd@tsdye.com (Thomas S. Dye) writes: > >> With a recent git pull and #+OPTIONS: ^:{}, `C^{14}' is interpreted >> correctly but ` ^{14}C' is not, both in the Org buffer and in LaTeX >> export. The space before the caret appears to be the problem. > > Confirmed -- this was reported already once. I don't have a fix for > this at the moment, hopefully Nicolas can have a look sometime. I made a non-whitespace character compulsory before the sub/superscript marker a while ago, in order to circumvent a parsing problem. Indeed, there is a parsing ambiguity between subscript and underline. Consider the following example: _example_ According to the syntax it can be either an underlined "example" string or a subscript "example" string followed by an underscore string. Both are valid interpretations. Of course, we could work around this with a new rule saying "the longest match wins", which, in this case, is the underline. But it would be better to find a more elegant solution, one which would remove the sole ambiguity, AFAICT, in Org syntax. Suggestions welcome. Regards, -- Nicolas Goaziou