emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: Nathan Neff <nathan.neff@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Publish to PDF on Linux: An impossible task?
Date: Mon, 11 Nov 2019 09:36:36 +0100	[thread overview]
Message-ID: <CAGY83Ec4MW9XffMri0crdL-QF-NMes+sY5uyTR0Vp767Ndzs6w@mail.gmail.com> (raw)
In-Reply-To: <CAC=HedCVUqC-5JVrnUve1c9fTk_7VBV5LFPcOnT7bV=exY_YEA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2623 bytes --]

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/
<http://www.sphinx-doc.org/en/master/usage/quickstart.html>) 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,

On Mon, Nov 11, 2019 at 1:01 AM Nathan Neff <nathan.neff@gmail.com> 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'!
> *** 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.
> Thanks,
> --Nate

[-- Attachment #2: Type: text/html, Size: 3377 bytes --]

      parent reply	other threads:[~2019-11-11  8:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-11  0:00 Publish to PDF on Linux: An impossible task? Nathan Neff
2019-11-11  0:19 ` Marcin Borkowski
2019-11-11  0:25 ` John Hendy
2019-11-11  0:40   ` Marcin Borkowski
2019-11-11  0:54     ` John Hendy
2019-11-11 20:12       ` Jack Kamm
2019-11-11 20:24         ` Alan E. Davis
2019-11-11 23:45           ` Alan Tyree
2019-11-11  0:56     ` Tim Cross
2019-11-11  1:52       ` Samuel Wales
2019-11-11  8:36 ` Diego Zamboni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGY83Ec4MW9XffMri0crdL-QF-NMes+sY5uyTR0Vp767Ndzs6w@mail.gmail.com \
    --to=diego@zzamboni.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=nathan.neff@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).