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 to PDF when Headers=0: no indent or first-level numbering #3695

Closed
wmhorne opened this issue May 26, 2017 · 1 comment
Closed

Comments

@wmhorne
Copy link

wmhorne commented May 26, 2017

I am trying to export an org file with #+OPTIONS: H:0, meaning with no headers, so that the final result is a traditional outline with proper indentation etc.

In org mode's own exporter, I get this: Org Export within emacs, which, while not beautiful, allows the functionality I want: what were top level headers are numbered (1., 2., etc.). They become top level lines within the outline.

Pandoc's is close, but the first level headers lack proper numbering. See here:
Pandoc pdf. It does not generate a usable outline, which should look like:

  1. aaaa
         a.   bbbbbb

rather than

   aaaaa
        1. bbbbbbb

I request that this functionality be added to match Org mode's own exporter.


~$ pandoc --version
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
Default user data directory: /home/william/.pandoc
Copyright (C) 2006-2016 John MacFarlane
Web: http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.

@tarleb tarleb self-assigned this May 26, 2017
tarleb added a commit to tarleb/pandoc that referenced this issue May 27, 2017
Emacs parses org documents into a tree structure, which is then
post-processed during exporting. The reader is changed to do the same,
turning the document into a single tree of headlines starting at
level 0.

Fixes: jgm#3695
@tarleb tarleb closed this as completed in bf93c07 May 27, 2017
@wmhorne
Copy link
Author

wmhorne commented May 27, 2017

Thank you, @tarleb and @jgm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants