OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] page numbers are not right aligned


On 2018-11-26 Bob Stayton wrote:
> The more general case with dot leaders and right alignment is an
> inresolved FOP bug:
> 
> https://issues.apache.org/jira/browse/FOP-1839
> 

IIRC this problem can be eliminated if outer spaces around the dots are replaced with leaders of fixed width. The standard space is stretching element thus hard to calculate properly if there are too many variables to handle.


So in <xsl:template name="toc.line"> it could be modified like this:

<fo:basic-link internal-destination="{$id}">
  <xsl:apply-templates select="." mode="titleabbrev.markup"/>
</fo:basic-link>
<fo:leader leader-length="3pt"/>
<fo:leader leader-alignment="reference-area">
  <xsl:attribute name="leader-pattern">dots</xsl:attribute>
  <xsl:attribute name="leader-pattern-width">3pt</xsl:attribute>
  <xsl:attribute name="rule-thickness">0.5pt</xsl:attribute>
</fo:leader>
<fo:leader leader-length="3pt"/>
<fo:basic-link internal-destination="{$id}">
  <fo:page-number-citation ref-id="{$id}"/>
</fo:basic-link>


Regards,

Jan



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]