Andrew Sutton wrote:
>> You mean it's up to /me/ to make it work? :) Thanks for the ideas.
>> They sound promising. I'll post back later today and give an update
>> on how far I get.
>
> All, I got everything worked out except the linking - which doesn't
> seem to be too feasible since I don't know how to generate
> automatically incrementing links.

I think you can do that with a custom XSL rule, but don't ask me how :-) 
The current Docbook stylesheets let you number just about everything else 
except images :-(

> Here's the basic template for
> generating centered images. It's pretty trivial:
>
> [template figure[path caption]
> '''
> <mediaobject>
>     <imageobject>
>         <imagedata fileref="'''[path]'''" align="center"/>
>     </imageobject>
>     <caption>
>         <para>'''[caption]'''</para>
>     </caption>
> </mediaobject>
> '''
> ]
>
> And here's how I'm actually calling it:
>
> [figure
>     images/reference/connected_components_after.png
>     [*Figure 1.] Components found after running
> [boost_connected_components]
> ]
>
> So it turns out that this will center the image, but not the caption,
> regardless of the options applied to caption or para elements. I had
> to re-style it with CSS. That follows:

Not sure, but I think you can center the caption by adding an align="center" 
attribute to it.

HTH, John. 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to