This should probably be a bug report and not a question, however I am not sure where to put it (LuaLaTeX? crop package? microtype package?) and so I hope it shall find its way to those who can do something about it if I just describe the problem here.

The problem appears when I try to use both crop (and geometry for support) package(s) and microtype package (both current versions from TeXLive 2016 with all updates up today), and appears only when run with LuaLaTeX v. 0.95.0 from TeXLive 2016 (with older LuaLaTeX 0.80.0 from TeXLive 2015 there is no problem).


%%%! LuaLaTeX



When compiled an error appears:

! Undefined control sequence.
\CROP@init@pdftex ...h \stockwidth \pdfpageheight 
                                                  \stockheight \let \CROP@re...
l.10 \begin{document}


If I ignore the error (enter the 'r' command to go into \nonstopmode) the rest of the compilation finishes OK and crop works.

If I comment out either the microtype package or crop package and command, compilation runs OK.

  • add the package luatex85. Commented Dec 27, 2016 at 18:05
  • @Ulrike: Thank you Ulrike, this works. I just hope it doesn't have any side effects.
    – Marcel S.
    Commented Dec 27, 2016 at 18:33

1 Answer 1


As Ulrike's comment suggests and luatex85 documentation explains, the problem is caused by changes in LuaTeX versions 0.85+, namely removing or renaming some pdfTeX extended primitives.

So the solution is to add


at the beginning of the compiled file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .