From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Publish to PDF on Linux: An impossible task? Date: Sun, 10 Nov 2019 18:25:22 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44313) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTxWS-0001xL-Rx for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTxWR-000813-F8 for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:25:36 -0500 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:35788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iTxWR-00080T-9Y for emacs-orgmode@gnu.org; Sun, 10 Nov 2019 19:25:35 -0500 Received: by mail-qk1-x72b.google.com with SMTP id i19so9846462qki.2 for ; Sun, 10 Nov 2019 16:25:35 -0800 (PST) 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 Sun, Nov 10, 2019 at 6:01 PM 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 direct= ories: /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/shar= e/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf= -dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2= c://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=3Dpdflatex) > > kpathsea: Running mktexfmt pdflatex.fmt > mktexfmt: No such file or directory > I can't find the format file `pdflatex.fmt'! These look like latex errors to me, nothing to do with Org. Guessing you used the arch package? I'm on arch myself, but after getting bitten by package mismatches and things being hopelessly broken, I switched to just using texlive directly: - https://www.tug.org/texlive/ It's not that bad. There's even a quick guide to walk you through the tl-install script. If you'd rather troubleshoot what you have going on now, here's some places to start: - you're missing files... figure out which package is supposed to provide them and install it - check your paths - google the error and see what you find > *** 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 tim= e have > no issue with this (seemingly) insurmountable feat. However, I am not fa= miliar with > such a myriad of tools and I'm simply looking for the "easiest" way to co= nvert/export an org > mode file to PDF on Linux. I would save this for last. For now, just take your document and export to the .tex file (don't compile). Then go to a command line and do: $ pdflatex ./file.tex and see what happens. Until you can do that manually, nothing from the Org side will help you. In fact, Org just assumes that this stuff exists, spits out the right .tex file based on your markdown, and leverages the existing latex system utilities to process it. This will end up being that you don't have a functioning latex setup on your system, and thus Org can't work its magic. John > > Can anyone point me to some tutorials? I'm sorry if I miss something obv= ious. > > Thanks, > --Nate