Problem description
In org-mode's LaTeX export configuration, the %s
operator can be used as a placeholder for the headline string, as can be seen in the examples at
https://orgmode.org/worg/org-tutorials/org-latex-export.html
For reasons far too complicated to explain here, I would like to name the sections in my exported .tex
file not according to the corresponding headlines in my .org
file, but instead according to the respective sections' CUSTOM_ID
property.
I am wondering whether it is possible to achieve this. For example, there might be an operator equivalent to %s, which is automatically replaced by a section's CUSTOM_ID
rather than by its headline?
Example to illustrate
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}
and not in the following:
\section{My section}