Page break problems

This forum is for all Flare issues not related to any of the other categories.
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

ccardimon wrote:
LTinker68 wrote:Check the p.TOC1, p.TOC2, etc., styles, and make sure there aren't page-break-before or -after properties set.
Hmmm, what if I don't have p.TOC1 or p.TOC2 styles?
Nevermind. I just found them. I had "Show Paragraph Styles" set. I had to switch to "Show All Styles."

My p.toc1 and p.toc2 do check out okay.
Craig

Lost in Disturbia
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Re: Page break problems

Post by doc_guy »

ccardimon wrote:Nevermind. I just found them. I had "Show Paragraph Styles" set. I had to switch to "Show All Styles."
My p.toc1 and p.toc2 do check out okay.
FYI, when I'm trying to identify stuff like this, I sometimes find it is helpful to look at the stylesheet in the internal text editor, or in an external editor (like TextPad). It helps me see exactly what is in the Stylesheet, which can be a trick sometimes in Flare's stylesheet editor.
Paul Pehrson
My Blog

Image
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

doc_guy wrote:
ccardimon wrote:Nevermind. I just found them. I had "Show Paragraph Styles" set. I had to switch to "Show All Styles."
My p.toc1 and p.toc2 do check out okay.
FYI, when I'm trying to identify stuff like this, I sometimes find it is helpful to look at the stylesheet in the internal text editor, or in an external editor (like TextPad). It helps me see exactly what is in the Stylesheet, which can be a trick sometimes in Flare's stylesheet editor.
Thanks. I will.
Craig

Lost in Disturbia
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

I finally opened my Stylesheet in the text editor to make it easier to see what the heck is going on. The things I added are at the bottom and look okay to me:

div.KeepTogether
{
page-break-inside: avoid;
}

p.PageBreak
{
page-break-after: always;
}

Still trying to figure out why my TOC sometimes goes wonky.
Craig

Lost in Disturbia
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

helen wrote: First I would go into the style sheet and add a class to the div tag (either in the editor or in the text view - your call). You'd end up with div.KeepTogether (or whatever you choose to call your new class. Go to the Print Support section (in the Advanced view - I'm not familiar with the Simple view, it confuses me) and find the "page-break-inside" property. Set it to "avoid".

Then go back to your topic, select the sentence and image (or other elements you want to ensure stay together) then use the Format menu and select Group. Select your new div style from the Create Group dialog. That's it!
Okay, I've done this, but I'm seeing odd things. Gee, imagine that. :roll: ANYWHO, the text covered by my DIV tag sometimes looks bunched up. As in, one word on each line, left justified. To get it back to "normal," I unchecked Show Markers.

Another thing, what should be covered by the DIV tag? I have the text and the image that I want to keep together each covered by separate P tags and, therefore, separate DIV tags. Should it be this way?
Craig

Lost in Disturbia
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Page break problems

Post by KevinDAmery »

If you want to keep the text and the image on the same page, they should both be in the same div.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

KevinDAmery wrote:If you want to keep the text and the image on the same page, they should both be in the same div.
I knew you were going to say that.

Can the same DIV tag span two P tags?

Or do I need to have the text and image covered by the same P tag and then put in a DIV tag?
Craig

Lost in Disturbia
helen
Sr. Propeller Head
Posts: 276
Joined: Thu Oct 25, 2007 5:57 am
Location: Manchester, UK

Re: Page break problems

Post by helen »

Yup, as Kevin says - whatever you want to keep together needs to be in the same <div> tag. A <div> tag can contain numerous other tags including more than one <p> tag etc. I mostly use mine to hold bunches of <p> tags, <table> tags, and the odd <img> tag. If you select the stuff you want grouped using the XML editor and use the Format > Group menu and select your div.KeepTogether element, Flare will do the hard work for you and group your elements into one <div> tag.

I've not noticed text "bunching" when I've used <div> tags but then I've not looked too closely. How does the output look?
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

helen wrote:I've not noticed text "bunching" when I've used <div> tags but then I've not looked too closely. How does the output look?
What do you mean by "output," exactly? Word, PDF, WebHelp?
Craig

Lost in Disturbia
helen
Sr. Propeller Head
Posts: 276
Joined: Thu Oct 25, 2007 5:57 am
Location: Manchester, UK

Re: Page break problems

Post by helen »

ccardimon wrote:
helen wrote:I've not noticed text "bunching" when I've used <div> tags but then I've not looked too closely. How does the output look?
What do you mean by "output," exactly? Word, PDF, WebHelp?
I was referring to this problem in a previous post:
ccardimon wrote:Okay, I've done this, but I'm seeing odd things. Gee, imagine that. :roll: ANYWHO, the text covered by my DIV tag sometimes looks bunched up. As in, one word on each line, left justified. To get it back to "normal," I unchecked Show Markers.
I just wondered if it just looked bunched up in the WYSI(almost)WYG is if it appeared bunched up in your output as well (whatever target you're using).
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

The text I'm referrring to looks bunched up only in the Flare XML editor.
Craig

Lost in Disturbia
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

helen wrote:Yup, as Kevin says - whatever you want to keep together needs to be in the same <div> tag. A <div> tag can contain numerous other tags including more than one <p> tag etc. I mostly use mine to hold bunches of <p> tags, <table> tags, and the odd <img> tag. If you select the stuff you want grouped using the XML editor and use the Format > Group menu and select your div.KeepTogether element, Flare will do the hard work for you and group your elements into one <div> tag.
Thanks for the help. I think I might finally have this right. Gotta test it first. Grin.
Craig

Lost in Disturbia
Andrew
Propellus Maximus
Posts: 1237
Joined: Fri Feb 10, 2006 5:37 am

Re: Page break problems

Post by Andrew »

ccardimon wrote:The text I'm referrring to looks bunched up only in the Flare XML editor.
That's sort of an issue with the XML Editor -- it's often imperfect in terms of display (after all, it's a text editor, and not a browser). It's one of those things you just have to work around in most cases (and, of course, report bugs...otherwise, they don't get fixed).

As long as it works in the output (and usually, the Preview works properly even if the XML Editor doesn't), I'm usually okay with it.
Flare v6.1 | Capture 4.0.0
ccardimon
Propellus Maximus
Posts: 1571
Joined: Fri Jan 11, 2008 1:30 pm
Location: Horsham, Pennsylvania

Re: Page break problems

Post by ccardimon »

Andrew wrote:
ccardimon wrote:The text I'm referrring to looks bunched up only in the Flare XML editor.
That's sort of an issue with the XML Editor -- it's often imperfect in terms of display (after all, it's a text editor, and not a browser). It's one of those things you just have to work around in most cases (and, of course, report bugs...otherwise, they don't get fixed).

As long as it works in the output (and usually, the Preview works properly even if the XML Editor doesn't), I'm usually okay with it.
Good to know. Thank you.
Craig

Lost in Disturbia
kcann
Propeller Head
Posts: 64
Joined: Wed May 27, 2009 7:03 am

Re: Page break problems

Post by kcann »

Help!

I am trying to keep together an h3, a p followed by another p, then an li on a single page. I've set up a 'keepTogether' div, but that seems to only apply to a whole list, not just one li.

I'd rather use the standard page break settings, but they don't seem to work. Does anyone know why a 'page-break-before: avoid' on an ol or an li seems to have no effect?

Thanks!
K
Post Reply