Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.newusers
L.Allan L.Allan is offline
external usenet poster
 
Posts: 3
Default RTF: Right-justify part of paragraph (not entire paragraph)?

I'm trying to right-justify part of a line that I'm generating with a C++
program. I'm familiar with the the \qr and \qc and \ql to justify right,
center, and left respectively.

If I embed a \qr within a paragraph, then the entire paragraph is right
justified. I want to have just the text after the \qr be right justified on
the same line, and the text before the \qr remain left justified on the same
line.

This is the equivalent of what I want to generate (first part is standard,
simple rtf header):

{\rtf1\ansi\ansicpg1252\deff0\deflang1...
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\nowidc...
Line 1 with standard left justification (slj)\par
Line 2 with slj and then \qr right justified\par
Line 3 with slj\ql\par
Line 4 with standard left justification (slj)\par
Line 5 with slj and then \line\qr right justified\par
Line 6 with left justification\ql\par
Line 7 with left justification
}

You can copy/paste into WordPad to see how the above is "rendered".

I can use \line\qr tags in the 5th line to cause a line-break and then the
rest of the paragraph is right-justified. I want to be able to do this
without the \line tag and have it remain as one line. I want it to look
something like:

Line 1 with standard left justification (slj)
Line 2 with slj and then.......................right justified
Line 3 with slj\ql
Line 4 with standard left justification (slj)
Line 5 with slj and then
.................................................. ........right justified
Line 6 with left justification
Line 7 with left justification

(above may not have intended alignment because of variable width font.

Thanks


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can you Justify paragraph except for the last line? Jack B Microsoft Word Help 3 November 9th 07 03:48 AM
Justify last line of a paragraph. smiths4 Microsoft Word Help 2 May 24th 06 04:18 PM
Shift+enter does not justify the last sentence of paragraph?? CondorLB Microsoft Word Help 4 September 29th 05 04:13 AM
Can I justify last line in a paragraph? Sergio Page Layout 3 April 26th 05 06:57 PM
Justify of last line in paragraph Stefan Blom Page Layout 3 April 15th 05 06:53 PM


All times are GMT +1. The time now is 06:38 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"