# sum.me -- summary for macros -me # $Id$ # Carlos Duarte , 980630/980706 Titles ------ .tp title page: suppress headers, footers and page #s on this page .he 'l'm'r' set header on all pages .fo 'l'm'r' set footer on all pages .eh 'l'm'r' set head for even pages only .oh 'l'm'r' set head for odd pages only .ef 'l'm'r' set foot for even pages only .of 'l'm'r' set foot for odd pages only .hx do not print headers or footers on next page .m1 +N set distance top <-> header .m2 +N set distance header <-> top of text .m3 +N set distance bottom of text <-> footer .m4 +N set distance footer <-> bottom .$H called at top of page, after the header, if any .ep end current page, but do not start a new one \n(tf font for titles \n(tp pointsize for titles \n(hm top - header (distance) \n(fm footer - bottom (distance) \n(tm top - top_text (distance) \n(bm bot_text - bottom (distance) Sections -------- .sh +N T a b c numbered section, depth N, title T (if a,b use for sect numb) .sx +N restarts a section of depth N, do not print anything .uh T unnumbered section, only title T .$0 T B N called by .uh,.sh and .sx, T title, B x.y.z, N depth .sh calls as $0 T B N .sx calls as $0 .uh calls as $0 T .$1..6 called before printing each section depth. \*($n the title (string) \n($0 current depth for .sh \n($1..6 numbers in each section depth \n(ss space inserted before title \n(sp section point size \n(sf section font \n(so section offset \n(si section indent (total indent = so + si * depth) Paragraphs ---------- .pp paragraph: first line indented .lp left paragraph: first line indents as others .ip T I indented paragraph: T at left, text on a I indent .np numbered text .bu bulleted text \n(pf font used on paragraph text \n(pp paragraph pointsize \n(ps space inserted before paragraph \n($i default indent for paragraphs \n(po paragraph offset (total indent = po + $i) \n(pi .pp first line indent \n(ii .lp defaul text indent, if I not given \n($p .np next displayed number, reseted per .lp,.pp,.sh Displaying text --------------- `m' can be: I: indented list L: left justified M: align w/ left margin C: centered line by line `f' can be: F: list text will be filled (unfilled by default) .(l m f list begin .)l list end .(b m f block begin: if do not fit on current, start a new page .)b block end .(z m f floating keep begin: moved to end of curr page or begin of next .)z floating keep end .(c centered block begin: block is centered as a whole .)c centered block end .(q quote begin: text is indent from both margins .)q quote end \n(bi indent on a list/block, when I is used \n(bs amount of space that precedes and follows a block \n(bt dont leave more than this space blank on blocks; 0 turns off \n(df font used on list/block text \n(qi indent for .(q (on both margins) \n(qp pointsize used on quotes \n(qs space that precedes and follows .(q quotes \n(zs space that precedes and follows .(z keeps Collecting text --------------- .(d delayed text begin: save text for output with .pd .)d delayed text end. \*# is a counter (string representation) .pd print delayed text .(f footnote start .)f footnote end. \** is a counter (string representation) .$s called before outputting footnotes; defaults to a line drawing .(x [a] save index on internal register `a' (x, by default) .)x P A end index collecting. when index will be output: if P is _, do not print dots or page; else put that after dots if A, then put it after dots, and before P .xp [a] print index collected on `a' register \n($d counter of .(d use \n($f counter of .(f use \n(ff font used on footnotes \n(fi indent on first line of footnotes \n(fp pointsize used on footnotes \n(fs space that precedes footnotes \n(fu indent from right margin \n(xs space that precedes each index entry \n(xu unindent (from right margin) for index entries \*# string representation of \n($d \** string representation of \n($f Columns ------- .2c +S N enters N column mode, with S separation between each .1c reverts to single column .bc force end of current column (and start text on next column) \n($c current column being outputed \n($l column length \n($m number of columns available \n($s column separation value Fonts and sizes --------------- .sz +N sets pointsize to +N, and changes linespacing to +N times $v .sm X Y writes X on a smaller pointsize, and appends Y .r X Y X on roman, followed per Y on previous font .i X Y X on italics, followed per Y on previous font .b X Y X on bold, followed per Y on previous font .bi X Y X on bolditalics, followed per Y on previous font .u X Y X underlined, followed per X .q X Y quotes X, append Y .bx X Y enboxes X and appends Y \n($v percentage of pointsize, to set line spacing \n($V same as $v, but used on displays Eqn, tbl and pic ---------------- .EQ m T equation begin. m: C centers eq; I indents \n(bi; .EN C equation end. if C, this eq must be continued with another .EQ .TS H table start. if H, specifies tbl header to be written all pages .TH ends .TS H .TE table end .PS H W picture begin, on a HxW (invisible) box .PE picture end. \n(es space that precedes and follows equation Miscellaneous ------------- .re reset tabs to defaults .ba +N set base indent for sections, paragraphs and displays .xl +N set current line length .ll +N set all lines length (title ll, section ll, para ll, etc) .hl draws and horizontal line Available strings ----------------- \*(dw day of week. long format (monday, for eg) \*(mo current month. long format (July, for eg) \*(td current date, like "July 6, 1998" \*(lq left double quotes \*(rq right double quotes