5

How can I omit the date from being displayed when exporting to LaTeX from emacs org-mode?

This (within the .org file) works to omit the date when exporting to ascii:

#+OPTIONS: timestamp nil

But it doesn't take effect when exporting to LaTeX.

Nor does this work:

#+ATTR_LATEX: :date nil

3 Answers 3

8

OK, so it was pretty simple.

This in the .org file:

#+DATE:

Gives you this in the .tex file:

\date{}

Guess that would have to be the best solution ...

2

You made a slightly mistake in the options syntax. It should be:

#+OPTIONS: date:nil
2
  • This seems more like a comment. Please test and explain your solution.
    – TeXnician
    Commented Oct 28, 2017 at 7:07
  • @TeXnician edited to make it more clear as an answer
    – Huy Le
    Commented Oct 28, 2017 at 8:09
1
#+OPTIONS: date: nil

or

#+DATE: nil

or

* Local Variables
Local Variables:
org-export-with-date: nil
End:

All these will result in \date{} in .tex file

In my case, this was undesirable. Then, every time, I needed to delete that line of my .tex file after exporting it.

Here is the workaround I came up with:

#+LATEX_HEADER: \renewcommand{\date}{}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .