xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: lists label shifting
Date Mon, 26 Jul 2010 09:17:14 GMT
Not really. The only thing I can come up is
line-stacking-strategy="font-height" on both blocks but then you may
have to scale down the graphic a bit. "relative-align" is indeed the
property that would need to be implemented for this.

On 22.07.2010 12:35:29 Maxime Bégnis wrote:
> Hi all,
> 
> Considering this code excerpt :
> 
> <fo:list-item>
> <fo:list-item-label end-indent="label-end()">
> <fo:block>2.</fo:block>
> </fo:list-item-label>
> <fo:list-item-body start-indent="body-start()">
> <fo:block>Inline graphic
> <fo:external-graphic src="url(black_square.svg)"
>                   width="5mm" height="auto"
>                   content-width="scale-to-fit"
>                   content-height="scale-to-fit" />
>          some text.
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
> 
> In the resulting PDF, the baselines of the fo:list-item-label and the 
> fo:list-item-body are not aligned vertically. I get something like this :
> 
> 2.                 /--\
> Inline graphic \__/ some text.
> 
> While I would like to get :
> 
>                     /--\
> 2. Inline graphic \__/ some text.
> 
> I understood from the XSL-1.1 specification that I should use the 
> relative-align="baseline" property on the fo:list-block. But, according 
> to http://xmlgraphics.apache.org/fop/compliance.html, this property is 
> not supported by any version of FOP.
> 
> I tried the attached test file with FOP 1.0 and 0.95 with the same result.
> 
> Does anyone knows a trick to get these baselines aligned vertically?
> 
> Thanks a lot.
> 
> Maxime Bégnis




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message