You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
date keywords and formatting does not work in PDF #615
I also just stumbled across this. Not sure if helpful, but I've noted that date keywords (kind of) work for PDF output inside a quarto project. Only kind of, because the date-format has no effect. Have created a minimum working example here.
Thanks @pat-alt, it means the project structure is directly related. This is not the first case where something works differently on Project vs single file.
@dragonstyle If you want me to have a deeper look, I can do it.
Activity
cderv commentedon Apr 12, 2022
I can reproduce that with
cderv commentedon Apr 12, 2022
@dragonstyle is this supposed to be supported in other format than HTML yet ?
It does not seem so as the magic happens in
quarto-cli/src/format/html/format-html-title.ts
Lines 279 to 294 in 6fbd9e5
so only for HTML
For other formats it seems were are only doing
quarto-cli/src/command/render/render.ts
Lines 907 to 914 in 6fbd9e5
which does not take into accound
date-formatbut this does not explain why
todayis shown in the PDF output instead of the resolved date 🤔eyayaw commentedon Apr 12, 2022
Thank you for taking the initiative, Christophe (@cderv).
dragonstyle commentedon Apr 12, 2022
This is definitely not working as it should - I will take a look! Thanks for reporting it and digging in!
pat-alt commentedon Apr 13, 2022
I also just stumbled across this. Not sure if helpful, but I've noted that date keywords (kind of) work for PDF output inside a quarto project. Only kind of, because the
date-formathas no effect. Have created a minimum working example here.cderv commentedon Apr 13, 2022
Thanks @pat-alt, it means the project structure is directly related. This is not the first case where something works differently on Project vs single file.
@dragonstyle If you want me to have a deeper look, I can do it.
dragonstyle commentedon Apr 14, 2022
I should have a fix in for this tomorrow AM! I'll post here when its ready...
dragonstyle commentedon Apr 14, 2022
Jus building a release that should have the changes the make this work seamlessly across any format...