DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion TopLeaf: Paragraph Alignment Values?

  • [email protected]

    TopLeaf: Paragraph Alignment Values?

    Participants 2
    Replies 3
    Last Activity 9 years ago

    In the TopLeaf Help, in section 6.4.1 it indicates you can select Left, Right, Center, Justify, and {inherit}, but in the interface you can only select {inherit}, Left, and Justify. Right and Center do not display in the drop-down box, and typing in Right or Center produces an error.

    Is this a known issue?

    Thanks,

    Robert

    Reply

    tonys

    Reply to: TopLeaf: Paragraph Alignment Values?

    The only context in which right and center are disabled is for list labels. This is intentional – because of the way block merging works these options would not be appropriate.

    Reply

    [email protected]

    Reply to: TopLeaf: Paragraph Alignment Values?

    But if you have a numbered list, you want the numbers and following decimal point to be right-aligned so they don't move into the space after the decimal point when they go double digit:
        9. loremipsum adas fortuit
      10. loremipsum adas fortuit
      11. loremipsum adas fortuit
      12. loremipsum adas fortuit

    not
    9. loremipsum adas fortuit
    10. loremipsum adas fortuit
    11. loremipsum adas fortuit
    12. loremipsum adas fortuit

    What's the workaround?

    Thanks,

    Robert

    Reply

    tonys

    Reply to: TopLeaf: Paragraph Alignment Values?

    This can be achieved by inserting space at the beginning of the label. For decimal lists this could be done by adding one or more figure space characters (U+2007) depending on the item number. A more general solution which handles any list style is to measure the width of the label text and calculate the appropriate space width. I've attached a stylesheet that illustrates both techniques (a PDF is included).

    Reply

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

Lost Your Password?

Products
Downloads
Support