25

I am a newbie to TeX. I want to use XeLaTeX for my CV, but when I try to compile with Texmaker. a get an error saying: This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) restricted \write18 enabled.

kpathsea: Running mktexfmt xelatex.fmt
I can't find the format file `xelatex.fmt'!

What is the problem here? How can I fix it?

1
  • 1
    Reinstalling via sudo apt-get install --reinstall texlive-xetex did the job for me.
    – user23678
    Dec 26 '12 at 16:14
14

try to run sudo fmtutil-sys --all which should create all missing format files.

2
  • 4
    It still replys with:This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) restricted \write18 enabled. kpathsea: Running mktexfmt xelatex.fmt I can't find the format file `xelatex.fmt'! Jul 16 '11 at 7:58
  • What does the summary output of the above command say?
    – user2478
    Jul 16 '11 at 8:02
11

If you installed TeX from the repositories of your Linux system, you could reinstall the xetex package from a repository.

  • Redhat/Fedora: sudo yum reinstall texlive-xetex

  • Debian/Ubuntu: sudo apt-get install --reinstall texlive-xetex

1
  • 1
    Thanks for your reply. I did a reinstall of texlive-xetex.But I still have the same error. Jul 16 '11 at 23:15
6

Make sure that you have the proper LaTeX packages installed in addition to the XeLaTeX ones.

In my installation of TeX Live on a Mac, I initially didn't have the latex or latex-bin packages installed, but I did have xetex installed. Running xelatex would result in the error message given by cyberscientist.

Try the following to install the LaTeX packages and generate xelatex.fmt:

tlmgr install latex latex-bin
fmtutil ---all

If you need to do things systemwide rather than in your user directory, try

sudo tlmgr install latex latex-bin
sudo tlmgr-sys --all

For me this unintuitively resulted in generation of xelatex.fmt. xelatex now runs successfully.

1
  • 2
    The last command should be sudo fmtutil-sys --all, shouldn't it?
    – egreg
    Oct 12 '12 at 22:52
5

On Fedora 24/25 installing texinfo-tex did the trick. On debian this package is called texinfo.

dnf install texinfo-tex

I do not know if it was the package itself fixed the errors or its dependencies.

Installing this package fixed the xelatex.fmt error, however it did not fix all the errors in compiling my cv(xelatex mycv.tex). Instead I received errors like this:

! Package fontenc Error: Encoding file `eu1enc.def' not found.

Doing a whatprovides for the missing files worked well for me:

dnf whatprovides '*/eu1enc.def'

Whatprovides you with a package with that filename:

texlive-euenc-5:svn19795.0.1h-24.fc24.1.noarch : Unicode font encoding

Install that package and cycle compiling your cv, doing whatprovides for the missing file, and installing new packages over and over and over.

If you are using an xelatex cv template from latextemplates.com, these are the packages I needed to install:

texinfo-tex texlive-euenc texlive-textpos texlive-isodate texlive-titlesec texlive-changepage
1
  • Still relevant in Fedora 28 despite bugzilla.redhat.com/show_bug.cgi?id=717268 ... After installing texlive-xetex (texlive-xetex-20170520-42.fc28.x86_64) I installed texinfo-tex texlive-texconfig texlive-euenc texlive-cm texlive-xetex-def texlive-glyphlist per that report but it still wasn't enough, so I also installed the packages above and sudo fmutils-sys --all finally succeeded.
    – Nemo
    Dec 10 '18 at 20:21
0

I recommend reinstalling TeX Live.

This is how I got TeX to run (in Sabayon linux--- based on Gentoo linux), and stop it saying it couldn't find tex.fnt. Installing Texlive anew worth is a try, since it worked for me.

5
  • 1
    Welcome to TeX.SX! You may have a look on our starter guide. Your answer is more of a comment rather than full answer. Once you’ve gathered 50 reputation points on this site, you’ll be able to comment and with 15 rep you can upvote answers. May 23 '13 at 3:46
  • @texenthusiast: I think this answer is valid. We already have reinstalling recommended in a comment, but it deserves to be an answer. I've edited the answer to make it a bit clearer (which I couldn't do with a comment). May 23 '13 at 8:55
  • @CharlesStewart should we include the command line tweaks mentioned in the comment above inside the answer to bring strength and means. Also its not clear to me why reinstall did not work ?. In my opinion. This answer does not add value in addition to Stefan's answer which gives the same with more tweaks May 23 '13 at 9:04
  • @Texenthusiast: I had overlooked Stefan's answer - this could be flagged as "duplicate answer". May 23 '13 at 9:27
  • @CharlesStewart, texenthusiast: It's OK if multiple users post similar answers. In this case the voting system not flagging should be used to separate good (+1), ok (0) and bad (-1) answers.
    – Martin Scharrer
    May 24 '13 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.