From: Axel Kielhorn <org-mode@axelkielhorn.de>
To: Org-Mode Mailing List <emacs-orgmode@gnu.org>
Subject: LaTeX export with listings: unknown language "calc"
Date: Sat, 13 Feb 2016 16:35:36 +0100 [thread overview]
Message-ID: <110CD6D2-4B16-4E2B-81FA-35AFB0D978E1@axelkielhorn.de> (raw)
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={}}
Is this the correct way to do this?
Should this be added to the documentation?
Regards Axel
next reply other threads:[~2016-02-13 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-13 15:35 Axel Kielhorn [this message]
2016-02-13 21:23 ` LaTeX export with listings: unknown language "calc" Eric S Fraga
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=110CD6D2-4B16-4E2B-81FA-35AFB0D978E1@axelkielhorn.de \
--to=org-mode@axelkielhorn.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.