emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Florian Hollerweger <fhollerweger@colum.edu>
To: emacs-orgmode@gnu.org
Subject: org-latex-export: Name sections by CUSTOM_ID (rather than %s)?
Date: Sat, 1 Sep 2018 21:30:19 -0500	[thread overview]
Message-ID: <85592025-5d71-449b-6b7e-7a51e3f73194@colum.edu> (raw)


[-- 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 --]

             reply	other threads:[~2018-09-02  2:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-02  2:30 Florian Hollerweger [this message]
2018-09-02  8:31 ` org-latex-export: Name sections by CUSTOM_ID (rather than %s)? Robert Klein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85592025-5d71-449b-6b7e-7a51e3f73194@colum.edu \
    --to=fhollerweger@colum.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).