I always used TeXShop in the Mac for the last 7 years but now I need to run the compilation remotely. If I run in the terminal (bash shell): XeLaTeX file.tex I get kpathsea: Running mktexfmt XeLaTeX.fmt I can't find the format file
XeLaTeX.fmt'!` - my guess it is some basic PATH information is missing. I tried man XeLaTeX but I get no manual entry for XeLaTeX. Is there a way I could just extract the settings TeXShop is using?
In this question I can't find the format file xelatex.fmt the answers are suggestion to re-install texlive but the op there said this did not solve the problem. And here since TeXShop works fine, re-installing does not seem a good idea.
The file exists here: /usr/local/texlive/2014/texmf-var/web2c/xetex/xelatex.fmt
I did sudo hash again as Sean Alfred suggested and this time, it worked. Now it compiles fine.
which xelatex
give you? If you're giving an absolute path to TeXShop, perhaps this path doesn't matchwhich
output. Another idea issudo texhash
, but that's just a hunch… I don't really know what it does :)ls -al $(which xelatex)
? Since TeXShop works, it's probably prudent to try and imitate it. It's only running shell commands, after all.