Empty (H1-only) topic in left nav: Web vs. PDF
Posted: Wed Dec 15, 2021 4:20 pm
I imported a Word doc into a project with a Side Navigation skin, creating new topics for every H1, H2, and H3. Sometimes an H1 is immediately followed by an H2 (I'm OK with that). But importing into the Side Nav skin it's not ok: you either get an empty page containing just the header, or you get H1 and H2 on the same page, with confusing results in the left nav because clicking either link opens the same page.
For my first project, I wrote a minor paragraph so the H1 wouldn't be on an empty page. But bla-bla text goes against my grain. This time, I tried de-linking the H1 page's TOC entry from its topic and deleting the topic file. That seemed to work well for HTML output: I got a left-nav entry, and if you click it, it opens to show the sub-pages. Groovy!
Then I generated the PDF—and those "uncoupled" headers are missing.
Is there a solid fix to make the H1s appear in the PDF? My attempted fix (creating a new "H1-only" topic and slipping it into the TOC with a print-only condition) works fine until you try to link to it; the link works in PDF but breaks in HTML.
In a perfect world, I'd just remember not to link to these empty H1s. But my memory is full of holes, and I may not be the only one who ever works on this project. Does anyone have a better idea?
For my first project, I wrote a minor paragraph so the H1 wouldn't be on an empty page. But bla-bla text goes against my grain. This time, I tried de-linking the H1 page's TOC entry from its topic and deleting the topic file. That seemed to work well for HTML output: I got a left-nav entry, and if you click it, it opens to show the sub-pages. Groovy!
Then I generated the PDF—and those "uncoupled" headers are missing.
Is there a solid fix to make the H1s appear in the PDF? My attempted fix (creating a new "H1-only" topic and slipping it into the TOC with a print-only condition) works fine until you try to link to it; the link works in PDF but breaks in HTML.
In a perfect world, I'd just remember not to link to these empty H1s. But my memory is full of holes, and I may not be the only one who ever works on this project. Does anyone have a better idea?