Page breaks

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
zap
Jr. Propeller Head
Posts: 6
Joined: Tue Aug 24, 2010 5:17 am

Page breaks

Post by zap »

Hi,
I'm trying to make a good looking PDF out of a project that is primarily for .net help.

To do this I manually insert page breaks to make chapters start on a new page while in "Layout (Print)" "Medium (Print)", and I expect this NOT to affect the .net help output.
However, this makes every heading that I have put a page break in front of in Medium (Print), loose its top margin when I switch back to Layout (Web) Medium (default) and in the generated .net help file. (if I reapply the style to the heading I get the margins back, but looses the page break)

Am I doing things the wrong way?

thanks,
jorgen
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Page breaks

Post by ChoccieMuffin »

A more workable suggestion is to alter the heading styles in the stylesheet specifically in a different medium to the default one.

I have read somewhere that you need to be a bit careful just slinging page breaks into the "Print" medium, so you might want to create a new medium, call it "Docs" or something like that. Then in your stylesheet, make sure you're editing the "Docs" medium and then add a break before to the headings you want to start on a new page.

That should do the trick, without breaking all your other stuff.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
zap
Jr. Propeller Head
Posts: 6
Joined: Tue Aug 24, 2010 5:17 am

Re: Page breaks

Post by zap »

I would like:

H1
bla bla bla bla

H2
bla bla bla

--- Page Break --

H2
bla bla bla

Doing what you suggested would make it into (?):

H1
bla bla bla

--- Page Break --

H2
bla bla bla

--- Page Break --

H2
bla bla bla

How to keep the first H1 and H2 together?
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Page breaks

Post by ChoccieMuffin »

How about this. Create a sub-class called Heading2BreakBefore which has the extra attribute of a page break before it, but only in your Docs medium. Apply that to your second H2 instead of an ordinary H2.

Alternatively (depending on whether it's just the first H2 in a chapter that doesn't have a page break and all the others do) create a sub-class called Heading2NoBreak which doesn't have a break but all the others do. It depends on which is the most common way for your headings to be used.

This way you should be able to produce a PDF for printing with the breaks as you want them without breaking your .NET help.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
zap
Jr. Propeller Head
Posts: 6
Joined: Tue Aug 24, 2010 5:17 am

Re: Page breaks

Post by zap »

I will try that, thank you for your help.
Post Reply