Advice please on page breaks

This forum is for all Flare issues not related to any of the other categories.
Post Reply
lizat
Sr. Propeller Head
Posts: 282
Joined: Sun Feb 01, 2009 3:49 am
Location: London, UK

Advice please on page breaks

Post by lizat »

Dear madcaps,

My help project has an on-line element, and some associated pdf output. The user will read the on-line material and may want to print a related pdf and/or print a specific topic. The content has to be fairly carefully structured and presented. So here are my questions:
  1. On-line topic printing: is there a way to force where a page break might occur?
  2. PDF printing: does Flare have, or is there a workaround to effect, the equivalent of "keep with next"
  3. PDF Printing: if I want to enforce a page break can this be associated with a style or class for just print media?
Any suggestions? Thank you............................. liz
amarchant
Jr. Propeller Head
Posts: 6
Joined: Mon Apr 02, 2012 10:44 am

Re: Advice please on page breaks

Post by amarchant »

Re. question 2: This is what I do to keep a picture's caption with its image (the caption precedes the image): I set the page-break-after attribute on my picture caption style. This has worked for me.

To do this, edit your stylesheet. Go into the Advanced view. On the left hand side, select the style you want to keep with next. On the right hand side, expand the Print Support section. Se the page-break-after attribute to "avoid".

Here's a screen cap to show you what it looks like in the advanced editor. (Scroll down to see where p.PicCaption has page-break-after set to "avoid".)
You do not have the required permissions to view the files attached to this post.
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Advice please on page breaks

Post by LTinker68 »

The print medium in the topic stylesheet controls printing from online output. It's also used, by default, when building print output, like PDFs. If you don't think your PDF output is going to have breaks at the same points as printing from online would, then you could either create a new print medium for PDF output (e.g., printPDF) and specify that medium in the print target, or you could create a second topic stylesheet used just when building print outputs and specify that stylesheet in the print target.

Generally where you do page breaks in online won't be the same as print output, since the user would be printing just a handful of pages (however many pages the current topic would take to print), as opposed to a whole book like print output would, so the new print medium or second stylesheet would be better in these situations.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
lizat
Sr. Propeller Head
Posts: 282
Joined: Sun Feb 01, 2009 3:49 am
Location: London, UK

Re: Advice please on page breaks

Post by lizat »

Dear Lisa,

Thank you for the input. I have used your solution for situations like captions and pictures. I had hoped for a more generic "keep with next" solution, I don't want to force a page break rather I need to be confident that headings, for example will keep with their content. In Word I use "keep with next" extensively to aviod having to introduce artificial page breaks. I want to use a PDF out put rather than Word because there is an overhead with producing Word documents from Flare - they work fine but need much more management and thought than PDF, and in any event what is the point I just need to give the users a document to read not edit.

I can see me inventing a class that only applies to print and having a paragraph that is conditional on print whnever I want to force a page break for printing purposes.

Thank you............................ liz
Post Reply