Ross Johnson wrote:
On Sat, 2006-03-11 at 09:16 +0000, Peter Hillier-Brook wrote:
Ross Johnson wrote:
On Fri, 2006-03-10 at 09:16 -0700, Solveig L Haugland wrote:
Hi,
I've got a blog on how to center text vertically on a page with a text box.
http://openoffice.blogs.com/openoffice/2005/12/centering_text_.html
Did you notice that, with both the draw frame (and the same applies for
the table idea), you had to size one or both dimensions? I.e. the table
needed vertical height set; the draw frame needed both vertical and
horizontal. Now what happens when the document page format is changed?
E.g. from portrait to landscape, or from A4 to Letter?
[cut]
I give in! The conversion of page formats hadn't occurred to me and,
given that possibility, I agree that a centred frame is the 'pure' (and
optimum) tool to use.
Peter HB
What is the RFE number please. I will add my votes.
An RFE isn't needed. Everything you need to do this is in OOo already,
and uses only natural ingredients. If you're referring to the interest
expressed earlier in an RFE to add vertical text centring in frames,
that isn't necessary, and I don't think it would work as a general
feature anyway.
If you can tolerate yet more on this subject, here is how it's done -
either anchored relative within the document or fixed to a specific
page, with text flowing past it:
You start with a frame this is centred on the page vertically and
horizontally, and has 'Automatic' width and 'Autosize' height, so that
the frame shrinks or expands to fit the text. With these settings there
is no notion of top, centre, or bottom alignment to worry about.
If you want the text in the frame to be the only text on the page,
precede the frame with a page break, and add another one after (see
example 1 below). The frame should be anchored to the paragraph between
the breaks so that it will move relative within the document. Don't
anchor the frame to the page.
If you want the frame to always be on a specific page (see example 2
below), you should use the Wrap options and spacing to exclude other
content from that page. Wrap before/after spacing can total a little
over 43 cm, so 21cm before and after will effectively exclude everything
from the page. Before and after spacing does not extend beyond the
logical page, so this way you can still change the page format and not
have to adjust frame size attributes to fix everything afterwards.
You may find that setting the Wrap option and the before/after spacing
works just as well as page breaks. I don't know - I'll try it - it's an
option I suppose.
Step by step example 1:
I want 'Hello world' centred H and V on the page, so that 'Hello world'
is the only text on that page. I want that page to be relative to the
other content of the document, i.e. to move if I add or delete enough
content ahead of this page.
1 - type Ctrl+Enter twice to insert two page breaks (only one is needed
if the centred frame is on the first or last page).
2 - position the text cursor at the paragraph between the page breaks
(i.e at the top of the [first] blank page just inserted in step 1).
3 - Insert - Frame
4 - in the Frame properties, set 'Centre' for both H and V, and relative
to 'Page text' for both.
5 - choose 'Automatic' for H size and 'Autosize' for V size.
6 - anchor the frame to Paragraph (the default).
7 - set other attributes like borders etc.
8 - add text to the frame, and centre align the paragraph if you like.
Now, if you add sufficient new content before the page containing the
frame, the frame [containing text] will automatically jump to the next
page and remain centred.
Step by step example 2:
I want the same text etc. but this time I want the frame to stay on a
specific page and the rest of the document to flow past it.
1 - position the text cursor in that page.
2 - use steps 3, 4 and 5 above to create the frame.
3 - anchor the frame to Page.
4 - set Wrap to 'None' and set the before and after spacing to 21.5cm
(almost the maximum possible).
5 - do steps 7 and 8 as above to finish.
Now if you add new content before the page containing the frame, content
will flow past the frame page.
Russ:
This is okay to do, but the problem then is added when you open a Word
doc with page centered vertically: does it add all these frames? When
you export OOo doing this, how does it work in Word?
I think that should maybe be part of the discussion.
Crystle
--
Crystle Numan
Administrative Secretary, Immanuel CRC
61 Mohawk Rd. W. Hamilton ON L9C 1V9
905-385-0662
[EMAIL PROTECTED]
http://immanuelministries.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]