On 31 December 2013 21:45, Ani A <[email protected]> wrote: > 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 >
As it says in http://asciidoc.org/source-highlight-filter.html source-highlight is not used with docbook, dblatex and FOP use their own highlighters. You need to place a problem report/enhancement request with dblatex. Cheers Lex > > 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/groups/opt_out. > -- 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/groups/opt_out.
