I want to switch from PDFLaTeX to LuaLaTeX to use OpenType Fonts. When I switched my compiler I got lots of errors, the first one beeing:
Undefined control sequence.
<argument> \pdfpagewidth
l.5 \begin{document}
This is what Overleaf has to say to this issue:
The compiler is having trouble understanding a command you have used.
Check that the command is spelled correctly.
If the command is part of a package,
make sure you have included the package in your preamble using \usepackage{...}.
And here is a corresponding minimal working example:
\documentclass{article}
\usepackage[pdftex]{graphicx}
\begin{document}
Test
\end{document}
\pdfpagewidth. However, before we try to 'fix' that, can you give a full MWE? For end user documents, the primitives shouldn't normally show up at all, and package code 'knows' about these differences in the main. – Joseph Wright Feb 28 '24 at 07:15standalonelike most packages does not have this problem any longer): https://tex.stackexchange.com/q/315025/277964 – cabohah Feb 28 '24 at 07:29\usepackage[pdftex]{graphicx}. – Joseph Wright Feb 28 '24 at 08:00graphicx, I really wasn't able to guess, that loadinggraphicxwith a (generally superfluous and now) unsuitable option was the mistake. – cabohah Feb 28 '24 at 09:02