General ⇒ Specify a certain Date
Specify a certain Date
I've been using LaTeX for two days now, that meaning that I'm as noob as one can be. I use MiKTeX with TeXworks and I've a question.
Whenever I try \date{whateverdateifeellikewriting}, it doesn't work. It seems like the date updates from my system and I'd like to change it myself. Does anyone know how to do it and care to tell me?
thx, stadd.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Specify a certain Date
Specify a certain Date
Code: Select all
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\title{Apontamentos Introdução à Fisica Moderna - Física quântica}
\author{staddum}
\begin{document}
\maketitle
\date{01 december}
\newpage
- Stefan Kottwitz
- Site Admin
- Posts: 10361
- Joined: Mon Mar 10, 2008 9:44 pm
Specify a certain Date
welcome to the board!
Just call \date before \maketitle instead of after it.
Btw. a minimal code example should be compilable (here's \end{document} missing), further the forum has a code environment for posting code, for better readability. Just mark your code and press the Code button when editing.
Stefan
Specify a certain Date
Hi Stefan, thanks.Stefan_K wrote:Hi staddum,
welcome to the board!
Just call \date before \maketitle instead of after it.
Btw. a minimal code example should be compilable (here's \end{document} missing), further the forum has a code environment for posting code, for better readability. Just mark your code and press the Code button when editing.
Stefan
Doing \date before \maketitle actually worked. Such a simple solution. Thanks for the tips also
Specify a certain Date
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[L7x]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
Where's my date? \date{05 december}
\end{document}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Specify a certain Date
That is correct and to be expected. As has been pointed out above, you need to outut the title stuff using
\maketitle
later.
Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage[L7x]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
\date{05 december}
\title{Wally Wombat's adventures}
\author{That would be me}
\maketitle
Where's my date?
\end{document}