Andrew Sutton wrote:
>>> 2. Is there any way to create a caption for the table such that
>>> [link ...] or something similar would create a hyperlink to that
>>> image/
>>
>> I don't follow, tables can have captions, but what's that got to do
>> with
>> images?
>
> Sorry... Mistyped. I was on my way out when I wrote that. Also, I
> don't really know anything about Docbook DTD, so if I ask something
> trivial, give me an e-whack on the head.
>
> 2. Is there any way to create a caption for an image and then create
> links to within the text of the surrounding page (or technically any
> page)?
>
> Actually, I'm pretty sure there's no good way to do this in
> quickbook, but I want to do something like:
>
> [$path_to_image text]]
>
> So that this generates the image, plus a "Figure n + text" label
> below the image. The "n" should probably be automatically generated
> by the number of images on the page. It should also create an anchor
> onto the image (called current_page#figure_n or something like that).
> The text should just be freeform.
>
> This would allow references from within the surrounding text (or
> other text) like:
>
> [link some_page.figure_2]
>
> Or something similar. Unfortunately, I'm pretty sure that the [$path
> text] stuff would require a change to the Quickbook grammar.

I'm sure you can do this with a template, but you'll need to dig into 
DocBook and experiment a bit to get what you want: I'm sure others would be 
interested too if you can get this to work :-)

Looks like you want a mediaobject block which can contain a "caption" child 
as well as an "imageobject".  There's a trivial example here: 
http://docbook.org/tdg/en/html/imageobject.html

Sadly while you can give a caption tag an explicit alignment (centre for 
example), I can't see anything similar for mediaobject or imageobject.  You 
may have to assign the mediaobject a "role" and then set alignment in the 
stylesheet, but then that won't work so well for PDF's I guess?  Oh wait, 
"imagedata" can contain alignment requirements as well as lots of other 
goodies, see http://docbook.org/tdg/en/html/imagedata.html.

Hmm, like I said, some experimentation is needed :-)

Good luck!

John. 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to