Hi all!
I am writing a report in asciidoc, in the report I do include some Lua code
snippet, everything goes fine when I convert it to html with asciidoc but
the story is different when I try to convert it to PDF with a2x, seems it
fails because lua is not recognized as a language by dblatex, so I have
searched a lot but catually i haven't fount any working solution, the
workaround I am using is a conditional attribute like this:
:lua: {basebackend@docbook:c++:lua}
[source,{lua}]
-------------------------------------------------------------------------------------------------------------
uci:set("bmx6", "fromBird", "aggregatePrefixLen", "128") -- Disable route
aggregation
uci:set("bmx6", "general", "redistTableDelay", "60000") -- Aggregate
routing tables events by 60s time slots
-------------------------------------------------------------------------------------------------------------
The problem is that obviously when I need a PDF the syntax highlighting is
completely screwed up -_-, investigating more I find out that the problem
should be caused by missing lua syntax highlighter in texlive, but from
what I readed on stackexchange [0] i discovered is not my case because on
my texlive installation a Lua syntax highlighter is present at
/usr/share/texmf-dist/tex/latex/listings/listings-lua.prf [1] but it seems
the language is called [5.2]Lua instead of plain lua so I have just tried
changing it in the conditional attribute like this
:lua: {basebackend@docbook:[5.2]Lua:lua}
but when I call a2x i get a not very understandable error [2] , should I
someway escape [.] ? If yes how?
Another question is where do i get a list of language syntax highlighting
supported by a2x/dblatex so if I cannot fix this properly i can try to use
a different language that is more "similar" to lua?
Many thanks!
[0]
http://tex.stackexchange.com/questions/169311/lua-syntax-for-the-listings-package
[1] /usr/share/texmf-dist/tex/latex/listings/listings-lua.prf
https://bpaste.net/show/dfb9d10839bf
[2] https://bpaste.net/show/5a001957796e
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.