I am using TeXnic Cener on Windows. My latex document is in article format. Initially, I had the following title page:
\documentclass{article}
\setcounter{tocdepth}{3}
\begin{document}
\title{Some title}
\author{My Name}
\date{\today}
\maketitle
\thispagestyle{empty}
\clearpage
\tableofcontents
\clearpage
Then, to add more structure to the title page, I made the following modifications:
\begin{document}
\title{Some title}
\author{My Name}
\paragraph{}
\large \centerline{My Report}
\centerline{for the purpose}
\centerline{\date{\today}}
\normalsize
\maketitle
\thispagestyle{empty}
\clearpage
\tableofcontents
\clearpage
The problem is, the date appeared in two places: the old place and the new place. I removed the date completely and tried the following:
- Restart texnic center
- Restart my laptop
- Remove the pdf file generated so it is created again.
Nothing seems to work and I still get the date displayed in its old place. I also want to mention that before adding date to any of the above code, the date did not display at all.
Thanks in advance for any suggestions.
\maketitle
is typesetting the date again. (I didn't realise that putting\date{}
like that actually typeset anything but I guess it does.) Also, it is better not to use\centerline
except when absolutely needed.\centering
is a better option here. You might wish to look at thetitling
package to make this layout easier. Also, please remember to post complete code for a small, compilable document rather than mere fragments which are much less useful. And welcome to TeX SE!