Ronnie Singer wrote:
> 
> As a professional user of XML Mind, I have been trying for ages now to
> figure out how to centre the Figure numbers
> 
> /automatically/ generated by XML Mind when converting the document to HTML.
> 
> When I convert my document to a PDF it centres the numbers fine, but in
> HTML, the image is centred but the Figure
> number are not.  I?d be grateful if you could advise me how to do this,
> please.
> 
> I am just starting out using XML, so any detailed help you can give me
> would be much appreciated.
> 
> I have attached below a snippet of the code generated by XML.
> 
>     <figure>
> 
>       <title></title>
> 
>  
> 
>       <mediaobject>
> 
>         <imageobject>
> 
>           <imagedata align="center"
> 
>                     
> fileref="images/HIRA%20Navigator/PNG/Language_selection.PNG" />
> 
>         </imageobject>
> 
>       </mediaobject>
> 
>     </figure>
> 
>   </section>
> 

The HTML generated using "DocBook|Convert Document" is styled using a
CSS stylesheet called "html.css".

You need to customize the stock html.css by adding the following CSS rule:
---
div.figure > p.title {
    text-align: center;
}
---

--> Quick and dirty method (will *not* survive XXE upgrades):

[1] Use a text editor to open
XXE_install_dir/addon/config/docbook/xsl/css/html.css

[2] Add
---
div.figure > p.title {
    text-align: center;
}
---
at the end of this file.

[3] Save this file.

If you author DocBook 5 documents rather than DocBook 4 documents,
please edit XXE_install_dir/addon/config/docbook5/xsl/css/html.css

--> The clean and perennial method (requires XXE v4.4+, survives XXE
upgrades) is explained here:

XMLmind XML Editor - Configuration and Deployment,
Customizing an existing configuration,
Using a custom CSS style sheet to style the HTML files generated by the
Convert Document submenu,
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_html_css.html

Implementing the clean and perennial method requires you to be or become
``the local guru''. That is, a normal end user cannot be expected to do
this. More information in this FAQ:

How do I customize the HTML, PDF, RTF, etc, generated using the "Convert
Document" menu?
http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables





Reply via email to