I have a clean install of texlive. While trying to compile any document which uses either the graphics, graphix, or the xcolor packages, I get errors that the compiler can't find the corresponding .def file.
pdftex.def – if I am using pdflatex
xetex.def – if I'm using xelatex
I have downloaded the graphics-def package from CTAN, and copied the .def
files to /texmf-dist/tex/latex/graphics
, but I had no luck. Maybe I don't know where the files are supposed to go.
The only thing that worked was putting the
.def
files in the same directory as my.tex
program.
This is surely a path error. Where do I put the def files so that the packages can find them?
EDIT: I'm using Windows and TeXStudio. (Although I'm getting the same errors when I compile via command line)
Best Answer
Here is just for the records.
Thanks @JosephWright for your help! It was painful.
Remember to download TeXLive from a verified site: http://tug.org/texlive/acquire-netinstall.html
Here's the ISO one: https://www.tug.org/texlive/acquire-iso.html
Hope that helps!!!