DITA and XMetaL Discussion
WinstonRV February 18, 2011 at 3:51 pm
How to Justify in pdf output ?February 18, 2011 at 3:51 pmParticipants 2Replies 3Last Activity 11 years, 11 months ago
I just changed the layout to 2 column in
and need to justify the text in pdf outputSu-Laine Yeo March 4, 2011 at 7:00 pm
Reply to: How to Justify in pdf output ?March 4, 2011 at 7:00 pm
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-topleafWinstonRV April 11, 2011 at 9:37 am
Reply to: How to Justify in pdf output ?April 11, 2011 at 9:37 am
I just added
2line in the xm_layout_masters_overrides to get 2 column layout. but how do i justify the content.Derek Read April 11, 2011 at 8:20 pm
Reply to: How to Justify in pdf output ?April 11, 2011 at 8:20 pm
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.