<p>Okay so <a href="https://stackoverflow.com/users/107090/lhf">lhf</a> found a good solution by suggesting the <a href="http://www.gnu.org/software/src-highlite/" rel="nofollow noreferrer">GNU source-hightlight</a> package. I basically took out each snippet of lua code from the latex file, put it into an appropriately named <code>[snippet].lua</code> file and ran the following on it to generate a <code>[snippet]-lua.tex</code> :</p>

<p><code>source-highlight -s lua -f latex -i [snippet].lua -o [snippet]-lua.tex</code></p>

<p>And then I included each such file into the main latex file using :</p>

<p><code>\input{[snippet]-lua}</code></p>

<p>The result really isn't as nice as that of the minted package, but I am tired of trying to convince the arXiv admin to support minted...</p>
Lua syntax highlighting latex for arXiv
<p>I have a latex file which needed to include snippets of Lua code (for display, not execution), so I used the <a href="https://github.com/gpoore/minted">minted</a> package. It requires latex to be run with the <code>latex -shell-escape</code> flag. </p>

<p>I am trying to upload a PDF submission to <a href="http://arxiv.org">arXiv</a>. The site requires these to be submitted as <code>.tex</code>, <code>.sty</code> and <code>.bbl</code>, which they will automatically compile to PDF from latex. When I tried to submit to arXiv, I learned that there was no way for them to activate the <code>-shell-escape</code> flag. </p>

<p>So I was wondering if any of you knew a way to highlight Lua code in latex without the <code>-shell-escape</code> flag. I tried the listings package, but I can't get it to work for Lua on my Ubuntu computer.</p>