• Subject: Re: Lua syntax highlighting for LaTeX?
• Date: Tue, 30 Aug 2011 05:12:13 +0400

On Mon, Aug 29, 2011 at 20:38, Alexander Gladysh <agladysh@gmail.com> wrote:

> Does anyone know how to teach LaTeX to highlight Lua code?

> The listings package does not seem to support it...

Everyone who made suggestions, thank you!

After some extensive googling I've settled on Minted package â as it
does not require any additional motions for code to be highlighted...
It is a bit slow and has some bugs in highlighting, but is quite
bearable. (I blame the fact that it's backend is implemented in Python
:-P)

Alexander.

\documentclass{beamer}
\usepackage{minted}

\begin{document}

\begin{frame}[fragile]

\frametitle{Foo}

\begin{minted}{lua}
print("Hallo, world!")
\end{minted}

\end{frame}

\end{document}