From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Antczak Subject: Re: How to get headline title without statistic cookies. Date: Mon, 31 Mar 2014 01:38:11 +0200 Message-ID: <87lhvrs1ek.fsf@neutrico-themes.pl> References: <8761mvokpl.fsf@neutrico-themes.pl> <87fvlzlebp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUPK2-00081N-Oa for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 19:39:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUPJv-0007CQ-C1 for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 19:39:26 -0400 Received: from 6.mo2.mail-out.ovh.net ([87.98.165.38]:50080 helo=mo2.mail-out.ovh.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUPJv-0007CI-60 for emacs-orgmode@gnu.org; Sun, 30 Mar 2014 19:39:19 -0400 Received: from mail605.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo2.mail-out.ovh.net (Postfix) with SMTP id F334DFFC658 for ; Mon, 31 Mar 2014 01:39:15 +0200 (CEST) In-reply-to: <87fvlzlebp.fsf@gmail.com> 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: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Marcin Antczak writes: > >> Hi, >> >> As in topic. >> I got some headline with statistic cookies. For example: >> >> * My example headline [3/6][50%] >> >> How could I output headline text without cookies? >> >> (org-element-property :title headline) >> >> returns entire title string with cookies. >> >> Is there any easy way to avoid them in output? >> >> > > Do you mean output when exporting? Yes... and no. Yes, I did mean output when exporting. But I forgot to explain that more clearly. I just needed to filter out statistic cookies in specific part of export. In my case: in TOC headlines. >If so, the manual says > > #+OPTIONS: stat:nil > > should work. See > > (info "(org) Export settings") Yes. I know that. This should work. But as I mentioned before. With this option you can enable or disable statistics cookies in entire document. While I would like to have these cookies in normal headlines. But they are unnecessary for me in TOC. In ox-html.el there is 'org-html--format-toc-headline' function. After some time I finally have found solution by adding (selective-cookies . ignore) option to :transcoders list. Thank you anyway, Marcin