Thank you Hussein,

I feel I am almost there; at least I think I am on the right track. The
white space is now preserved in the file, and I can even see line breaks
in the editor. But there is a difference between how the contents of the
ALT element is displayed in the EQUATION and INLINEEQUATION elements. It
is left-justified in INLINEEQUATION (which it should be), but the same
content becomes centre-justified when placed inside EQUATION. Where
should I look to find out about the styles affecting the rendering of
these elements in the editor?

By the way, the quick-and-dirty solution worked just as well as the more
permanent one, although I am not sure whether I executed the permanent
one correctly.

I have made the following steps:

   1. created ~/.xxe4/addon/custom/

   2. There, I symlinked all these includes except docbook1.imp:

        ln -s /opt/xxe-perso-4_4_0/addon/config/docbook/css/*imp .
        rm docbook1.imp

   3. copied

        /opt/xxe-perso-4_4_0/addon/config/docbook/css/docbook1.imp

        /opt/xxe-perso-4_4_0/addon/config/docbook/css/docbook.css

   4. added this to dockbook1.imp:

  <css name="Style sheet #1" location="docbook.css" alternate="true" />
  <windowLayout>
    <center css="Style sheet #1" />
  </windowLayout>

  <cfg:preserveSpace xmlns=""
    elements="address funcsynopsisinfo classsynopsisinfo
              literallayout programlisting screen synopsis
              equation/alt inlineequation/alt" />


This proved to be equivalent to the quick-and-dirty solution, although I
am left with the impression that I've performed a cargo cult act. I
understand that the reason for docbook.css to be there is to pull in my
version of docbook1.imp. It does this with 

   @import "docbook1.imp";

and it also imports a bunch of other things, which it couldn't find
until I symlinked them from the xxe installation directory. That almost
defeats the purpose of customization, although if there is no easier way
of cloning the global configuration, refreshing a bunch of links after
an upgrade is admittedly easier than hunting down changes in config
files. But maybe there is an even more straightforward way?


I appreciate your help,

--Gene


Reply via email to