Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-export-headline-levels seems not supported #14

Open
lld2001 opened this issue Feb 17, 2022 · 4 comments
Open

org-export-headline-levels seems not supported #14

lld2001 opened this issue Feb 17, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@lld2001
Copy link

lld2001 commented Feb 17, 2022

Globally set the variable org-export-headline-levels to 9, the default export level is still 3.

@a-fent a-fent self-assigned this Feb 24, 2022
@a-fent
Copy link
Collaborator

a-fent commented Feb 24, 2022

Hello - see this note in the README.org:

Pandoc should understand and follow these directives. HOWEVER pandoc only operates on the file it is given and does not know about settings from Emacs such as customisations. If, for example, you wish not to have a Table of Contents, there must be a line #+OPTIONS: toc:nil in the file itself; any global setting of org-export-with-toc will not be respected.

So you should set the desired setting for headline levels in the file you are exporting (#+OPTIONS: H:9, I think).

Given the number of possible global options (https://orgmode.org/manual/Export-Settings.html) I don't currently plan to support passing global options to pandoc.

@lld2001
Copy link
Author

lld2001 commented Feb 25, 2022

Thank you.

Given the number of possible global options (https://orgmode.org/manual/Export-Settings.html) I don't currently plan to support passing global options to pandoc.

Wish this feature could be enhanced.

@a-fent a-fent added the enhancement New feature or request label Feb 25, 2022
@a-fent
Copy link
Collaborator

a-fent commented Feb 25, 2022

Noted as a possible enhancement, thanks.

It might be possible by having the exporter look through all possible global options in org-export-options-alist (defined in org-mode's ox.el). Where the global setting is non-default and no file setting is present, add an #+OPTION tag to the intermediate org file that pandoc actually processes.

@lld2001
Copy link
Author

lld2001 commented Feb 25, 2022

This is a good solution, sencerely waiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants