Next in thread → Next in month →

Re: [docbook] Figures in html - forcing one figure/page

From
Bob Stayton <>
Date
2012-03-26T20:38:38+00:00
ID
014f01cd0b90$49a4b6a0$6600a8c0@pazu
Thread
Re: [docbook] Figures in html - forcing one figure/page
Hi Brendan,

Typically such spacing between figures would be 
done using CSS.  Each figure is wrapped in a <div class="figure">, so 
you could create a CSS style selector using div.figure to add 
margins.

 

Forcing each figure into a separate chunk would be 
considerably more difficult.

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  Brendan DeTracey 

  
To:  
  

  
Sent: Saturday, March 24, 2012 2:15 
  PM

  
Subject: [docbook] Figures in html - 
  forcing one figure/page

  

  
Hello,

  
 

  
I have a document with several vertically 
  sequential  figures. When processed to chunked html all the figures end 
  up on the same page, which looks unsightly. There is no vertical spacing 
  between them. I would like to either insert some  spacing for the 
  html(but not the pdf) or force the html put each figure in a 
  different chunk.

  
 

  
<section>

  
 

  
<figure>
<title>MERIS</title>
<mediaobject>
<imageobject 
  role="fo">
<imagedata fileref="resource/meris.svg" format="svg" 
  align="left" valign="middle"/>
</imageobject>
<imageobject 
  role="html">
<imagedata fileref="resource/meris.png" format="png" 
  />
</imageobject>
</mediaobject>
</figure>

  
 

  
<figure>
<title>MODIS</title>
<mediaobject>
<imageobject 
  role="fo">
<imagedata fileref="resource/modis.svg" format="svg" 
  align="left" valign="top" />
</imageobject>
<imageobject 
  role="html">
<imagedata fileref="resource/modis.png" format="png" 
  />
</imageobject>
</mediaobject>
</figure>

  
 

  
</section>

  
 

  
(I am also finding that valign is not working for 
  the pdf. All the figures start at the top of page.)

  
 

  
Thanks,

  
Brendan
Next in thread → Next in month →