Gary Oberbrunner wrote:
Fajar Priyanto wrote:
On Thursday 27 October 2005 08:25, Gary Oberbrunner wrote:
I'm trying to format a book of poetry. Each stanza is a single
paragraph with hard returns at the end of each line.
If a new stanza begins at the top of a page, the "Above paragraph"
spacing should be applied...
If a stanza is broken in the middle (by going over the end of the page,
creating an automatic page break), the remainder of that stanza should
be snugged up to the top of the following page...
Hi Gary,
I think it can be achieved this way:
1. Write the whole stanza as usual. No formatting yet. Try with the one who
exceed 1 page, so that it expand to the second page.
2. Then select the whole stanza and apply these formatting:
Paragraph > Spacing > Above Paragraph. Put any value that you want.
Paragraph > Text Flow > Widow control, put any value that you want.
I tried to understand & do what you say above, but it doesn't have the effect
I want. Both new stanzas and widow stanza-parts are laid out exactly at the
top of the page no matter what I set for Spacing Above Paragraph (I think OOo
just ignores that spacing when at the top of the page). I would like them to
be treated differently: complete stanzas at top of page should get some space
above them, continued stanzas/paragraphs not.
In a way this is a little like how first-line indent works. The first line of
a paragraph gets indented, but the first line of a paragraph-continuation
after a page break doesn't.
I don't know much about OOo scripting, but I do know how to code; is there any
way to write a script that affects the layout or spacing of objects?
Thanks,
-- Gary
Ok, I think I have a solution for you. Make a new document just in case
Open Stylist (F11)
Right Click on Default -> New
On "Organizer" tab:
Give the new style a name (i called it "FirstLine")
"next style" = "default"
"Linked with" = "default"
"Indents & Spacing" Tab:
Spacing > "Above Paragraph" to desired value
You may also want "Text Flow" tab:
Breaks > "Insert Page Before"
Whew, now:
Type as normal
Select the first line of the stanza and apply style "FirstLine"
the rest of the lines of stanza should remain "default" since they have
hard returns after each one.
The "next style" setting makes it so that If you are typing in the
"lines" style and hit RETURN, it will revert to the "default" style.
--
Grady
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]