[tex-live] [OT] listings package contribution: Lua language

Stephan Hennig mailing_list at arcor.de
Thu May 23 19:41:55 CEST 2013


Am 23.05.2013 09:50, schrieb Ulrike Fischer:

> If I this understand Stephan correctly he has written a language
> description file for lua.

Yes.


> Such files are like e.g. a language file for babel or a biblatex
> style. I don't think that it would do much harm to put such
> contribuations in some external package. There is e.g. the lstaddons
> package from Martin Scharrer. Perhaps he is willing to give such
> contribuations a shelter.

Wouldn't that again require patching the listings package, so that it
knows about the additional language?


> But one would probably will have to patch the original listings.cfg
> so that it loads an additional lstlangcontrib.sty. Using
> lstlang0.sty could be dangerous as it could be in use locally.

When describing lstlang0.sty, the listings documentation refers to a
"Developer's guide".  The documentation available via texdoc listings
doesn't seem to contain that Developer's guide, but section 7 describes
how to compile the guide.  Maybe listings already includes means to
easily add new languages without patching the package?

I haven't read the Developer's guide so far, but I've uploaded my Lua
language definitions to
<URL:http://home.arcor.de/mailing_list/Downloads/LaTeX/listings-lua.zip>.
Feel free to adapt the files to make the Lua language easily accessible
from within the listings package.

Note, listings-lua.sty uses \lstdefinelanguage instead of
\lst at definelanguage (with the @).  Just replacing the macro in the
current .sty file makes the language unavailable, though.

Best regards,
Stephan Hennig



More information about the tex-live mailing list