38a59a92bdb3c166d0f571c0e3046a7de2c0378c
[platform/upstream/groff.git] / tmac / andoc.tmac
1 .\" -*- nroff -*-
2 .\"
3 .\" andoc.tmac
4 .\"
5 .\" Load either an-old.tmac or doc.tmac.  Multiple man pages can be
6 .\" handled.
7 .\"
8 .\"
9 .\" Copyright (C) 1991-2014  Free Software Foundation, Inc.
10 .\"      Written by James Clark (jjc@jclark.com)
11 .\"
12 .\" This file is part of groff.
13 .\"
14 .\" groff is free software; you can redistribute it and/or modify it under
15 .\" the terms of the GNU General Public License as published by the Free
16 .\" Software Foundation, either version 3 of the License, or
17 .\" (at your option) any later version.
18 .\"
19 .\" groff is distributed in the hope that it will be useful, but WITHOUT ANY
20 .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
22 .\" for more details.
23 .\"
24 .\" You should have received a copy of the GNU General Public License
25 .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
26 .\"
27 .
28 .if !\n(.g \
29 .  ab These macros require groff.
30 .
31 .nr _C \n(.C
32 .cp 0
33 .
34 .als andoc-em em
35 .als andoc-bp bp
36 .
37 .de1 reload-doc
38 .  ch an-header   \" remove trap set by an-old.tmac
39 .  ch an-footer   \" remove trap set by an-old.tmac
40 .  ch an-p-footer \" remove trap set by an-old.tmac
41 .
42 .  als em andoc-em
43 .  als bp andoc-bp
44 .  rm Dd          \" disable load-only-once, see doc.tmac
45 .
46 .  mso doc.tmac
47 .
48 .  als TH reload-man
49 \\*[Dd]\\
50 ..
51 .
52 .de1 reload-man
53 .  ch header      \" remove trap set by doc.tmac
54 .  ch footer      \" remove trap set by doc.tmac
55 .
56 .  als em andoc-em
57 .  als bp andoc-bp
58 .  rm RI          \" disable load-only-once, see an-old.tmac
59 .  blm            \" no blank line macro
60 .  rm TH
61 .
62 .  mso an-old.tmac
63 .
64 .  als Dd reload-doc
65 \\*[TH]\\
66 ..
67 .
68 .als TH reload-man
69 .als Dd reload-doc
70 .
71 .\" dummy equation macros -- eqnrc is read before .TH or .Dd is parsed
72 .de EQ
73 ..
74 .de EN
75 ..
76 .
77 .cp \n[_C]
78 .
79 .\" end of andoc.tmac