Auto-Number Format

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
KristinRandle
Propeller Head
Posts: 11
Joined: Tue Jan 16, 2007 1:04 pm

Auto-Number Format

Post by KristinRandle »

I'm adding an Appendix to my print doc and can't seem to get a letter to display as an alphabetical counter. For example, my chapters are defined as:

CH:Chapter {chapnum}:
Chapter 1: The big red dog

I've got the following for the Appendix, so far:

CH:Appendix {A}: but it keeps appearing as:
Appendix 0: The big red dog

I want it to appear as: Appendix A: The .... Appendix B: ....

No matter what counter type I use for the appendix or whether I put in another value before the alpha command, I get a number. Any clues?

Thanks,
K
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Auto-Number Format

Post by doc_guy »

What version of Flare are you using? I was having some chapter numbering problems, including when switching to index letter numbering, but they were resolved in Flare 3.1.

Here is the code I see when I open my TOC in an external editor. (You do know that you set the numbering in the TOC, right? Not in the master page?) I'm pasting the code for the last two "chapters" in my document which are both appendices (first is Appendix A and the second is Appendix B):

Code: Select all

<TocEntry
    Title="Glossary"
    Link="/Content/MyProjectName/Appendices/glossary.html"
    conditions="Default.PrintOnly"
    StartSection="True"
    ChapterNumber="1"
    ChapterNumberFormat="upper-alpha"
    PageNumber="1"
    PageNumberReset="reset"
    VolumeNumberReset="same"
    MasterPage="/Content/Resources/MasterPages/PrintedMaster-Appendix.flmsp"
    StartChapter="True"
    ChapterNumberReset="reset"></TocEntry>
  <TocEntry
    Title="Index"
    Link="/Content/MyProjectName/Appendices/Index.html"
    conditions="Default.PrintOnly"
    StartSection="True"
    PageNumber="1"
    PageNumberReset="reset"
    VolumeNumberReset="same"
    MasterPage="/Content/Resources/MasterPages/PrintedMaster-Appendix.flmsp"
    StartChapter="True"
    ChapterNumber=""
    SectionNumberReset="continue"></TocEntry>
The reason this calls on an appendix Master Page isn't because the numbering is different; It is because I have the word Appendix pre-set in the master page as opposed to the word "Chapter" for my Chapter Master Page.
Paul Pehrson
My Blog

Image
KristinRandle
Propeller Head
Posts: 11
Joined: Tue Jan 16, 2007 1:04 pm

Re: Auto-Number Format

Post by KristinRandle »

Ah...I've been so chapter oriented I totally forgot to set the default numbering for the Appendix in the TOC properties! That was it. Thanks for the reminder.

BTW, we don't use a separate master for appendix. We just defined a style in the style sheet. It works!
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Auto-Number Format

Post by doc_guy »

Do you set them in the printed/default sections? Can you post the code?

That is great. I'd love to see that work.
Paul Pehrson
My Blog

Image
KristinRandle
Propeller Head
Posts: 11
Joined: Tue Jan 16, 2007 1:04 pm

Re: Auto-Number Format

Post by KristinRandle »

All we do is define a style for one of the headings we don't use, e.g. h5. So our "default medium" (for HTML Help) shows one style and our "print medium" defines it as a different style. We apply h5 to the topic title and it appears as follows:

HTML: Configuring the Silentall
Printed: Appendix A: Configuring the Silent Install
Post Reply