DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion TOPLEAF: Want fixed indent for note text

  • jlm05

    TOPLEAF: Want fixed indent for note text

    Participants 1
    Replies 2
    Last Activity 10 years, 6 months ago

    For our note tags, we use a custom marker %NoteLabel to display an image in front of each note. In the stylesheet, %NoteLabel is configured as Dropped Label.

    The note tag then uses the following Custom content:

    Note:

    If the note is longer than a few lines, the text wraps down around the icon (see attached image). What we really want is for the text to have the same indent all the way down.

    What would be the best way to implement this? Can we do it with the dropped label, or should we use some other configuration to display the image?

    Thanks,

    Janice

    Reply

    gjn2066

    Reply to: TOPLEAF: Want fixed indent for note text

    What you probably have is a [u]Left Margin[/u] and [u]Label Offset[/u] of about half the width of the label image. This means that once the dropped label is passed, the text snaps back to the specified margin.

    What you want is to increase those values to the full width of the label plus a small gap. This will be large enough so there is no snap back after the label.

    Let me know if I've got your requirement right, and if the solution worked.

    Thanks,
    Geoff

    PS: I note that you have a and a separate Note: prefix which forms part of the main body of text to the right of the label. I might be inclined to create a new custom marker which can set the bold font directly, and avoid the use of . But that is a matter of personal taste, certainly what you've done is also correct.

    Reply

    jlm05

    Reply to: TOPLEAF: Want fixed indent for note text

    That worked – thanks!

    Janice

    Reply

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

Lost Your Password?

Products
Downloads
Support