1151497SruThe files in this directory show mom in action. 2151497Sru 3151497SruIf you have downloaded and untarrred a version of mom from her 4151497Sruhomepage, you'll see that none of the example files come with 5151497Srucorresponding PostScript (.ps) files, as they do with pre-compiled 6151497Sruversions of groff, or groff built from source. 7151497Sru 8151497SruI haven't included the PostScript output because I want to 9151497Srukeep the mom archive as lean as possible. To view the PostScript 10151497Sruoutput, process the files with groff and either 11151497Sru 12151497Sru a) send the output to a separate file for previewing with a 13151497Sru PostScript viewer such as gv (ghostview), or 14151497Sru 15151497Sru b) to your printer. 16151497Sru 17151497SruUsing the file sample_docs.mom as an example, you would 18151497Sruaccomplish a) like this: 19151497Sru 20151497Sru groff -mom -Tps sample_docs.mom > sample_docs.ps 21151497Sru gv sample_docs.ps 22151497Sru 23151497SruAccomplishing b) depends on your printer setup, but a fairly 24151497Srustandard way to do it would be 25151497Sru 26151497Sru groff -mom -Tps sample_docs.mom | lpr 27151497Sru 28151497Sru or 29151497Sru 30151497Sru groff -mom -Tps -l sample_docs.mom 31151497Sru 32151497SruNote: I don't recommend previewing with gxditview because it doesn't 33151497Srurender some of mom's effects properly. 34151497Sru 35151497SruThe files themselves 36151497Sru-------------------- 37151497Sru 38151497SruAll are set up for 8.5x11 inch paper (US letter). 39151497Sru 40151497Sru***typesetting.mom** 41151497Sru 42151497SruThe file, typesetting.mom, demonstrates the use of typesetting tabs, 43151497Srustring tabs, line padding, multi-columns and various indent styles, 44151497Sruas well as some of the refinements and fine-tuning available via 45151497Srumacros and inline escapes. 46151497Sru 47151497SruBecause the file also demonstrates a "cutaround" using a small 48151497Srupicture (of everybody's favourite mascot, Tux), the PostScript file, 49151497Srupenguin.ps has been included in the directory. 50151497Sru 51151497Sru***sample_docs.mom*** 52151497Sru 53151497SruThe file, sample_docs.mom, shows examples of three of the document 54151497Srustyles available with the mom's document processing macros, as well 55151497Sruas demonstrating the use of COLLATE. 56151497Sru 57151497SruThe PRINTSTYLE of this file is TYPESET, to give you an idea of mom's 58151497Srudefault behaviour when typesetting a document. 59151497Sru 60151497SruThe last sample, set in 2 columns, shows off mom's flexibility 61151497Sruwhen it comes to designing documents. 62151497Sru 63151497SruIf you'd like to see how mom handles exactly the same file when the 64151497SruPRINTSTYLE is TYPEWRITE (i.e. typewritten, double-spaced), simply 65151497Sruchange 66151497Sru 67151497Sru .PRINTSTYLE TYPESET 68151497Sru 69151497Sruto 70151497Sru 71151497Sru .PRINTSTYLE TYPEWRITE 72151497Sru 73151497Srunear the top of the file. 74151497Sru 75151497Sru***letter.mom*** 76151497Sru 77151497SruThis is just the tutorial example from the momdocs, ready for 78151497Srupreviewing. 79151497Sru 80151497Sru***elvis_syntax.new*** 81151497Sru 82151497SruFor those who use the vi clone, elvis, you can paste this file into 83151497Sruyour elvis.syn. Provided your mom documents have the extension 84151497Sru.mom, they'll come out with colorized syntax highlighting. The 85151497Srurules in elvis_syntax aren't exhaustive, but they go a LONG way to 86151497Srumaking mom files more readable. 87151497Sru 88151497SruThe file elvis_syntax (for pre-2.2h versions of elvis) is no longer 89151497Srubeing maintained. Users are encouraged to update to elvis 2.2h or 90151497Sruhigher, and to use elvis_syntax.new for mom highlighting. 91151497Sru 92151497SruI'll be very happy if someone decides to send me syntax highlighting 93151497Srurules for emacs. :) 94151497Sru 95151497Sru***mom.vim*** 96151497Sru 97151497SruChristian V. J. Br�ssow has kindly contributed a set of mom syntax 98151497Sruhighlighting rules for use with vim. Copy the file to your 99151497Sru~/.vim/syntax directory, then, if your vim isn't already set up to 100151497Srudo so, enable mom syntax highlighting with 101151497Sru 102151497Sru :syntax enable 103151497Sru 104151497Sruor 105151497Sru 106151497Sru :syntax on 107151497Sru 108151497SruPlease note: I don't use vim, so I won't be making changes to this 109151497Srufile myself. Christian Br�ssow is the maintainer of the ruleset, 110151497Sruwhich is available on the Web at 111151497Sru 112151497Sru http://www.cvjb.de/comp/vim/mom.vim 113151497Sru 114151497SruContact Christian (cvjb@cvjb.de) if you have any suggestions or 115151497Srurequests. 116