Sequential Multi-level Chapter Numbers in hanging indents

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
Sharon Raanan
Jr. Propeller Head
Posts: 6
Joined: Wed Mar 23, 2022 8:17 am

Sequential Multi-level Chapter Numbers in hanging indents

Post by Sharon Raanan »

I’ve been playing with the ol style (and ol ol / ol ol ol), and I can’t manage to reproduce this:

https://drive.google.com/file/d/1nGkct3 ... sp=sharing

Here are my (very easy) settings in MS Word:

https://drive.google.com/file/d/1Cp_96U ... sp=sharing

This is as far as I’ve gotten in Flare. Why are my heading TEXTS showing up on the line below the heading NUMBER? And I don’t want them indented, I want them all along the margin.
(Feeling frustrated!)

https://drive.google.com/file/d/1cNA-DS ... sp=sharing

In addition, does this mean I've "sacrificed" the normal 1, 2, 3, OL list if I'm using it for the headings?


Regards,

Sharon Ra’anan | Technical Content Creator
sraanan@cloudally.com | https://www.cloudally.com
robdocsmith
Sr. Propeller Head
Posts: 248
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Sequential Multi-level Chapter Numbers in hanging indent

Post by robdocsmith »

I'm not sure I understand why you're using OL and LI elements to produce headings. I can see it would create issues because by default lists are nested inside each other and the indents will be as you've demonstrated. Each sub list will be more indented than the parent. You can change that with playing with margins and padding, but I'm not sure why you would want to. It would make it impossible to use lists for normal bullets and numbers.

Instead I'd set up H1, H2 and H3 styles with numbers. There are some good resources on here, in the help and in madcap blogs about numbered headings and how to set them up. Search for auto-numbers.

In general you'd be adding things like:

Code: Select all

	margin-left:10mm;
	mc-auto-number-offset: 10mm;
	mc-auto-number-format: 'CH:{chapnum}.{n+}';
	mc-auto-number-position: outside-head;
to your heading styles where the mc-auto-number-format changed depending on your desired numbered style and heading level.

If you need to have both numbered and unnumbered headings in your document, you could make H1, H2, H3 unnumbered and then add classes for numbered versions of them, or use H4, H5, H6 for numbered headings. You'd have to play with the styles of course to get numbered and unnumbered versions to match.

Rob
Sharon Raanan
Jr. Propeller Head
Posts: 6
Joined: Wed Mar 23, 2022 8:17 am

Re: Sequential Multi-level Chapter Numbers in hanging indent

Post by Sharon Raanan »

Thank you, that worked!

Regards,
Sharon
Post Reply