I got the following error:
Code: Select all
No driver specified
You should make a default driver option in a file
graphics.cfg
Code: Select all
\if!\Gin@driver!
\PackageError{graphics}
{No driver specified}
{You should make a default driver option in a file \MessageBreak
graphics.cfg\MessageBreak
eg: \protect\ExecuteOptions{textures}%
}
\else
\PackageInfo{graphics}{Driver file: \Gin@driver}
\@ifundefined{ver@\Gin@driver}{\input{\Gin@driver}}{}
\fi
/usr/local/texlive/2020/texmf-dist/tex/latex-dev/graphics/graphics.sty
The solution is to add the [drive] option as an input to the usepackage command as follows:
Code: Select all
\usepackage[pdftex]{graphicx}
https://latex.org/forum/viewtopic.php?t=21570
due to good auto-detection. I haven't tried to get autodetection to work. In some packages you can specify autdetect. For example:
Code: Select all
\usepackage[driver=none]{geometry}
I notice that for the geometry pacakge the name of the driver is previxed with "driver=" but for the graphicx package using this (asignment style) prefix will break the latex document. What I don't understand is why we don't use this asignment style prefix in the graphicx package when specifying the driver. Some code from the graphicx package:
Code: Select all
LN#65 \providecommand\Gin@driver{}
...
LN#72 \DeclareOption{pdftex}{\def\Gin@driver{pdftex.def}}
Since the notion for the geometry package is how I originally expected the graphicx package to work, I should look at how the coding differs. I'll probably paste this on a subsequent post.