From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Gambarotto Subject: Re: emacs export to PDF impossible due to missing pdflatex Date: Thu, 14 Feb 2019 10:07:07 +0100 Message-ID: References: <87lg2sfvfo.fsf@elephly.net> <9bd61dedfa618895e27449428e0e26f8@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:55225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1guDKJ-0001xN-Eq for help-guix@gnu.org; Thu, 14 Feb 2019 04:29:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1guDBd-0004wF-L9 for help-guix@gnu.org; Thu, 14 Feb 2019 04:20:08 -0500 Received: from n7smtp2.enseeiht.fr ([147.127.176.23]:49345) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1guDBd-0004dK-BC for help-guix@gnu.org; Thu, 14 Feb 2019 04:20:05 -0500 Received: from imap.enseeiht.fr (imap.enseeiht.fr [147.127.176.21]) by n7smtp2.enseeiht.fr (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id x1E979H3012864 for ; Thu, 14 Feb 2019 10:07:09 +0100 Received: from [192.168.1.10] ([176.158.8.218]) (authenticated bits=0) by imap.enseeiht.fr (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id x1E977ch013559 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Thu, 14 Feb 2019 10:07:09 +0100 In-Reply-To: <9bd61dedfa618895e27449428e0e26f8@riseup.net> Content-Language: fr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hello I just stumbled on the same trouble myself. I solved it by defining: export TEXMFROOT=3D~/.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=20 the beginning of the file: =C2=A0 $TEXMFROOT =3D `kpsewhich -var-value=3DTEXMFROOT`; =C2=A0 if ($?) { =C2=A0=C2=A0=C2=A0 die "$0: kpsewhich -var-value=3DTEXMFROOT failed, abo= rting early.\n"; =C2=A0 } =C2=A0 chomp($TEXMFROOT); =C2=A0 unshift(@INC, "$TEXMFROOT/tlpkg",=20 "$TEXMFROOT/texmf-dist/scripts/texlive"); <- require use this =C2=A0 require "mktexlsr.pl"; <- HERE COME THE ERROR It uses kpsewhich to determine TEXMFROOT, then TEXMFROOT do search for=20 mktexlsr.pl By default: $ kpsewhich -var-value=3DTEXMFROOT /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/scri= pts/texlive/mktexlsr.pl ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : this should=20 be TEXMFROOT I don't know if this can be done automagically or not. Hope this helps =C2=A0 Pierre Le 10/02/2019 =C3=A0 16:44, Quiliro Ordonez a =C3=A9crit=C2=A0: > El 2019-02-06 21:39, Ricardo Wurmus escribi=C3=B3: >> 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 'pdflate= x' >>> 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 expor= t >>> to PDF on Emacs. >> =E2=80=9Cpdflatex=E2=80=9D is provided by =E2=80=9Ctexlive-bin=E2=80=9D. > 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=3Dpdflatex) > 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'! > =20 >> I have yet to write a section in the manual to explain how LaTeX on Gu= ix >> systems works. And maybe texlive-base ought to include texlive-bin.