Formatting.
[s-roff.git] / man / groff_tmac.man
blobc2ef5d56e41bfb5c27489b4482913f5150f8eb75
1 .ig
2 groff_tmac.5
4 File position: <groff-source>/man/groff_tmac.man
6 This file is part of groff, the GNU roff type-setting system.
8 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008
9   Free Software Foundation, Inc.
10 written by Bernd Warken <bwarken@mayn.de> and Werner Lemberg
11 <wl@gnu.org>
13 Permission is granted to copy, distribute and/or modify this document
14 under the terms of the GNU Free Documentation License, Version 1.1 or
15 any later version published by the Free Software Foundation; with the
16 Invariant Sections being this .ig-section and AUTHOR, with no
17 Front-Cover Texts, and with no Back-Cover Texts.
19 A copy of the Free Documentation License is included as a file called
20 FDL in the main directory of the groff source package.
22 .ds Ellipsis \&.\|.\|.\&\"
24 .TH GROFF_TMAC @MAN5EXT@ "@MDATE@" "Groff Version @VERSION@"
25 .SH NAME
26 groff_tmac \- macro files in the roff typesetting system
29 .\" --------------------------------------------------------------------
30 .SH DESCRIPTION
31 .\" --------------------------------------------------------------------
33 The
34 .BR roff (@MAN7EXT@)
35 type-setting system provides a set of macro packages suitable for
36 special kinds of documents.
38 Each macro package stores its macros and definitions in a file called
39 the package's
40 .BR "tmac file" .
41 The name is deduced from
42 .RB ` T\c
43 .IB roff MAC\c
44 .IR ros '.
47 The tmac files are normal roff source documents, except that they
48 usually contain only definitions and setup commands, but no text.
50 All tmac files are kept in a single or a small number of directories,
51 the
52 .B tmac
53 directories.
56 .\" --------------------------------------------------------------------
57 .SH "GROFF MACRO PACKAGES"
58 .\" --------------------------------------------------------------------
60 .I groff
61 provides all classical macro packages, some more full packages, and
62 some secondary packages for special purposes.
64 Note that it is not possible to use multiple primary macro packages at the
65 same time; saying e.g.\&
67 .IP
68 .EX
69 \fIsh#\fP groff \-m man \-m ms foo
70 .EE
75 .IP
76 .EX
77 \fIsh#\fP groff \-m man foo \-m ms bar
78 .EE
81 fails.
82 Exception to this is the use of man pages written with either the
83 .B mdoc
84 or the
85 .B man
86 macro package.
87 See below the description of the
88 .B andoc.tmac
89 file.
92 .\" --------------------------------------------------------------------
93 .SS "Man\~Pages"
94 .\" --------------------------------------------------------------------
96 .TP
97 .B man
98 This is the classical macro package for UNIX manual pages
99 (man\~pages); it is quite handy and easy to use; see
100 .BR groff_man (@MAN7EXT@).
104 .B doc
106 .B mdoc
107 An alternative macro package for man\~pages mainly used in BSD
108 systems; it provides many new features, but it is not the standard for
109 man\~pages; see
110 .BR groff_mdoc (@MAN7EXT@).
114 .B andoc
116 .B mandoc
117 Use this file in case you don't know whether the
118 .B man
119 macros or the
120 .B mdoc
121 package should be used.
122 Multiple man pages (in either format) can be handled.
125 .\" --------------------------------------------------------------------
126 .SS "Full Packages"
127 .\" --------------------------------------------------------------------
129 The packages in this section provide a complete set of macros for
130 writing documents of any kind, up to whole books.
132 They are similar in functionality; it is a matter of taste which one
133 to use.
137 .B me
138 The classical
139 .I me
140 macro package; see
141 .BR groff_me (@MAN7EXT@).
145 .B mm
146 The semi-classical
147 .I mm
148 macro package; see
149 .BR groff_mm (@MAN7EXT@).
153 .B mom
154 The new
155 .I mom
156 macro package, only available in groff.
158 As this is not based on other packages, it can be freely designed.
160 So it is expected to become quite a nice, modern macro package.
163 .BR groff_mom (@MAN7EXT@).
167 .B ms
168 The classical
169 .I ms
170 macro package; see
171 .BR groff_ms (@MAN7EXT@).
174 .\" --------------------------------------------------------------------
175 .SS "Language-specific Packages"
176 .\" --------------------------------------------------------------------
179 .B cs
180 This file adds support for Czech localization, including the main macro
181 packages (me, mom, mm, and ms).
184 Note that
185 .B cs.tmac
186 sets the input encoding to latin-2.
190 .B de
192 .B den
193 German localization support, including the main macro packages (me, mom, mm,
194 and ms).
197 .B de.tmac
198 selects hyphenation patterns for traditional orthography, and
199 .B den.tmac
200 does the same for the new orthography (`Recht\%schreib\%reform').
202 It should be used as the last macro package on the command line.
206 .B fr
207 This file adds support for French localization, including the main macro
208 packages (me, mom, mm, and ms).
211 Example:
215 \fIsh#\fP groff -ms -mfr foo.ms > foo.ps
220 Note that
221 .B fr.tmac
222 sets the input encoding to latin-9 to get proper support of the `oe'
223 ligature.
227 .B sv
228 Swedish localization support, including the me, mom, and ms macro packages.
230 Note that Swedish for the mm macros is handled separately; see
231 .BR groff_mmse (@MAN7EXT@).
233 It should be used as the last macro package on the command line.
236 .\" --------------------------------------------------------------------
237 .SS "Input Encodings"
238 .\" --------------------------------------------------------------------
242 .B latin1
244 .B latin2
246 .B latin5
248 .B latin9
249 Various input encodings supported directly by groff.
251 Normally, this macro is loaded at the very beginning of a document or
252 specified as the first macro argument on the command line.
254 .B @g@roff
255 loads latin1 by default at start-up.
257 Note that these macro packages don't work on EBCDIC hosts.
261 .B cp1047
262 Encoding support for EBCDIC.
264 On those platforms it is loaded automatically at start-up.
266 Due to different character ranges used in
267 .B @g@roff
268 it doesn't work on architectures which are based on ASCII.
272 Note that it can happen that some input encoding characters are not
273 available for a particular output device.
275 For example, saying
279 groff -Tlatin1 -mlatin9 ...
283 fails if you use the Euro character in the input.
285 Usually, this limitation is present only for devices which have a
286 limited set of output glyphs
287 .RB ( \-Tascii ,
288 .BR \-Tlatin1 );
289 for other devices it is usually sufficient to install proper
290 fonts which contain the necessary glyphs.
293 .\" --------------------------------------------------------------------
294 .SS "Special Packages"
295 .\" --------------------------------------------------------------------
297 The macro packages in this section are not intended for stand-alone
298 usage, but can be used to add special functionality to any other
299 macro package or to plain groff.
303 .B 60bit
304 Provide some macros for addition, multiplication, and division of 60bit
305 integers (allowing safe multiplication of 30bit integers, for example).
309 .B ec
310 Switch to the EC and TC font families.
312 To be used with
313 .BR \%grodvi (@MAN1EXT@)
314 \[en] this man page also gives more details of how to use it.   
318 .B papersize
319 This macro file is already loaded at start-up by
320 .B @g@troff
321 so it isn't necessary to call it explicitly.
323 It provides an interface to set the paper size on the command line with
324 the option \f[B]\%\-dpaper=\f[]\f[I]size\f[].
326 Possible values for
327 .I size
328 are the same as the predefined
329 .B papersize
330 values in the DESC file (only lowercase; see
331 .BR groff_font (@MAN5EXT@)
332 for more) except
333 .BR a7 - d7 .
335 An appended
336 .B l
337 (ell) character denotes landscape orientation.
339 Examples:
340 .BR a4 ,
341 .BR c3l ,
342 .BR letterl .
345 Most output drivers need additional command line switches
346 .B \-p
348 .B \-l
349 to override the default paper length and orientation as set in the driver
350 specific DESC file.
352 For example, use the following for PS output on A4 paper in landscape
353 orientation:
358 \fIsh#\fP groff \-Tps \-dpaper=a4l \-P\-pa4 \-P\-l \-ms foo.ms > foo.ps
363 .B pic
364 This file provides proper definitions for the macros
365 .B PS
367 .BR PE ,
368 needed for the
369 .BR @g@pic (@MAN1EXT@)
370 preprocessor.
372 They center each picture.
374 Use it only if your macro package doesn't provide proper definitions
375 for those two macros (actually, most of them already do).
379 .B pspic
380 A single macro is provided in this file,
381 .BR PSPIC ,
382 to include a PostScript graphic in a document.
384 The following output devices support inclusion of PS images:
385 .BR \-Tps ,
386 .BR \-Tdvi ,
387 .BR \-Thtml ,
389 .BR \-Txhtml ;
390 for all other devices the image is replaced with a hollow rectangle
391 of the same size.
393 This macro file is already loaded at start-up by
394 .B @g@troff
395 so it isn't necessary to call it explicitly.
398 Syntax:
401 \&\fB.PSPIC\fP \
402 [\fB\-L\fP\|\
403 |\|\fB\-R\fP\|\
404 |\|\fB\-C\fP\|\
405 |\|\fB\-I\fP\ \fIn\fP] \
406 \fI\|file\fP [\fIwidth\fP [\fIheight\fP]]
410 .I file
411 is the name of the PostScript file;
412 .I width
414 .I height
415 give the desired width and height of the image.
417 If neither a
418 .I width
419 nor a
420 .I height
421 argument is specified, the image's natural width (as given in
422 the file's bounding box) or the current line length is used
423 as the width, whatever is smaller.
426 .I width
428 .I height
429 arguments may have scaling indicators attached;
430 the default scaling indicator is\~\c
431 .BR i .
433 This macro scales the graphic uniformly
434 in the x and y\~directions so that it is no more than
435 .I width
436 wide
438 .I height
439 high.
441 Option
442 .B \-C
443 centers the graphic horizontally, which is the default.
446 .B \-L
448 .B \-R
449 options cause the graphic to be left-aligned and right-aligned,
450 respectively.
453 .B \-I
454 option causes the graphic to be indented by\~\c
455 .I n
456 (default scaling indicator is\~\c
457 .BR m ).
460 For use of
461 .B .PSPIC
462 within a diversion it is recommended to extend it with
463 the following code, assuring that the diversion's width completely
464 covers the image's width.
469 \&.am PSPIC
470 \&.\ \ vpt 0
471 \&\[rs]h'(\[rs]\[rs]n[ps-offset]u + \[rs]\[rs]n[ps-deswid]u)'
472 \&.\ \ sp -1
473 \&.\ \ vpt 1
474 \&..
480 .B trace
481 Use this for tracing macro calls.
483 It is only useful for debugging.
486 .BR groff_trace (@MAN7EXT@) .
490 .B tty-char
491 Overrides the definition of standard troff characters and some groff
492 characters for TTY devices.
494 The optical appearance is intentionally inferior compared to that of
495 normal TTY formatting to allow processing with critical equipment.
499 .B www
500 Additions of elements known from the HTML format, as used in the
501 internet (World Wide Web) pages; this includes URL links and mail
502 addresses; see
503 .BR groff_www (@MAN7EXT@).
506 .\" --------------------------------------------------------------------
507 .SH NAMING
508 .\" --------------------------------------------------------------------
510 Classical roff systems were designed before the conventions of the
511 modern C 
512 .BR getopt (3)
513 call evolved, and used a naming scheme for macro packages that looks
514 odd to modern eyes. Macro packages were always included with the option
515 .BR \-m ;
516 when this option was directly followed by its argument without an
517 intervening space, this looked like a long option preceded by a single
518 minus \[em] a sensation in the computer stone age.
519 To make this invocation form work, classical troff
520 macro packages used names that started with the letter `m',
521 which was omitted in the naming of the macro file.
525 For example, the macro package for the man pages was called
526 .IR man ,
527 while its macro file
528 .IR tmac.an .
529 So it could be activated by the argument
530 .I an
531 to option
532 .BR \-m ,
534 .BR \-man
535 for short.
539 For similar reasons, macro packages that did not start with an `m'
540 had a leading `m'
541 added in the documentation and in speech; for example, the package
542 corresponding to
543 .I tmac.doc
544 was called
545 .I mdoc
546 in the documentation, although a more suitable name would be
547 .IR doc .
548 For, when omitting the space between the option and its argument, the
549 command line option for activating this package reads
550 .BR \-mdoc .
554 To cope with all situations, actual versions of
555 .BR groff (@MAN1EXT@)
556 are smart about both naming schemes by providing two macro files
557 for the inflicted macro packages; one with a leading `m'
558 the other one without it.
560 So in
561 .IR groff ,
563 .I man
564 macro package may be specified as on of the following four methods:
568 \fIsh#\fP groff\ \-m\ man
569 \fIsh#\fP groff\ \-man
570 \fIsh#\fP groff\ \-mman
571 \fIsh#\fP groff\ \-m\ an
576 Recent packages that do not start with `m'
577 do not use an additional `m'
578 in the documentation.
580 For example, the
581 .I www
582 macro package may be specified only as one of the two methods:
586 \fIsh#\fP groff\ \-m\ www
587 \fIsh#\fP groff\ \-mwww
592 Obviously, variants like
593 .I \-mmwww
594 would not make much sense.
598 A second strange feature of classical troff was to name macro files
599 in the form \f[B]tmac.\f[]\f[I]name\f[].
600 In modern operating systems, the type of a file is specified as a
601 postfix, the file name extension.
603 Again, groff copes with this situation by searching both
604 .IB anything .tmac
606 .BI tmac. anything
607 if only
608 .I anything
609 is specified.
613 The easiest way to find out which macro packages are available on a
614 system is to check the man\~page
615 .BR groff (@MAN1EXT@),
616 or the contents of the
617 .I tmac
618 directories.
623 .IR groff ,
624 most macro packages are described in\~man pages called
625 .BR groff_\f[I]name\f[] (@MAN7EXT@),
626 with a leading `m'
627 for the classical packages.
630 .\" --------------------------------------------------------------------
631 .SH INCLUSION
632 .\" --------------------------------------------------------------------
634 There are several ways to use a macro package in a document.
636 The classical way is to specify the troff/groff option
637 .BR \-m
638 .I name
639 at run-time; this makes the contents of the macro package
640 .I name
641 available.
643 In groff, the file
644 .IB name .tmac
645 is searched within the tmac path; if not found,
646 .BI tmac. name
647 is searched for instead.
651 Alternatively, it is also possible to include a macro file by adding
652 the request
653 .B .so
654 .I filename
655 into the document; the argument must be the full file name of an
656 existing file, possibly with the directory where it is kept.
658 In groff, this was improved by the similar request
659 .B .mso
660 .IR package ,
661 which added searching in the tmac path, just like option
662 .BR \-m
663 does.
667 Note that in order to resolve the
668 .B .so
670 .B .mso
671 requests, the roff preprocessor
672 .BR soelim (@MAN1EXT@)
673 must be called if the files to be included need preprocessing.
675 This can be done either directly by a pipeline on the command line or
676 by using the troff/groff option
677 .BR \-s .
679 .I man
680 calls soelim automatically.
684 For example, suppose a macro file is stored as
687 .I @MACRODIR@/macros.tmac
690 and is used in some document called
691 .IR docu.roff .
695 At run-time, the formatter call for this is
699 \fIsh#\fP groff \-m macros docu.roff
704 To include the macro file directly in the document either
708 \&.mso macros.tmac
712 is used or
716 \&.so @MACRODIR@/macros.tmac
721 In both cases, the formatter should be called with option
722 .B \-s
723 to invoke
724 .BR soelim .
727 \fIsh#\fP groff \-s docu.roff
732 If you want to write your own groff macro file, call it
733 .IB whatever .tmac
734 and put it in some directory of the tmac path, see section
735 .BR FILES .
736 Then documents can include it with the
737 .B .mso
738 request or the option
739 .BR \-m .
743 .\" --------------------------------------------------------------------
744 .SH CONVENTION
745 .\" --------------------------------------------------------------------
747 .\" This section does not fit into the framework of this document.
749 There is a convention that is supported by many modern roff
750 type-setters and
751 .BR man (1)
752 programs, the
753 .I preprocessor word
754 described in the following.
757 If the first line in a document is a comment, the first word (after the
758 comment characters and a blank) constitutes the
759 .B preprocessor
760 .BR word .
761 That means that the letters of this word are interpreted as
762 abbreviations for those preprocessor commands that should be run
763 when formatting the document.
765 Mostly, only the letters corresponding to the options for the
766 preprocessors are recognized, 
768 (for
769 .BR eqn ),
770 .\" `G',
771 .\" `g',
773 (for
774 .BR pic ),
776 (for
777 .BR refer ),
779 (for
780 .BR soelim ),
783 (for
784 .BR tbl ).
785 (see
786 .BR roff (@MAN7EXT@)).
790 Besides being a good reminder for the user, some formatters (like the
791 .BR man (1)
792 program) are even able to automatically start the preprocessors
793 specified in the preprocessor word, but do not bet on this.
798 .I man
799 program handles some preprocessors automatically, such that in
800 man\~pages only the following characters should be used:
801 `e', `p', and `t'.
805 .\" --------------------------------------------------------------------
806 .SH "WRITING MACROS"
807 .\" --------------------------------------------------------------------
810 .BR roff (@MAN7EXT@)
811 document is a text file that is enriched by predefined formatting
812 constructs, such as requests, escape sequences, strings, numeric
813 registers, and macros from a macro package.
815 These elements are described in
816 .BR roff (@MAN7EXT@).
820 To give a document a personal style, it is most useful to extend the
821 existing elements by defining some macros for repeating tasks; the best
822 place for this is near the beginning of the document or in a separate
823 file.
827 Macros without arguments are just like strings.
829 But the full power of macros reveals when arguments are passed with a
830 macro call.
832 Within the macro definition, the arguments are available as the escape
833 sequences
834 .BR \[rs]$1 ,
835 \*[Ellipsis],
836 .BR \[rs]$9 ,
837 .BR \[rs]$[ \*[Ellipsis] ] ,
838 .BR \[rs]$* ,
840 .BR \[rs]$@ ,
841 the name under which the macro was called is in
842 .BR \[rs]$0 ,
843 and the number of arguments is in register
844 .BR \[rs]n[.$] ;
846 .BR groff (@MAN7EXT@).
849 .\" --------------------------------------------------------------------
850 .SS "Copy-in Mode"
851 .\" --------------------------------------------------------------------
853 The phase when groff reads a macro is called
854 .I "copy-in mode"
856 .I "copy mode"
857 in roff-talk.
859 This is comparable to the C\~preprocessing phase during the development
860 of a program written in the C\~language.
864 In this phase, groff interprets all backslashes; that means that all
865 escape sequences in the macro body are interpreted and replaced by
866 their value.
868 For constant expressions, this is wanted, but strings and registers
869 that might change between calls of the macro must be protected from
870 being evaluated.
872 This is most easily done by doubling the backslash that introduces the
873 escape sequence.
875 This doubling is most important for the positional parameters.
877 For example, to print information on the arguments that were passed to
878 the macro to the terminal, define a macro named `.print_args',
879 say.
883 .ds @1 \[rs]f[I]\[rs]\[rs]$0\[rs]f[]\"
884 .ds @2 arguments:\"
886 \&.ds midpart was called with
887 \&.de print_args
888 \&.\ \ tm\ \*[@1]\ \[rs]*[midpart]\ \[rs]\[rs]n[.$]\ \*[@2]
889 \&.\ \ tm\ \[rs]\[rs]$*
890 \&..
892 .rm @1
893 .rm @2
897 When calling this macro by
901 \&.print_args arg1 arg2
905 the following text is printed to the terminal:
909 \&\f[CI]print_args\f[] was called with the following 2 arguments:
910 arg1 arg2
915 Let's analyze each backslash in the macro definition.
917 As the positional parameters and the number of arguments change
918 with each call of the macro their leading backslash must be doubled,
919 which results in
920 .I \[rs]\[rs]$*
922 .IR \[rs]\[rs][.$] .
923 The same applies to the macro name because it could be called with an
924 alias name, so
925 .IR \[rs]\[rs]$0 .
929 On the other hand,
930 .I midpart
931 is a constant string, it does not change, so no doubling for
932 .IR \[rs]*[midpart] .
934 .I \[rs]f
935 escape sequences are predefined groff elements for setting the font
936 within the text.
938 Of course, this behavior does not change, so no doubling with
939 .I \[rs]f[I]
941 .IR \[rs]f[] .
944 .\" --------------------------------------------------------------------
945 .SS "Draft Mode"
946 .\" --------------------------------------------------------------------
948 Writing groff macros is easy when the escaping mechanism is temporarily
949 disabled.
951 In groff, this is done by enclosing the macro definition(s) into a
952 pair of
953 .B .eo
955 .B .ec
956 requests.
958 Then the body in the macro definition is just like a normal part of
959 the document \[em] text enhanced by calls of requests, macros,
960 strings, registers, etc.
962 For example, the code above can be written in a simpler way by
966 .ds @1 \[rs]f[I]\[rs]$0\[rs]f[]\"
967 .ds @2 arguments:\"
969 \&.eo
970 \&.ds midpart was called with
971 \&.de print_args
972 \&.\ \ tm\ \*[@1]\ \[rs]*[midpart]\ \[rs]n[.$]\ \*[@2]
973 \&.\ \ tm\ \[rs]$*
974 \&..
975 \&.ec
977 .rm @1
978 .rm @2
982 Unfortunately, draft mode cannot be used universally.
984 Although it is good enough for defining normal macros, draft mode
985 fails with advanced applications, such as indirectly defined
986 strings, registers, etc.
988 An optimal way is to define and test all macros in draft mode and then
989 do the backslash doubling as a final step; do not forget to remove the
990 .I .eo
991 request.
994 .\" --------------------------------------------------------------------
995 .SS "Tips for Macro Definitions"
996 .\" --------------------------------------------------------------------
998 .IP \(bu
999 Start every line with a dot, for example, by using the groff request
1000 .B .nop
1001 for text lines, or write your own macro that handles also text lines
1002 with a leading dot.
1007 \&.de Text
1008 \&.\ \ if (\[rs]\[rs]n[.$] == 0)\ \[rs]
1009 \&.\ \ \ \ return
1010 \&.\ \ nop\ \[rs])\[rs]\[rs]$*\[rs])
1011 \&..
1015 .IP \(bu
1016 Write a comment macro that works both for copy-in and draft mode; for
1017 as escaping is off in draft mode, trouble might occur when normal
1018 comments are used.
1020 For example, the following macro just ignores its arguments, so it
1021 acts like a comment line:
1026 \&.de\ c
1027 \&..
1028 \&.c\ This\ is\ like\ a\ comment\ line.
1032 .IP \(bu
1033 In long macro definitions, make ample use of comment lines or
1034 almost-empty lines (this is, lines which have a leading dot
1035 and nothing else) for a better structuring.
1037 .IP \(bu
1038 To increase readability, use groff's indentation facility for requests
1039 and macro calls (arbitrary whitespace after the leading dot).
1042 .\" --------------------------------------------------------------------
1043 .SS "Diversions"
1044 .\" --------------------------------------------------------------------
1046 Diversions can be used to implement quite advanced programming
1047 constructs.
1049 They are comparable to pointers to large data structures in the
1050 C\~programming language, but their usage is quite different.
1054 In their simplest form, diversions are multi-line strings, but
1055 they get their power when diversions are used dynamically within macros.
1057 The (formatted) information stored in a diversion can be retrieved by
1058 calling the diversion just like a macro.
1062 Most of the problems arising with diversions can be avoided if you remain
1063 aware of the fact that diversions always store complete lines.
1065 If diversions are used when the line buffer has not been flushed,
1066 strange results are produced; not knowing this, many people get
1067 desperate about diversions.
1069 To ensure that a diversion works, line breaks should be added at the
1070 right places.
1072 To be on the secure side, enclose everything that has to do with
1073 diversions into a pair of line breaks; for example, by explicitly using
1074 .B .br
1075 requests.
1077 This rule should be applied to diversion definition, both inside and
1078 outside, and to all calls of diversions.
1080 This is a bit of overkill, but it works nicely.
1084 [If you really need diversions which should ignore the current partial
1085 line, use environments to save the current partial line and/\:or use the
1086 .B .box
1087 request.]
1091 The most powerful feature using diversions is to start a diversion
1092 within a macro definition and end it within another macro.
1094 Then everything between each call of this macro pair is stored within
1095 the diversion and can be manipulated from within the macros.
1098 .\" --------------------------------------------------------------------
1099 .SH FILES
1100 .\" --------------------------------------------------------------------
1102 All macro names must be named
1103 .IB name .tmac
1104 to fully use the tmac mechanism.
1106 .BI tmac. name
1107 as with classical packages is possible as well, but deprecated.
1111 The macro files are kept in the
1112 .IR "tmac directories" ;
1113 a colon separated list of these constitutes the
1114 .IR "tmac path" .
1118 The search sequence for macro files is (in that order):
1120 .IP \(bu
1121 the directories specified with troff/groff's
1122 .B \-M
1123 command line option
1125 .IP \(bu
1126 the directories given in the
1127 .B $GROFF_TMAC_PATH
1128 environment variable
1130 .IP \(bu
1131 the current directory (only if in unsafe mode, which is enabled by the
1132 .B \-U
1133 command line switch)
1135 .IP \(bu
1136 the home directory
1138 .IP \(bu
1139 a platform-specific directory, being
1143 .B @SYSTEMMACRODIR@
1147 in this installation
1149 .IP \(bu
1150 a site-specific (platform-independent) directory, being
1154 .B @LOCALMACRODIR@
1158 in this installation
1160 .IP \(bu
1161 the main tmac directory, being
1165 .B @MACRODIR@
1169 in this installation
1172 .\" --------------------------------------------------------------------
1173 .SH ENVIRONMENT
1174 .\" --------------------------------------------------------------------
1177 .B $GROFF_TMAC_PATH
1178 A colon separated list of additional tmac directories in which to search
1179 for macro files.
1181 See the previous section for a detailed description.
1184 .\" --------------------------------------------------------------------
1185 .SH AUTHOR
1186 .\" --------------------------------------------------------------------
1188 Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008
1189 Free Software Foundation, Inc.
1192 This document is distributed under the terms of the FDL (GNU Free
1193 Documentation License) version 1.1 or later.
1195 You should have received a copy of the FDL on your system, it is also
1196 available on-line at the
1197 .UR http://\:www.gnu.org/\:copyleft/\:fdl.html
1198 GNU copyleft site
1199 .UE .
1202 This document is part of
1203 .IR groff ,
1204 the GNU roff distribution.
1206 It was written by
1207 .MT bwarken@mayn.de 
1208 Bernd Warken
1209 .ME ;
1210 it is maintained by
1211 .MT wl@gnu.org
1212 Werner Lemberg 
1213 .ME .
1216 .\" --------------------------------------------------------------------
1217 .SH "SEE ALSO"
1218 .\" --------------------------------------------------------------------
1220 A complete reference for all parts of the groff system is found in the
1221 groff
1222 .BR info (1)
1223 file.
1227 .BR groff (@MAN1EXT@)
1228 an overview of the groff system.
1232 .BR groff_man (@MAN7EXT@),
1234 .BR groff_mdoc (@MAN7EXT@),
1236 .BR groff_me (@MAN7EXT@),
1238 .BR groff_mm (@MAN7EXT@),
1240 .BR groff_mom (@MAN7EXT@),
1242 .BR groff_ms (@MAN7EXT@),
1244 .BR groff_trace (@MAN7EXT@),
1246 .BR groff_www (@MAN7EXT@).
1247 the groff tmac macro packages.
1251 .BR groff (@MAN7EXT@)
1252 the groff language.
1256 The Filesystem Hierarchy Standard is available at the
1257 .UR http://\:www.pathname.com/\:fhs/
1258 FHS web site
1259 .UE .
1261 .\" Local Variables:
1262 .\" mode: nroff
1263 .\" End: