Re: Single Line Blocks - Widows/Orphans/Keeps

2012-05-01 Thread Luis Bernardo


Can you provide the simplest but complete FO file that shows the problem 
you are facing? It will be a lot easier to help if we have an example.


Also, please indicate the FOP version you are using.

On 5/1/12 4:16 PM, DVezina wrote:

This is my first post so I apologize if this problem is asked elsewhere. I
did a search and couldn't find an answer.

My problem is that XSL-FO doesn't treat a single line block as a widow or
orphan. The requirements of my stylesheet are to always keep two lines below
a head.

[CODE]
THIS IS MY HEAD
This is
a short paragraph.
This is
a short paragraph.
[CODE]

Of course, if the first paragraph block contains two or more lines, it would
keep those lines with the head and my requirements are satisfied.

I must keep both of these lines with the head through the style sheet
without knowing how many lines the blocks will make.

Currently I count the characters in the block and if the block is less than
a pre-determined number than add the attribute
keep-with-next.within-column="1". This is a serious kluge and about 90%
effective.

Any other ideas?

Thanks,
DVezina






-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Single Line Blocks - Widows/Orphans/Keeps

2012-05-01 Thread DVezina

This is my first post so I apologize if this problem is asked elsewhere. I
did a search and couldn't find an answer.

My problem is that XSL-FO doesn't treat a single line block as a widow or
orphan. The requirements of my stylesheet are to always keep two lines below
a head.

[CODE]
THIS IS MY HEAD
This is
a short paragraph.
This is
a short paragraph.
[CODE]

Of course, if the first paragraph block contains two or more lines, it would
keep those lines with the head and my requirements are satisfied. 

I must keep both of these lines with the head through the style sheet
without knowing how many lines the blocks will make.

Currently I count the characters in the block and if the block is less than
a pre-determined number than add the attribute
keep-with-next.within-column="1". This is a serious kluge and about 90%
effective.

Any other ideas?

Thanks,
DVezina



-- 
View this message in context: 
http://old.nabble.com/Single-Line-Blocks---Widows-Orphans-Keeps-tp33763340p33763340.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org