On Monday, August 24, 2015 05:36:47 PM Eduardo Santana wrote:
> It's a "problem" of the "listing" package of latex. The source highlight of
> the language lua was not implemented there. You can create the sourcehight
> of the language and share with them, so it would be available at next
> release of the package.

Yeah I thought the same but then I have read this

http://tex.stackexchange.com/questions/169311/lua-syntax-for-the-listings-package

That states:
>The listings package defines no fewer than three Lua "dialects"

and also in my system I found that listings have [5.2]Lua on the following file

/usr/share/texmf-dist/tex/latex/listings/listings-lua.prf
https://bpaste.net/show/dfb9d10839bf


> Once I needed a highlight for a pseudolanguage in portuguese, and it have
> customized it for me. I have shared the solution here:
> http://edusantana.github.io/asciidoc/new-language-with-asciidoc-and-dblatex.
> html

Yeah i have read it before, but in this case seems that lua exists in listings 
but just with a strange name

Cheers!


> 2015-08-24 17:19 GMT-03:00 Gioacchino Mazzurco <[email protected]>:
> > I am sorry to cross-post but it seems to me that both asciidoc and dblatex
> > are
> > involved in this problem and hope the two community toghether can help me
> > to
> > solve it, moreover i have googled a lot about syntax highlighting with
> > asciidoc + dblatex and I see there is lot of people affected but problems
> > similar to the one i have encountered, maybe it's time to find a common
> > elegant
> > solution
> > 
> > Cheers!
> > 
> > On Monday, August 24, 2015 09:44:59 PM Lex Trotman wrote:
> > > That looks like a dblatex problem.
> > > 
> > > Whilst the a2x script uses dblatex and someone here might be able to
> > > help you, the people here are mostly asciidoc experts, not dblatex
> > > experts, so it might be good to also ask on the dblatex list.
> > > 
> > > Cheers
> > > Lex
> > > 
> > > On 24 August 2015 at 20:51, Gioacchino Mazzurco <[email protected]>
> > 
> > wrote:
> > > > 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.
> > 
> > --------------------------------------------------------------------------
> > ---- _______________________________________________
> > Dblatex-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dblatex-users

-- 
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.

Reply via email to