[I already sent a private mail to Darek this is a followup to that but
also to the list since I'm seeing some weird stuff I don't understand]
I just fiddled a little more and am getting a range of different page
counts depending on which page size options I use.
Page Size Use Geometry Page Count
B5 no 15
B5 yes 10
custom yes 10
custom no 11
This last entry is in a4 since geometry is not used so lyx uses the
default paper size instead. Its extra page contains the word "Contents"
in italics and follows the real contents page. Why?
The difference between the first two is that with UseGeometry==no
\documentstyle[b5paper]{scrbook} is used otherwise with UseGeometry==yes
the b5paper is left out and geometry.sty is used and passed the b5paper
size instead. Scrbook changes its spacing considerably when passed the
b5paper option. It also adds an extra page with "Contents" in italics
then which doesn't ever appear when geometry is used.
LyX is producing the right tex output, what I don't understand is why
there is so much variation in the page counts.
These page counts are different to what I got a little while ago (11)
possibly because I had commented out the \enlargethispage{22cm} entry for
the 3rd page initially (to see what happened) and may have forgetten to
uncomment it.
Allan. (ARRae)