Latest news 2025-05-20: New blog post: Points of Departure.

Bug Tracker RSS feed

ID 306🔗
Submitted by: Nicola Talbot 🦜
Date: 2025-06-15 18:31:48
Last update: 2025-06-17 13:52:46
Status Open
Sign in if you want to bump this report.
Category datetime2
Version 1.5.7
Summary \pdffeedback error with lualatex dvi mode

Return to Search Results

Sign in to subscribe to notifications about this report.

Description

The datetime2 package fails when compiling with LuaLaTeX in DVI mode (lualatex --output-format=dvi). The error message is:
! unexpected use of \pdffeedback
The same error message occurs with direct use of the \pdffeedback primitive to obtain the PDF creation date:
\documentclass{article}
\begin{document}
Date:
\pdffeedback creationdate
\end{document} 
It seems that creationdate isn't supported by \pdffeedback with the dvi output format.

A stopgap solution is to first load the luatex85 package before datetime2:

\documentclass{article}
\usepackage{luatex85}
\usepackage{datetime2}
\begin{document}
\today
\end{document}
(Note that the reason this works is because luatex85 defines \pdfcreationdate and datetime2 tests for the existence of that command before attempting to use \pdffeedback.)

The next version will switch to the newer LaTeX3 functions to avoid the use of format-dependent primitives.

MWE

Download (86B)

\documentclass{article}
\usepackage{datetime2}
\begin{document}
\today
\end{document}

Evaluation

Comments

0 comments.


Add Comment

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account. All guest comments have to be manually checked before they appear on the page. There are too many bots trying to spam the site to allow unauthenticated users to post without verification.

Comment:


You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]

You can use the Preview button to review your message formatting before submitting.

Page permalink: https://www.dickimaw-books.com/bugtracker.php?key=306

Return to Search Results