L
L.Allan
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
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