From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: $ in paragraph -- footnote problem Date: Wed, 31 Jul 2013 14:50:32 +0200 Message-ID: <87a9l228rr.fsf@gmail.com> References: <51F845BC.8080809@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4VrI-0005yM-QO for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 08:50:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4Vr9-0007Lz-FH for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 08:50:28 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:40076) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4Vr9-0007Lq-9O for emacs-orgmode@gnu.org; Wed, 31 Jul 2013 08:50:19 -0400 Received: by mail-wi0-f176.google.com with SMTP id f14so3565464wiw.9 for ; Wed, 31 Jul 2013 05:50:18 -0700 (PDT) In-Reply-To: <51F845BC.8080809@gmail.com> (Alan L. Tyree's message of "Wed, 31 Jul 2013 09:01:16 +1000") 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: Alan L Tyree Cc: emacs-orgmode@gnu.org Hello, Alan L Tyree writes: > I have a paragraph with a $120,000 in it. At any point after the > $ sign, org will not let me insert a footnote, giving the message > "Cannot insert a footnote here". Removing the $ allows a footnote, but > replacing the $ disables it. Adding another currency figure to the > paragraph changes nothing. > > Is this a bug or a problem with my setup? This is a known limitation of `org-footnote-in-valid-context-p', which relies on `org-inside-LaTeX-fragment-p' (see its docstring). It should use `org-inside-complete-LaTeX-fragment-p', which doesn't exist yet[1]. Regards, [1] Well, there is: (memq (org-element-type (org-element-context)) '(latex-environment latex-fragment)) but this is not an option at the moment. -- Nicolas Goaziou