RTF: Align Text - Left, Right, Centered and Justified
Info by NetLabel | Last update on 2020-10-25 | Created on 2015-08-21
In this information, I would like to show you, how to align a text within them manually created RTF document.
You can use one of the following command words for this.
Command | Meaning |
\ql | left alignment (default) |
\qr | right alignment |
\qj | justified |
\qc | centered |
By default, the RTF format uses a left alignment for text. This alignment is always used when there is no other definition for the corresponding section.
Example
Let us have a look at an example demonstrating how the different commands can be used in practice.
{\rtf1\ansi\deff0 {\fonttbl{\f0 Times New Roman;}} \pard\qc Centered\par \pard\ql Left\par \pard\qr Right\par \pard\qj Justified\par }
The first line of this document is centered, to the second and third line a left and right alignment is applied. The fourth line is written in justification.
About the Author
The author has not added a profile short description yet.
Show Profile
Related Topics
Lord's Prayer in 20 other Languages
Info | 0 Comments
HTML5 Canvas: Beginner Tutorial Chapter 4 - Write Text on Canvas
Tutorial | 0 Comments
Delphi: CanvasTextOut: Align Left, Right and Center
Tip | 0 Comments
How to Replace multiple Texts at the same Time
Tutorial | 0 Comments
HTML/CSS: Align entire Table Column right or centered
Question | 4 Answers
Total Lunar Eclipses in Germany - Dates
Info | 0 Comments
CSS: "align:center" and "align:right" not working
Question | 1 Answer
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
Thanks mate!
2021-12-17 at 08:48