troff macros | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

troff macros

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-31-2001
tonyt tonyt is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 27 March 2002, 2:51 AM EST
Location: China
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
troff macros

Hi,
I'm going write a small handbook. The typesetting software I'm going to use is troff. There are -ms -me -mm macros for troff. Which one is the most suitable? Thanks!

-Tony
Sponsored Links
    #2  
Old 01-02-2002
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon (Administrator Emeritus)
 
Join Date: Aug 2001
Last Activity: 25 July 2014, 4:03 AM EDT
Location: Ashburn, Virginia
Posts: 9,895
Thanks: 58
Thanked 413 Times in 248 Posts
I don't know the troff macro packages that well. But I reviewed my troff documentation to get a sense of the differences.

-ms
This was the first and most widely available macro package.

-mm
This was written by the Unix Support Group and was intended to be an official part of System V. It is much bigger and more powerful than the others. It is also harder to learn. I see that HP-UX has a mm command but SunOS does not. mm is a command to print documented formatted by the -mm macros.

-me
This was written at Berkeley. Its documentation says that it is for technical papers. (The documentation on the other macro packages indicate that they are more general purpose.) This package is much simpler and less powerful. Stuff written in -me will work well in troff or nroff.

So I guess that -ms is probably the best choice for a first package. But if you need very complex stuff, -mm may be best. And if you can settle for some limited capability or need to easily use nroff and troff then -me may be best.

It may be lame, but here is what I do: I find a document that is nicely formatted and I get the source code for it. Then I remove the author's text and put in my own.
Sponsored Links
    #3  
Old 01-03-2002
tonyt tonyt is offline
Registered User
 
Join Date: Nov 2001
Last Activity: 27 March 2002, 2:51 AM EST
Location: China
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Macros how-to? trento17 Shell Programming and Scripting 1 07-29-2011 10:58 AM
help with atoi and macros in C omega666 Programming 2 03-30-2011 12:43 AM
What are the meaning of these macros.. iamjayanth Linux 2 02-03-2009 07:12 AM
Page feed in Troff dpmore UNIX for Dummies Questions & Answers 2 05-18-2008 04:22 AM
saving macros for VIM yngwie UNIX for Dummies Questions & Answers 3 05-14-2007 12:26 AM



All times are GMT -4. The time now is 04:18 AM.