Re: [O] How to get headline title without statistic cookies.

2014-03-30 Thread Marcin Antczak

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



Re: [O] How to get headline title without statistic cookies.

2014-03-30 Thread Nick Dokos
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? 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




[O] How to get headline title without statistic cookies.

2014-03-30 Thread Marcin Antczak

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