2

Org mode headlines are turned into section{...}, subsection{...}, &c. when exported to LaTeX. How can I ignore them instead, making the org structure invisible in the exported document? (preferably allowing normal behaviour only when a certain tag (:head:) is present, but I would rather disable automatic sectioning altogether than keep the default behaviour.)

  • 1
  • @artscan, thanks, I saw this before, but can't find the package ox-extra. Also, this answer allows exclusion of tagged headlines, but I want exclusion by default and inclusion only of tagged headlines. – Toothrot Oct 15 '16 at 9:43
3

org-plus-contrib package and org-mode git repo contain ox-extra.el. You can extend its functionality (see https://github.com/boykov/org-mode/compare/ox-extra-notignore) and use notignore-headlines with :notignore: tag instead of ignore-headlines with :ignore: tag.

  • This works -- thanks! -- but it would be best if the :notignore: tag were invisible in the exported document. – Toothrot Oct 15 '16 at 11:40
  • 1
    If you do not need tags in exported files, you can use #+OPTIONS: tags:nil, but it works for every possible tag. – artscan Oct 15 '16 at 11:48
0

As of https://tex.stackexchange.com/questions/52460/how-can-numbering-of-specific-headings-be-disabled-in-org-modes-latex-export, you can set the property UNNUMBERED: t to translate a specific section to section* instead of section:

* numbered
** subnumbered
* unnumbered
:PROPERTIES:
:UNNUMBERED: t
:END:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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