From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: [dev] footnotes improvements Date: Wed, 11 May 2011 21:02:29 +0200 Message-ID: <871v05f4ca.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKEg8-0003XX-Gc for emacs-orgmode@gnu.org; Wed, 11 May 2011 15:02:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKEg7-000776-FG for emacs-orgmode@gnu.org; Wed, 11 May 2011 15:02:36 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:55917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKEg7-00076s-Ar for emacs-orgmode@gnu.org; Wed, 11 May 2011 15:02:35 -0400 Received: by wyf19 with SMTP id 19so780175wyf.0 for ; Wed, 11 May 2011 12:02:34 -0700 (PDT) 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: Org Mode List Hello, I'd like to submit a branch for testing: git://github.com/ngz/org-mode-lists.git footnote-fix Here are the changes so far: - recognize and export inlined footnotes holding links in their definition, - recognize and export two or more footnotes in a row, - don't chock at footnotes or partial footnotes inside comments in Org buffer, - export calls to already defined footnotes in LaTeX, - export footnotes before first heading (LaTeX), - export footnotes when selecting a subtree not holding their definition (LaTeX), - fontify more consistently footnotes in the org buffer (only labels are "fontified" or fn in the case of an anonymous footnote). The following snippet demonstrates most of these changes: ---------------------------------------------------------------------- #+title: Footnotes test Some text before first headline[fn:1]. * First headline # [fn::fake footnote Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua[fn::inline1][1]. * Second headline Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur[fn:inlabel:an inline footnote][fn:inlabel2:[[http://www.google.com][google]] this]. Call an already defined inline footnote[fn:inlabel]. * Footnotes [fn:1] first footnote. [1] End of first section. ------------------------------------------------------------------------ There are probably mischievous bugs. So, thanks in advance for any feedback. Regards, -- Nicolas Goaziou