Hi All,

could anyone help me with this? I would really appreciate your help.

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

On Sep 23, 12:22 am, Tomek Kaczanowski <[email protected]>
wrote:
> 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/71711d51...),
> 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 readhttp://www.sagehill.net/docbookxsl/CustomGentext.htmland a lot
> of other docbook xsl information, but I still do not know how to do
> this.
>
> Could you please help?
>
> --
> Regards,
> Tomek Kaczanowskihttp://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