emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marcin Antczak <marcin.antczak@neutrico-themes.pl>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: How to get headline title without statistic cookies.
Date: Mon, 31 Mar 2014 01:38:11 +0200	[thread overview]
Message-ID: <87lhvrs1ek.fsf@neutrico-themes.pl> (raw)
In-Reply-To: <87fvlzlebp.fsf@gmail.com>


Nick Dokos writes:

> Marcin Antczak <marcin.antczak@neutrico-themes.pl> 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

      reply	other threads:[~2014-03-30 23:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-30 13:54 How to get headline title without statistic cookies Marcin Antczak
2014-03-30 18:40 ` Nick Dokos
2014-03-30 23:38   ` Marcin Antczak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhvrs1ek.fsf@neutrico-themes.pl \
    --to=marcin.antczak@neutrico-themes.pl \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).