Hi All,

Assuming the following snippet of source AsciiDoc text:
.SomeName
[[listing_some_name]]
[source,java]
----
// some code here
----

Now I generate the PDF with the following command:
a2x -k -f pdf -a docinfo1 -d book --fop $SRCDIR/book/book.txt -v -D
$TARGET

In the generated PDF links to listings (<<listing_some_name>>) are
being rendered as only titles, e.g. "SomeName"). What I would like to
have is the "Listing 5.3" instead. I have tried various combinations,
like:

      <l:context name="xref-number-and-title">
        <l:template name="listing" text="Listing %n"/>
        <l:template name="example" text="Listing %n"/>
        <l:template name="formalpara" text="Listing %n"/>
      </l:context>

This worked pretty well for Tables and Figures (as it was suggested by
Henrik in the previous discussion:
http://groups.google.com/group/asciidoc/browse_thread/thread/71711d518b9ebac/f609f90268c07080?lnk=gst&q=xref#f609f90268c07080),
but I can not make it work for listings.
I have also tried to change value of xref.with.number.and.title but
this seems to be broken (nothing happens).

I read http://www.sagehill.net/docbookxsl/CustomGentext.html and a lot
of other docbook xsl information, but I still do not know how to do
this.

Could you please help?

--
Regards,
Tomek Kaczanowski
http://kaczanowscy.pl/tomek

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

Reply via email to