From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Cannot insert a footnote after certain verbatim text? Date: Sun, 16 Oct 2011 10:15:04 +0200 Message-ID: <87r52dl5dj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFLtQ-0008Sc-Ln for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 04:16:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFLtP-00041Q-NB for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 04:16:24 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:63022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFLtP-00041H-HQ for emacs-orgmode@gnu.org; Sun, 16 Oct 2011 04:16:23 -0400 Received: by wyg34 with SMTP id 34so1172904wyg.0 for ; Sun, 16 Oct 2011 01:16:22 -0700 (PDT) In-Reply-To: (CS Fuu's message of "Fri, 14 Oct 2011 14:48:54 -0400") 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: CS Fuu Cc: emacs-orgmode@gnu.org Hello, CS Fuu writes: > I am using org to write a document correcting some of my students' more > common LaTeX blunders, and I keep running into places where I am not able to > insert a footnote ("Cannot insert a footnote here."). Some of these problems > I am unable to reproduce consistently, but I think it usually occurs when a > paragraph (or list item) contains verbatim or code text with a backslash > (\), and only after the verbatim text. Here is one such example. Create an > .org file with the following three "paragraphs" (including the two blank > likes): > > > Blah, blah, blah. > > Woof, woof, =\begin{document}=, woof. > > Cry, cry, cry. > > > If you're me, then you can insert a footnote after any word or punctuation > in the first and third paragraphs, and after the first two words and the > first comma in the second paragraph, but nowhere past the second comma in > the second paragraph. > > I'm running the latest org (7.7) from the git repository in GNU emacs > 23.1.1. For what it's worth, this not directly related to footnotes. It's a weakness in `org-inside-LaTeX-fragment-p', which returns a non-nil value after =\begin{document}= instead of nil. And, obviously, one cannot add a footnote inside a LaTeX fragment... Regards, -- Nicolas Goaziou