Another problem emerged in my projects - while outputting to pdf, the index and content chapters break weird. The problem is that the Heading for the sections is on one page, but the content (or index) start on the next page. I'm quite sure that word output didn't do that and I think that even the pdf just after I changed the output from the MS word to pdf was OK in this way. On the other hand, the stylesheet had to go through major changes and cleaning at the time, and I'm not able to find the source of the page break inserted. Can anyone help with that?
Here is the part of the code I think is responsible for the behavior:
I have a content.htm page for the content, which looks this way:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" class="" MadCap:lastBlockDepth="3" MadCap:lastHeight="507" MadCap:lastWidth="968">
<head>
<link href="../Resources/Stylesheets/Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p class="content">Contents</p>
<MadCap:tocProxy class="" />
</body>
</html>
As you can see, I mimic the h1 style by the p.content style, but even when I have the ontents inscription closed into the h1 tag, no change happens. I use TOC depth for determining the heading level. Analogically, the index looks this way:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:conditions="Default.PrintOnly">
<head>
<link href="../Resources/Stylesheets/Styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p class="content">Index</p>
<MadCap:indexProxy class="" style="mc-index-header-height: 0.5in; mc-index-headings: true; mc-column-count: 2; page-break-before: avoid;" />
</body>
</html>
There is only one stylesheet defined in my project for non-table styles, the styles.css, which I add zipped as an attachment. The relevant parts of the file (as I think) are (as defined in the print media):
Code: Select all
p.content {font-size: 18pt; font-weight: bold; page-break-before: always; page-break-after: avoid; margin: 9pt 0pt 9pt 0pt;}
MadCap|indexProxy.index {font-style: italic; page-break-before: avoid;}
MadCap|tocProxy {border-top-style: none; page-break-before: avoid;}
Still, the page break after p.content paragraph and before index proxy and TOC proxy occurs. I tried everything, including setting the page-break-before(after) tags directly into the code and not onto the css, but with no success. Also, searching this forum is not easy as majority of words I would like to search for (e.g. index, TOC, Content...) is banned by the search engine. Can anyone suggest where to look further?
You do not have the required permissions to view the files attached to this post.