Thread: line numbers
View Single Post
  #14   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default line numbers

Mr. Daniels,

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

Wrong again! Line numbers "can" be placed in the right margin of a left-to-
right section.

What everyone else reading this tortured thread now knows is that while you
were ranting and snapping at the hand trying to assist you, a solution was
found. So for you I guess it is back under the bridge for another supper on
crow sandwich

Peter T. Daniels wrote:
"Mister" Maxey,

If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set up
a regime of distrust, let this so inform you.

I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.

You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer to
any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may have
assimilated the contemptuous attitude of your then-superiors toward
all things Arab. But that's your problem, not to be transferred to
someone who happens to be concerned with the Arabic language.]]

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

And you do it in a way that expects someone to work through your code
to try to figure out what it is doing; even though you provide the
explanation at the bottom that you get an error when you enter a
negative value.

What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?

I understand that you posted in this thread solely with the purpose of
"baiting" me, and I regret to say, you succeeded; but since after your
standard regime of insults you incorporated a display of your attempt,
however much it failed, to find a solution, I chose not to ignore it
and to allow you the satisfaction, this time, of having successfully
baited me.

NB I have made no changes in my way of responding to queries, whether
as a result of your constant nagging or of anything else.

On Nov 1, 3:04 pm, "Greg Maxey"
wrote:
Mr. Daniels,

Are you off your medications today? After a few days of nearly
perfectly delivered posts and replies, each devoid of your
characteristic arrogance, I thought that perhaps you had made the
turn and would start behaving. Now this.

You are the one that asked the question he

"Is there any way to get the line numbers to appear in the right
margin (i.e., at the beginnings of the lines)?"

If you already knew that the answer was no, as I tried to confirm
with the VBA demonstration, then why did you ask?

Peter T. Daniels wrote:
What did you include there that I didn't already describe? Text
direction is set paragraph by paragraph, and cannot be assigned to a
paragraph style, and apparently cannot be assigned section by
section, either; and line numbers apparently cannot be placed in
the right margin, even with right-to-left text.


And something has gone very wrong at the end of your message.


On Nov 1, 10:48 am, "Greg Maxey"
wrote:
Mr. Daniels,


I don't have "support for ... languages" enabled so I didn't test.
However
this might help you:


Change paragraph direction
The feature or some of the options described in this Help topic are
only available if support for right-to-left (right-to-left: Refers
to keyboard settings, document views, user interface objects, and
the direction
in which text is displayed. Arabic and Hebrew are right-to-left
languages.)
languages is enabled through Microsoft Office Language Settings.


1.. Place the insertion point in the paragraph that you want to
change, or select several paragraphs.
2.. Do one of the following:
a.. To have text begin from the left, click Left-to-Right on the
Formatting toolbar (toolbar: A bar with buttons and options that
you use to
carry out commands. To display a toolbar, press ALT and then
SHIFT+F10.).
a.. To have text begin from the right, click Right-to-Left on the
Formatting toolbar.
When you change the paragraph direction, Microsoft Word leaves
justified and centered text as it is. In the case of left-aligned
or right-aligned text, Word flips the alignment to its opposite.
For example,
if you have a left-to-right paragraph that is right aligned, such
as the
date at the top of a letter, clicking Right-to-Left results in a
right-to-left paragraph that is left aligned.


That being said, and ICBW, based on what appears to be avialabe
programatically, Line Numbers can only be positioned in the left
margin:


Sub ScratchMaco()
With ActiveDocument.Sections(1).PageSetup.LineNumbering
.Active = True
.CountBy = 5
'DistanceFromText: Returns or sets the distance (in points) between
the
right edge _
'of line numbers and the left edge of the document text. Read/write
Single.
.DistanceFromText = 5
End With
End Sub


As you should see, DistanceFromText is based on "the left edge of
the document text." A negative value creates and error.


Peter T. Daniels wrote:
Paragraph by paragraph; Text Direction (the button on the Home
tab) can't be included in a paragraph style.


If there's a way to set Text Direction for a section, I didn't
find it in Page Setup.


On Nov 1, 12:50 am, Guy Lydig
wrote:
Is your text direction set to: right-to-left?


"Peter T. Daniels" wrote:
I'm typing a page of Arabic. Is there any way to get the line
numbers to appear in the right margin (i.e., at the beginnings
of the lines)? Setting "mirror margins" doesn't do it.


--
Greg Maxey


See my web sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.


begin 666 default.aspx?AssetID=ZA060445861033
*2DQ,3/CX
M^&6/W;6UM2(B(M7@]5J$U,;&QIJ:FBM1G3EJM/\"E2ID%KO#9BN6J2V\W-
MS6QL;-C8V$ETPS)7I-'=\V1W\;3[W;]82GZ#X^/F"+W"9+E5M;6]/@]\'!
MP2M5KG5U=41$1#0T-,?7]#HZ.G!P-/] ``````````````````````````
M`````````````````````````````````"'Y! ``````+ `````5`!0```9V
MP(!P2"P:`X"DLE"IO0YC-*!4RKT"L6YD0F-R_3R,5:*4./KC*"&! 8`E2R
M1*H`065NP$0)$\+!Q-W`!D:"7Y^`!\B&!V$"@80B4D.%Q82A$J422
I)9I)G$D4%:%]J$LIUA)6JU*K[!67K.QM;:T1[M%00`[


`
end-


--
Greg Maxey

See my web sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.- Hide quoted text -

- Show quoted text -


--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.