From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Kielhorn Subject: LaTeX export with listings: unknown language "calc" Date: Sat, 13 Feb 2016 16:35:36 +0100 Message-ID: <110CD6D2-4B16-4E2B-81FA-35AFB0D978E1@axelkielhorn.de> Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUcEX-0006RT-KP for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 10:35:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUcEW-0000TZ-JB for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 10:35:41 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::5]:44201) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUcEV-0000SY-TZ for emacs-orgmode@gnu.org; Sat, 13 Feb 2016 10:35:40 -0500 Received: from [IPv6:2003:73:2f7e:d100:a5b2:892:f949:ffaf] (p200300732F7ED100A5B20892F949FFAF.dip0.t-ipconnect.de [IPv6:2003:73:2f7e:d100:a5b2:892:f949:ffaf]) by smtp.strato.de (RZmta 37.18 AUTH) with ESMTPSA id f01ee5s1DFZacDE (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Sat, 13 Feb 2016 16:35:36 +0100 (CET) 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: Org-Mode Mailing List Hello! I use some calc in my org document: #+begin_SRC calc :var x=3D5 :var y=3D2 :exports both 2 + a * x ** y #+end_SRC=20 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=3D{}} Is this the correct way to do this? Should this be added to the documentation? Regards Axel=