emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Cross references that output both section number and section name
@ 2017-05-25 18:18 Aaron Wenner
  2017-05-26  7:20 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Wenner @ 2017-05-25 18:18 UTC (permalink / raw)
  To: emacs-orgmode

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

Hi all,

Does anyone know if it’s possible to create cross-references to sections in org-mode that contain (or export as) both the section number and the link text? For example:  

    * 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 heading 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

Thanks!

AW



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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross references that output both section number and section name
  2017-05-25 18:18 Cross references that output both section number and section name Aaron Wenner
@ 2017-05-26  7:20 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-05-26  7:20 UTC (permalink / raw)
  To: Aaron Wenner; +Cc: emacs-orgmode

Hello,

Aaron Wenner <aaron@citeright.net> writes:

> Does anyone know if it’s possible to create cross-references to sections in org-mode that contain (or export as) both the section number and the link text? For example:  
>
>     * 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 heading 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,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-26  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 18:18 Cross references that output both section number and section name Aaron Wenner
2017-05-26  7:20 ` Nicolas Goaziou

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).