Home > Software design >  Custom date for Quarto YAML header pdf document
Custom date for Quarto YAML header pdf document

Time:02-02

The custom date works in RMarkdown-pdf but I noticed Quarto doesn't.

How can I use custom date in Quarto YAML?

---
title: "Some pdf document"
author: "me"
date: "Spring 2022"  <- I would like to use this
format: pdf
----
---
title: "Some pdf document"
author: "me"
date: "Last update : `r Sys.Date()`"  <- Or, like this
format: pdf
----

Current Quarto-pdf generates %m/%d/%Y format date only.

CodePudding user response:

You can provide last-modified keyword (which refers to the last modified date and time of the file containing the date) to date and use screenshot of pdf output


  • Related