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