Skip navigation
Currently Being Moderated

Suppressing single header in TOC

Jun 27, 2013 12:28 AM

Tags: #toc #fm11 #running_h/f

Is it possible to supresse single header in a TOC. E.g. repeating H1 (invisible) in 2nd file of book to display the correct running h/f in 2nd file (because of changing the file size). When I just repeat the header on the 1st page in the 2nd file, it appears as well again in the TOC. Other "solutions" in the forum for the running h/f didn't look to me as solutions.


My sysem: Win7-64, FM11 (unstructured).

  • Currently Being Moderated
    Jun 27, 2013 1:04 AM   in reply to Tall_CH

    I'm not at all sure I understand your exact situation, especially when you talk about a Table of Contents (ToC) and about running h/f.


    A generated ToC derives its content from styles such as Heading 1. You can also pull content in to a header/footer with the H/F variables by using styles. (you know this already, but I'm thinking out loud in case I'm answering a different question)


    So, the easiest way to keep content out of a ToC or a header/footer is to give it a new style name. An example from my books is that the headings for the ToC ("Contents") and the LoF ("Figures") use a style I've called :contents so that they don't show up in a ToC built from :h1, :h2 and :h3.


    Explain again, patiently, if this answer is irrelevant or unhelpful.<g>



    Mark as:
  • Currently Being Moderated
    Jun 27, 2013 3:33 AM   in reply to Tall_CH

    Now I think I understand better; thanks. I've never run in to this problem, and now I stop to think about it I'm assuming – always risky! – that the value of the H/F variable is reset each time you start a chapter: in other words, no H2 will be displayed in the header/footer of chapter 2 until you've used an H2 in that chapter. In fact, I've just run a test and this does seem to be how the Running H/F variables behave.

    …could also lead to the effect, that the running h/f displays H2 but not H1, because the next H1 is some pages later

    Setting up the test reminds me that I myself use two lines in the header, one for H/F1 and another for H/F2. Are you seeing a problem because there is only one place on the page that displays either/both variables?

    If I now repeat the last H1 (and/or) H2 on the 1st. page of the 2nd file (make it invisable with small and white characters …

    Untested speculation: if you give this duplicate (which I'm not sure is the best approach) its own style, then you can reference that style in the header/footer but deliberately not include it style in the ToC.

    Also, are you using an H/F definition with a list of styles? Example: I use separate styles :h2 for a normal level 2 heading and :h2_b for a level 2 heading with a page break. The H/F2 definition <$paratext[:h2,:h2_b]> then pulls in the nearest level 2 heading.

    Any help?


    Mark as:
  • Currently Being Moderated
    Jun 27, 2013 7:07 AM   in reply to Niels Grundtvig Nielsen

    THe more effective way to create truly invisible text, that can still be picked up by FM for running  h/f's or x-refs, is to create a custom colour (call i Invisible) then set that colour to be seen in VIew 6 and *invisible* in View 1 (View > Color > Views...). Then at the location that you need to insert the content, drop in an anchored frame that is outside the text frame. Within that anchored frame, place a text frame to hold your content. Enter the text and apply the alternate paratag as Niels indicates. Make certain that the Font > Color of this paratag is set to the Invisible colour.


    Then when you need to see the "invisible" content, esc v 6 turns it on and esc v 1 turrns it off. This also works at the book level for all files in the book.


    An "invisible" colour as set in the Color Views will never print or PDF, but FM still knows it's there and can reference it.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points