Header levels (conditional / relative)

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Scotty
Propeller Head
Posts: 98
Joined: Thu Feb 02, 2012 6:56 pm
Location: Europe

Header levels (conditional / relative)

Post by Scotty »

I have two target outputs for release notes:
  • Release notes for specific release x.y
  • Release notes containing all releases x.*
Release notes for a specific release x.y use header levels as expected - h1 for chapter title level, and so on down:
h1 - Introduction to Release notes
h1 - New features
h1 - Fixes

However, for the x.* release notes, each release version should be the top level header:

h1 - 1.1
h1 - 1.1.1
h1 - 1.1.2
h1 - 1.2

...with each release nested:

h1 - 1.1
...h2 - Introduction to Release notes
...h2 - New features
...h2 - Fixes
h1 - 1.1.1
...

The problem being, the h1 levels in the x.y release notes are now needed at h2 level.

Is there a way to set header level to a conditional level or relative level?

As an aside, what overall strategies do you use to deal with these types of scenarios? I can think of some fairly dirty solutions, but I'd rather keep this as clean and automated as possible.
The newest noob in town.
devjoe
Sr. Propeller Head
Posts: 342
Joined: Thu Jan 23, 2014 1:43 pm

Re: Header levels (conditional / relative)

Post by devjoe »

Assuming you are using a PDF target for your release notes, you could set the option which sets heading levels using the TOC. Then you have a TOC for each x.y version and the x.* TOC includes each of the other ones one level indented.
Scotty
Propeller Head
Posts: 98
Joined: Thu Feb 02, 2012 6:56 pm
Location: Europe

Re: Header levels (conditional / relative)

Post by Scotty »

devjoe wrote:Assuming you are using a PDF target for your release notes, you could set the option which sets heading levels using the TOC. Then you have a TOC for each x.y version and the x.* TOC includes each of the other ones one level indented.
That's done the trick, TIL.

Thanks!
The newest noob in town.
Post Reply