Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Custom margins in TextEdit Apps
There is already an old hint about this topic, but it doesn't really explain it very clearly, only in the comments.

Here's how you can change the margins in TextEdit to your favourite size, so that you can use, for example, the whole space on a sheet of paper when printing.

First, save your document first as a Rich Text file (.rtf), if you have not already done this. To see the effect directly in your document, open it and enable under the Format menu the setting Wrap to Page for your document.

Next open up the TextEdit preferences, switch to the tab Open and Save and check on the option Display RTF files as RTF code instead of formatted text.

Open the document again and you will see the raw code that defines how the document look like. You want to look in the 4th row, where it says:

margl1440margr1440

This defines the left and right margins, thats what the 'l' and 'r' behind marg stand for: left and right.

Now to define customized top and bottom margins you have to add margt and margb, and similarly to before 't'=top, and 'b'=bottom. So add these after the given ones for the side margins, like this:

margl*margr*margb*margt*

Now you can set the margins how you like. You have to replace the stars with the correct number in Twips (1 Twip = 1/1440 inch). Here a few examples:
  • 360 (.25 inch)
  • 720 (.5 inch)
  • 1080 (.75 inch)
  • 1440 (1 inch)
  • 567 (1 cm)
Finally save the modified document and change the preference settings back to what they were originally. Then open the document again and you'll have your custom margins.

[crarko adds: I haven't tested this one. Please note that updating older hints and clarifying them is always a good thing, so don't be shy about submitting ideas that do just that.]
    •    
  • Currently 2.60 / 5
  You rated: 4 / 5 (10 votes cast)
 
[9,097 views]  

Custom margins in TextEdit | 1 comments | Create New Account
Click here to return to the 'Custom margins in TextEdit' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Custom margins in TextEdit
Authored by: baltwo on Apr 15, '14 11:12:31PM

Nice, but there is no Display RTF files as RTF code instead of formatted text. option in the Snow Leopard version. i'll have to check later with Mavericks.



[ Reply to This | # ]