help-guix
[Top][All Lists]
Advanced

[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

Hello

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 mktexlsr.pl: extract from the beginning of the file:

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

It uses kpsewhich to determine TEXMFROOT, then TEXMFROOT do search for mktexlsr.pl

By default:

$ kpsewhich -var-value=TEXMFROOT
/gnu/store/yyja7azsicyf76b2vkki53bci6caqim9-texlive-configuration/share

I found thar mktexlsr.pl is in my profile:

# my profile is given by:

$ readlink -f ~/.guix-profile

/gnu/store/bp3j1n9r0r52rkbdcjkf3k4gakmg3216-profile

$ find `readlink -f ~/.guix-profile` -name mktexlsr.pl
/gnu/store/bp3j1n9r0r52rkbdcjkf3k4gakmg3216-profile/share/texmf-dist/scripts/texlive/mktexlsr.pl

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

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

Hope this helps


  Pierre

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 mktexlsr.pl in @INC (@INC contains: /gnu/store/tlpkg
/gnu/store/texmf-dist/scripts/texlive
/gnu/store/598xm50hamffb47ixv4qw6zszxaw9p9w-perl-5.28.0/lib/perl5/site_perl/5.28.0/i686-linux-thread-multi
/gnu/store/598xm50hamffb47ixv4qw6zszxaw9p9w-perl-5.28.0/lib/perl5/site_perl/5.28.0
/gnu/store/598xm50hamffb47ixv4qw6zszxaw9p9w-perl-5.28.0/lib/perl5/5.28.0/i686-linux-thread-multi
/gnu/store/598xm50hamffb47ixv4qw6zszxaw9p9w-perl-5.28.0/lib/perl5/5.28.0)
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]