3 .\" Refer support for mm macros.
5 .\" Copyright (C) 2011-2018 Free Software Foundation, Inc.
6 .\" Written by Werner Lemberg (wl@gnu.org)
8 .\" This file is part of groff.
10 .\" groff is free software; you can redistribute it and/or modify it under
11 .\" the terms of the GNU General Public License as published by the Free
12 .\" Software Foundation, either version 3 of the License, or
13 .\" (at your option) any later version.
15 .\" groff is distributed in the hope that it will be useful, but WITHOUT ANY
16 .\" WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 .\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 .\" You should have received a copy of the GNU General Public License
21 .\" along with this program. If not, see <http://www.gnu.org/licenses/>.
23 .\" Please send comments to groff@gnu.org.
26 .als ref*error @warning
28 .de ref*text-label-start
31 .de ref*text-label-end
35 .de ref*biblio-item-start
36 . ref@start-print "\\$1"
38 .de ref*biblio-item-start-nolabel
41 .de ref*biblio-item-end
45 .ds ref*refnum-start \" empty
46 .ds ref*refnum-end .\"
48 .ds [. \v'-.4m'\s-3[\"
51 .ds ref*spec!0 Q A T S V N P I C D O
52 .ds ref*spec!1 Q A T J S V N P I C D O
53 .ds ref*spec!2 Q A T S V P I C D O
54 .ds ref*spec!3 Q A T B E S V P I C D O
55 .ds ref*spec!4 Q A T R G P I C D O
58 .ds ref*spec!B """ " " "in \fI" "" "\fP"
59 .ds ref*spec!D """ " " "(" ")"
60 .ds ref*spec!E ", " " "ed.\& "
61 .ds ref*spec!G """ " " "(" ")"
62 .ds ref*spec!J ", " " "\fI" "" "\fP"
63 .ds ref*spec!N """ "(" "" ")"
65 .ds ref*spec!P ", " " "p.\~"
66 .ds ref*spec!PP ", " " "pp.\~"
67 .ds ref*spec!T ", " " "\(lq" "" "\(rq"
68 .ds ref*spec!T:0 ", " " "\fI" "" "\fP"
69 .ds ref*spec!T:2 ", " " "\fI" "" "\fP"
70 .ds ref*spec!V """ " " "\fB" "\fR"
71 .ds ref*spec!dflt ", " "
73 .\" For the bibliography section, we emulate the .RS/.RF mechanism of mm by
74 .\" collecting references (enclosed with .]- and .][) in macro 'ref*mac'.
75 .\" This macro gets expanded while calling the .RP macro.
85 .de ref*biblio-start-hook
86 . als ref*][-second-pass ][
87 . als ][ ref*][-first-pass
88 . de ref*item-start-hook
94 .de ref*biblio-end-hook
95 . als ][ ref*][-second-pass
96 . rm ref*item-start-hook
97 . als ref*print ref*end-print
99 . als ref*print ref*normal-print
104 .\" ====================================================================
106 .\" ====================================================================
112 .\" vim: set filetype=groff textwidth=72: