When I export an Org document to text, the title (along with the decorative ASCII art above and below it) is centered. What's the best way to suppress the centering, and simply have it start at the left margin?
1 Answer
I am not aware of an easy way to modify the header within the ASCII backend exporter. As a workaround, macro replacement can get what you are looking for quickly while maintaining ASCII's cleanness.
- In your ASCII file, add this line to the top of your content (after your keywords).
{{{title}}}
If you'd like, you can wrap this block with JUSTIFYLEFT
, which is unique to the ASCII backend. It is not strictly necessary, but can help to prevent this title from moving if you change your export justification globally.
#+BEGIN_JUSTIFYLEFT
{{{title}}}
#+END_JUSTIFYLEFT
If you'd like to keep beginning information such as authorship, use the macro replacement for that.
{{{author}}}
Learn more about macro replacement here in the org manual.
Also, if you'd like your Table of Contents to be after your title, use a block like this when you declare your title. The options keyword should be at the start of your file.
#+OPTIONS: toc:nil
{{{title}}}
#+TOC: headlines 2
- When you export to ASCII, make sure you turn on BODY_ONLY. This is usually bound to
C-b
in the export dispatcher. If you do not turn on BODY_ONLY, the original header will appear alongside your macro replacement.