00 Votes

RTF: Define and Use Tabs

Question by Guest | 2015-12-14 at 20:17

I am trying to create an RTF document manually and now I would like to know, how it is possible to use tab stops respectively the tabulator in it and how to define them and the corresponding spaces and distances.

On the one hand, I am interested in how the definition of a tab is looking like and on the other hand, I would like to know how to put them into the document.

ReplyPositiveNegative
3Best Answer3 Votes

You can define tabs with \tx and you can apply them with \tab. Behind \tx, you can write your desire to distance using the unit Twip. One millimeter corresponds to 56,6928 Twips, accordingly, you have to write \tx567 for having a tab after 1 centimeter or \tx1440 four having a tab after 1 Inch. Multiple tabs after each other can be defined by just writing their definitions after each other.

Here is an example for that.

\tx567\tx1134\tx1701
Line without Tab\line
\tab Line with one Tab\line
\tab\tab Line with two Tabs\line
\tab\tab\tab Line with three Tabs\line

In this example, we are defining 3 Tabs, one after 1 cm, the second after 2 cm (2 x 566,928) and the third after 3 cm. After that, we are writing 4 lines of text, the first without tab, the second with 1 tab, the third with 2 tabs and the fourth with 3 tabs before the text.

If we want to define other tabs for another paragraph, we can just write "par\pard\tx1000\tx2000", for example, for overwriting the old definitions and to define new tabs for the new paragraph (in this case one after 1000 Twips and another after 2000 Twips).
2015-12-14 at 20:56

ReplyPositive Negative
Reply

Related Topics

RTF: Center Text in Footer

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.