From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: LaTeX export with listings: unknown language "calc" Date: Sat, 13 Feb 2016 21:23:33 +0000 Message-ID: <87r3ggs3sa.fsf@ucl.ac.uk> References: <110CD6D2-4B16-4E2B-81FA-35AFB0D978E1@axelkielhorn.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUhfL-0002TR-LL for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 16:23:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUhfH-0006xr-Lh for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 16:23:43 -0500 Received: from mail-db3on0133.outbound.protection.outlook.com ([157.55.234.133]:34240 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUhfH-0006xP-Bx for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 16:23:39 -0500 In-Reply-To: <110CD6D2-4B16-4E2B-81FA-35AFB0D978E1@axelkielhorn.de> (Axel Kielhorn's message of "Sat, 13 Feb 2016 16:35:36 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Axel Kielhorn Cc: Org-Mode Mailing List 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