From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Publish to PDF on Linux: An impossible task? Date: Mon, 11 Nov 2019 01:19:15 +0100 Message-ID: <87h83b5kos.fsf@mbork.pl> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43781) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTxQt-0000SH-1z for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:19:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTxQp-00031C-7I for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:19:50 -0500 Received: from mail.mojserwer.eu ([195.110.48.8]:34848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iTxQp-0002ru-0M for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:19:47 -0500 In-reply-to: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nathan Neff Cc: emacs-orgmode On 2019-11-11, at 01:00, Nathan Neff wrote: > After using org-mode for 10 years, I run for the doorway when > I even think about trying to convert an org-mode file to PDF. > > *** I quiver when I see errors such as: > > warning: kpathsea: configuration file texmf.cnf not found in these > directories: > /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c. > This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) > (preloaded format=pdflatex) > > kpathsea: Running mktexfmt pdflatex.fmt > mktexfmt: No such file or directory > I can't find the format file `pdflatex.fmt'! This looks like a broken installation of TeXlive to me, although I'm definitely not an expert on kpathsea or mktexfmt. Another conjecture is that Arch's TeXlive needs some environment variable which is only set for interactive sessions. (This would be strange.) This is a very long shot, but what would happen if you compiled a short, hello-world-type LaTeX document in the console? Would Org-mode export work after this? Also, what does this: ~set | grep ^TEX~ say in a console? And in M-x shell? For my way, see below. > *** I run for cover when I read documentation such as: > > https://orgmode.org/manual/LaTeX-Export.html#LaTeX-Export > > I think people who have been using LaTex and related tools for a long time > have > no issue with this (seemingly) insurmountable feat. However, I am not > familiar with > such a myriad of tools and I'm simply looking for the "easiest" way to > convert/export an org > mode file to PDF on Linux. > > Can anyone point me to some tutorials? I'm sorry if I miss something > obvious. I've been using pdf export many times without any problems. My secret is using TeXlive from the TeXlive distribution, not from my GNU/Linux distribution. (Last time I checked, Ubuntu's TeXlive was hopelessly out of date. Even though I've been using Arch for a few years now, I still install TeXlive from https://tug.org/texlive/ . One big advantage of that is that the installer lets me install only stuff I need, and if I later decide that I need something more, I can install even an individual class/package/font/whatever. Another plus is that I can easily install a few versions of TeXlive and e.g. develop my classes with the latest one, but test them also on an older version.) Also, the installer lets me put TeXlive in my home directory, so it can be installed even without root privileges. Hth, -- Marcin Borkowski http://mbork.pl