emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] TIL about use of eval in user Org macros.. Documentation?


From: Nicolas Goaziou
Subject: Re: [O] TIL about use of eval in user Org macros.. Documentation?
Date: Mon, 25 Dec 2017 11:26:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Kaushal Modi <address@hidden> writes:

> #+MACRO: sec (eval (concat "<span class=\"section-num\">" (number-to-string
> (org-macro--counter-increment $1 $2)) "</span>"))

Or,

#+MACRO: sec @@html:<span class="section-num">@@{{{n($1,$2)}}}@@html:</span>@@

> 1. Can you please document the use of eval form in Org macro definitions in
> the Org manual(.org)? Its awesome wasn't evident to me until I read that
> commit message.

Done.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]