* How to get headline title without statistic cookies.
@ 2014-03-30 13:54 Marcin Antczak
2014-03-30 18:40 ` Nick Dokos
0 siblings, 1 reply; 3+ messages in thread
From: Marcin Antczak @ 2014-03-30 13:54 UTC (permalink / raw)
To: emacs-orgmode
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?
Regards,
Marcin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get headline title without statistic cookies.
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
0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-03-30 18:40 UTC (permalink / raw)
To: emacs-orgmode
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? If so, the manual says
#+OPTIONS: stat:nil
should work. See
(info "(org) Export settings")
for that and many more options, as well as the corresponding
variables that you could use if you want the setting to be
permanent.
--
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get headline title without statistic cookies.
2014-03-30 18:40 ` Nick Dokos
@ 2014-03-30 23:38 ` Marcin Antczak
0 siblings, 0 replies; 3+ messages in thread
From: Marcin Antczak @ 2014-03-30 23:38 UTC (permalink / raw)
To: Nick Dokos; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-30 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.