[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] LaTeX export with listings: unknown language "calc"
From: |
Eric S Fraga |
Subject: |
Re: [O] LaTeX export with listings: unknown language "calc" |
Date: |
Sat, 13 Feb 2016 21:23:33 +0000 |
User-agent: |
Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.0.90 (gnu/linux) |
On Saturday, 13 Feb 2016 at 16:35, Axel Kielhorn wrote:
> Hello!
>
> I use some calc in my org document:
>
> #+begin_SRC calc :var x=5 :var y=2 :exports both
> 2 + a * x ** y
> #+end_SRC
>
> When I export this to LaTeX the listings package complains about an
> unknown language calc.
>
> To fix this I simply define a language:
>
> #+LATEX_HEADER: \usepackage{listings}
> #+LATEX_HEADER: \lstdefinelanguage{calc}{morekeywords={}}
Basically, yes. I have
#+latex_header: \lstdefinelanguage{calc}{}
for the second line.
> Is this the correct way to do this?
> Should this be added to the documentation?
Probably...
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-565-g4f499f