A couple of things...
daicehawk wrote:Still if this works OK with a different layout means that the paragraph style is OK and something wrong with the particular layout.
Not necessarily. As I mentioned above, it could also be tied into styles, if you're using a different medium in the stylesheet for one output than you are for another output. Those two outputs could also have two different page layouts. So 1) how many stylesheets do you have, and 2) how many mediums do you have in those stylesheets (and what are the medium names)?
daicehawk wrote:Another question is I can not prevent pages from breaking before images for Word output. I set "avoid" for page-break-before for <p.Picture_center> and <img> used for illustartions aligning, "avoid" for page-break-inside for <li>, still in the output it looks like this...
Flare will try to honor your breaks, but 1) if the content can't fit on the page then it'll break somewhere in the content, 2) although it may look like you have plenty of space on the page, if your paragraph, image, or li tags have a lot of margin or padding in them, then the space reserved for that margin and padding is included in the calculations for where to break the content. So if a paragraph has a top margin of 8pt, for example, then those 8pts are included with the actual content of the paragraph when Flare determines where to place the break (the paragraph tag itself has a "box" that includes margin, border, padding, and content). You might need to create custom classes, or even add inline styles (normally not recommended), to lessen the margin and padding on those particular elements on that particular page so that everything will fit together.