forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EMMEL Thomas <>
Subject Re: Caption in figures
Date Wed, 25 Mar 2009 11:07:39 GMT

what do you like to see? Just a caption below the picture or even
a counter, label etc? What should be the output?

Just to create a caption fort html is easy using CSS:

<p class="withCaption">
<img src...>
This is the caption


  p.withCaption img {
    display: block;
    padding: 2px;
    padding-bottom: 4px;
    border-bottom: 1px grey solid;

  p.withCaption {
    font-style: italic;
    padding-bottom: 4px;

That should do the trick, however, creating automatic numbers is much
more sophisticated
as it requires an own dtd and some xsl-files.
I have a draft of this working but with some drawbacks.
Unfortunately I have no time in the next two weeks but thereafter I can
send you some of the
ideas if you are interested...


Vicent Mas schrieb:
> Hi,
> I'm a forrest newbie. I've recently installed forrest-0.90-dev and I'm
> migrating a website I made with docbook website.
> I've some problems I don't know how to solve. For instance, what have
> I to do to add a caption to my figures/images?
> I've tried the figure and img elements with alt/title attributes but
> I've not succeeded. I've also googled with no luck.
> Suggestions are welcome.
> Vicent
> -- 
> Share what you know, learn what you don't.

View raw message