From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Subtasks cookies out of export Date: Mon, 27 Aug 2012 11:41:56 +0200 Message-ID: <871uisacyj.fsf@gmail.com> References: <87ehmsdb8q.wl%william.lechelle@ens-lyon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vtE-00057w-W7 for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:45:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5vtD-00063G-Av for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:45:48 -0400 Received: from mail-wi0-f169.google.com ([209.85.212.169]:39268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vtD-00063A-47 for emacs-orgmode@gnu.org; Mon, 27 Aug 2012 05:45:47 -0400 Received: by wibhm2 with SMTP id hm2so3292350wib.0 for ; Mon, 27 Aug 2012 02:45:46 -0700 (PDT) In-Reply-To: <87ehmsdb8q.wl%william.lechelle@ens-lyon.fr> ("William \=\?utf-8\?Q\?L\=C3\=89CHELLE\=22's\?\= message of "Mon, 27 Aug 2012 03:50:45 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: William =?utf-8?Q?L=C3=89CHELLE?= Cc: emacs-orgmode Hello, William L=C3=89CHELLE writes: > I use subtasks cookies in titles, as described in > http://orgmode.org/manual/Breaking-down-tasks.html, along with todo keywo= rds, > when writing a document to be exported, and I'd like then NOT to be expor= ted > (for they're org metadata). Exporting to pdf, still using the default > exporter. I would have guess there would be an #+option for that (removin= g 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, --=20 Nicolas Goaziou