[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs export to PDF impossible due to missing pdflatex

From: Pierre Gambarotto
Subject: Re: emacs export to PDF impossible due to missing pdflatex
Date: Thu, 14 Feb 2019 10:07:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0


I just stumbled on the same trouble myself.

I solved it by defining:

export TEXMFROOT=~/.guix-profile/share/

Here is the path I followed, for the curious one:

The error came from mktexfmt that did not find extract from the beginning of the file:

  $TEXMFROOT = `kpsewhich -var-value=TEXMFROOT`;
  if ($?) {
    die "$0: kpsewhich -var-value=TEXMFROOT failed, aborting early.\n";
  unshift(@INC, "$TEXMFROOT/tlpkg", "$TEXMFROOT/texmf-dist/scripts/texlive"); <- require use this
  require ""; <- HERE COME THE ERROR

It uses kpsewhich to determine TEXMFROOT, then TEXMFROOT do search for

By default:

$ kpsewhich -var-value=TEXMFROOT

I found thar is in my profile:

# my profile is given by:

$ readlink -f ~/.guix-profile


$ find `readlink -f ~/.guix-profile` -name

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : this should be TEXMFROOT

I don't know if this can be done automagically or not.

Hope this helps


Le 10/02/2019 à 16:44, Quiliro Ordonez a écrit :
El 2019-02-06 21:39, Ricardo Wurmus escribió:
Hi Quiliro,

Emacs is capable of exporting to PDF by the use of pdflatex. This
program is available in Trisquel and PureOS (as a Debian inheritance) by
way of the 'texlive-latex-base' package. With Guix, even after
installing 'texlive-base' package (which depends on
'texlive-latex-base'), Emacs would give the error of missing 'pdflatex'
when exporting to PDF. The only solution to exporting to PDF on Emacs on
a foreign distro is to install 'texlive-latex-base' via 'sudo apt
install'. On GSD (Guix System Distribution) it is impossible to export
to PDF on Emacs.
“pdflatex” is provided by “texlive-bin”.
Installed texlive-bin and texlive-base with fairly new guix:
$ guix --version
guix (GNU Guix) 9d58e8819fdbc4c1c8a1ef6149e2d2376731a6a6
But I stil cannot export to PDF via Emacs:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018)
(preloaded format=pdflatex)
  restricted \write18 enabled.

kpathsea: Running mktexfmt pdflatex.fmt
Can't locate in @INC (@INC contains: /gnu/store/tlpkg
at /home/quiliro/.guix-profile/bin/mktexfmt line 23.
BEGIN failed--compilation aborted at
/home/quiliro/.guix-profile/bin/mktexfmt line 25.
I can't find the format file `pdflatex.fmt'!
I have yet to write a section in the manual to explain how LaTeX on Guix
systems works.  And maybe texlive-base ought to include texlive-bin.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]