This is what I’m talking about:

The TOC and List of Figures is appearing in my TOC! I don’t know about you but this is not ok.

But how do you make it an H1 not show in the TOC when you’ve created your TOC to show them all? Easy peasy!

Open your stylesheet and find the H1. But wait – make sure you’re in the print medium!

Create a new class called h1.TOC or h1.frontmatter or something that will indicate that this is an H1 specifically for use in your TOC and Lists.

You’ll only need to change two properties to make this work. So, as shown in the screenshot above, open the Print Support section of the class.

Now change mc-heading-level to 0 and page-break-before to avoid.

The first setting you changed, mc-heading-level, will result in any H1 with this class to NOT appear in the TOC.

The second property is to make sure that when you assign this class to the h1 that is your Table of Contents heading, it won’t break a page before it. This will only apply if you assigned your main H1 page-break-before property to always.

Now that you’ve created this new class and applied the correct properties – all that’s left is to assign this class to the H1 that contains your TOC and any Lists of.

    <body>
        <h1 class="no_toc">Table of Contents</h1>
        <MadCap:tocProxy />
        <h1 class="no_toc">List of Figures</h1>
        <MadCap:listOfProxy style="mc-list-of-tag: p;mc-list-of-class: caption;mc-list-of-paragraph-class: TOCHeading;" />
    </body>

Now, just build your target and entries for your TOC and Lists of should be out of your TOC.

Notice a distinct lack of entries for the TOC and List of Figures. Success!

Try it and let me know how it goes for you.

In my last post, I showed you how to use auto-numbering and cross-references to build numbered figures and references to those figures in preceding paragraphs.

Now I’m going to show you how to create a List of Figures in your PDF document using the work you did on the figures.

I’m going to make the following assumptions:

  • You’ve already created auto-numbering for your figure captions (or you know how to do it)
  • You’ve already created and applied a style class for those captions

If you don’t know how to do either of the steps above, click here to learn.

Now let’s create a List of Figures and make it look all nice and attractive. I’m going to build mine on the same page as my printed TOC.

So I open the Printed TOC topic and I add a List of… proxy.

Flare doesn’t care what you’re making a list of so you don’t need to worry about it not saying List of Figures.

It’s when the List-of Proxy window opens that you’ll tell Flare what kind of list you want. This is where the magic happens!

If you recall from my previous post, we set all figure captions to the p.caption style class. We’re going to use that here by selecting <p> as the tag name and caption as the Tag Class. With this setting, every p.caption in your project will appear in your list of figures.

Now, to determine how the list items will look, I selected TOCHeading from the pull-down menu. This is a <p> style class that I created for this effort. The settings for this class are:

p.TOCHeading
 {
 color: #000000;
 mc-heading-level: 1;
 mc-leader-format: '.';
 font-size: 11pt;
 font-family: Verdana;
 font-weight: normal;
 margin-bottom: 4pt;
 margin-top: 4pt;
 }

Note that this is in the Print medium!

Without these properties set, my List of Figures would look entirely different than the TOC and I needed them to look like a matched pair. Here’s the final result:

There are a couple of things to mention here:

  • The TOCHeading style is designed to change the look of the list entries, not the figure captions themselves. In my project, my figure captions are italicized and 9pt, in the list of figures, the captions are normal and 11pt.
  • Making these changes in the wrong medium will result in frustration, wasted time, and possibly the use of foul language. So keep confirming that you’re working the Print medium.
  • Unlike Word you don’t have to remember to do that annoying Update TOC thing. Every time you build your print target, the page numbers will be recalculated. Yeah!

In my next post, I’ll talk about how to keep the Table of Contents and List of Figures headings from appearing in your TOC.

Page 1 of 3123

Recent Posts