This is a very localized issue affecting Fedora 25 users with texlive.x86_64 6:2016-30.20160520.fc25

I have a one year old document that after upgrading Fedora 25 doesn't compile anymore. I determined that the combination of lualatex and pdfcomment is problematic.

A simple document like this


Does not compile with LuaLaTeX

$ lualatex --version
This is LuaTeX, Version 0.95.0 (TeX Live 2016)

by giving this error:

(./fusion.out) (./fusion.out)
! Undefined control sequence.
\PDF@SetupDoc ...pstringB {\@baseurl }\pdfcatalog 
                                                  {/PageMode/\@pdfpagemode \...

l.5 \begin{document}

Do you know of a workaround or option I have to pass to pdfcomment to make it work?

  • 2
    Your example compiles fine for me, but in general \RequirePackage{luatex85} before \documentclass is worth a try. Feb 21, 2017 at 11:50
  • 2
    as Ulrike says, luatex85 package will define \pdfcatalog but it should not be needed with an up to date texlive. Feb 21, 2017 at 12:16
  • 3
    luatex85 defines \pdfcatalaog so you can't get that undefined message if you use \RequirePackage{luatex85} as first line. but as I say with an up to date texlive you should get no error even without that Feb 21, 2017 at 22:36
  • 2
    @alfC datetime I'd guess (which isn't used in the example posted) Feb 21, 2017 at 22:43
  • 2
    You can't use \usepackage before \documentclass so \RequirePackage is better.
    – JPi
    Feb 21, 2017 at 23:16

1 Answer 1


This is the solution proposed by @DavidCarlisle, for my particular combination of versions luatex 0.95.0 and pdfcomment 2016/03/26 v2.3b. (may not be general, see comments.)

First add \RequirePackage{luatex85} (or \usepackage?) and you will still get this new error ! Use of \@dt@getdate doesn't match its definition. \pdfcreationdate ->\pdffeedback creationdate.

Then add \RequirePackage{datetime} (or \usepackage?) and the minimal example will compile.

  • 3
    You seem to have a weird combinbation of new and old packages! Update to pdfcomment v2.4. It has a compatability fix for luatex >= v0.85. Furthermore it uses datetime2 instead of the obsolete datetime. Your solution can't be regarded as general solution. Your MWE works perfectly with on up-to-date LaTeX distribution.
    – Josef
    Feb 22, 2017 at 7:16
  • @Josef, probably I do. This is an upgraded Fedora 25 distribution. dnf reports texlive.x86_64 6:2016-30.20160520.fc25. This could be useful to a Fedora user.
    – alfC
    Feb 22, 2017 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.