Equation line numbers

B

Bob Mathews

Interesting. Before I made my previous post this morning, I looked in
the Help file, which of course wasn't very helpful. I didn't find
anything about it there. I've since found this tip, where Allen Wyatt
describes how to do it with a macro (works in Word 97 & later:
http://wordtips.vitalnews.com/Pages/T1554_Automatically_Setting_Right_Leader_Tabs.html

I didn't find anything showing how to set a tab at the right margin
without a macro, so that if the margin changes, the tab changes with
it. If that capability exists, I'd like to know how to do it, so if
someone can point us to the instructions...

--
Bob Mathews
Director of Training
Design Science, Inc.
bobm at dessci.com
http://www.dessci.com/free.asp?free=news
FREE fully-functional 30-day evaluation of MathType
MathType, WebEQ, MathPlayer, MathFlow, Equation Editor, TeXaide
 
S

Suzanne S. Barnhill

Apparently it's called an "alignment tab." I found something at
http://www.zdnetasia.com/techguide/office/0,39044682,62036053,00.htm.
There's a MS page at
http://office.microsoft.com/en-us/word/HA102341341033.aspx. From casual
reading, you might get the impression that they work only in headers and
footer, as that's the context in which they're presented, but the latter
page concludes:

"The Alignment Tab dialog box is only accessible when viewing the Header &
Footer Tools, but they can be utilized anywhere in your document by adding
Insert Alignment Tab to your Quick Access Toolbar. To do so, right-click
Insert Alignment Tab and then click Add To Quick Access Toolbar."
 
J

Jay Freedman

You can go one step further for convenience. The Alignment Tab dialog box
always opens with the Center option chosen. If you want a Quick Access
Toolbar button specifically for an alignment at the right margin, without
needing to show the dialog, paste this macro into Normal.dotm and make a
button to run it:

Sub RightAlignTab()
WordBasic.InsertAlignmentTab Alignment:=2, Relative:=0, Leader:=0
End Sub

Variations:

Alignment:=1 is Center and Alignment:=2 is Right. (Alignment:=0 is Left, but
that's the same as having no tab at all. <shrug>)

Relative:=0 is relative to Margin and Relative:=1 is relative to Indent.
(Apparently the Center alignment relative to Indent ignores any right
indent, and centers between the left indent and the right margin. The Right
alignment, regardless of the Relative setting, always aligns on the right
indent.)

The Leader numbers in the macro are all 1 less than the leader numbers that
appear in the dialog (0 = None, 1 = dots, etc.).

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Top