4

I've got this .tex file

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{here}

\usepackage{fancyhdr}
\pagestyle{fancy}


\fancyhf{}
\chead{}
\rhead{\thepage}
\lhead{name \date{\today}}
\lfoot{lecture, WS 2016/2017}
\rfoot{problem sheet no 2} 

\begin{document}
\end{document}

But the Point is that the date isn't displayed anywhere?

Can anyone tell me what's wrong with this?

  • 9
    Welcome, leave out the outer \date and use just \today. – Johannes_B Nov 5 '16 at 13:59
  • 10
    \date saves a date for reuse with \maketitle. – Johannes_B Nov 5 '16 at 13:59
  • 6
    As Johannes say. The command \date is primarily used to specify which date \maketitle should print, so it does nothing useful here. – daleif Nov 5 '16 at 14:00
  • @Johannes_B -- I think you have the answer for this one. – jon Nov 5 '16 at 16:17
  • @jon This gotta be a duplicate, let me look for it. – Johannes_B Nov 5 '16 at 16:23

Browse other questions tagged or ask your own question.