3

I export my Org-Mode notes with internal links to LaTeX and I want it to look like this ''Section 1.1 [Section name], page 99'' (Like in the Org Manual). I use this construction:

* Chapter 1
** Section 1.1
 :PROPERTIES:
 :CUSTOM_ID: section-1
 :END:
* Chapter 2
** Section 2.1
I want a reference to Section 1.1 from here (See #section-1)

But I only get the number of the section ''1.1'' as a result, not ''Section 1.1 [Section name], page 99''. What options do I need to use?

2 Answers 2

2

You should write [[section-1]] to get the number only (source).

1
  • The OP was specifically asking for three things in the output. The section number (which is all that your suggestion would give), the section title, AND the page number. I wish I knew how to get just the page number.
    – EdwinW
    Mar 16, 2018 at 0:20
0

You said

(Like in the Org Manual)

Just so you do not go down that route, wasting your time: The Org manual (source link) seems to not be written in org-mode, but in Texinfo instead. While it might be possible to do what you want, the manual source does not show a way to do this. For example, the section

There are compatibility issues between Org mode and some other Elisp packages, please take the time to check the list (see Conflicts).

is generated by

There are compatibility issues between Org mode and some other Elisp
packages, please take the time to check the list (@pxref{Conflicts}).
2
  • Which tells him how to get a hyper link to the Conflicts page, but does not tell the OP how to get the three things he wants. The section number, the section name, and the page it appears on. I'd be happy with knowing how to get a page number for a section or table.
    – EdwinW
    Mar 16, 2018 at 0:23
  • @EdwinW: as would be several people. If you know an answer, post it. As soon as a real solution exists, this answer by me can be removed. Looking at the org manual seems to be the wrong way to find the solution, though. This answer was just so others do not waste their time trying to find the details in the org manual. If you feel this could be expressed better, feel free to edit.
    – serv-inc
    Mar 16, 2018 at 5:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.