Questions tagged [date]
For questions related to dates in various sections of a document, bibliography, or related.
162
questions
0
votes
1
answer
28
views
Set specific dates
I have spent a fair couple of hours on this, including searching this forum, but I still haven't managed to solve my issue, therefore decided to ask a question here.
I am trying to run the following ...
0
votes
1
answer
65
views
In what format the day need to be specified in date?
Is it
\date{April 5, 2022}
or
\date{April 05, 2022}
Is that leading 0 necessary for days?
6
votes
2
answers
212
views
How to Extract the Three First Letters of Current Month in French without Accented Characters?
Is there a way to extract the 3 first letters of the current month in French but WITHOUT acented characters AND with the first letter capitalized - e.g. Fev for Février (February in english) - AND ...
2
votes
1
answer
45
views
How to use two different date formats: yymmdd and dd/mm/yyyy?
I would like to be able to use, in the same document, these two date formats:
dd/mm/yyyy (as default format)
yymmdd (as "local" format)
Why I want that?
Because I would like to use the &...
0
votes
1
answer
66
views
Current day using \today for March give `Mars`
I'm using \today command to add current day to the document. For some reason it is printing MARS instead of MARCH.
I'm using this template
https://www.overleaf.com/latex/templates/awesome-source-cv/...
2
votes
1
answer
41
views
Get dates from ICS file
In (several) LaTeX documents I need to write about dates that I already have in Thunderbird so I can export them easily as ICS (iCalender) file. Copying them is very error prone, in particular if any ...
6
votes
2
answers
234
views
Expand \today in custom format
I want to fill in an already printed form. The form has boxes to write down current date. How can I expand current date so that it look like 1 4 0 2 2 0 2 2
with a space between the digits
5
votes
3
answers
150
views
Why can't this code successfully parse the date string?
As an attempt to practice with expl3, I am trying to parse numerical date string to French. There is a \mymodule_display_date_year_month_day:n which receives a string of form yyyy-mm-dd (or yyyy-mm or ...
0
votes
0
answers
48
views
How to extract year from date in iso 8601 format?
I want to extract the year (or day or month) of a date which is stored as ISO 8601 in a database.
My MWE looks like:
\documentclass{article}
\usepackage{xstring}
\usepackage{datatool}
\newcommand{\...
1
vote
1
answer
31
views
How to view the date in biblatex when using the bibliographystyle: IEEEtran?
I am using the IEEEtran bibliographystyle and have a lot of web ressources. On each web ressoruce I want the date with the time of last access wich Zotero stores me as date in my .bib file.
Her is my ...
0
votes
1
answer
48
views
Biblatex: Different entry types have different date formats (with and without brackets) in bibliography
I am using biblatex with IEEE and I am getting dates with and without brackets around them, depending on which entry type I'm using (such as @journal, @online, @misc, etc).
I have tried searching ...
2
votes
1
answer
67
views
Without using packages, define function \lastMonth as Last month, The year for last month LaTeX
Using this format, how would I assign the month to be last month/year instead of current month/year? For example, if I run it tomorrow (01/01), \lastMonth =January, 2022, but I will need it to be \...
3
votes
1
answer
106
views
How to format \today to the 'DD MMM YYYY' format?
Can anyone tell me how to format \today to 'DD MMM YYYY' format?
Something that gives '10 Jun 2021' would be ideal but I can work with '10 JUN 2021'.
I have looked in all the suggested answers but ...
2
votes
3
answers
142
views
How can I extract a date from a file named YYYYMMDD.tex and convert it to date string?
I have a .tex file which is named 20160201.tex, and within that file, I would like to extract the filename without .tex and convert it to the string February 01, 2016? I am able to get the string via ...
1
vote
2
answers
59
views
Model as shown in the image
What code do I use to place this model as shown in the image? "April 2007" below the page. So it stays on every page of the document.
\documentclass[a4paper,12pt]{article}
\usepackage[utf8]{...
0
votes
1
answer
37
views
biblatex-chicago: works with same author and no date all appear the same in text
I have the problem with a few websites I am citing for my thesis using biblatex-chicago. For example, I have several wikipedia pages I am citing, all which have no date and therefore appear with "...
0
votes
0
answers
28
views
Different authors, same name and same year of publication in natbib
In my thesis, I cite two different authors who have the same name, and their work were published the same year. This appears in my bibliography as follows:
Levinson, Peter. 2016a. ...
Levinson, Simon....
2
votes
2
answers
166
views
Date stamp for each page
This question led to a new package:
datestamp
I am making a workbook, and I want it to show the last a certain page was modified.
How can I make a date stamp at the bottom of each page (f.x. "...
2
votes
1
answer
45
views
I want to create a command like "\mês" which returns the atual month in portuguese, like "Agosto"
I want to create a command like "\mês" which returns the atual month in portuguese, like "Agosto".
I'm usually using the command \the\year to show the year, and the \date returns ...
2
votes
1
answer
58
views
Store \today value with \DTMsavedate
Goal
With datetime2 package I try to save the “\today” date with \DTMdatesave command, but it successively fail.
My tries
1. The dumb method
I began with the most evident way. Putting directly \today ...
0
votes
0
answers
41
views
How to get the dates of each Sunday in a month
Is there a way to cleanly calculate the dates of every Sunday in the current month? IE for this month (August 2021) it would return 1, 8, 15, 22, and 29?
0
votes
1
answer
48
views
Convert from Today's Date to Specified Date
I am just a few hours new to TeX and have been tasked to modify an existing template (tex) document for parsing.
I have this in an cls file that works fine to add #1 days to today's date:
\newcommand*{...
0
votes
0
answers
37
views
How to format the quarter date and make annotations? Latex
I would like to show the date in quarter format on the x axis. So far this is my code. However, not all the dates are shown in the graph. Can anyone help me with this issue?
\documentclass{article}%[...
2
votes
1
answer
91
views
How to remove the words 'Who?' and 'When?' in the title page of Bergen beamer theme?
I am creating a simple presentation using the Bergen theme in beamer. I like almost everything about it, except the words 'Who?' and 'When' as respective quantifiers for the author and date in the ...
1
vote
2
answers
118
views
Adding date on right [closed]
I want a result like this, a simple date on the right.
Sorry for the question, I'm a beginner
0
votes
1
answer
40
views
How to iterate over days and weeks of the year
Thanks to the help of this community I've managed to create a digital planner template page.
\documentclass{article}
\usepackage[landscape, margin=0.5cm]{geometry}
\usepackage{tabularx}
\usepackage[...
0
votes
1
answer
52
views
Date and References in the footer of the first page of a report
I am writing a report in which i need to write date in the footer. But only in the first page of the report. How do I write date in footer? Also I need to write the references there in the footer of ...
1
vote
1
answer
157
views
How to put the current date in the footer of every page
My document class is scrartcl and I defined the pagemargins with geometry as follows
\documentclass[11pt]{scrartcl}
\usepackage[left=2cm, right=1cm, bottom=2cm, a4paper, twoside]{geometry}
So the ...
0
votes
1
answer
31
views
How can I remove the blank space in urldate (while using ngerman and biblatex)?
I want the urldate like the other dates. \DeclareFieldFormat{urldate} seems not obviously be of help. Perhaps someone has an idea
Here is an MWE
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{...
4
votes
2
answers
143
views
Localized date ranges
biblatex (with biber) supports all kinds of date information, including ranges. Dates follow ISO 8601, which is great, and they are localized (plays nice with babel).
I would like to get localized ...
1
vote
1
answer
68
views
Encoding of quarter into date with ISO 8601 does not work in BibLaTeX
I'm trying to encode an article that was published in the first quarter of 2004. Following this answer, I'm using the ISO 8601 feature of the date field with BibLaTeX, special numbers are defined for ...
3
votes
2
answers
146
views
How to override \today in a letter?
Im trying to write a letter with the next code
\documentclass{letter}
\signature{Your name}
\address{Street \\ City \\ Country}
\begin{document}
\begin{letter}{Company name \\ Street\\ City\\ Country}
...
0
votes
1
answer
91
views
Beamer \date broken
I am creating a presentation with Beamer and I just noticed that the date on the title page is broken. Wherever I write \date, the result is:
It doesn't matter whether I compile it with Latex, ...
0
votes
1
answer
131
views
apacite doesn't show date but only n.d
The apacite packet only shows n.d. instead of the date
Document
\documentclass[a4paper, 10pt]{article}
\usepackage{apacite}
\begin{document}
\cite{IntroductionFPGAAcceleration2020}
\...
1
vote
1
answer
28
views
Journal with dated entries instead of chapters?
I'd like to use LaTeX to write a journal. It would be in most respects like a regular book, but with dated instead of numbered chapters. For example, instead of:
Chapter 1 - Project Setup
Chapter 2 - ...
2
votes
0
answers
105
views
Why does LuaLaTeX not accept this date format in the PDF file? [closed]
Here's a complete MWE to modify a PDF file and include it in lualatex, which fails:
wget https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf -O dummy.pdf
grep -a Date dummy.pdf
sed ...
0
votes
0
answers
70
views
How to print the current season automatically?
I know we can print the current year by \the\year. How about the reasons? I live in north hemisphere, so the definition of the four seasons at here: https://en.wikipedia.org/wiki/Season#Meteorological ...
2
votes
0
answers
55
views
How to fix rendering of \date{\today} for devanagari articles using polyglossia?
Consider a basic article using polyglossia and Devanagari fonts with sanskrit as the default language:
\documentclass[a6paper]{article}
\usepackage{geometry}
\geometry{
bottom=20mm,
left=10mm,
...
0
votes
1
answer
116
views
Change order of Author / Title /Date in a book
This is probably very basic question. I need to create a book with FrontPage: Author/Title/Publisher-Date.Like this:
All is centered in title page, and in text page Title is left and text is ...
2
votes
1
answer
53
views
Problem with a test in if statement
I'm having trouble with the implementation of a if statement. I want to know if today and five days from now happen in the same month. I get the correct values of the corresponding month to print but ...
2
votes
1
answer
144
views
Localization for \date command
How can I apply localization for the \date command? For now it seems to just display an arbitrary string.
\documentclass{article}
\author{me}
\date{bla bla bla}
\begin{document}
\maketitle
\end{...
1
vote
1
answer
41
views
short dates with biblatex-iso690
I'm trying to use the iso-alphabetic biblatex style from the package biblatex-iso690.
The style contains this code (see here https://github.com/michal-h21/biblatex-iso690/blob/...
1
vote
1
answer
165
views
Adding a macro to the -jobname section of the PDFLaTeX compiler (i.e., how to add dates to the PDF filename)
I would like to add a macro, and/or a user-defined command, to the "jobname" section of my compilation command. My ultimate goal is to add the current date (e.g., YYYY_MM_DD) to the PDF ...
1
vote
1
answer
582
views
Print a date in LaTeX
I am looking for a LaTeX command or macro that will allow me to specify a date in a standard format which will then be formatted according to a globally set print format.
For example, I would ...
0
votes
1
answer
144
views
How/where can I insert \date{\today} in my amsbook driver file?
I do understand that the amsbook style does not support including a \date. However, I really need this to keep track of progressive versions of my monograph ms. I see that the amsbook chapter-template....
1
vote
1
answer
536
views
scrlttr2: How to move date to upper left corner?
I simply want to move the date of a letter to the upper left corner of the page.
Minimum Working Example (MWE):
\documentclass[english]{scrlttr2}
\usepackage{babel}
\newkomavar{fromplace}
\...
1
vote
1
answer
47
views
Change month names in polyglossia
Based on this answer, the following MWE used to work:
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{nynorsk}
\renewcommand\datenynorsk{%
\def\today{\number\day.~\ifcase\...
1
vote
0
answers
29
views
Compare dates - display month/year only once [duplicate]
I want to compare dates and not display the same information twice.
i.e. if I have been somewhere from 5/2/19 - 14/2/19 I want to display: "From 5th - 14th February 2019" rather than the long version, ...
0
votes
0
answers
98
views
Make documents where the date printed on the document is automatically the date of creation of document
Is there a way to create latex documents where the date printed on the documents is always by default the date of creation of the document?
I don't want to compile the same latex file 30 days later ...
3
votes
1
answer
93
views
Formatted date via directlua
I would like to get today's date formatted using \directlua. The % signs seem to be a problem. And I don't know how to get it to work.
Both attempts in the following example throw errors:
\...