.\" me -- template for a me paper with cover, toc and index .\" .\" $Id$ .\" Carlos Duarte, 980527/980612 .\" .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .\" steps for using this: .\" - search for FIRE, as in "FIRE ME MACRO PACKAGE" .\" - define (optional), some parameters like margin and top offsets, etc .\" - define cover, using the macro .Tp title subtitle authors .\" "authors" have the form: "name [tab info]" where info appears right .\" justified .\" - start writing the text! .\" .\" fine tunnings: .\" - TOC: search for macro $0 and change it (or undefine it to prevent .\" TOC generation) .\" .\" making indexes: .\" - by defaults, indexes are off .\" - troff -rF1 collects index entry to stderr, of form ix: keywords .\" - troff -rF2 reads index_file, and use it to print index .\" .\" only the file name (index_file) needs to be changed (if desired) .\" collection of index keywords, is done per .ix keywords .\" .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .\" .\" USER DEFINED .de Tp \" TITLE PAGE, .Tp titlename subtitle authors... .tp .nf .sp 2i .ce \fB\s+6\\$1\s-6\fP .if !'\\$2'_' \{\ .sp .5i .ce \fB\s+2\\$2\s-2\fP .\} .sp |(\n(.pu-4v-\\n(.$v)u .in (\\n(.lu-\w'\\$3xxx'u)u .ta (\\n($lu-\\n(.iu)R .tc \(ru .if !'\\$3'' \& \\$3 .if !'\\$4'' \& \\$4 .if !'\\$5'' \& \\$5 .if !'\\$6'' \& \\$6 .if !'\\$7'' \& \\$7 .if !'\\$8'' \& \\$8 .if !'\\$9'' \& \\$9 .tc .in .fi .. .\".nr F 0 \" INDEX FLAG (dont def here, doit from cmd line, 0 by def) . \" 0: disable all index stuff . \" 1: enable ix, disable iP (permit collecting, not printing) . \" 2: reciprocal of 1 .de ix \" INDEX ENTRY, output an index entry to stderr . \" .ix keywords .if \\nF=1 \{\ .ie '\\n(.z'' .tm ix: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 \\n% .el \\!.ix \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9 \\n% .\} .. .de iP \" index print, .iP filename, where filename is the file . \" that contains: index entry \t pages .if \\nF=2 \{\ .bp .sh 1 Index .lp .2c +0.5i 3 .ta \\n($luR .nf .so \\$1 .fi .1c .\} .. .de Tc \" dump collect toc on a isolated page .sz +2 .he '''' .fo '''' .if o .bp .bp 1 \" toc page number .ce \fB\s+2Table of Contents\s0\fP .sp .xp .sz -2 .. .\" ME INTERACTION .de $0 \" define to be run on each section, .$0 Tit Num Depth . \" for auto toc making, for instance .ie '\\$1'' \{\ .\" got here by sx call .\} .ie \\n(.$=1 \{\ .\" uh .\} .el \{\ .\" sh .\".ie \\$3=1 .eh '% \(bu \\$1''' \" rever isto!! .\".el .oh '''\\$1 \(bu %' \" e isto!!!!!! .(x .if \\$3>1 .ti 3n \&\\$2\c 'if \\$3=1 \&.\c \ \\$1 .)x .\} .. .ig .de $H \" define to be run at top of each page .. .ig .de $s \" define to be run before printing footnotes .. .\" FIRE ME MACRO PACKAGE .\" set page length, line length .\".if t .pl 11 .\".if t .ll 11 .if n .pl 59 .if n .ll 78 .\" choose: he, fo, eh+oh, ef+of .he ''- % -'' .m1 1v \" top-header distance .m2 2v \" header-text distance .m3 2v \" text-foot distance .m4 1v \" foot-bootom distance .\".nr po 1.25i \" paragraph offset (left margin-text distance) .\".nr si 3 \" set indent for sections .nr pp 10 \" text size .nr sp 12 \" set point size of section titles .\" .Tp maintitle subtitle (or _ for none) authors... .Tp "A sexta bola do Totoloto." _ "Carlos Duarte 38076" "Gisela Craveiro 38845" .bp .\" .\" START OF DOCUMENT .\" .sh 1 Introduction .pp Introduction paragraph, with some bla bla. .\" ... .\" rest of sections... .\" ... .iP index_file \" print index .Tc \" dump table of contents .\" THE END