[Issue] [Workaround] Center text on page vertical

Discuss the word processor

[Issue] [Workaround] Center text on page vertical

Postby rbc » Fri Sep 12, 2014 1:55 am

I tried the help docs and forum search already but didn't find results: In help "center text" talked about a frame which I don't want. Forum search gave me posts on page numbering.

In page format I don't see option to center the text vertically on the page. Is there such an option? My assumption was page format as I want this for the entire document if more than one page.

PS: I'm using 4.1.1 (trying to find edit signature to update my signature)
Last edited by RoryOF on Fri Dec 18, 2015 3:26 pm, edited 2 times in total.
Reason: tagged [Issue] (link to a bug report).
-------------
Mac OSX 10.15.4 Catalina
Apache OpenOffice 4.1.7 (2020)
rbc
 
Posts: 48
Joined: Mon Jul 28, 2014 5:26 am

Re: center text on page vertical

Postby acknak » Fri Sep 12, 2014 4:08 am

There is no direct vertical centering capability for text on a Writer page.

As a workaround, you can ...

Eyeball it.

Or, tables can vertically center their contents. Insert a table covering the full height and use that to do the vertical centering.

Or, frames can center themselves vertically. Wrap the text in a frame and set the frame to be vertically centered.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: center text on page vertical

Postby rbc » Fri Sep 12, 2014 5:54 am

acknak wrote:There is no direct vertical centering capability for text on a Writer page.


I hereby would like to add this as a wishlist item! It's invaluable for so many pages I create. tried the frame workaround and found it cumbersome, will try table.
-------------
Mac OSX 10.15.4 Catalina
Apache OpenOffice 4.1.7 (2020)
rbc
 
Posts: 48
Joined: Mon Jul 28, 2014 5:26 am

Re: center text on page vertical

Postby acknak » Fri Sep 12, 2014 2:51 pm

I think I've needed it once in over ten years of using OO.

What sort of work are you doing that requires vertical centering?
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: center text on page vertical

Postby rbc » Fri Sep 12, 2014 4:36 pm

acknak wrote:I think I've needed it once in over ten years of using OO.

What sort of work are you doing that requires vertical centering?


Man times, like this time I was doing title pages (from official documents). Other times I may do signage.
-------------
Mac OSX 10.15.4 Catalina
Apache OpenOffice 4.1.7 (2020)
rbc
 
Posts: 48
Joined: Mon Jul 28, 2014 5:26 am

Re: center text on page vertical

Postby acknak » Fri Sep 12, 2014 6:19 pm

There is an open request for it, here:
Issue 20386: Support vertical centering of text in a page
You can register there and add your vote (up to two) or comment.

Given that the request was made over ten years ago, I'd say the priority for this seems pretty low. And I believe it would require a file format change (there is no vertical alignment property for plain paragraphs AFAIK), which adds a lot of inertia.

Personally, I prefer not to put any of the running text (such as a title) in a frame. I just eyeball the spacing above a title; it's not critical (for me) that it be perfect. If I needed it to be automatically adjusted, I'd use a frame. I'm not sure I understand what would be particularly cumbersome about that.

For signs and other more graphical layouts, I use Draw. It manages pretty much any sort of alignment easily.
AOO4/LO5 • Linux • Fedora 23
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Issue] Center text on page vertical

Postby Adr01t » Fri Aug 14, 2015 9:13 pm

I find your question asking what kind of work is the user doing very unhelpful. Does it matter, and why do you want to know?
Perhaps there's someone out there who can understand that it is a useful feature and is needed by some of us.
Maybe they could devote some time to adding this function.
OpenOffice4.1.1 on Mac OS X Yosemite ver 10.10.5
Adr01t
 
Posts: 3
Joined: Fri Aug 14, 2015 8:48 pm

Re: [Issue] Center text on page vertical

Postby RoryOF » Fri Aug 14, 2015 9:22 pm

Frequently the reason a question such as this is asked is because, if we know what is being done, we can make a suggestion of an alternate route to achieve the desired end.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31561
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Issue] Center text on page vertical

Postby Adr01t » Sat Aug 15, 2015 12:30 am

For myself, the answer is simple.
I want to place the title, or text in the middle of the page, for the visual effect when the document is printed.
OpenOffice4.1.1 on Mac OS X Yosemite ver 10.10.5
Adr01t
 
Posts: 3
Joined: Fri Aug 14, 2015 8:48 pm

Re: [Issue] Center text on page vertical

Postby rbc » Sat Aug 15, 2015 2:46 am

Adr01t wrote:For myself, the answer is simple.
I want to place the title, or text in the middle of the page, for the visual effect when the document is printed.



Exact reason I raised the question. I often want to make a title page, signs, or other pieces of text that I want both centered vertical and horizontal on the page. Was very surprised it wasn't part of page formatting.
-------------
Mac OSX 10.15.4 Catalina
Apache OpenOffice 4.1.7 (2020)
rbc
 
Posts: 48
Joined: Mon Jul 28, 2014 5:26 am

Re: [Issue] Center text on page vertical

Postby RoryOF » Sat Aug 15, 2015 6:53 am

I work out the space above/below needed and set that by hand, as I would have done if setting lead display type or rub down lettering. It only takes a moment to figure it out.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31561
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Issue] Center text on page vertical

Postby Zizi64 » Sat Aug 15, 2015 8:07 am

There is a lot of workaround methods for this task. There is three method in my attached example file:
Centered title.odt
(12.61 KiB) Downloaded 240 times
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9607
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Issue] Center text on page vertical

Postby floris v » Sat Aug 15, 2015 9:45 am

rbc and Adr01t:
Apologies if the following sounds somewhat condescending. ;)
You have just met some of the most helpful people on this forum. You can trust them to have your best interests in mind. You want to get your work done. Excellent. Just don't try to do it in the way you think best if that way isn't the best way to do it. OpenOffice is complex software and it takes time to learn to get the most out of it. Take that time. It's worth it - much of that time spent will still be of use if you switch to MS Office, because there's a lot of overlap.

Learn to be pragmatic and to think rationally. If some tool doesn't do what you want, use a tool that does do what you want, even if you think it's clumsy or because you don't like its name. If you want to vertically align a single line of text on a page, don't wait for that feature to be implemented but use the workarounds that are offered.
Why should you care about the frame containing your line of text if the text is vertically aligned on the printed page? Is it wasteful? No. Having a vertical alignment property in every single paragraph in all the documents that you will ever write with OO, most of which will never have any vertically aligned paragraphs, only to have it here, that's a waste of resources, disk space etc. IMO it's a completely useless feature, even possibly harmful if its implementation would introduce new bugs. OO has plenty of bugs already. People have managed to get their text vertically aligned for ten years or longer, using frames or eyeballing. I'd say: use that frame and spend less time to get your work done than it'd take by voting for that issue and waiting for its implementation.
AOO 4.1.6 op Linux Mint
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
floris v
Volunteer
 
Posts: 4206
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: [Issue] Center text on page vertical

Postby RoryOF » Sat Aug 15, 2015 10:21 am

There is a useful article on this from Solveig Haugland at
http://openoffice.blogs.com/openoffice/2005/12/centering_text_.html

Note that text on a (printed) title page is often set with the emphasis to the upper portion of the page.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31561
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Issue] Center text on page vertical

Postby floris v » Sat Aug 15, 2015 11:26 am

Come to think of it, if you want the best optical effect, vertical centering of the title may not be such a good idea. You should consider using the golden ratio instead, so roughly 61% of the remaining space on the page should be below the title and 39% above it.
AOO 4.1.6 op Linux Mint
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
floris v
Volunteer
 
Posts: 4206
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: [Issue] Center text on page vertical

Postby Zizi64 » Sat Aug 15, 2015 11:28 am

You should consider using the golden ratio instead, so roughly 61% of the remaining space on the page should be below the title and 39% above it.


+1
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9607
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Issue] Center text on page vertical

Postby floris v » Sat Aug 15, 2015 12:05 pm

AOO 4.1.6 op Linux Mint
If your problem has been solved or your question has been answered, please edit the first post in this thread and add [Solved] to the title bar.
Nederlandstalig forum
User avatar
floris v
Volunteer
 
Posts: 4206
Joined: Wed Nov 28, 2007 1:21 pm
Location: Netherlands

Re: [Issue] Center text on page vertical

Postby John_Ha » Sat Aug 15, 2015 12:41 pm

Adr01t wrote:Maybe they could devote some time to adding this function.

There is no paid "they" in OpenOffice. If this is so essential for you, and you believe it is a critical requirement for OpenOffice, why don't you volunteer to implement it - you can do here. You should get lots of thanks from any others who, like you, consider it essential.

Highlighting the text and Format > Paragraph > Indents and spacing > Spacing above paragraph ..., allows you to set the spacing above the paragraph to whatever you want ...

If this solves the problem, please edit your original post title to [Solved].
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 7836
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: center text on page vertical

Postby jrkrideau » Sat Aug 15, 2015 2:46 pm

rbc wrote:
acknak wrote:I think I've needed it once in over ten years of using OO.

What sort of work are you doing that requires vertical centering?


Man times, like this time I was doing title pages (from official documents). Other times I may do signage.



Once you get a page set up with, say the table that works, why not create a new template with that page style included? Then every time you need a new title page just use that template.
LibreOffice 6.4.3.2; Ubuntu 20.04
jrkrideau
Volunteer
 
Posts: 3788
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: [Issue] Center text on page vertical

Postby rbc » Sat Aug 29, 2015 8:09 pm

floris v wrote:rbc and Adr01t:
Take that time. It's worth it - much of that time spent will still be of use if you switch to MS Office, because there's a lot of overlap.
.


I really appreciate having OpenOffice, don't get me wrong. But what I thought would be a very, very simple task seems not to be. In comparison, MSWord has a one-click option to center text on page. I have temporary access to MSWord and tried doing this. (Although I'm totally in the dark with the newest version, I found this option quite easily.)
-------------
Mac OSX 10.15.4 Catalina
Apache OpenOffice 4.1.7 (2020)
rbc
 
Posts: 48
Joined: Mon Jul 28, 2014 5:26 am

Re: [Issue] Center text on page vertical

Postby Zizi64 » Sat Aug 29, 2015 11:34 pm

In comparison, MSWord has a one-click option to center text on page. I have temporary access to MSWord and tried doing this. (Although I'm totally in the dark with the newest version, I found this option quite easily.)


...and there are many method for solving (for workaround) this task in AOO and LO, if you need it urgently. (See the suggestions, and my attached example file above.) I think: this feature will not achieved in a short time in the open source office suites.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9607
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: [Issue] Center text on page vertical

Postby KentonS » Fri Dec 18, 2015 2:28 am

FWIW:

I very frequently use a word processor to write business letters and other formal communications. When I do so I like to center the text vertically on the page. It looks more professional. (I also use left & right justification.)

In earlier versions of OpenOffice, Write simply added blank lines to center text vertically. This was fine up to and not including the time when text was added or deleted, at which time it was necessary to delete all the added lines and center the text vertically again.

Interestingly, it seems that MS Word centers text vertically by adding a pad (under the control of MS Word) to the header. As text is added or deleted, this pad is adjusted accordingly.

I don't know what the goals of OpenOffice are, but if one of those goals is to provide a worthy competitor to commercial products <cough>MS Word<cough>, some of the less-fun-to-program but more-important-to-the-user functions must be provided. IMO, vertical centering is such a one. Much as I am absolutely not a fan of Microsoft, I (grudgingly) acknowledge that their Office product is really Best In Class. I currently need to upgrade, and I would love nothing more than to be able to discard MS Office in favor of an Open Source alternative. And also FWIW, being a software developer myself, I am a firm believer in paying for/supporting products and/or services, including Open Source products. I would willingly contribute - and have contributed - amounts equivalent to what it would cost to purchase a commercial product to organizations whose Open Source products I use.

As I said: FWIW.
OpenOffice 4.1.2 on Windows 7
KentonS
 
Posts: 1
Joined: Fri Dec 18, 2015 1:45 am

Re: [Issue] [Workaround] Center text on page vertical

Postby John_Ha » Fri Dec 18, 2015 2:44 pm

acknak's workaround using a frame to hold the text seems to be trivial to do.

1 Insert > Frame > Type
- Size > Width > Relative = 100%;
- Position > Vertical = Centre to = Page Text Area
> Borders > set Spacing to contents = 0, Borders = None
2 Save file as a template for further use

All done!

Alternatively, record a macro to do Step 1 and save it as an icon on the toolbar. You now have a "1-click vertically centred text" icon to click on.
Attachments
Clipboard01.png
page.png
Centred text in a frame
vertical centre.ott
Template of vertically centred text in a frame in an A4 page
(13.8 KiB) Downloaded 162 times
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 7836
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] [Workaround] Center text on page vertical

Postby m13m13 » Mon Mar 28, 2016 7:07 am

I, too, consider the ability to center the text on a page vertically to be essential. It doesn't seem like it should be done as a "workaround." Advising that the solution is to "eyeball" it defeats the very purpose of word processing software. When edits become necessary, you shouldn't have to continuously re-eyeball it because the edited text is no longer the same size as the original text. That's about as relevant as suggesting we resort to Gutenberg typesetting.
OpenOffice 4.0.0 on Windows 7
m13m13
 
Posts: 17
Joined: Thu Nov 08, 2012 6:11 am

Re: [Issue] [Workaround] Center text on page vertical

Postby John_Ha » Mon Mar 28, 2016 10:24 am

It appears that you have not bothered to read my post before making your incorrect comment

m13m13 wrote:Advising that the solution is to "eyeball" ...


John_Ha wrote:- Position > Vertical = Centre to = Page Text Area


There is nothing "eyeball" about that. It is a method to do EXACTLY what you want.

We are not developers and we cannot alter the code. All we can do is help you to use the code as it is. If you don't like the help freely given, then ignore it.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 7836
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Issue] [Workaround] Center text on page vertical

Postby RoryOF » Mon Mar 28, 2016 10:35 am

Also "Gutenberg" or manual typesetting is almost always carried out on a completed manuscript, so it is done once and does not need to be re-adjusted. Recollect that the layout facilities of any word processor are an attempt to replicate the years of training and experience of a compositor; for detailed page layout there are more specialised programs, which can be absolute pigs when (if) used as word processors for text composition.
Apache OpenOffice 4.1.7 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 31561
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Issue] [Workaround] Center text on page vertical

Postby Edison1205 » Mon Mar 28, 2016 10:55 am

Given that the request was made over ten years ago, I'd say the priority for this seems pretty low. And I believe it would require a file format change (there is no vertical alignment property for plain paragraphs AFAIK), which adds a lot of inertia.
NeoOffice 2.2.3 with MacOS 10.4
User avatar
Edison1205
Banned
 
Posts: 2
Joined: Tue Mar 15, 2016 9:06 am

Re: [Issue] [Workaround] Center text on page vertical

Postby Zizi64 » Mon Mar 28, 2016 10:59 am

I, too, consider the ability to center the text on a page vertically to be essential. It doesn't seem like it should be done as a "workaround."


Fortunately the AOO and the LO are opensource office suites. You can download the source code, you can modify it, and you can build your own version - if you need a new function.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 9607
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: center text on page vertical

Postby AnrDaemon » Thu May 11, 2017 8:12 pm

acknak wrote:What sort of work are you doing that requires vertical centering?

Typical documentation work.
http://prnt.sc/f6pk07
AOo 3.4.1 on Ms Windows XP/ OOo 3.3.0 on Mac OS X 10.7
AnrDaemon
 
Posts: 23
Joined: Fri Mar 27, 2009 6:53 pm

Re: [Issue] [Workaround] Center text on page vertical

Postby jrkrideau » Thu May 11, 2017 10:47 pm

I'd suggest using Zizi64's approach and spend a bit of time setting up perhaps three templates. It should not take too long to create the templates.
LibreOffice 6.4.3.2; Ubuntu 20.04
jrkrideau
Volunteer
 
Posts: 3788
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Next

Return to Writer

Who is online

Users browsing this forum: No registered users and 22 guests