Since you are using dblatex, you can edit your template tex file, adding a 
new language:

http://ctan.sharelatex.com/tex-archive/macros/latex/contrib/listings/listings.pdf

I have done it in the past, but it was just for a pseudo-code. 

Take a look at 
http://jevopi.blogspot.com.br/2011/10/latex-listings-definitions-for-modeling.html
http://tex.stackexchange.com/questions/115316/add-keywords-to-an-existing-language-in-listings
http://get-software.net/macros/latex/contrib/listings/listings.dtx

Em terça-feira, 31 de dezembro de 2013 07h45min56s UTC-3, Ani A escreveu:
>
> Hello,
>
> I installed asciidoc (8.6.6) on my Ubuntu, and I have highlight as well 
> as source-highlight installed and working correctly.
> When I run a2x, I get error (dblatex .. returned non-zero exit status), 
>
> $ a2x  --attribute source-highlighter=source-highlight  -fpdf -dbook 
>  mydoc.txt
>
> if I try the emitted command manually, I see that Lua is not recognized, 
>
> $ dblatex -t pdf -p /etc/asciidoc/dblatex/asciidoc-dblatex.xsl -s 
> /etc/asciidoc/dblatex/asciidoc-dblatex.sty   /home/me/mydoc.xml
>
> mydoc.tex:122: Package Listings Error: Couldn't load requested language.
> mydoc.tex:122: leading text: ...{lstlisting}[language=lua,firstnumber=1,]
> mydoc.tex:122: Package Listings Error: language lua undefined.
> mydoc.tex:122: leading text: ...{lstlisting}[language=lua,firstnumber=1,]
> Unexpected error occurred
>
> I tried setting attribute to highlight as well, same error.
> Is this got to do with some version incompatibility or the way I am using 
> the tags?, I have:
>
> [source,lua]
> -----------------------------------------------------------------------
> * ..<source>..*
> -----------------------------------------------------------------------
>
>
> Thanks.
>
>
> $ source-highlight --version
> GNU Source-highlight 3.1.5 (library: 4:0:0)
> ...
> $ highlight --version
>  highlight version 3.8
>  Copyright (C) 2002-2012 Andre Simon <andre.simon1 at gmx.de>
> ...
>

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