[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] The "c" Org macro
From: |
Rasmus |
Subject: |
Re: [O] [RFC] The "c" Org macro |
Date: |
Tue, 09 May 2017 13:25:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> Hello,
>
> Eric S Fraga <address@hidden> writes:
>
>> On Monday, 8 May 2017 at 15:32, Dushyant Juneja wrote:
>>> A very useful macro indeed!
>>>
>>> One suggestion: can this also be made to support nested headings. For
>>> instance:
>>> * Part {{{c}}}
>>> ** Part {{{c}}}.{{{c}}}
>>> * Part {{{c}}}
>>
>> I think this is what separate counters will enable but also motivates
>> need to be able to reset a counter (e.g. the sub-heading one in above
>> example if it were to be used in the second part).
>
> Good idea.
>
> Here is an updated patch, in which one can write
>
> {{{c(sub,reset)}}}
> {{{c(sub, 5)}}}
>
> or even, for the default macro
>
> {{{c(,reset)}}}
> {{{c(, 99)}}}
Seems fine. To me, "n" or "N" would be a better name for the macro, as
that suggests some sort of number, whereas "c" doesn’t really associated
with "counter" to me. Perhaps it’s just because the syntax looks a lot
like the R combine command...
Are there a lot of cases where it would not be able to just configure how
heading numbers are printed in the backend?
Rasmus
--
May the Force be with you
- [O] [RFC] The "c" Org macro, Nicolas Goaziou, 2017/05/08
- Message not available
- Re: [O] [RFC] The "c" Org macro, Eric S Fraga, 2017/05/11
- Re: [O] [RFC] The "c" Org macro, Nicolas Goaziou, 2017/05/21
- Re: [O] [RFC] The "c" Org macro, Kaushal Modi, 2017/05/21
- Re: [O] [RFC] The "c" Org macro, Nicolas Goaziou, 2017/05/22
- Re: [O] [RFC] The "c" Org macro, Kaushal Modi, 2017/05/22
- Re: [O] [RFC] The "c" Org macro, Nicolas Goaziou, 2017/05/22
- Re: [O] [RFC] The "c" Org macro, Kaushal Modi, 2017/05/22
- Re: [O] [RFC] The "c" Org macro, Kaushal Modi, 2017/05/22
- Re: [O] [RFC] The "c" Org macro, Nicolas Goaziou, 2017/05/22