don´t count topics

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
meggs
Propeller Head
Posts: 12
Joined: Mon Mar 02, 2009 2:01 am

don´t count topics

Post by meggs »

Hallo Flaries,

is ther any way to "not count several topics"?
I´ve got some topics that i don´t want to count and don´t show in the TOC (i.e. foreword, contacs).

best regards, meggs
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: don´t count topics

Post by RamonS »

What exactly do you mean with "count"?
meggs
Propeller Head
Posts: 12
Joined: Mon Mar 02, 2009 2:01 am

Re: don´t count topics

Post by meggs »

thx for the reply,

i mean, that some topics should not be numbered, for example my TOC


now:
(1) foreword
(2) contacts
(3) introduction
(4) Overview
.
.
.
.
should be:
foreword
contacts
(1) introduction
(2) overview
.
.
.
.
DurtyMat
Sr. Propeller Head
Posts: 224
Joined: Wed Aug 22, 2007 8:09 am
Location: ClrH2o, Fl

Re: don´t count topics

Post by DurtyMat »

Oh, if you are talking about "counting" the chapters of the manual that can be fixed.
Flare: I bought it ... so that means I can break it, right?
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: don´t count topics

Post by KevinDAmery »

Simplest way to do it is to create a class for the heading you use for chapters, and in that class set the mc-heading-level value to 0. You then apply this class to the topics that you don't want to be counted. Visually, they will look the same as your other chapters, but because the mc-heading-level is 0 Flare won't consider them part of the numbering scheme.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: don´t count topics

Post by LTinker68 »

Uh, actually that won't work. Setting the mc-heading-level to 0 prevents the topic from appearing in the generated TOC altogether (the topic will still be in the output but its associated TOC entry won't be there).

Are you using an auto-numbering scheme on those headings? If so, create a custom class like Kevin suggested, but clear the auto-number format field for that class. Then apply that class to the headings that you don't want to be part of the numbering scheme. I should point out that it won't be as easy as it sounds because of one minor little problem in Flare. You can't "clear" the format field of a class if its parent tag has a format specified. What you have to do is enter a space in the format field of the class. Save the stylesheet. Then open the stylesheet file in the Internal Text Editor, scroll down to the bottom of the page to get to the new class you just created, then remove the space from the format field.

Before the edit:

Code: Select all

h1.noNum
{
    mc-auto-number-format: ' ';
}
After the edit:

Code: Select all

h1.noNum
{
    mc-auto-number-format: '';
}
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
meggs
Propeller Head
Posts: 12
Joined: Mon Mar 02, 2009 2:01 am

Re: don´t count topics

Post by meggs »

thats how it worts!!
looks exactly is i wanted it
thank you very much kevin & LT
Post Reply