Autonumbers & H1, H2, H3, H4....

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Shredder
Propeller Head
Posts: 43
Joined: Fri Sep 18, 2020 4:42 am

Autonumbers & H1, H2, H3, H4....

Post by Shredder »

Hi folks,

how can I make sure the autonumbers do not creep into the heading text? The margin-left and mc-autonumber-offset for p, H1, H2, H3 is currently 20mm. I guess
expl1.png
I will have to increase the margin-left by another 10mm, to 30mm?

h1
{
line-height: 130%;
mc-auto-number-format: '{chapnum}.{n+} '; /* increased by an {n} per H-level */
mc-auto-number-position: outside-head;
mc-auto-number-offset: 20mm;
margin: 0 0 0 20mm;
margin-left: 20mm;
}
You do not have the required permissions to view the files attached to this post.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Autonumbers & H1, H2, H3, H4....

Post by robdocsmith »

Yes, you'll have to increase your mc-auto-number-offset and margin-left to accommodate your largest heading number.
See https://www.madcapsoftware.com/blog/aut ... numbering/

"mc-auto-number-position: outside-head" positions the number outside of the text of the heading, with a position controlled by the mc-auto-number-offset and margin-left. The outside-head instruction is telling Flare to position the text and the number independantly. "margin-left" indents your heading away from the edge of the text frame and "mc-auto-number-offset" moves the heading number back towards the edge of the frame. If they are equal in value the number will start at the frame edge. As you've found, with a sufficiently large number, the number can overwrite the text of the heading.

Cheers,

Rob
Post Reply