1

Whenever I create a document with lyx, and if there is title and author in the document, today's time is automatically put in the document.

For example, if I pdf-fy the following code by WinEdt, or in lyx, the outcome is https://drive.google.com/file/d/0Bw2iKVlLwpjaNTNhS3drWFBPTEE/edit?usp=sharing

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
\title{Title}
\author{Author}
\maketitle
test
\end{document}

What's the code to remove that time stamp from the output document?

7
  • Is your goal to get a binary-identical output file every time? There's internal timestamps that pdflatex creates that would need to be disabled, too. Dec 22, 2013 at 8:03
  • 2
    You could try setting a date explicitly using \date{} before calling \maketitle
    – Jakob
    Dec 22, 2013 at 8:03
  • @UlrichSchwarz What's "binary-identical"? My goal is to not see the time stamp in my document.
    – user2604484
    Dec 22, 2013 at 8:06
  • @Jakob Thank you but my goal is to eliminate the time stamp rather than to change it to another date.
    – user2604484
    Dec 22, 2013 at 8:07
  • 1
    @user2604484 have you tried \date{} without an argument? This should exclude the date (see here en.wikibooks.org/wiki/LaTeX/Title_Creation).
    – Jakob
    Dec 22, 2013 at 8:08

1 Answer 1

4

To answer this question explicitly (not only via comments)...

Use the plain \date{} command before calling maketitle. This excludes the date line from the titlepage as described here.

If, for whatever reason, you require the date line to be blank but present, you could use a invisible date e.g. with \date{\phantom{x}}.

Thus, the complete minimal example would be

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
\title{Title}
\author{Author}
\date{}
\maketitle
test
\end{document}

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.