On 1 January 2013 05:46, Nilo Menezes <[email protected]> wrote: > Hi, > > I'm writing a small book using asciidoc. I'm used to Latex. > The target format will be epub, but I had the same problem people on the > list already talked about: code blocks are not colored when using docbook > toolchain :-( > I decided to switch from Latex to asciidoc, but docbook is not an easy > option for me (I hate xml :-D). > > So I decided to stop using a2x and started to call asciidoc directly to > produce html5 files. I will probably convert from html to epub by hand later > on, this is not a problem. > > The only problem I have now is that source code listings are not numbered. > Is it possible to activate source code listing numbering, as with tables and > figures? > I will probably need a table of source code as well. > > I'm using asciidoc 8.6.7 on Ubuntu 12.10. > > asciidoc -b html5 -n db.txt >
Hi Nilo, You would have to make a customised html5.conf with a listing block that used a counter attribute to provide the numbers. Cheers Lex > > Best Regards, > > Nilo Menezes > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/asciidoc/-/7-t5j9T1Pm0J. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/asciidoc?hl=en. -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
