From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: source code block language 'makefile' and listings package Date: Fri, 04 Jul 2014 06:31:02 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X36OX-0007pd-87 for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:31:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X36OR-000242-Gt for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:31:29 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:51152) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X36OR-00023l-7k for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 12:31:23 -0400 In-Reply-To: (Rainer M. Krug's message of "Fri, 04 Jul 2014 17:32:34 +0200") 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: Rainer M Krug Cc: emacs-orgmode@gnu.org Aloha Rainer, Rainer M Krug writes: > Hi > > I used the source block language 'makefile' > > #+begin_src R makefile > ... > #+end_src > > and now I would like top export this block to html. I am using the > listings package for this, and it supports the syntax, but the > language is called 'make', while org uses 'makefile' > > Is there a way of telling the tex exporter to export 'makefile' blocks > as language 'make', or can I easily tell listings that the language > 'makefile' is equal to 'make'? You can configure the listings package with the commands \lstnewenvironment and \lstset. There is a worked example here: http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-4 hth, Tom -- Thomas S. Dye http://www.tsdye.com