Oh, this is great.  I'm a new DocBook user (thus my using your user help site),
and just saw the "customize" feature yesterday.  Did not know how to use it,
though.

Will definitely give these instructions a try today.

Thanks, Hussein!

Marilyn Shinego


-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Thursday, September 20, 2012 4:05 AM
To: Marilyn Shinego
Cc: '[email protected]'
Subject: Re: [XXE] Centering figure captions horizontally on page

On 09/19/2012 09:29 PM, Marilyn Shinego wrote:
>
>   Hello, XMLmind Support Team.
>
>
>   Was there ever a resolution to the problem of horizontally centering
>   (in the final .pdf document)
>   the figure captions? (see below)

The solution seems to be described in the mailing list thread below.

As of version 5.3, it's easy to add attribute text-align=center to 
attribute-set formal.title.properties from within XMLmind XML Editor.

How to do this is described here:

[1] Open your document (or any document of the same type).

[2] Select "Options|Customize Configuration|Customize Document Conversion 
Stylesheets".

See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html

[3] Select "Convert to PDF, PostScript".

See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/ConversionStylesheetsEditor_reference.html

[4] Click "Customize".

[5] After creating the empty customization file, click "Edit".

[6] Using the "XMLmind XSL Customizer" built-in helper application, add 
attribute text-align=center to attribute-set formal.title.properties and save 
your customization file to disk.

See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html



>
>
>   Thanks a lot,
>   Marilyn


PS: If you want us to answer your next questions, please identify 
yourself as a customer. More information in 
http://www.xmlmind.com/xmleditor/support.html#xmleditor_support_policy





>
> Clark Karr wrote:
>
>>/  /
>
>>/  You're correct that XXE displays the captions and images centered, but 
>>when/
>
>>/  I convert the document to pdf only the image is centered (via the align/
>
>>/  attribute).    So, I end up with the caption left justified and the image/
>
>>/  centered./
>
>>/  /
>
>>/  It's hard to believe captions can't be centered; I hope it's just 
>>ignorance/
>
>>/  on my part.    I can't find anything in the docbook documentation and was/
>
>>/  hoping you'd be able to help./
>
>>/  /
>
>>/  In many ways, I like the XXE screen format better than that generated for/
>
>>/  pdf./
>
>>/  /
>
>
>
> Centering the title of the figure in the generated PDF can be done by
>
> customizing the corresponding DocBook XSL style sheet.
>
>
>
> More precisely you need to add:
>
>
>
> <xsl:attribute name="text-align">center</xsl:attribute>
>
>
>
> to the formal.title.properties attribute set:
>
>
>
> <xsl:attribute-set name="formal.title.properties"
>
>                                         
> use-attribute-sets="normal.para.spacing">
>
>       <xsl:attribute name="font-weight">bold</xsl:attribute>
>
>       <xsl:attribute name="font-size">
>
>           <xsl:value-of select="$body.font.master * 1.2"></xsl:value-of>
>
>           <xsl:text>pt</xsl:text>
>
>       </xsl:attribute>
>
>       <xsl:attribute name="hyphenate">false</xsl:attribute>
>
>       <xsl:attribute name="space-after.minimum">0.4em</xsl:attribute>
>
>       <xsl:attribute name="space-after.optimum">0.6em</xsl:attribute>
>
>       <xsl:attribute name="space-after.maximum">0.8em</xsl:attribute>
>
> </xsl:attribute-set>
>
>
>
> More info. in
>
> http://docbook.sourceforge.net/release/xsl/current/doc/fo/index.html
>
>
>
> Unfortunately there is no easy way to do this from XMLmind XML Editor,
>
> but if you want, you can directly edit
>
> XXE_install_dir/addon/config/docbook/xsl/fo/param.xsl
>
>
>
> (For DocBook 5, you'll have to edit
>
> XXE_install_dir/addon/config/docbook5/xsl/fo/param.xsl)
>
>

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to