From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Wenner Subject: Cross references that output both section number and section name Date: Thu, 25 May 2017 14:18:37 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="59272006_c4db971_1506d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDxLY-0001HZ-FM for emacs-orgmode@gnu.org; Thu, 25 May 2017 14:18:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDxLV-0000XL-9P for emacs-orgmode@gnu.org; Thu, 25 May 2017 14:18:52 -0400 Received: from mail-io0-x22a.google.com ([2607:f8b0:4001:c06::22a]:35529) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDxLV-0000XB-1s for emacs-orgmode@gnu.org; Thu, 25 May 2017 14:18:49 -0400 Received: by mail-io0-x22a.google.com with SMTP id f102so141000851ioi.2 for ; Thu, 25 May 2017 11:18:48 -0700 (PDT) Received: from Aarons-MacBook-Air.local.mail ([141.117.117.103]) by smtp.gmail.com with ESMTPSA id u200sm3269953itb.29.2017.05.25.11.18.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 May 2017 11:18:47 -0700 (PDT) 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" To: emacs-orgmode@gnu.org --59272006_c4db971_1506d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, Does anyone know if it=E2=80=99s possible to create cross-references to s= ections in org-mode that contain (or export as) both the section number a= nd the link text=3F =46or example: =20 * This is heading 1 ** This is heading 1.1 * New heading =5B=5B*This is heading 1.1=5D=5D =23 Outputs as 1.1 =5B=5B*This is heading 1.1=5D=5BThis is heading 1.1=5D=5D =23 Outputs= as =22This is heading 1.1=22 Is there any way to create a link that outputs both examples at the same = time: Eg: 1.1 This is heading 1.1 Thanks=21 AW --59272006_c4db971_1506d Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

Hi all,

Does anyone know if it=E2=80=99s possible to create cross-references t= o sections in org-mode that contain (or export as) both the section numbe= r and the link text=3F =46or example:

    * This is heading 1
    ** This is heading 1.1

    * New heading
    =5B=5B*This is heading 1.1=5D=5D =23 Outputs as 1.1
    =5B=5B*This is heading 1.1=5D=5BThis is heading 1.1=5D=5D =23 Outputs=
 as =22This is heading 1.1=22

Is there any way to create a link that outputs both examples at the sa= me time: Eg: 1.1 This is heading 1.1

Thanks=21

AW


--59272006_c4db971_1506d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Cross references that output both section number and section name Date: Fri, 26 May 2017 09:20:26 +0200 Message-ID: <87shjs84p1.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dE9Y0-0006Qe-4X for emacs-orgmode@gnu.org; Fri, 26 May 2017 03:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dE9Xz-0008Vv-6T for emacs-orgmode@gnu.org; Fri, 26 May 2017 03:20:32 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:44843) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dE9Xy-0008Ua-WD for emacs-orgmode@gnu.org; Fri, 26 May 2017 03:20:31 -0400 In-Reply-To: (Aaron Wenner's message of "Thu, 25 May 2017 14:18:37 -0400") 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" To: Aaron Wenner Cc: emacs-orgmode@gnu.org Hello, Aaron Wenner writes: > Does anyone know if it=E2=80=99s possible to create cross-references to s= ections in org-mode that contain (or export as) both the section number and= the link text? For example:=20=20 > > * This is heading 1 > ** This is heading 1.1 > > * New heading > [[*This is heading 1.1]] # Outputs as 1.1 > [[*This is heading 1.1][This is heading 1.1]] # Outputs as "This is h= eading 1.1" > Is there any way to create a link that outputs both examples at the > same time: Eg: 1.1 This is heading 1.1 [[*This is heading 1.1]] [[*This is heading 1.1][This is heading 1.1]] Regards, --=20 Nicolas Goaziou