From mboxrd@z Thu Jan 1 00:00:00 1970 From: "D. C. Toedt" Subject: Re: Include heading title in HTML section-number cross-reference, like LaTex \nameref? Date: Sun, 9 Feb 2014 05:51:02 -0600 Message-ID: References: <87k3d5nuiw.fsf@gmail.com> <87zjm0pujb.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b66f00fc27f6704f1f7d8f3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCSvN-0000Nz-Tu for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 06:51:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCSvH-0004FB-SP for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 06:51:49 -0500 Received: from mail-ve0-f175.google.com ([209.85.128.175]:57787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCSvH-0004F2-Ng for emacs-orgmode@gnu.org; Sun, 09 Feb 2014 06:51:43 -0500 Received: by mail-ve0-f175.google.com with SMTP id c14so4100549vea.20 for ; Sun, 09 Feb 2014 03:51:43 -0800 (PST) In-Reply-To: <87zjm0pujb.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org, Nicolas Goaziou --047d7b66f00fc27f6704f1f7d8f3 Content-Type: text/plain; charset=ISO-8859-1 > 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 wrote: > Hello, > > "D. C. Toedt" 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 > --047d7b66f00fc27f6704f1f7d8f3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
>=A0Why don't you use=A0[[#IntroTechContracts][<= span style=3D"font-size:13px;font-family:arial,sans-serif">Introduction to = Technology Contracts]]
=A0as a link?

I routinely tweak the text of the target headings as I edit the document. = =A0For example, the section heading "Introduction to Technology Contra= cts" might become, say, "Introduction: =A0Why Technology Contract= s are Fun." =A0

I don't want to have to manually revise the link text for the many inte= rnal cross-reference links that exist in the document. =A0I'd really li= ke to have a way for a link to automatically retrieve the heading text duri= ng HTML export.
--047d7b66f00fc27f6704f1f7d8f3--