A Microsoft Word forum. Microsoft Office Word Forum - WordBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Microsoft Office Word Forum - WordBanter forum » Microsoft Word Newsgroups » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Left, Center, and Right aligned text in same header



 
 
Thread Tools Display Modes
  #1  
Old August 7th 08, 09:21 PM posted to microsoft.public.word.newusers
Rich Pasco
external usenet poster
 
Posts: 2
Default Left, Center, and Right aligned text in same header

I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?

- Rich
Ads
  #2  
Old August 7th 08, 09:46 PM posted to microsoft.public.word.newusers
Rich Pasco
external usenet poster
 
Posts: 2
Default Left, Center, and Right aligned text in same header

Google helped me find this solution:
http://www.pcmag.com/article2/0,2817,2023973,00.asp

Rich Pasco wrote:

I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?

- Rich

  #3  
Old August 7th 08, 09:50 PM posted to microsoft.public.word.newusers
Three Lefts
external usenet poster
 
Posts: 56
Default Left, Center, and Right aligned text in same header

On Thu, 07 Aug 2008 13:21:36 -0700, Rich Pasco
wrote:

I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?


I doubt if you are missing anything.

The solution depends on what you want done with the middle part.

If you want it centered between the margins, then set a center-tab at
the midpoint, a right-tab at the right margin, and separate the three
parts with tab characters.

If you want the middle part centered between the left and right parts,
there is no good way to do that, as far as I know. I usually use the
method above and manually adjust the center tab. Less than ideal.

Another approach is to create a table having 1 row and 3 columns. Then
adjust the column widths as you like. This has the advantage that text
that is wider than the column will wrap, whereas it can cause havoc
with tabs. The downside is that you will get an extra paragraph after
the table. Word is incapable of ending a document part with a table.

Good luck
  #4  
Old August 7th 08, 10:49 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 33,626
Default Left, Center, and Right aligned text in same header

By default, the Header and Footer styles have a center-aligned tab stop
centered between the margins and a right-aligned tab stop at the right
margin. If you have changed the document margins, you will need to move the
tab stops to the new correct location. Then type:

My Booktabpage { PAGE }tabUrgent Stuff

where { PAGE } represents a PAGE field inserted using the Insert Page Number
button on the Header and Footer toolbar. For more, see
http://sbarnhill.mvps.org/WordFAQs/HeaderFooter.htm

FWIW, the article you referenced takes much the most difficult approach to
tabs; see http://word.mvps.org/FAQs/Formatting/SettingTabs.htm and
http://word.mvps.org/faqs/formatting/UsingRulers.htm for easier approaches.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Rich Pasco" wrote in message
...
I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?

- Rich




  #5  
Old August 8th 08, 01:23 PM posted to microsoft.public.word.newusers
Reitanos
external usenet poster
 
Posts: 111
Default Left, Center, and Right aligned text in same header

If you find that setting the tabs is too much overhead, you can always
use a table with 3 cells and turn the border off.

On Aug 7, 5:49*pm, "Suzanne S. Barnhill" wrote:
By default, the Header and Footer styles have a center-aligned tab stop
centered between the margins and a right-aligned tab stop at the right
margin. If you have changed the document margins, you will need to move the
tab stops to the new correct location. Then type:

My Booktabpage { PAGE }tabUrgent Stuff

where { PAGE } represents a PAGE field inserted using the Insert Page Number
button on the Header and Footer toolbar. For more, seehttp://sbarnhill.mvps.org/WordFAQs/HeaderFooter.htm

FWIW, the article you referenced takes much the most difficult approach to
tabs; seehttp://word.mvps.org/FAQs/Formatting/SettingTabs.htmandhttp://word.mvps.org/faqs/formatting/UsingRulers.htmfor easier approaches.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Rich Pasco" wrote in message

...

I know this must be possible, but I sure can't figure out how.


I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. *For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:


My Book * * * * * * * * * * page 13 * * * * * * * *Urgent Stuff


If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.


What am I missing?


* * - Rich


  #6  
Old August 9th 08, 04:21 PM posted to microsoft.public.word.newusers
Three Lefts
external usenet poster
 
Posts: 56
Default Left, Center, and Right aligned text in same header

On Thu, 07 Aug 2008 13:21:36 -0700, Rich Pasco
wrote:

I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?

- Rich


I just remembered another way to approach your problem. You can
separate the three parts with n spaces, then center (Ctrl-E) the whole
line. Then add an equal number of spaces to the two gaps until the
left and right parts are as close to the margins as they can get. I
usually keep adding spaces until the line wraps, then delete the last
space or two. This will center the middle part between the other two
parts. It may not perfectly align the left ahd right parts with the
margins.
  #7  
Old August 9th 08, 05:31 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 33,626
Default Left, Center, and Right aligned text in same header

This is an absurd way to achieve a simple task, but if you're going to do it
this way, you can equally well insert a single space between the parts,
nonbreaking spaces within the parts, and a line break at the end of the
(Justified) line, formatting the paragraph mark as Hidden.

But if you're going to try to center text with spaces, you might as well go
back to a typewriter.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Three Lefts" wrote in message
news
On Thu, 07 Aug 2008 13:21:36 -0700, Rich Pasco
wrote:

I know this must be possible, but I sure can't figure out how.

I want to create page headers with some text left-aligned,
some text centered, and some text right-aligned. For example,
the document title on the left, the page number in the center,
and the section heading in the right, like this:

My Book page 13 Urgent Stuff

If I select any of the text in the header and click the alignment
icons in the toolbar, then the entire header is shifted.

What am I missing?

- Rich


I just remembered another way to approach your problem. You can
separate the three parts with n spaces, then center (Ctrl-E) the whole
line. Then add an equal number of spaces to the two gaps until the
left and right parts are as close to the margins as they can get. I
usually keep adding spaces until the line wraps, then delete the last
space or two. This will center the middle part between the other two
parts. It may not perfectly align the left ahd right parts with the
margins.



  #8  
Old August 9th 08, 06:45 PM posted to microsoft.public.word.newusers
Three Lefts
external usenet poster
 
Posts: 56
Default Left, Center, and Right aligned text in same header

On Sat, 9 Aug 2008 11:31:40 -0500, "Suzanne S. Barnhill"
wrote:

This is an absurd way to achieve a simple task,


Absurd? Apparently, MVPs are allowed more latitude in being crabby
than are others. How come I am criticized for attacking M$FT, but you
are allowed to attack me -- and for no good reason. I offered a
solution that works and is simple to use. I admit that you have a
better solution, but mine is simpler (does not involve non-breaking
spaces, understanding the difference between a line break and a
paragraph mark, or hidden paragraph marks). I'd wager that if 100
random Word users were assigned to two groups and each group were
given one of these solutions, more of the group using my solution
would get it right and more quickly. I still agree that yours is
better, but mine is simpler.

but if you're going to do it
this way, you can equally well insert a single space between the parts,
nonbreaking spaces within the parts, and a line break at the end of the
(Justified) line, formatting the paragraph mark as Hidden.


That's a very clever solution. I hadn't thought of using non-breaking
spaces to make each part behave like a single word and then using
Justify to space them out evenly. The line break is required because
Word does not justify the last line of a paragraph, then the paragraph
mark, now on the next line, needs to be hiddne to prevent an extra
space (which will not be obvious in the source). It also works with
any number of parts and will adjust automatically if the margins
change, which is a problem with tabs. I'll add it to my toolkit.

Thanks.


But if you're going to try to center text with spaces, you might as well go
back to a typewriter.


This is also kinda crabby and it's inaccurate. I presume you are
making a reference to the old says when we had to count the number of
characters in a title, subtract that from the line width, divide by 2,
then enter that number of spaces before the title to get it centered.
My suggestion involved no counting or dividing. Just add a few spaces
in one gap then add the same number (OK, I guess there is a little
counting, but it's much simpler) in the other gap. Repeat until it
looks OK.
  #9  
Old August 9th 08, 07:47 PM posted to microsoft.public.word.newusers
Suzanne S. Barnhill
external usenet poster
 
Posts: 33,626
Default Left, Center, and Right aligned text in same header

Both methods are absurd given that Word provides a simple, easy way to
accomplish the task (using centered and right-aligned tabs, which are
already present by default in the Header and Footer styles or can be easily
inserted using the ruler), but note that neither method actually centers the
center text; it merely creates the same amount of space between the central
portion and those on the left and right. Sometimes this might be desirable,
but usually it is not what is wanted.

To see an example of this, set a center-aligned tab in the center of the
line and a right-aligned tab at the right margin (or apply the Header or
Footer style). Then enter the following text (which might be a typical
second-page header for a letter):

John Q. SampletabAugust 9, 2008tab2

Now do the same thing with the sample text and either of our methods and
observe the distance in spacing. You can judge which would be the more
pleasing in a given situation.

Also, FWIW, I did not criticize you for attacking Microsoft. I do believe
that the behavior you're seeing with owner files is anomalous and therefore
unexpected. In Word 2003, I've frequently been surprised to see that Word
will actually release xxx.doc for editing after I've saved it as yyy.doc
(despite the fact that ~$xxx.doc is still open).

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Three Lefts" wrote in message
...
On Sat, 9 Aug 2008 11:31:40 -0500, "Suzanne S. Barnhill"
wrote:

This is an absurd way to achieve a simple task,


Absurd? Apparently, MVPs are allowed more latitude in being crabby
than are others. How come I am criticized for attacking M$FT, but you
are allowed to attack me -- and for no good reason. I offered a
solution that works and is simple to use. I admit that you have a
better solution, but mine is simpler (does not involve non-breaking
spaces, understanding the difference between a line break and a
paragraph mark, or hidden paragraph marks). I'd wager that if 100
random Word users were assigned to two groups and each group were
given one of these solutions, more of the group using my solution
would get it right and more quickly. I still agree that yours is
better, but mine is simpler.

but if you're going to do it
this way, you can equally well insert a single space between the parts,
nonbreaking spaces within the parts, and a line break at the end of the
(Justified) line, formatting the paragraph mark as Hidden.


That's a very clever solution. I hadn't thought of using non-breaking
spaces to make each part behave like a single word and then using
Justify to space them out evenly. The line break is required because
Word does not justify the last line of a paragraph, then the paragraph
mark, now on the next line, needs to be hiddne to prevent an extra
space (which will not be obvious in the source). It also works with
any number of parts and will adjust automatically if the margins
change, which is a problem with tabs. I'll add it to my toolkit.

Thanks.


But if you're going to try to center text with spaces, you might as well
go
back to a typewriter.


This is also kinda crabby and it's inaccurate. I presume you are
making a reference to the old says when we had to count the number of
characters in a title, subtract that from the line width, divide by 2,
then enter that number of spaces before the title to get it centered.
My suggestion involved no counting or dividing. Just add a few spaces
in one gap then add the same number (OK, I guess there is a little
counting, but it's much simpler) in the other gap. Repeat until it
looks OK.




  #10  
Old August 9th 08, 10:18 PM posted to microsoft.public.word.newusers
Three Lefts
external usenet poster
 
Posts: 56
Default Left, Center, and Right aligned text in same header

On Sat, 9 Aug 2008 13:47:40 -0500, "Suzanne S. Barnhill"
wrote:

Both methods are absurd


I can see that you are now locked into labeling a solution that I find
useful as "absurd". My solution, and your alternative, are useful.
They may not be the most useful for most people, buyt they are not
"absurd". Your labeling of them as such is disrespectful. The other
solutions may be more useful for more people in more situations.
Different stgrokes for different folks. Clearly, you are more
interested in maligning my solution, than in looking for useful
solutions. That's unfortunate in someone who is supposed to providing
support.

given that Word provides a simple, easy way to
accomplish the task (using centered and right-aligned tabs, which are
already present by default in the Header and Footer styles or can be easily
inserted using the ruler), but note that neither method actually centers the
center text; it merely creates the same amount of space between the central
portion and those on the left and right. Sometimes this might be desirable,
but usually it is not what is wanted.


If "sometimes it is desirable", then how can it be absurd?

To see an example of this, set a center-aligned tab in the center of the
line and a right-aligned tab at the right margin (or apply the Header or
Footer style). Then enter the following text (which might be a typical
second-page header for a letter):

John Q. SampletabAugust 9, 2008tab2

Now do the same thing with the sample text and either of our methods and
observe the distance in spacing. You can judge which would be the more
pleasing in a given situation.


I can see it being used both ways. Your way is probably more common,
but certainly not universal.

Also, FWIW, I did not criticize you for attacking Microsoft.


I didn't say you did. But other "MVPs" did. You did, however, label my
soliution as "absurd".

I do believe
that the behavior you're seeing with owner files is anomalous and therefore
unexpected.


I don't know about "anomalous", but it is certainly unexpected,
assuming that Word is well-coded. But it did happen and it has
happened before. I have even had situations where I had to close
Outlook to get a lock on a Word document freed up. The entire Office
quite is buggy as hell. Publisher is a joke. Outlook crashes easily.
Woody Leonhard has documented hundreds, if not thousands, of bugs in
Office products.

In Word 2003, I've frequently been surprised to see that Word
will actually release xxx.doc for editing after I've saved it as yyy.doc
(despite the fact that ~$xxx.doc is still open).


So it sounds like you agree with me that Word does not know how to
make appropriate use of the Windows file locking mechanism.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to center text in book pages when using left aligned body text Silfver Page Layout 13 May 7th 08 10:52 AM
first three lines are right aligned, center next & all change John Microsoft Word Help 1 August 28th 06 03:12 AM
How to align text left, center, right? LurfysMa New Users 10 July 26th 06 10:31 PM
How can I indent a center-aligned table? BIN Tables 2 March 2nd 06 12:21 PM
How can I indent a center-aligned table? BIN Microsoft Word Help 1 March 1st 06 05:21 PM


All times are GMT +1. The time now is 10:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright 2004-2019 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.