You are not logged in.

#1 2014-04-14 11:49:20

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Emacs, LaTeX: a path problem?

Hi,

I've got two different boxes, [presumably] the same configuration (texlive, auctex); emacs configs shared via GitHub. It works fine on one box; on another it won't compile the same test file with message "LaTeX: problems after [0] pages". Google shows that such a thing usually happens when Emacs can't find the necessary executable. Meanwhile, it's right where one would expect it:

$ ls -l /usr/bin/*xelatex*
lrwxrwxrwx 1 root root 49 Mar 12 11:53 /usr/bin/htxelatex -> /usr/share/texmf-dist/scripts/tex4ht/htxelatex.sh
lrwxrwxrwx 1 root root  5 Mar 12 11:30 /usr/bin/xelatex -> xetex

getenv PATH inside Emacs shows /usr/bin/ just as it should, xelatex starts in command line from everywhere. What else could I try?

Offline

#2 2014-04-15 10:21:41

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Emacs, LaTeX: a path problem?

To moderators:

'Programming & Scripting' could be a better place for an Emacs question, perhaps?

Offline

#3 2014-04-15 16:15:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,614

Re: Emacs, LaTeX: a path problem?

Moved -- by request.  FYI, if you use the report link to make such requests, we are made instantly aware of the request.  No need to wait six hours until one of us stumble upon a post big_smile

Last edited by ewaller (2014-04-15 16:16:15)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2014-04-17 16:37:45

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Emacs, LaTeX: a path problem?

ewaller wrote:

Moved -- by request.  FYI, if you use the report link to make such requests, we are made instantly aware of the request.  No need to wait six hours until one of us stumble upon a post big_smile

Thanks! I used to think that to "report" meant to drop a dime.

Offline

#5 2014-04-19 17:36:23

kwehmu
Member
Registered: 2013-08-04
Posts: 15

Re: Emacs, LaTeX: a path problem?

Llama wrote:

message "LaTeX: problems after [0] pages"

I regularly use Emacs, AUCTeX, and pdflatex to compile LaTeX documents. I sometimes get this error when I have problems in my document, so it's not necessarily due to Emacs being unable to find xelatex. Can you successfully compile the test document using xelatex on the command line? Have you tried compiling a really simple document, like the one below?

\documentclass{article}
\begin{document}
Hello World
\end{document}

Offline

#6 2014-04-24 10:46:43

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Emacs, LaTeX: a path problem?

I tried your "Hello, World". No luck.

CLI attempt:

$ xelatex test.tex
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013/Arch Linux)
 restricted \write18 enabled.
---! /var/lib/texmf/web2c/xetex/xelatex.fmt doesn't match xetex.pool
(Fatal format file error; I'm stymied)

Looks just as cryptic for me.

This appears to be a known issue. The only catch: I've got no .texmf-var anywhere on the system.

fmtutil --all, they say. Still, no luck:

$ fmtutil --all
/usr/bin/fmtutil: line 395: /usr/share/texmf/texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.

UPD:

moved fmtutil.cnf.pacnew and texmf.cnf.pacnew into place, run fmtutil(-sys) --all. Got a longish log not quite free of errors. No compilation for me, as before "Fatal format file error; I'm stymied". Looks like clean reinstall of texlive is in order sad .

Last edited by Llama (2014-04-24 11:23:36)

Offline

#7 2014-04-25 05:01:56

kwehmu
Member
Registered: 2013-08-04
Posts: 15

Re: Emacs, LaTeX: a path problem?

Yeah, I don't know. I do have a texmf-var directory, though, at ~/.texlive/texmf-var instead of ~/.texmf-var. Before you go to the effort of reinstalling TeX Live, it may be worth trying deleting that directory if it's present on your system.

Offline

Board footer

Powered by FluxBB