Latest news 2021-09-06: new blog post "Legacy Documents and TeX Live Docker Images".

Bug Tracker

ID 109🔗
Date: 2016-04-30 05:51:19
Status Closed (Fixed)
Category datetime2
Version 1.4
Summary incompatible with luatex85.sty

Sign in to subscribe to notifications about this report.

Description

Previously loaded package "luatex85" leads to the following error:
! File ended while scanning use of \@dtm@parsepdfdatetime.
Because of many changes in luaTeX 0.95 the packages "luatex85" is sometimes importend.

MWE

Download (173B)

\listfiles
\setcounter{errorcontextlines}{100}
\documentclass{article}
\usepackage{luatex85}
\usepackage[showzone=false]{datetime2}
\begin{document}
  BlaBla
\end{document}

Evaluation

Now fixed in datetime2 v1.5.1.

Comments

7 comments.

🔗Comment from Josef Kleber
Date: 2016-05-29 15:30:36

As a follow-up to Rolf's report, I also got a bug report about pdfcomment.sty. So I added luatex85 and upgraded from obsolete datetime to datetime2 with its pdf style.

But there's still the problem Rolf has reported! This can be "solved" with a workaround described here:

luatex85: New definition of \pdfcreationdate is problematic

MWE:

\documentclass[11pt,a4paper]{scrartcl}
\usepackage{polyglossia}
\setdefaultlanguage{german}
\setkeys{german}{babelshorthands}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage[colorlinks, citecolor=red ,linkcolor=black]{hyperref}
% https://tex.stackexchange.com/questions/307136/luatex85-new-definition-of-pdfcreationdate-is-problematic
\edef\pdfcreationdate{\pdfcreationdate}%
% https://bitbucket.org/kleberj/pdfcomment/raw/c97d10cb62c77f7f04fde7193e31113bb27617a9/dev/tex/latex/pdfcomment/pdfcomment.sty
\usepackage{pdfcomment} 
\newcommand{\weg}[1]{\pdftooltip{\textcolor{red}{\bfseries{}W}}{#1}}
\begin{document}
This \pdftooltip{is}{believe it or not} text.

This is my example here comes the tooltip: \weg{This is the tooltip text.}
\end{document}

\edef\pdfcreationdate{\pdfcreationdate}
does solve the problem (double expansion instead of single) but might have undesired side effects.

egreg offers a better solution inside datetime2!

Best wishes and hoping for a soon update ;-) ,

Josef

Replying to Comment #49:

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.

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.

🔗Comment from Nicola Talbot 🦜
Date: 2016-06-04 00:00:00

I'm unable to reproduce the problem as my version of luatex is only beta-0.80.0, which still provides the original \pdfcreationdate as a primitive. However, this problem should now be fixed in datetime2 v1.5. (I've only just uploaded it to CTAN so allow a day or so for the new version to make it into the TeX distributions.) I decided that the best solution is to define

\edef\dtm@pdfcreationdate{\pdfcreationdate}
and use \dtm@pdfcreationdate where \pdfcreationdate was previously used. This has two advantages over the suggested solutions: it leaves \pdfcreationdate unchanged and it allows for any future definitions of \pdfcreationdate that may require deeper levels of expansion.
Replying to Comment #50:

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.

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.

🔗Comment from Josef Kleber
Date: 2016-06-05 09:28:06

Thank you,

I can confirm that the new version does solve the problem with:

$ lualatex -v
This is LuaTeX, Version 0.95.0 (TeX Live 2016/W32TeX)

Josef

Replying to Comment #51:

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.

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.

🔗Comment from Josef Kleber
Date: 2016-06-05 10:17:03

I just realized that you don't load luatex85 in datetime2.sty!

That means that you don't get the expected output for luatex v0.85+. Consider the following MWE:

\listfiles
\documentclass{article}
%\usepackage{luatex85}
\usepackage{datetime2}
\DTMsetstyle{pdf}%
\DTMsetup{showisoZ=false}%
\begin{document}
\DTMnow
\end{document}

without luatex85: D:20160605101000+00'00'

with luatex85: D:20160605094738+01'00'

Without loading luatex85,

\pdfcreationdate
is *not* defined for luatex v0.85+ and therefore datetime2.sty branches into the XeTeX fallback and gets the time only without seconds and time zone.

You can savely load luatex85, as it just defines the macros for luatex v0.85+. There's a test in it!

Josef

Replying to Comment #52:

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.

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.

🔗Comment from Nicola Talbot 🦜
Date: 2016-06-05 12:15:00

Thank you for your feedback. I'd rather not load packages that some users may not require, but what I can do is add a check for \pdffeedback if \pdfcreationdate hasn't been defined, so where it's currently:

\ifdef\pdfcreationdate
{%
  \edef\dtm@pdfcreationdate{\pdfcreationdate}%
}%
{}
I can change to:
\ifdef\pdfcreationdate
{%
  \edef\dtm@pdfcreationdate{\pdfcreationdate}%
}%
{%
  \ifdef\pdffeedback
  {%
     \edef\dtm@pdfcreationdate{\pdffeedback creationdate}%
  }%
  {}%
}
I think that's the simplest solution.
Replying to Comment #53:

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.

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.

🔗Comment from Josef Kleber
Date: 2016-06-05 12:39:28

D:20160605122751+01'00'

Case closed! ;-)

Although the time is off by one hour. Should be ...132751...
A problem with daylight-saving time?

Josef

Replying to Comment #54:

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.

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.

🔗Comment from Nicola Talbot 🦜
Date: 2016-06-05 13:32:00

Works fine for me with British Daylight Saving and TL 2015. (LuaTeX version beta-0.80.0)

I've uploaded datetime2 v1.5.1 to CTAN. Thanks.

Replying to Comment #55:

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.

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.


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.

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=109