Auto number position outside head does not seem to work

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
siskamoens
Propeller Head
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium
Contact:

Auto number position outside head does not seem to work

Post by siskamoens »

I have the following styles for my H1 to H3 heading levels (in Flare 4.2):

Code: Select all

  h1
  {
    mc-auto-number-position: outside-head;
    mc-auto-number-offset: 10px;
    mc-heading-level: 1;
    mc-auto-number-format: 'GH:{n+}';
  }

  h2
  {
    mc-auto-number-position: outside-head;
    mc-auto-number-offset: 10px;
    mc-heading-level: 2;
    mc-auto-number-format: 'GH:{n}.{n+}';
  }

  h3
  {
    mc-auto-number-position: outside-head;
    mc-auto-number-offset: 10px;
    mc-heading-level: 3;
    mc-auto-number-format: 'GH:{n}.{n}.{n+}';
  }
but my chapter numbers are overwritten by the header text in PDF output: like no offset space or no "outside-head" aligning is applied.

Is this a bug or am I missing something?
KGaetz
Propeller Head
Posts: 80
Joined: Thu Jul 26, 2007 8:12 am
Location: Boston, MA

Re: Auto number position outside head does not seem to work

Post by KGaetz »

Your margins are too small. Plus, you need to add a value for the left margin.

With numbered headers, you need to set two margins:
- margin-left: defines the point where the text begins
- mc-auto-number-offset: defines the point to the left of the left margin where the numbers begin.
The offset value has to be large enough for the number to display properly.

You will have to experiment for the correct margin values based on the largest number in your document. The numbers below work fine for "1.1.1" but probably would be too small for "99.99.99"

h1
{
mc-auto-number-position: outside-head;
mc-heading-level: 1;
mc-auto-number-format: 'GH:{n+}';
mc-auto-number-offset: 50px;
margin-left: 50px;
}

h2
{
mc-auto-number-position: outside-head;
mc-heading-level: 2;
mc-auto-number-format: 'GH:{n}.{n+}';
margin-left: 50px;
mc-auto-number-offset: 50px;
}

h3
{
mc-auto-number-position: outside-head;
mc-heading-level: 3;
mc-auto-number-format: 'GH:{n}.{n}.{n+}';
margin-left: 50px;
mc-auto-number-offset: 50px;
}
siskamoens
Propeller Head
Posts: 85
Joined: Wed Mar 21, 2007 3:01 am
Location: Belgium
Contact:

Re: Auto number position outside head does not seem to work

Post by siskamoens »

Aha, I thought the offset number was the amount of free space between the numbering and the header text (Flare Helps says "You can provide space between the format and the content by using the "Offset" field."), but instead it's the space between the starting point of the numbers and the starting point of the header text.

Too bad, then I can't use this. I would like to right-align the numbering in the left margin, so that the last number is always about 10px away from the header text.

Do you have any ideas on how to accomplish that?
KGaetz
Propeller Head
Posts: 80
Joined: Thu Jul 26, 2007 8:12 am
Location: Boston, MA

Re: Auto number position outside head does not seem to work

Post by KGaetz »

Try changing the value for mc-auto-number-position: to "float-left."
Post Reply