6

Miktex wants to install xetex-def package in order to compile. It cannot be installed automatically from package depository because of server error (error response from server:404).
Package files can be downloaded from http://www.ctan.org/pkg/xetex-def. Though I haven't found any package documentation with installation instructions.
After downloaded from CTAN, there are just .def files. Where to put them?

7
  • There was a recent reorganisation for the graphic drivers, and xetex-def is obsolete. Install the new graphics-def.
    – Bernard
    Jul 12, 2016 at 20:52
  • I downloaded multiple .def files (xetex.def, pdftex.def, luatex.def...) in graphics-def folder. What do you mean by graphics-def package? The question about installation .def files stays unanswered.
    – user46581
    Jul 12, 2016 at 21:55
  • Put the whole folder in MiKTeX 2.9\tex\latex and refresh the FNDB (both as Admin and as User). Christian Schenk removed the older versions, buts seems to have forgotten to add this package. I guess it will be in the next update.
    – Bernard
    Jul 12, 2016 at 22:14
  • I'm sorry to have given you a wrong information: I've just checked: it's in the last update (6/7/2016). So use MiKTeX PackageManager.
    – Bernard
    Jul 12, 2016 at 22:19
  • 1
    Synchronize your offline package database (package manager + package manager admin, menu repositories). Then miktex will know about the new location. See also tex.stackexchange.com/a/108490/2388 Jul 13, 2016 at 7:37

2 Answers 2

2

Use MiKTeX Package Manager (Admin) synchronize your packages which has installed after you finished the installation of basic-miktex.exe.

2

I had the same problem. Based on what others said I thought it isn't problem with graphics-def package, or with xetex-def file, but with those that use them.

What worked for me was:

  • Make sure you have graphics-def package via MiKTeX Package Manager.
  • Make sure you have other packages, e.g. fontspec and xetex related, up-to-date via Update MiKTeX (Admin).

Sorry for not being too specific on these updated packages, because I went crazy and updated all I was using. (Side recommendation: update all packages.)

2
  • I synchronized and updated everything. Miktex package manager does not have xetex-def but still get the error "xeted-def not found" from graphics.sty
    – Echeban
    Apr 1, 2017 at 21:40
  • @Echeban this error shows up when you have old version of something that depends on xetex-def, even though you don't use it. My suggestion is to update one-by-one every package you include in your tex. Then refresh editor or even pc. Apr 2, 2017 at 21:15

You must log in to answer this question.

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