3

My aim is to display both the experiment and the report date on the title page of my report; how can I achieve my goal?

Edit: Part of my code before the main part is as follows:

\documentclass[12pt]{article}
\usepackage{a4, color}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage{siunitx}
\begin{document} 
\title{Understanding Semiconductor Lasers}
\author{Ongun Ar\i sev}
\date{\today}
\maketitle
\newpage

Thanks

  • 1
    Could you be more specific? Possibly provide a MWE as to what you want to achieve? – azetina Oct 13 '13 at 21:29
2

Under the default document classes (including article), you can just add another date to \date:

enter image description here

\documentclass[12pt]{article}
\title{Understanding Semiconductor Lasers}
\author{Ongun Ar\i sev}
\date{\today{} and January 1, 2013}
\begin{document} 
\maketitle
\end{document}
  • Well, thanks. I am pretty new in LaTeX so forgive my question. Could I also add Experiment date like some sort of modifier in front of one of the dates? – Vesnog Oct 13 '13 at 22:24
  • @Vesnog: Yes, you can do \date{Report: \today{}; Experiment: January 1, 2013} if you wish. – Werner Oct 13 '13 at 22:28
  • Can I have them pasted on separate lines? Figured it out by putting \\ but if I wanted to separate them more is there an option allowing that? – Vesnog Oct 13 '13 at 22:35
  • @Vesnog: You can use \\[<len>] where you specify <len>. For example, \\[\baselineskip] inserts an empty line. Or \\[50pt] will insert a 50pt gap. – Werner Oct 13 '13 at 23:18
  • Well thanks for that they will definitely prove useful. – Vesnog Oct 13 '13 at 23:29

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.