emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Subtasks cookies out of export


From: Nicolas Goaziou
Subject: Re: [O] Subtasks cookies out of export
Date: Mon, 27 Aug 2012 11:41:56 +0200

Hello,

William LÉCHELLE <address@hidden> writes:

> I use subtasks cookies in titles, as described in
> http://orgmode.org/manual/Breaking-down-tasks.html, along with todo keywords,
> when writing a document to be exported, and I'd like then NOT to be exported
> (for they're org metadata). Exporting to pdf, still using the default
> exporter. I would have guess there would be an #+option for that (removing the
> progress cookies), but I didn't find it in the export options page.
>
> How much is that possible ?

In the default exporter, you can add a function to
`org-export-preprocess-hook' which will carefully remove every
statistics cookie en the buffer.

In the next exporter, you can still use that hook (named
`org-export-before-parsing-hook' this time) or use the following:

#+BEGIN_SRC emacs-lisp
(defun my-ignore-stat-cookies (cookie backend info)
  "Ignore every statistics cookie in every export back-end."
  "")

(add-to-list 'org-export-filter-statistics-cookie-functions
             'my-ignore-stat-cookies)
#+END_SRC

So, it will quite simple already to ignore them. Do you (and other
users) think it's worth to add a customizable variable and an entry in
the #+OPTIONS: line (perhaps with a "stat:nil" value) to achieve the
same?


Regards,

-- 
Nicolas Goaziou



reply via email to

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