5

I want to print org files or share them with in emails. Clean view looks good for these purposes.

Is it possible to export org files so that the output text file looks exactly like clean view (of course without theme colors)?

  • Have you tried org-export-as-ascii? It's not the same format, but perhaps is sufficient. – glucas Dec 21 '16 at 17:57
  • Thanks @glucas, but if you try the two, you'll find that they are quite different. I just want a pretty list but or-export-as-ascii tries to give you a text document. – Ben Dec 22 '16 at 15:49
  • @Ben By "clean view" do you mean this? – erikstokes Dec 23 '16 at 15:28
  • @erikstokes Yes. – Ben Dec 24 '16 at 0:00
3

This gets pretty close I think although I haven't tested extensively:

# -*- org-ascii-headline-spacing:(0 . 0); org-ascii-bullets:((ascii 42) (latin1 167) (utf-8 8226)) -*-
#+OPTIONS: H:0 num:nil toc:nil @:t author:nil
#+TITLE:
* foo
** bar
** zim
*** gir
*** dib

Output:

* foo
  * bar
  * zim
    * gir
    * dib

If you do a UTF-8 export it'll use • instead of asterisk. If you prefer you can set those file-local variables on the first line as global using M-x customize-group RET org-export-ascii RET

| improve this answer | |

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.