Add groff 1.19.1, stripped down appropriately.
[dragonfly.git] / contrib / groff-1.19 / tmac / groff_ms.man
1 '\" t
2 .ig
3 Copyright (C) 1989-1995, 2001, 2002, 2003 Free Software Foundation, Inc.
4
5 Permission is granted to make and distribute verbatim copies of
6 this manual provided the copyright notice and this permission notice
7 are preserved on all copies.
8
9 Permission is granted to copy and distribute modified versions of this
10 manual under the conditions for verbatim copying, provided that the
11 entire resulting derived work is distributed under the terms of a
12 permission notice identical to this one.
13
14 Permission is granted to copy and distribute translations of this
15 manual into another language, under the above conditions for modified
16 versions, except that this permission notice may be included in
17 translations approved by the Free Software Foundation instead of in
18 the original English.
19 ..
20 .
21 .do nr groff_ms_C \n[.C]
22 .cp 0
23 .
24 .TH GROFF_MS @MAN7EXT@ "@MDATE@" "Groff Version @VERSION@"
25 .SH NAME
26 groff_ms \- groff ms macros
27 .SH SYNOPSIS
28 .B groff
29 .B \-ms
30 [
31 .IR options .\|.\|.\&
32 ]
33 [
34 .IR files .\|.\|.\&
35 ]
36 .br
37 .B groff
38 .B \-m\ ms
39 [
40 .IR options .\|.\|.\&
41 ]
42 [
43 .IR files .\|.\|.\&
44 ]
45 .\" -----
46 .SH DESCRIPTION
47 This manual page describes the GNU version of the
48 .I ms
49 macros,
50 part of the
51 .I groff
52 typesetting system.
53 The
54 .I ms
55 macros are mostly compatible with the
56 documented behavior of the 4.3
57 .SM BSD
58 Unix
59 .I ms
60 macros (see
61 .I Differences from troff ms
62 below for details).
63 The
64 .I ms
65 macros are suitable for reports, letters, books, and
66 technical documentation.
67 .\" -----
68 .SH USAGE
69 The
70 .I ms
71 macro package expects files to have
72 a certain amount of structure.
73 The simplest documents can begin with a paragraph macro
74 and consist of text separated by paragraph macros
75 or even blank lines.
76 Longer documents have a structure as follows:
77 .TP
78 .B "Document type"
79 If you use the
80 .B RP
81 (report) macro at the beginning of the document,
82 .I groff
83 prints the cover page information on its own page;
84 otherwise it prints the information on the
85 first page with your document text immediately following.
86 Other document formats found in AT&T
87 .I troff
88 are specific to AT&T
89 or Berkeley, and are not supported in
90 .IR "groff ms" .
91 .TP
92 .B "Format and layout"
93 By setting number registers,
94 you can change your document's type (font and size),
95 margins, spacing, headers and footers, and footnotes.
96 See 
97 .I "Document control registers"
98 below for more details.
99 .TP
100 .B "Cover page"
101 A cover page consists of a title,
102 and optionally the author's name and institution,
103 an abstract, and the date.
104 See
105 .I "Cover page macros"
106 below for more details.
107 .TP
108 .B "Body"
109 Following the cover page is your document.
110 It consists of paragraphs, headings, and lists.
111 .TP
112 .B "Table of contents"
113 Longer documents usually include a table of contents,
114 which you can add by placing the
115 .B TC
116 macro at the end of your document.
117 .\" -----
118 .SS "Document control registers"
119 The following table lists the document control
120 number registers.
121 For the sake of consistency,
122 set registers related to margins at the beginning of your document,
123 or just after the
124 .B RP
125 macro.
126 .LP
127 .ne 9
128 .B Margin settings
129 .RS
130 .na
131 .TS
132 cb   s cb s s cb s cb s
133 afCW s l  s s l  s l  s.
134 Reg.    Definition      Effective       Default
135 _
136 PO      T{
137 Page offset (left margin)
138 T}      T{
139 next page
140 T}      1i
141 LL      T{
142 Line length
143 T}      next para.      6i
144 LT      T{
145 Header/footer length
146 T}      next para.      6i
147 HM      T{
148 Top (header) margin
149 T}      next page       1i
150 FM      T{
151 Bottom (footer) margin
152 T}      next page       1i
153 _
154 .TE
155 .RE
156 .LP
157 .ne 7
158 .B Text settings
159 .RS
160 .TS
161 cb   s cb s s cb s cb s
162 afCW s l  s s l  s l  s.
163 Reg.    Definition      Effective       Default
164 _
165 PS      T{
166 Point size
167 T}      next para.      10p
168 VS      T{
169 Line spacing (leading)
170 T}      next para.      12p
171 _
172 .TE
173 .RE
174 .LP
175 .ne 7
176 .B Paragraph settings
177 .RS
178 .TS
179 cb cb s cb cb
180 afCW l s l l .
181 Reg.    Definition      Effective       Default
182 _
183 PI      T{
184 Initial indent
185 T}      next para.      5n
186 PD      T{
187 Space between paragraphs
188 T}      next para.      0.3v
189 QI      T{
190 Quoted paragraph indent
191 T}      next para.      5n
192 _
193 .TE
194 .RE
195 .LP
196 .ne 7
197 .B Footnote settings
198 .RS
199 .TS
200 cb cb cb cb
201 afCW l l l .
202 Reg.    Definition      Effective       Default
203 _
204 FL      Footnote length next footnote   \[rs]n[LL]*5/6
205 FI      Footnote indent next footnote   2n
206 FF      Footnote format next footnote   0
207 FPS     Point size      next footnote   \[rs]n[PS]-2
208 FVS     Vert. spacing   next footnote   \[rs]n[FPS]+2
209 FPD     Para. spacing   next footnote   \[rs]n[PD]/2
210 _
211 .TE
212 .RE
213 .LP
214 .ne 6
215 .B Other settings
216 .RS
217 .TS
218 cb   s cb s s cb s cb s
219 afCW s l  s s l  s l  s.
220 Reg.    Definition      Effective       Default
221 _
222 MINGW   T{
223 Minimum width between columns
224 T}      next page       2n
225 _
226 .TE
227 .ad
228 .RE
229 .\" -----
230 .SS "Cover page macros"
231 Use the following macros to create a cover page for your document
232 in the order shown.
233 .TP
234 .B \&.RP [no]
235 Specifies the report format for your document.
236 The report format creates a separate cover page.
237 With no
238 .B RP
239 macro,
240 .I groff
241 prints a subset of the
242 cover page on page\~1 of your document.
243 .IP
244 If you use the optional
245 .B no
246 argument,
247 .I groff
248 prints a title page but
249 does not repeat any of the title page information
250 (title, author, abstract, etc.\&)
251 on page\~1 of the document.
252 .TP
253 .B \&.P1 
254 (P-one) Prints the header on page\~1.
255 The default is to suppress the header.
256 .TP
257 .BI "\&.DA [" xxx ]
258 (optional) Print the current date,
259 or the arguments to the macro if any,
260 on the title page (if specified)
261 and in the footers.
262 This is the default for
263 .IR nroff .
264 .TP
265 .BI "\&.ND [" xxx ]
266 (optional) Print the current date,
267 or the arguments to the macro if any,
268 on the title page (if specified)
269 but not in the footers.
270 This is the default for
271 .IR troff .
272 .TP
273 .B \&.TL
274 Specifies the document title.
275 .I Groff
276 collects text following the
277 .B TL
278 macro into the title, until reaching the author name or abstract.
279 .TP
280 .B \&.AU
281 Specifies the author's name.
282 You can specify multiple authors by using an
283 .B AU
284 macro for each author.
285 .TP
286 .B \&.AI
287 Specifies the author's institution.
288 You can specify multiple institutions.
289 .TP
290 .B \&.AB [no]
291 Begins the abstract.
292 The default is to print the word
293 .BR ABSTRACT ,
294 centered and in italics, above the text of the abstract.
295 The option
296 .B no
297 suppresses this heading.
298 .TP
299 .B \&.AE
300 End the abstract.
301 .\" -----
302 .SS Paragraphs
303 Use the
304 .B PP
305 macro to create indented paragraphs,
306 and the
307 .B LP
308 macro to create paragraphs with no initial indent.
309 .PP
310 The
311 .B QP
312 macro indents all text at both left and right margins.
313 The effect is identical to the HTML
314 .B <BLOCKQUOTE>
315 element.
316 The next paragraph or heading
317 returns margins to normal.
318 .PP
319 The
320 .B XP
321 macro produces an exdented paragraph.
322 The first line of the paragraph begins at
323 the left margin,
324 and subsequent lines are indented
325 (the opposite of
326 .BR PP ).
327 .SS Headings
328 Use headings to create a hierarchical structure
329 for your document.
330 The
331 .I ms
332 macros print headings in
333 .B bold
334 using the same font family and point size as the body text.
335 .PP
336 The following heading macros are available:
337 .TP
338 .BI \&.NH \0xx
339 Numbered heading.
340 The argument
341 .I xx
342 is either a numeric argument to indicate the
343 level of the heading, or
344 .I S\ xx\ xx\ \c
345 ".\|.\|."
346 to set the section number explicitly.
347 If you specify heading levels out of sequence,
348 such as invoking
349 .B ".NH\ 3"
350 after
351 .BR ".NH\ 1" ,
352 .I groff
353 prints a warning on standard error.
354 .TP
355 .B \&.SH
356 Unnumbered subheading.
357 .\" -----
358 .SS Highlighting
359 The
360 .I ms
361 macros provide a variety of methods to highlight
362 or emphasize text:
363 .TP
364 .BI "\&.B [" txt " [" post " [" pre ]]]
365 Sets its first argument in
366 .BR "bold type" .
367 If you specify a second argument,
368 .I groff
369 prints it in the previous font after
370 the bold text, with no intervening space
371 (this allows you to set punctuation after
372 the highlighted text without highlighting
373 the punctuation).
374 Similarly, it prints the third argument (if any)
375 in the previous font
376 .B before
377 the first argument.
378 For example,
379 .RS
380 .IP
381 \&.B foo ) (
382 .RE
383 .IP
384 prints
385 .RB ( foo ).
386 .IP
387 If you give this macro no arguments,
388 .I groff
389 prints all text following in bold until
390 the next highlighting, paragraph, or heading macro.
391 .TP
392 .BI "\&.R [" txt " [" post " [" pre ]]]
393 Sets its first argument in
394 roman (or regular) type.
395 It operates similarly to the
396 .B B
397 macro otherwise.
398 .TP
399 .BI "\&.I [" txt " [" post " [" pre ]]]
400 Sets its first argument in
401 .IR "italic type" .
402 It operates similarly to the
403 .B B
404 macro otherwise.
405 .TP
406 .BI "\&.CW [" txt " [" post " [" pre ]]]
407 Sets its first argument in a constant width face.
408 It operates similarly to the
409 .B B
410 macro otherwise.
411 .TP
412 .BI "\&.BI [" txt " [" post " [" pre ]]]
413 Sets its first argument in bold italic type.
414 It operates similarly to the
415 .B B
416 macro otherwise.
417 .TP
418 .BI "\&.BX [" txt ]
419 Prints its argument and draws a box around it.
420 If you want to box a string that contains spaces,
421 use a digit-width space (\[rs]0).
422 .TP
423 .BI "\&.UL [" txt " [" post ]]
424 Prints its first argument with an underline.
425 If you specify a second argument,
426 .I groff
427 prints it in the previous font after
428 the underlined text, with no intervening space.
429 .TP
430 .B \&.LG
431 Prints all text following in larger type
432 (2\~points larger than the current point size) until
433 the next font size, highlighting, paragraph, or heading macro.
434 You can specify this macro multiple times
435 to enlarge the point size as needed.
436 .TP
437 .B \&.SM
438 Prints all text following in
439 smaller type
440 (2\~points smaller than the current point size) until
441 the next type size, highlighting, paragraph, or heading macro.
442 You can specify this macro multiple times
443 to reduce the point size as needed.
444 .TP
445 .B \&.NL
446 Prints all text following in
447 the normal point size
448 (that is, the value of the
449 .B PS
450 register).
451 .TP
452 .BI \[rs]*{ text \[rs]*}
453 Print the enclosed
454 .I text
455 as a superscript.
456 .\" -----
457 .SS Indents
458 You may need to indent sections of text.
459 A typical use for indents is to create nested lists and sublists.
460 .PP
461 Use the
462 .B RS
463 and
464 .B RE
465 macros to start and end a section of indented text, respectively.
466 The
467 .B PI
468 register controls the amount of indent.
469 .PP
470 You can nest indented sections as deeply as needed by
471 using multiple, nested pairs of
472 .B RS
473 and
474 .BR RE .
475 .\" -----
476 .SS Lists
477 The
478 .B IP
479 macro handles duties for all lists.
480 Its syntax is as follows:
481 .TP
482 .BI ".IP [" marker " [" width ]]
483 .IP
484 The
485 .I marker
486 is usually a bullet character
487 .B \[rs](bu
488 for unordered lists,
489 a number (or auto-incrementing number register) for numbered lists,
490 or a word or phrase for indented (glossary-style) lists.
491 .IP
492 The
493 .I width
494 specifies the indent for the body of each list item.
495 Once specified, the indent remains the same for all
496 list items in the document until specified again.
497 .\" -----
498 .br
499 .ne 15
500 .SS "Tab stops"
501 Use the
502 .B ta
503 request to set tab stops as needed.
504 Use the
505 .B TA
506 macro to reset tabs to the default (every 5n).
507 You can redefine the
508 .B TA
509 macro to create a different set of default tab stops.
510 .\" -----
511 .SS "Displays and keeps"
512 Use displays to show text-based examples or figures
513 (such as code listings).
514 Displays turn off filling, so lines of code can be
515 displayed as-is without inserting
516 .B br
517 requests in between each line.
518 Displays can be 
519 .I kept
520 on a single page, or allowed to break across pages.
521 The following table shows the display types available.
522 .RS
523 .ne 11
524 .na
525 .TS
526 cb   s s    s cbt s s
527 cb   s cb   s ^   s s
528 lfCW s lfCW s l   s s.
529 Display macro   Type of display
530 With keep       No keep
531 _
532 \&.DS L \&.LD   Left-justified.
533 \&.DS I [\fIindent\fP]  \&.ID   T{
534 Indented (default indent in the \fBDI\fP register).
535 T}
536 \&.DS B \&.BD   T{
537 Block-centered (left-justified, longest line centered).
538 T}
539 \&.DS C \&.CD   Centered.
540 \&.DS R \&.RD   Right-justified.
541 _
542 .TE
543 .RE
544 .ad
545 .LP
546 Use the
547 .B DE
548 macro to end any display type.
549 The macros
550 .B Ds
551 and
552 .B De
553 are aliases for
554 .B DS
555 and
556 .BR DE ,
557 respectively.
558 .PP
559 To
560 .I keep
561 text together on a page,
562 such as
563 a paragraph that refers to a table (or list, or other item)
564 immediately following, use the
565 .B KS
566 and
567 .B KE
568 macros.
569 The
570 .B KS
571 macro begins a block of text to be kept on a single page,
572 and the
573 .B KE
574 macro ends the block.
575 .PP
576 You can specify a
577 .I "floating keep"
578 using the
579 .B KF
580 and
581 .B KE
582 macros.
583 If the keep cannot fit on the current page,
584 .I groff
585 holds the contents of the keep and allows text following
586 the keep (in the source file) to fill in the remainder of
587 the current page.
588 When the page breaks,
589 whether by an explicit
590 .B bp
591 request or by reaching the end of the page,
592 .I groff
593 prints the floating keep at the top of the new page.
594 This is useful for printing large graphics or tables
595 that do not need to appear exactly where specified.
596 .\" -----
597 .SS "Tables, figures, equations, and references"
598 The
599 .I -ms
600 macros support the standard
601 .I groff
602 preprocessors:
603 .IR tbl ,
604 .IR pic ,
605 .IR eqn ,
606 and
607 .IR refer .
608 Mark text meant for preprocessors by enclosing it
609 in pairs of tags as follows:
610 .TP
611 .BR "\&.TS [H]" " and " \&.TE
612 Denotes a table, to be processed by the
613 .I tbl
614 preprocessor.
615 The optional
616 .BR H "\~argument"
617 instructs
618 .I groff
619 to create a running header with the information
620 up to the
621 .B TH
622 macro.
623 .I Groff
624 prints the header at the beginning of the table;
625 if the table runs onto another page,
626 .I groff
627 prints the header on the next page as well.
628 .TP
629 .BR \&.PS " and " \&.PE
630 Denotes a graphic, to be processed by the
631 .I pic
632 preprocessor.
633 You can create a
634 .I pic
635 file by hand, using the
636 AT&T
637 .I pic
638 manual available on the Web as a reference,
639 or by using a graphics program such as
640 .IR xfig .
641 .TP
642 .BR "\&.EQ [\fI\,align\/\fP]" " and " \&.EN
643 Denotes an equation, to be processed by the
644 .I eqn
645 preprocessor.
646 The optional
647 .I align
648 argument can be
649 .BR C ,
650 .BR L ,
651 or\~\c
652 .B I
653 to center (the default), left-justify, or indent
654 the equation.
655 .TP
656 .BR \&.[ " and " \&.]
657 Denotes a reference, to be processed by the
658 .I refer
659 preprocessor.
660 The GNU
661 .IR @g@refer (@MAN1EXT@)
662 manual page provides a comprehensive reference
663 to the preprocessor and the format of the
664 bibliographic database.
665 .\" -----
666 .SS Footnotes
667 The
668 .I ms
669 macros provide a flexible footnote system.
670 You can specify a numbered footnote by using the
671 .B \[rs]**
672 escape, followed by the text of the footnote
673 enclosed by
674 .B FS
675 and
676 .B FE
677 macros.
678 .PP
679 You can specify symbolic footnotes
680 by placing the mark character (such as
681 .B \[rs](dg
682 for the dagger character) in the body text,
683 followed by the text of the footnote
684 enclosed by
685 .B FS\ \[rs](dg
686 and
687 .B FE
688 macros.
689 .PP
690 You can control how
691 .I groff
692 prints footnote numbers by changing the value of the
693 .B FF
694 register as follows:
695 .RS
696 .ne 7
697 .TP
698 0
699 Prints the footnote number as a superscript; indents the footnote (default).
700 .TP
701 1
702 Prints the number followed by a period (like\~1.\&)
703 and indents the footnote.
704 .TP
705 2
706 Like\~1, without an indent.
707 .TP
708 3
709 Like\~1, but prints the footnote number as a hanging paragraph.
710 .LP
711 .RE
712 You can use footnotes safely within keeps and displays,
713 but avoid using numbered footnotes within floating keeps.
714 You can set a second
715 .B \[rs]**
716 between a
717 .B \[rs]**
718 and its corresponding
719 .BR .FS ;
720 as long as each
721 .B .FS
722 occurs
723 .I after
724 the corresponding
725 .B \[rs]**
726 and the occurrences of
727 .B .FS
728 are in the same order as the corresponding occurrences of
729 .BR \[rs]** .
730 .\" -----
731 .SS "Headers and footers"
732 There are two ways to define headers and footers:
733 .IP \(bu 3n
734 Use the strings
735 .BR LH ,
736 .BR CH ,
737 and
738 .B RH
739 to set the left, center, and right headers; use
740 .BR LF ,
741 .BR CF ,
742 and
743 .B RF
744 to set the left, center, and right footers.
745 This works best for documents that do not distinguish
746 between odd and even pages.
747 .IP \(bu
748 Use the
749 .B OH
750 and
751 .B EH
752 macros to define headers for the odd and even pages; and
753 .B OF
754 and
755 .B EF
756 macros to define footers for the odd and even pages.
757 This is more flexible than defining the individual strings.
758 The syntax for these macros is as follows:
759 .RS
760 .IP
761 .BI "\&.OH '" left ' center ' right '
762 .RE
763 .IP
764 You can replace the quote (') marks with any character not
765 appearing in the header or footer text.
766 .\" -----
767 .SS Margins
768 You control margins using a set of number registers.
769 The following table lists the register names and defaults:
770 .RS
771 .ne 8
772 .na
773 .TS
774 cb   s cb s s cb s cb s
775 afCW s l  s s l  s l  s.
776 Reg.    Definition      Effective       Default
777 _
778 PO      T{
779 Page offset (left margin)
780 T}      next page       1i
781 LL      T{
782 Line length
783 T}      next para.      6i
784 LT      T{
785 Header/footer length
786 T}      next para.      6i
787 HM      T{
788 Top (header) margin
789 T}      next page       1i
790 FM      T{
791 Bottom (footer) margin
792 T}      next page       1i
793 _
794 .TE
795 .RE
796 .ad
797 .PP
798 Note that there is no right margin setting.
799 The combination of page offset and line length
800 provide the information necessary to
801 derive the right margin.
802 .\" -----
803 .SS "Multiple columns"
804 The
805 .I ms
806 macros can set text in as many columns as will reasonably
807 fit on the page.
808 The following macros are available.
809 All of them force a page break if a multi-column mode is already set.
810 However, if the current mode is single-column, starting a multi-column
811 mode does
812 .I not
813 force a page break.
814 .TP
815 .B \&.1C
816 Single-column mode.
817 .TP
818 .B \&.2C
819 Two-column mode.
820 .TP
821 .BI "\&.MC [" width " [" gutter ]]
822 Multi-column mode.
823 If you specify no arguments, it is equivalent to the
824 .B 2C
825 macro.
826 Otherwise,
827 .I width
828 is the width of each column and
829 .I gutter
830 is the space between columns.
831 The
832 .B MINGW
833 number register is the default gutter width.
834 .\" -----
835 .SS "Creating a table of contents"
836 Wrap text that you want to appear in the
837 table of contents in
838 .B XS
839 and
840 .B XE
841 macros.
842 Use the
843 .B TC
844 macro to print the table of contents at the end of the document,
845 resetting the page number to\~\c
846 .B i
847 (Roman numeral\~1).
848 .PP
849 You can manually create a table of contents
850 by specifying a page number as the first argument to
851 .BR XS .
852 Add subsequent entries using the
853 .B XA
854 macro.
855 For example:
856 .RS
857 .PP
858 .ne 8
859 .nf
860 \&.XS 1
861 Introduction
862 \&.XA 2
863 A Brief History of the Universe
864 \&.XA 729
865 Details of Galactic Formation
866 \&.\|.\|.
867 \&.XE
868 .fi
869 .RE  
870 .LP  
871 Use the
872 .B PX  
873 macro to print a manually-generated table of contents
874 without resetting the page number.
875 .PP
876 If you give the argument
877 .B no
878 to either
879 .B PX
880 or   
881 .BR TC ,
882 .I groff
883 suppresses printing the title
884 specified by the
885 .B \[rs]*[TOC]  
886 string.
887 .\" -----
888 .SH "DIFFERENCES FROM troff ms"
889 The
890 .I "groff ms"
891 macros are a complete re-implementation,
892 using no original AT&T code.
893 Since they take advantage of the extended features in
894 .IR groff ,
895 they cannot be used with AT&T
896 .IR troff .
897 Other differences include:
898 .IP \(bu 3n
899 The internals of
900 .I "groff ms"
901 differ from the internals of Unix
902 .IR ms . 
903 Documents that depend upon implementation details of Unix
904 .I ms
905 may not format properly with
906 .IR "groff ms" .
907 .IP \(bu
908 The error-handling policy of
909 .I "groff ms"
910 is to detect and report errors,
911 rather than silently to ignore them.
912 .IP \(bu
913 Bell Labs localisms are not implemented.
914 .IP \(bu
915 Berkeley localisms, in particular the
916 .B TM
917 and
918 .B CT
919 macros,
920 are not implemented.
921 .IP \(bu
922 .I "Groff ms"
923 does not work in compatibility mode (e.g.\& with the
924 .B \-C
925 option).
926 .IP \(bu
927 There is no support for typewriter-like devices.
928 .IP \(bu
929 .I "Groff ms"
930 does not provide cut marks.
931 .IP \(bu
932 Multiple line spacing is not supported
933 (use a larger vertical spacing instead).
934 .IP \(bu
935 Some Unix
936 .I ms
937 documentation says that the
938 .B CW
939 and
940 .B GW
941 number registers can be used to control the column width and
942 gutter width respectively.
943 These number registers are not used in groff ms.
944 .IP \(bu
945 Macros that cause a reset
946 (paragraphs, headings, etc.)
947 may change the indent.
948 Macros that change the indent do not increment or decrement
949 the indent, but rather set it absolutely.
950 This can cause problems for documents that define
951 additional macros of their own.
952 The solution is to use not the
953 .B in
954 request but instead the
955 .B RS
956 and
957 .B RE
958 macros.
959 .IP \(bu
960 The number register
961 .B GS
962 is set to\~1 by the
963 .I "groff ms"
964 macros,
965 but is not used by the Unix
966 .I ms
967 macros.
968 Documents that need to determine whether
969 they are being formatted with Unix
970 .I ms
971 or
972 .I "groff ms"
973 should use this number register.
974 .br
975 .ne 22
976 .SS Strings
977 You can redefine the following strings to adapt the
978 .I "groff ms"
979 macros to languages other than English:
980 .TS
981 center;
982 cb cb
983 afCW l .
984 String  Default Value
985 _
986 REFERENCES      References
987 ABSTRACT        ABSTRACT
988 TOC     Table of Contents
989 MONTH1  January
990 MONTH2  February
991 MONTH3  March
992 MONTH4  April
993 MONTH5  May
994 MONTH6  June
995 MONTH7  July
996 MONTH8  August
997 MONTH9  September
998 MONTH10 October
999 MONTH11 November
1000 MONTH12 December
1001 _
1002 .TE
1003 .PP
1004 The
1005 .B \[rs]*-
1006 string produces an em dash \[em] like this.
1007 .\" -----
1008 .SS Text Settings
1009 The
1010 .B FAM
1011 string sets the default font family.
1012 If this string is undefined at initialization,
1013 it is set to Times.
1014 .LP
1015 The point size, vertical spacing, and inter-paragraph spacing for footnotes
1016 are controlled by the number registers
1017 .BR FPS ,
1018 .BR FVS ,
1019 and
1020 .BR FPD ;
1021 at initialization these are set to
1022 .BR \[rs]n(PS-2 ,
1023 .BR \[rs]n[FPS]+2 ,
1024 and
1025 .B \[rs]n(PD/2
1026 respectively.
1027 If any of these registers are defined before initialization,
1028 the initialization macro does not change them.
1029 .LP
1030 The hyphenation flags (as set by the
1031 .B hy
1032 request) are set from the
1033 .B HY
1034 register;
1035 the default is\~14.
1036 .PP
1037 Improved accent marks
1038 (as originally defined in Berkeley's
1039 .I ms
1040 version)
1041 are available by specifying the
1042 .B AM
1043 macro at the beginning of your document.
1044 You can place an accent over most characters
1045 by specifying the string defining the accent
1046 directly after the character.
1047 For example,
1048 .B n\[rs]*~ 
1049 produces an n with a tilde over it.
1050 .\" -----
1051 .SH "NAMING CONVENTIONS"
1052 .LP
1053 The following conventions are used for names of macros, strings and
1054 number registers.
1055 External names available to documents that use the
1056 .I "groff ms"
1057 macros contain only uppercase letters and digits.
1058 .LP
1059 Internally the macros are divided into modules;
1060 naming conventions are as follows:
1061 .IP \(bu 3n
1062 Names used only within one module are of the form
1063 .IB \%module * name\fR.
1064 .IP \(bu
1065 Names used outside the module in which they are defined are of the form
1066 .IB \%module @ name\fR.
1067 .IP \(bu
1068 Names associated with a particular environment are of the form
1069 .IB \%environment : name;
1070 these are used only within the
1071 .B par
1072 module.
1073 .IP \(bu
1074 .I name
1075 does not have a module prefix.
1076 .IP \(bu
1077 Constructed names used to implement arrays are of the form
1078 .IB \%array ! index\fR.
1079 .PP
1080 Thus the groff ms macros reserve the following names:
1081 .IP \(bu 3n
1082 Names containing the characters
1083 .BR * ,
1084 .BR @ ,
1085 and\~\c
1086 .BR : .
1087 .IP \(bu
1088 Names containing only uppercase letters and digits.
1089 .SH FILES
1090 .B @MACRODIR@/ms.tmac
1091 (a wrapper file for
1092 .BR s.tmac )
1093 .br
1094 .B @MACRODIR@/s.tmac
1095 .SH "SEE ALSO"
1096 .BR groff (@MAN1EXT@),
1097 .BR @g@troff (@MAN1EXT@),
1098 .BR @g@tbl (@MAN1EXT@),
1099 .BR @g@pic (@MAN1EXT@),
1100 .BR @g@eqn (@MAN1EXT@),
1101 .BR @g@refer (@MAN1EXT@),
1102 .I Groff: The GNU Implementation of troff
1103 by Trent Fisher and Werner Lemberg.
1104 .SH AUTHOR
1105 Original manual page by James Clark
1106 .IR "et al" ;
1107 rewritten by Larry Kollar
1108 (\fIlkollar@despammed.com\fR).
1109 .
1110 .cp \n[groff_ms_C]
1111 .
1112 .\" Local Variables:
1113 .\" mode: nroff
1114 .\" End: