--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi there,

There appear to be some inconsistancies in the way that images are
centered between the tex/pdf output and html output.  (I'm using
openjade and the 4.1 docbook and dsssl stylesheets).

Here's an example:

    <sidebar>
      <para>
        <graphic align="center" fileref="some_image_file">
        Some text.
      </para>
    </sidebar>

The tex/pdf output has the image centered as expected, but the html
produced looks like this:

    <div class="SIDEBAR">
        <a name="AEN6"></a>
        <p align="justify"></p>
        <p><img src="some_image_file" align="CENTER"></p>
        Some text
        <br>
        <br>
    </div>

It should look like this:

    <div class="SIDEBAR">
        <a name="AEN6"></a>
        <p align="justify"></p>
        <p align="center"><img src="some_image_file"></p>
        Some text
        <br>
        <br>
    </div>

i.e. the align should be on the <p> element, not the <img> element.

Is this easily fixed?


Also the same is true of mediaobjects.

    <para>
        <mediaobject> <imageobject> <imagedata align="center" 
fileref="some_image_file">
        </imageobject> </mediaobject>
    </para>

The html output is:

    <p align="justify"><img src="some_image_file" align="CENTER"></p>

Shouldn't this be:

    <p align="center"><img src="some_image_file"></p>


Also if the media object is in a figure like:

    <para> <figure> <title> Some figure </title>
    <mediaobject> <imageobject> <imagedata align="center" fileref="some_image_file">
    </imageobject> </mediaobject> </figure> </para>

The html is:

    <div class="FIGURE">
        <a name="FIG2.1B"></a>

        <p><b>Figure 1-1. The origin is numerically zero</b></p>
        <img src="chapter2/cartesian_frame_of_reference.png"
        align="CENTER">
    </div>

Shouldn't this be:

    <div class="FIGURE">
        <a name="FIG2.1B"></a>

        <p><b>Figure 1-1. The origin is numerically zero</b></p>
        <p align="CENTER"><img src="chapter2/cartesian_frame_of_reference.png"></p>
    </div>


I'd be very grateful for hints to fix so, so that my html output is
closer to the way that the pdfs render.

Thanks,
Joe

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyCi2kACgkQXVIcjOaxUBYgqQCeMCMnpO7dmuiP228uvrjVwddV
UqkAnRpNf2114PpmQkImXLR9MDAERvma
=J/PQ
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--

Reply via email to