Skip to main content
Participating Frequently
June 27, 2013
Answered

Suppressing single header in TOC

  • June 27, 2013
  • 1 reply
  • 1094 views

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).

This topic has been closed for replies.
Correct answer FieryPantone

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?

N

1 reply

Legend
June 27, 2013

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>

N

Tall_CHAuthor
Participating Frequently
June 27, 2013

O.k. let's say the styles H1 and H2 are the headings which are used in the TOC and are used to display in the running h/f.

When there is a new file in the book, the running h/f doesn't display anything until the next style H1 resp. H2 appears. This could also lead to the effect, that the running h/f displays H2 but not H1, because the next H1 is some pages later. 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), the running h/f does display the H1/H2. But in the TOC, the H1/H2 gets as well a second time displayed. If it's possible to suppress only the repeated H1/H2 on the 1st page on the 2nd file to be displayed in the TOC, then the running h/f problem could be solved.

Thanks

FieryPantoneCorrect answer
Legend
June 27, 2013

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?

N