> 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. 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:
/* This centers the paragraph inside the caption. */
div.caption p
{
text-align: center;
}
This is very advanced CSS for me :) , but it seems to work. It also
works for PDF (miraculously) so It's not too bad of a solution.
If anybody sees any more graceful ways to write this template, I'd
like to know. Otherwise, it might be worthwhile to add the macro to
the quickbook "library" (if we have one) and put this CSS into the
styling somewhere.
Andrew Sutton
[EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft 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