tecosaur / ox-chameleon

Mirror of https://git.tecosaur.net/tec/ox-chameleon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

latex export fails to render properly without additional config

hydrobeam opened this issue · comments

Description of Issue

When trying to render a plain org file without any latex config, the export process doesn't succeed and looks like this:

image
This is the original org file:

- Hello
- This is content
- This is more content
- This is, believe it or not, more content
\(\lambda + \lambda = \lambda\)

But, after pulling in `xcolor like so:

#+latex_header: \usepackage{xcolor}

the output looks a lot cleaner, but there's still some unexpected text (theme is ef-spring)

image
The first error in Org PDF Latex Output is:

! Undefined control sequence.
l.57 \addtokomafont
                 {title}{\color{documentTitle}}

So, I might be missing a koma-related class, but running :

grep "\.cls" `kpsewhich --var-value TEXMFDIST`/ls-R > $HOME/allcls.txt

showed I had them all. So I started looking through teco's config for something koma related, and pasted the following: https://pastebin.com/NYuFY3Tr into my config, copied from: https://github.com/tecosaur/emacs-config/blob/master/config.org#class-templates

And the output worked as expected, with no extra text:
image

The readme has now been amended in a89ff08.