[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] source code block language 'makefile' and listings package
From: |
Thomas S. Dye |
Subject: |
Re: [O] source code block language 'makefile' and listings package |
Date: |
Fri, 04 Jul 2014 06:31:02 -1000 |
Aloha Rainer,
Rainer M Krug <address@hidden> 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