From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph LANGE Subject: Re: [export] Beamer frames containing lstlisting are no longer made fragile Date: Sat, 05 Oct 2013 15:25:52 +0100 Message-ID: <52502170.3050403@gmail.com> References: <52330365.9090002@gmail.com> <874n9ldx0r.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSSnk-0008EH-Ei for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 10:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSSnd-000389-Tz for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 10:25:48 -0400 Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:57667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSSnd-00037l-Nj for emacs-orgmode@gnu.org; Sat, 05 Oct 2013 10:25:41 -0400 Received: by mail-we0-f178.google.com with SMTP id q59so4865927wes.23 for ; Sat, 05 Oct 2013 07:25:41 -0700 (PDT) In-Reply-To: <874n9ldx0r.fsf@ucl.ac.uk> 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: Orgmode Mailing List Hi Eric, I'm sorry I hadn't got back to this email – didn't notice it because of a filtering mistake on my side. 2013-09-16 08:51 Eric S Fraga: >> My intuition after browsing the Org source code and documentation is >> that I should now use #+BEGIN_SRC and that then everything will be >> handled automatically. However the language of my listings is a >> non-standard one, which requires a lot of custom options to the >> lstlisting environment. >> >> Could anyone kindly point me to an example? > > I am not sure what it is you want an example of? I was interested in an example of defining a new language, including keywords and comment and string syntaxes etc., so that one can use it with #+BEGIN_SRC and that the exporter (case 4 of (defun org-latex-src-block) in ox-latex.el) will create the right \lstset{...}\begin{lstlisting}...\end{lstlisting} output. I presume it boils down to adding a custom language to Babel, but that's something I haven't done before. > If it's how to > configure lstlisting for a new language, here are two examples: Thanks! With this way I'm familiar. In case it may be of interest to anyone, I recently made public a LaTeX package with \lstdefinelanguage settings for a lot of languages I am interested in (mainly from the Semantic Web): https://github.com/clange/latex/blob/master/lstsemantic.sty. Cheers, Christoph -- Christoph Lange, School of Computer Science, University of Birmingham http://cs.bham.ac.uk/~langec/, Skype duke4701 → Mathematics in Computer Science Special Issue on “Enabling Domain Experts to use Formalised Reasoning”; submission until 31 October. http://cs.bham.ac.uk/research/projects/formare/pubs/mcs-doform/