* Get headline number w/o link?
@ 2014-07-12 11:21 D. C. Toedt
0 siblings, 0 replies; only message in thread
From: D. C. Toedt @ 2014-07-12 11:21 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
During HTML export, I'm trying to automatically get the headline number of
the then-current headline, WITHOUT a link, so I don't want to use [[$1]].
EXAMPLE:
=== ORG MODE TEXT: ===
* Definitions {{{HL-NUM}}}
** Affiliate Definition {{{HL-NUM}}}
*[body text omitted]*
** Arbitration {{{HL-NUM}}}
*[body text omitted]*
=== DESIRED EXPORTED TEXT: ===
1. Affiliate Definition [1]
1.1 Affiliate Definition [1.1]
*[body text omitted]*
1.2 Arbitration [1.2]
*[body text omitted]*
Suggestions? I've gone rummaging through org.el, ox.el, and the HTML
exporter. I tried the following but it doesn't work:
#+MACRO: HL-NUM (eval (org-export-get-headline-number (org-get-heading nil
nil)) nil)
I'm a cargo-cult programmer at best and am just scratching the surface of
Lisp and emacs Lisp.
Thanks in advance.
Regards,
--D. C.
*D*ell *C*harles "D. C." Toedt III *(my** last name is pronounced "Tate") *
Attorney and neutral arbitrator -- tech contracts and intellectual property
Editor, Common Draft <http://www.commondraft.org/> project: Model
contract term sheets & clauses, annotated
dc@toedt.com LinkedIn: dctoedt <http://www.linkedin.com/in/dctoedt>
Calendar
<https://www.google.com/calendar/embed?src=dc.toedt@toedt.com&mode=WEEK>
(redacted)
O: +1 (713) 364-6545 C: +1 (713) 516-8968
Houston, Texas (Central time zone)
Unless expressly stated otherwise, this message is not intended
to serve as an electronic signature nor as assent to an agreement.
[-- Attachment #2: Type: text/html, Size: 7810 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-12 11:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-12 11:21 Get headline number w/o link? D. C. Toedt
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.