Re: [docbook-apps] Justify text in an appendixI forgot to include the solution. In your para customization, don't use 'start', use
<xsl:otherwise>inherit</xsl:otherwise> Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] ----- Original Message ----- From: Bob Stayton To: Ron Catterall Cc: [email protected] Sent: Friday, March 23, 2007 9:17 AM Subject: Re: [docbook-apps] Justify text in an appendix Yes, the overall text-align="justify" alignment is set on the outer fo container, but this text-align is set on the inner para block, so it takes precedence. With that customization, all para will be left-aligned, and that is what I see when I test this. I don't see how your chapter para could be justified unless something else is going on. Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] ----- Original Message ----- From: Ron Catterall To: Bob Stayton Cc: [email protected] Sent: Friday, March 23, 2007 7:02 AM Subject: Re: [docbook-apps] Justify text in an appendix Bob I traced the problem down to the presence of this in my customization layer. Without this the appendix is justified left and right OK, with it, it is left justified only. Is this a precedence problem? <xsl:template match="para"> <fo:block xsl:use-attribute-sets="normal.para.spacing"> <xsl:attribute name="font-size"> <xsl:choose> <xsl:when test="@size = 'Less'">85%</xsl:when> <xsl:when test="@size = 'Small'">75%</xsl:when> <xsl:when test="@size = 'Smaller'">65%</xsl:when> <xsl:otherwise>100%</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="text-align"> <xsl:choose> <xsl:when test="@role = 'Center'">center</xsl:when> <xsl:otherwise>start</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:call-template name="anchor"/> <xsl:apply-templates/> </fo:block> </xsl:template> Ron Hi Ron, I'm not able to duplicate this problem. para elements in appendix are justified as in chapters. Do you get the same result when using the stock DocBook stylesheet, compared to your customization stylesheet? Bob Stayton Sagehill Enterprises DocBook Consulting [EMAIL PROTECTED] ----- Original Message ----- From: Ron Catterall To: [email protected] Sent: Thursday, March 22, 2007 7:01 AM Subject: [docbook-apps] Justify text in an appendix I can't get the text in an appendix to be justified, I've tried <xsl:param name="alignment" select="'justify'" /> and <xsl:attribute-set name="root.properties"> <xsl:attribute name="text-align">justify</xsl:attribute> </xsl:attribute-set> body text etc. is all justified, only the appendix is wrong. What am I missing? Ron -- Ron Catterall, Phd, DSc email: [EMAIL PROTECTED] Prolongacion de Hidalgo 140 http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821 Oaxaca 68020 Mexico fax: +1 530 348 8309 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ron Catterall, Phd, DSc email: [EMAIL PROTECTED] Prolongacion de Hidalgo 140 http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821 Oaxaca 68020 Mexico fax: +1 530 348 8309
