emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Moe <mail@christianmoe.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [dev] footnotes improvements
Date: Thu, 12 May 2011 09:19:22 +0200	[thread overview]
Message-ID: <4DCB89FA.9080500@christianmoe.com> (raw)
In-Reply-To: <871v05f4ca.fsf@gmail.com>

Hi,

Nice! Tested only your snippet.


* HTML: works!

One question: As is, adjoining footnotes `2' and `3' read as `23'. 
Could/should the footnote export know to put a comma between them:`2,3'?

For HTML purposes, I think not necessarily, the separator could be 
flexibly added with CSS like:

: #+style: <style>sup + sup .footref:before {content: ", "}</style>


*  Latex: backtrace:

Debugger entered--Lisp error: (void-variable footnote-section-tag-regexp)
   org-export-latex-preprocess((:for-backend latex :emph-multiline t 
:add-text nil :comments nil :skip-before-1st-heading nil 
:LaTeX-fragments nil :timestamps t :footnotes t))
   org-export-preprocess-string(#("#+title: Footnotes test\n\nSome 
text before first headline[fn:1].\n\n" 0 8 (fontified nil 
font-lock-fontified t) 8 9 (fontified nil) 9 23 (fontified nil 
font-lock-fontified t) 23 56 (fontified nil) 56 57 (fontified nil) 57 
61 (fontified nil help-echo "Footnote reference") 61 62 (fontified 
nil) 62 65 (fontified nil)) :for-backend latex :emph-multiline t 
:add-text nil :comments nil :skip-before-1st-heading nil 
:LaTeX-fragments nil :timestamps t :footnotes t)
   org-export-latex-first-lines((:latex-image-options "width=10em" 
:exclude-tags ("noexport") :select-tags ("export") 
:publishing-directory nil :timestamp nil :expand-quoted-html t 
:html-table-tag "<table border=\"2\" cellspacing=\"0\" 
cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" :xml-declaration 
(("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") ("php" . "<?php 
echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>")) 
:html-postamble auto :html-preamble t :html-extension "html" 
:inline-images maybe :convert-org-links t :agenda-style "" 
:style-extra "" :style "" :style-include-scripts t 
:style-include-default t :table-auto-headline t :tables t 
:time-stamp-file t :creator-info t :email-info nil :author-info t 
:email "CM@Celebrian-2.local" ...) nil nil)
   org-export-as-latex(nil)
   call-interactively(org-export-as-latex)
   org-export(nil)
   call-interactively(org-export nil nil)


Yours,
Christian


On 5/11/11 9:02 PM, Nicolas Goaziou wrote:
> 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,
>

  reply	other threads:[~2011-05-12  7:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 19:02 [dev] footnotes improvements Nicolas Goaziou
2011-05-12  7:19 ` Christian Moe [this message]
2011-05-12  8:10   ` Aankhen
2011-05-12 10:04   ` Nicolas Goaziou
2011-05-12 10:48     ` Christian Moe
2011-05-14  8:44       ` Nicolas Goaziou
2011-05-14 18:22         ` Christian Moe
2011-05-14 13:42 ` Matt Lundin
2011-05-15 14:59   ` Nicolas Goaziou
2011-05-15 15:47     ` Matt Lundin
2011-05-26 19:49       ` Nicolas Goaziou
2011-05-26 20:56         ` Samuel Wales
2011-05-26 23:41           ` suvayu ali
2011-05-15 15:52     ` Samuel Wales
2011-06-27 18:29       ` Nicolas Goaziou
2011-06-27 20:07         ` Christian Moe
2011-06-27 20:24           ` Nicolas Goaziou
2011-06-27 22:45         ` Christian Moe
2011-06-28  9:59         ` Bastien
2011-06-30  6:14           ` Samuel Wales
2011-06-30  9:15             ` Bastien
2011-06-30 17:36             ` Nicolas Goaziou
2011-07-04 23:26               ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DCB89FA.9080500@christianmoe.com \
    --to=mail@christianmoe.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).