emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "D. C. Toedt" <dc@toedt.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org, Nicolas Goaziou <n.goaziou@gmail.com>
Subject: Re: Include heading title in HTML section-number cross-reference, like LaTex \nameref?
Date: Sun, 9 Feb 2014 05:51:02 -0600	[thread overview]
Message-ID: <CAGN11+2m577PGGUiPUaBEJ-NyJUbEJKVCq_0_gRnXh21AkaMHQ@mail.gmail.com> (raw)
In-Reply-To: <87zjm0pujb.fsf@bzg.ath.cx>

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

> Why don't you use [[#IntroTechContracts][Introduction to Technology
Contracts]]
 as a link?

I routinely tweak the text of the target headings as I edit the document.
 For example, the section heading "Introduction to Technology Contracts"
might become, say, "Introduction:  Why Technology Contracts are Fun."

I don't want to have to manually revise the link text for the many internal
cross-reference links that exist in the document.  I'd really like to have
a way for a link to automatically retrieve the heading text during HTML
export.





On Sun, Feb 9, 2014 at 2:19 AM, Bastien <bzg@gnu.org> wrote:

> Hello,
>
> "D. C. Toedt" <dc@toedt.com> writes:
>
> > (Org-mode maintainer [Bastien, still?], can you please let me know if
> > / when this gets implemented in an official release.)
>
> I'm not Org's maintainer anymore, I'm just /de facto/ taking decisions
> in accordance with the other core maintainers, our level of trust lets
> us move forward happily.
>
> To come back to you original question:
>
> ,----
> | #+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]].
> `----
>
> Why don't you use
>
> [[#IntroTechContracts][Introduction to Technology Contracts]]
>
> as a link?  It is the link stored by org-store-link, and later
> inserted by org-insert-link, and AFAICS it is correctly exported.
>
> But it's true there are a few things we can make more consistent
> in this area though, so thanks for bringing this up.
>
> Best,
>
> --
>  Bastien
>

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

      reply	other threads:[~2014-02-09 11:51 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
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 [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=CAGN11+2m577PGGUiPUaBEJ-NyJUbEJKVCq_0_gRnXh21AkaMHQ@mail.gmail.com \
    --to=dc@toedt.com \
    --cc=bzg@gnu.org \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).