From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Re: Publish to PDF on Linux: An impossible task? Date: Mon, 11 Nov 2019 09:36:36 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003aa52705970e084d" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:34110) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iU5Br-0007uu-AT for emacs-orgmode@gnu.org; Mon, 11 Nov 2019 03:36:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iU5Bp-0000Qv-M6 for emacs-orgmode@gnu.org; Mon, 11 Nov 2019 03:36:51 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:41385) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iU5Bp-0000QE-6T for emacs-orgmode@gnu.org; Mon, 11 Nov 2019 03:36:49 -0500 Received: by mail-wr1-x431.google.com with SMTP id p4so13579807wrm.8 for ; Mon, 11 Nov 2019 00:36:48 -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 --0000000000003aa52705970e084d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nate, As others have said, your problem sounds more like a broken TeXlive install, I would highly recommend installing the official distribution. However, even with a proper working LaTeX install, the output from the plain LaTeX exporter can be underwhelming, particularly if you want things to look "pretty". Things like syntax highlighting need to still be configured manually. If you don't know LaTeX, it can be quite a task. One shortcut I found (although I don't use this actively) is to export to reStructuredText using ox-rst (https://github.com/kandread/ox-rst), and then use Sphinx (http://www.sphinx-doc.org/ ) to produce PDF. Sphinx has a pleasing default theme which includes syntax highlighting and other nice formatting touches. Sphinx requires some initial setup but it's not too complicated. Mind you: you still need a working LaTeX install, as this is what Sphinx uses in the backend. Hope this helps, --Diego On Mon, Nov 11, 2019 at 1:01 AM 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/tex= mf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist= /web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://s= hare/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'! > > *** 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 > 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. > > Thanks, > --Nate > --0000000000003aa52705970e084d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nate,

As others have said, your prob= lem sounds more like a broken TeXlive install, I would highly recommend ins= talling the official distribution.

However, even w= ith a proper working LaTeX install, the output from the plain LaTeX exporte= r can be underwhelming, particularly if you want things to look "prett= y". Things like syntax highlighting need to still be configured manual= ly. If you don't know LaTeX, it can be quite a task.

One shortcut I found (although I don't use this actively) is to = export to reStructuredText using ox-rst (https://github.com/kandread/ox-rst), and then use Sphinx (= http:= //www.sphinx-doc.org/) to produce PDF. Sphinx has a pleasing default th= eme which includes syntax highlighting and other nice formatting touches. S= phinx requires some initial setup but it's not too complicated. Mind yo= u: you still need a working LaTeX install, as this is what Sphinx uses in t= he backend.

Hope this helps,
--Diego


On Mon, Nov 11, 2019 at 1:01 AM Nathan Neff <nathan.neff@gmail.com> wrote:
A= fter using org-mode for 10 years, I run for the doorway when
I ev= en think about trying to convert an org-mode file to PDF.

*** I quiver when I see errors such as:

wa= rning: kpathsea: configuration file texmf.cnf not found in these directorie= s: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2= c:/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/te= xmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dis= t/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 (Te= X Live 2019/Arch Linux) (preloaded format=3Dpdflatex)

kpathsea: Runn= ing mktexfmt pdflatex.fmt
mktexfmt: No such file or directory
I can&#= 39;t find the format file `pdflatex.fmt'!

*** = 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 rela= ted tools for a long time have
no issue with this (seemingly) ins= urmountable feat.=C2=A0 However, I am not familiar with
such a my= riad of tools and I'm simply looking for the "easiest" way to= convert/export an org
mode file to PDF on Linux.

<= /div>
Can anyone point me to some tutorials?=C2=A0 I'm sorry if I m= iss something obvious.

Thanks,
--Nate
--0000000000003aa52705970e084d--