I am trying to compile an example from moderncv package, but get the following error:

velle@velle-s200e:~/texlive/texmf-dist/doc/latex/moderncv/examples$ latex template.tex 
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2015/10/01> patch level 2
Document Class: moderncv 2015/07/28 v2.0.0 modern curriculum vitae and letter d
ocument class

! LaTeX Error: File `dvips.def' not found.

Package dvips already installed:

I did the "minimal (plain only)" installation of texlive. And it seems to come with dvips. Dvips is located as shown below:

velle@velle-s200e:~$ tlmgr install dvips
tlmgr: package repository http://ftp.snt.utwente.nl/pub/software/tex/systems/texlive/tlnet
tlmgr install: package already present: dvips

dvips-files present

velle@velle-s200e:~$ find ~/texlive/ -name "*dvips*"

So why can it not find dvips? And how do I fix this?

  • 1
    Do you have the graphics package installed? As far as I know, dvips.def is part of it.
    – Martin
    Commented Jan 29, 2016 at 15:09
  • 1
    I came across the file a couple of days ago and remembered the package name. Just verified it with kpsewhich dvips.def. If it's not installed, you have to search CTAN for the file name, I guess.
    – Martin
    Commented Jan 29, 2016 at 15:26

1 Answer 1


The file dvips.def is is part of the graphics package.

If you have a system available on which your example compiles successfully, you can locate the file with kpsewhich dvips.def, for example. Otherwise, try to use the search facility at CTAN that also allows to search for file names, or grep ftp://ftp.ctan.org/pub/tex/FILES.byname.gz. However, this way you can't lookup files inside archives (like dvips.def which is provided by /install/macros/latex/required/graphics.tds.zip).

You must log in to answer this question.

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