emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] footnotes export verbatim


From: Nicolas Goaziou
Subject: Re: [O] footnotes export verbatim
Date: Wed, 27 Feb 2013 00:28:38 +0100

Correcting myself:

> Try the following:
>
> #+begin_src emacs-lisp
> (defun my-par-in-inline-fn (backend)
>   (unless (org-export-derived-backend-p backend 'latex)
>     (let ((org-footnote-section "My section"))
>       (org-footnote-normalize)
>       (while (re-search-forward "\\par\\s-*" nil t)
>         (replace-match "\n\n")))))
>
> (add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn)
> #+end_src

This should be:

#+begin_src emacs-lisp
(defun my-par-in-inline-fn (backend)
  (unless (org-export-derived-backend-p backend 'latex)
    (org-footnote-normalize)
    (while (re-search-forward "\\par\\s-*" nil t)
      (replace-match "\n\n"))))

(add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn)
#+end_src


-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]