emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Subtasks cookies out of export
@ 2012-08-27  7:50 William LÉCHELLE
  2012-08-27  9:41 ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: William LÉCHELLE @ 2012-08-27  7:50 UTC (permalink / raw)
  To: emacs-orgmode

Hi list,

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 ?

Thanks in advance.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Subtasks cookies out of export
  2012-08-27  7:50 Subtasks cookies out of export William LÉCHELLE
@ 2012-08-27  9:41 ` Nicolas Goaziou
  2012-08-27 10:07   ` William Léchelle
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2012-08-27  9:41 UTC (permalink / raw)
  To: William LÉCHELLE; +Cc: emacs-orgmode

Hello,

William LÉCHELLE <william.lechelle@ens-lyon.fr> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Subtasks cookies out of export
  2012-08-27  9:41 ` Nicolas Goaziou
@ 2012-08-27 10:07   ` William Léchelle
  2012-08-27 13:42     ` Nicolas Goaziou
  0 siblings, 1 reply; 4+ messages in thread
From: William Léchelle @ 2012-08-27 10:07 UTC (permalink / raw)
  To: emacs-orgmode, Nicolas Goaziou

On Mon, 27 Aug 2012 11:41:56 +0200, Nicolas Goaziou spake thus:

>> 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:
> <snip>

>So, it [is] quite simple already to ignore them. 

I'm convinced, only I (still) lack the lisp knowledge to write such functions
:/

>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?

I don't know how much is this feature used, nor specifically for exporting,
but I do believe such an entry belongs to the #+OPTIONS line (just like
priorities, tags, etc.)

Thanks for dealing with this,

William 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Subtasks cookies out of export
  2012-08-27 10:07   ` William Léchelle
@ 2012-08-27 13:42     ` Nicolas Goaziou
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Goaziou @ 2012-08-27 13:42 UTC (permalink / raw)
  To: William Léchelle; +Cc: emacs-orgmode

Hello,

William Léchelle <william.lechelle@ens-lyon.fr> writes:

> I don't know how much is this feature used, nor specifically for exporting,
> but I do believe such an entry belongs to the #+OPTIONS line (just like
> priorities, tags, etc.)

I have added it in the new exporter: #+OPTIONS: stat:nil (and global
variable `org-export-with-statistics-cookies').


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-27 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27  7:50 Subtasks cookies out of export William LÉCHELLE
2012-08-27  9:41 ` Nicolas Goaziou
2012-08-27 10:07   ` William Léchelle
2012-08-27 13:42     ` Nicolas Goaziou

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).