DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion How to Justify in pdf output ?

  • WinstonRV

    How to Justify in pdf output ?

    Participants 2
    Replies 3
    Last Activity 11 years, 11 months ago

    I just changed the layout to 2 column in and need to justify the text in pdf output


    Su-Laine Yeo

    Reply to: How to Justify in pdf output ?

    Hi Winston,

    We might be able to help more if you could provide more detail about what you're hoping to achieve, what you changed and where, and what what you're seeing.

    In general, modifying page layout through XSL files is not simple. Getting the results that people are looking for tends to require a significant amount of programming experience and patience. An option we offer that provides easier-to-use control over PDF layout is the TopLeaf Plugin: http://na.justsystems.com/content-xmetal-topleaf



    Reply to: How to Justify in pdf output ?

    I just added 2  line in the xm_layout_masters_overrides to get 2 column layout.  but how do i justify the content.


    Derek Read

    Reply to: How to Justify in pdf output ?

    Quickest way to do this is to modify this file:

    Add the following into any “attribute-set” you wish to alter the text alignment for:

    If that already exists but has a different value (left/right/center) then change the value.

    A cleaner way (which I would recommend) would be to copy the entire attribute-set you wish to change into the following file (to redefine it) and then make your changes there:

    You may wish to include a comment referencing the file that this new attribute-set modifies so that if you need to check on this in a future release of the DITA OT where it may no longer work, function differently, or no longer be needed, you can find out why. Keeping everything in this one “override” file (custom.xsl) makes things easier to distribute to other users, back-up, etc.

    Details on support for text-align in RenderX XEP here:


  • You must be logged in to reply to this topic.

Lost Your Password?