GeneralSpecify a certain Date

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
staddum
Posts: 3
Joined: Mon Dec 12, 2011 1:47 am

Specify a certain Date

Post by staddum »

Hi there, this is my first post.

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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Specify a certain Date

Post by josephwright »

Please post a minimal working example (MWE): a full document showing the issue. Your approach should usually work.
Joseph Wright
staddum
Posts: 3
Joined: Mon Dec 12, 2011 1:47 am

Specify a certain Date

Post by staddum »

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
Last edited by Stefan Kottwitz on Tue Dec 13, 2011 2:49 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Specify a certain Date

Post by Stefan Kottwitz »

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
LaTeX.org admin
staddum
Posts: 3
Joined: Mon Dec 12, 2011 1:47 am

Specify a certain Date

Post by staddum »

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
Hi Stefan, thanks.

Doing \date before \maketitle actually worked. Such a simple solution. Thanks for the tips also
holms
Posts: 1
Joined: Mon Feb 29, 2016 4:52 am

Specify a certain Date

Post by holms »

Just registered to report \date{04 december} doesn't produce any output at all

Code: Select all

\documentclass[a4paper,12pt]{article}
\usepackage[L7x]{fontenc}
\usepackage[utf8]{inputenc}
\begin{document}
Where's my date? \date{05 december}
\end{document}
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Specify a certain Date

Post by Johannes_B »

Welcome holms.

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}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply