Hanging paragraph for Autonumbered Headings

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Hanging paragraph for Autonumbered Headings

Post by trent the thief »

I saw that hanging paragraphs have been covered for toc and indexes, but I couldn't find anything relevant for autonumbered heading paragraphs.

I need to replicate this heading style:

Image

I've tried combinations of padding, margins, mc-multiline-indent, and mc-autonumber-position, but so far have only managed to achieve high levels of frustration :?

Does anyone have a suggestion to resolve this?
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
techwrite_BC
Propeller Head
Posts: 11
Joined: Mon Jan 26, 2015 8:43 am
Location: Germany

Re: Hanging paragraph for Autonumbered Headings

Post by techwrite_BC »

Hi, I hope I don't misunderstand your problem.
I use hanging headings as well, for this I defined the h-style with:

Code: Select all

h2 {
...
mc-auto-number-position: outside-head;
mc-auto-number-class: AutoNumb4Headlines;
mc-auto-number-format: 'CH:{chapnum}.{n+} ';
margin-left: 56mm;
}
with the span-class

Code: Select all

span.AutoNumb4Headlines
{
	mc-float: outside-left;
	margin-right: 25px;
}
The result looks like this:
haengendereinzug.png
If this works for you, you probably might adjust the margin-right-value, which positions the auto-number as well as the margin-left-value, which positions the text.
-Stefan
You do not have the required permissions to view the files attached to this post.
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Hanging paragraph for Autonumbered Headings

Post by trent the thief »

Hi Stefan,

Ah, you're placing a span class on the autonumber! I'll plug this in and play around with it.

After all these years I'm still finding workarounds to do simple things Flare.

Thanks!
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
peckerdunne
Propeller Head
Posts: 32
Joined: Thu Apr 08, 2010 12:19 pm
Location: Watford, UK

Re: Hanging paragraph for Autonumbered Headings

Post by peckerdunne »

Well, that got me out of a fix.
I was using mc-auto-number-position: outside-head; to place autonumbers but this meant that we had problems when inserting footnotes. It sure was a head-scratcher.
Many thanks.
techwrite_BC wrote:Hi, I hope I don't misunderstand your problem.
I use hanging headings as well, for this I defined the h-style with:

Code: Select all

h2 {
...
mc-auto-number-position: outside-head;
mc-auto-number-class: AutoNumb4Headlines;
mc-auto-number-format: 'CH:{chapnum}.{n+} ';
margin-left: 56mm;
}
with the span-class

Code: Select all

span.AutoNumb4Headlines
{
	mc-float: outside-left;
	margin-right: 25px;
}
The result looks like this:
haengendereinzug.png
If this works for you, you probably might adjust the margin-right-value, which positions the auto-number as well as the margin-left-value, which positions the text.
-Stefan
Post Reply