all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "D. C. Toedt" <dc@toedt.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Include heading title in HTML section-number cross-reference, like LaTex \nameref?
Date: Sat, 8 Feb 2014 16:46:02 -0600	[thread overview]
Message-ID: <CAGN11+0CyrE0XK9h-Z0-RHtQ8zUQ15nHVKeXz=EFHEWxi3MGnA@mail.gmail.com> (raw)
In-Reply-To: <87k3d5nuiw.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2439 bytes --]

That works -- please email me privately with where to send the $100 via
PayPal.  Thanks!

(Org-mode maintainer [Bastien, still?], can you please let me know if /
when this gets implemented in an official release.)

Regards,

D. C.


*D. C. Toedt III * *(my** last name is pronounced "Tate") *
Attorney and neutral arbitrator -- tech contracts and intellectual property

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)
*Common Draft* <http://www.commondraft.org> annotated collection of
contract clauses

Unless expressly stated otherwise, this message is not intended
to serve as an electronic signature nor as assent to an agreement.




On Sat, Feb 8, 2014 at 3:50 PM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> Hello,
>
> "D. C. Toedt" <dc@toedt.com> writes:
>
> > QUESTION:  When org-mode headings are NUMBERED, and the file is exported
> to
> > HTML, is there any way to have org-mode include the TITLE, not just the
> > section number, of a cross-referenced section, along the lines of the
> LaTex
> > \nameref{} function?  Here's an example:
> >
> > ==BEGIN EXAMPLE==
> >
> > #+OPTIONS: H:7 TOC:nil @:t num:1 email:t author:t
> >
> > * Introduction to Technology Contracts
> >   :PROPERTIES:
> >   :CUSTOM_ID: IntroTechContracts
> >   :END:
> >
> > Lorem ipsum etc. etc.
> >
> > * Dangerous Clauses
> >   :PROPERTIES:
> >   :CUSTOM_ID: DangerousClauses
> >   :END:
> >
> > Lorem ipsum etc. etc. -- see Section [[#IntroTechContracts]].
> >
> > ==END EXAMPLE==
>
> [...]
>
> > Is that currently doable?
>
> I think so. Not trivial, but doable nonetheless.
>
> --8<---------------cut here---------------start------------->8---
> #+MACRO: get-title (eval (save-excursion (org-open-link-from-string
> "[[#$1]]") (org-get-heading nil nil)))
> #+MACRO: SECREF [[#$1][{{{get-title($1)}}}]]
> #+OPTIONS: H:7 toc:nil num:1 email:t author:t
>
> * Introduction to Technology Contracts
>   :PROPERTIES:
>   :CUSTOM_ID: IntroTechContracts
>   :END:
>
> Lorem ipsum etc. etc.
>
> * Dangerous Clauses
>   :PROPERTIES:
>   :CUSTOM_ID: DangerousClauses
>   :END:
>
> Lorem ipsum etc. etc. -- see Section {{{SECREF(IntroTechContracts)}}}
> --8<---------------cut here---------------end--------------->8---
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 6426 bytes --]

  reply	other threads:[~2014-02-08 22:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 21:11 Include heading title in HTML section-number cross-reference, like LaTex \nameref? D. C. Toedt
2014-02-08 21:50 ` Nicolas Goaziou
2014-02-08 22:46   ` D. C. Toedt [this message]
2014-02-09  0:04     ` D. C. Toedt
2014-02-09  8:29       ` Nicolas Goaziou
2014-02-09 12:08         ` D. C. Toedt
2014-02-09 22:36           ` Nicolas Goaziou
2014-02-10  8:44             ` Bastien
2014-02-10 16:38               ` Nicolas Goaziou
2014-02-09  8:19     ` Bastien
2014-02-09 11:51       ` D. C. Toedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGN11+0CyrE0XK9h-Z0-RHtQ8zUQ15nHVKeXz=EFHEWxi3MGnA@mail.gmail.com' \
    --to=dc@toedt.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.