emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] tricky odt export needs


From: Dan Griswold
Subject: Re: [O] tricky odt export needs
Date: Thu, 21 Nov 2013 11:34:55 -0500

On Wed, Nov 20, 2013 at 4:33 PM, Christian Moe <address@hidden> wrote:

Well, here's one way to get those page references, using filters:

(defun my-odt-filter-pagerefs (text backend info)
       "Make page references, not textual references in ODT export."
       (when (org-export-derived-backend-p backend 'odt)
             (replace-regexp-in-string "text:reference-format=\"text\"" "text:reference-format=\"page\"" text)))

(add-to-list 'org-export-filter-link-functions
                  'my-odt-filter-pagerefs)

(Whee! I just wrote my first export filter.)

That sounds pretty neat, Christian. But I get an export failed error, and it doesn't complete creating the odt file. Any suggestions?

Thanks,

Dan

reply via email to

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