emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-latex-export: Name sections by CUSTOM_ID (rather than %s)?
@ 2018-09-02  2:30 Florian Hollerweger
  2018-09-02  8:31 ` Robert Klein
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Hollerweger @ 2018-09-02  2:30 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 985 bytes --]

Hi everyone,

When exporting an .org file to LaTeX, is it possible to name the sections in the exported .tex file *not* according to the corresponding headlines in the .org file, but instead according to the respective sections' CUSTOM_ID ?

For example, there might be an equivalent to the %s operator (which is replaced by the headline string; see https://orgmode.org/worg/org-tutorials/org-latex-export.html), only for the section's CUSTOM_ID?

To clarify, I'd like the .org code

* My section
:PROPERTIES:
:CUSTOM_ID: foo
:END:

to result in the following .tex code when exported via C-c C-e C-b l L:

\section{foo}
\label{sec:orga20100d}

and *not* in the following (which is the default behavior):

\section{My section}
\label{sec:orga20100d}

For the record, I have also posted this question to StackExchange (https://emacs.stackexchange.com/questions/44497) and would be more than happy to provide credit for an answer there.

Best wishes,
Florian


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2018-09-02  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-02  2:30 org-latex-export: Name sections by CUSTOM_ID (rather than %s)? Florian Hollerweger
2018-09-02  8:31 ` Robert Klein

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