srefs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. .\"
  2. .\" Changes by Gunnar Ritter, Freiburg i. Br., Germany, October 2005.
  3. .\"
  4. .\" Derived from Plan 9 v4 /sys/lib/tmac/tmac.srefs
  5. .\"
  6. .\" Copyright (C) 2003, Lucent Technologies Inc. and others.
  7. .\" All Rights Reserved.
  8. .\"
  9. .\" Distributed under the terms of the Lucent Public License Version 1.02.
  10. .\"
  11. .\"
  12. .\" Sccsid @(#)srefs 1.4 (gritter) 10/30/05
  13. .\"
  14. .\" REFER macros .... citations
  15. .de []
  16. .][ \\$1
  17. ..
  18. .de ][
  19. .if \\$1>5 .tm Bad arg to []
  20. .[\\$1
  21. ..
  22. .if n .ds [. [
  23. .if t .ds [. \s-2\v'-.4m'\f1
  24. .if n .ds .] ]
  25. .if t .ds .] \v'.4m'\s+2\fP
  26. .if n .ds [o ""
  27. .if n .ds [c ""
  28. .if t .ds [o ``
  29. .if t .ds [c ''
  30. .\" the next lines deal with the problem of .[1] or [1].
  31. .\" refer will write "linexxx\*(<.[1]\*(>.
  32. .\" and either "<." or ">." should produce the .;
  33. .\" similarly for ,
  34. .if n .ds >. .
  35. .if t .ds <. .
  36. .if n .ds >, ,
  37. .if t .ds <, ,
  38. .de [5 \" tm style
  39. .FS
  40. .IP "\\*([F.\0"
  41. .nr %T 2
  42. \\*([A, \\f2\\*([T\\f1,
  43. .ie \\n(TN \\*([M.
  44. .el Bell Laboratories internal memorandum (\\*([D).
  45. .RT
  46. .FE
  47. ..
  48. .de [0 \" other
  49. .FS
  50. .nr [: 0
  51. .if !"\\*([F"" .IP "\\*([F.\0"
  52. .if !"\\*([A"" \{.nr [: 1
  53. \\*([A\c\}
  54. .if !"\\*([T"" \{.if \\n([:>0 ,
  55. .nr [: 1
  56. \\f2\\*([T\\f1\c\}
  57. .if !"\\*([O""\{.if \\n([:>0 ,
  58. .nr [: 1
  59. .if \\n([O>0 .nr [: 0
  60. \\*([O\c
  61. .if \\n([O>0 \& \c\}
  62. .if !"\\*([D"" \{.if \\n([:>0 ,
  63. .nr [: 1
  64. \\*([D\c\}
  65. .if \\n([:>0 \&.
  66. .if !"\\*([%"" Cited p. \\*([%.
  67. .RT
  68. .FE
  69. ..
  70. .de [1 \" journal article
  71. .nr %T 1 \" title font
  72. .FS
  73. .if !"\\*([R"" .rm [C
  74. .if !"\\*([F"" .IP "\\*([F.\0"
  75. .if !"\\*([A"" \\*([A,
  76. .if !"\\*([T"" \\*([o\\*([T,\\*([c
  77. \\f2\\*([J\\f1\c
  78. .if !"\\*([C"" , \\*([C\c
  79. .if !"\\*([V"" .if n ,\& Vol.\&\c
  80. .if !"\\*([V"" \& \\f3\\*([V\\f1\c
  81. .if !"\\*([N"" (\\*([N)\c
  82. .if !"\\*([P"" \{\
  83. .ie \\n([P>0 , pp.\ \&\c
  84. .el , p.\ \&\c
  85. \\*([P\c\}
  86. .if !"\\*([I"" .if "\\*([R"" , \\*([I\c
  87. .if !"\\*([O"" .if \\n([O=0 , \\*([O\c
  88. .if !"\\*([D"" \& (\\*([D)\c
  89. \&.
  90. .if !"\\*([O"" .if \\n([O>0 \\*([O
  91. .if !"\\*([%"" Cited p. \\*([%.
  92. .RT
  93. .FE
  94. ..
  95. .de [2 \" book
  96. .FS
  97. .nr %T 2
  98. .if !"\\*([F"" .IP "\\*([F.\0"
  99. .if !"\\*([A"" \\*([A,
  100. .if !"\\*([T"" \\f2\\*([T,\\f1
  101. \\*([I\c
  102. .if !"\\*([C"" , \\*([C\c
  103. .if !"\\*([D"" \& (\\*([D)\c
  104. \&.
  105. .if !"\\*([G"" Gov't. ordering no. \\*([G.
  106. .if !"\\*([O"" \\*([O
  107. .if !"\\*([%"" Cited p. \\*([%.
  108. .RT
  109. .FE
  110. ..
  111. .de [4 \" report
  112. .FS
  113. .if !"\\*([F"" .IP "\\*([F.\0"
  114. .nr %T 1
  115. \\*([A, \\*([o\\*([T,\\*([c
  116. \\*([R\c
  117. .if !"\\*([G"" \& (\\*([G)\c
  118. .if !"\\*([I"" , \\*([I\c
  119. .if !"\\*([C"" , \\*([C\c
  120. .if !"\\*([D"" \& (\\*([D)\c
  121. \&.
  122. .if !"\\*([O"" \\*([O
  123. .if !"\\*([%"" Cited p. \\*([%.
  124. .RT
  125. .FE
  126. ..
  127. .de [3 \" article in book
  128. .FS
  129. .nr %T 1
  130. .if !"\\*([F"" .IP "\\*([F.\0"
  131. .if !"\\*([A"" \\*([A,
  132. .if !"\\*([T"" \\*([o\\*([T,\\*([c
  133. .if !"\\*([P"" pp. \\*([P
  134. in \\f2\\*([B\\f1\c
  135. .if !"\\*([E"" , ed. \\*([E\c
  136. .if !"\\*([I"" , \\*([I\c
  137. .if !"\\*([C"" , \\*([C\c
  138. .if !"\\*([D"" \& (\\*([D)\c
  139. \&.
  140. .if !"\\*([O"" \\*([O
  141. .if !"\\*([%"" Cited p. \\*([%.
  142. .RT
  143. .FE
  144. ..
  145. .de ]<
  146. .[<
  147. ..
  148. .de [<
  149. .LP
  150. .rm FS FE
  151. ..
  152. .de [>
  153. .]>
  154. ..
  155. .de ]>
  156. .sp
  157. ..
  158. .de ]-
  159. .[-
  160. ..
  161. .de [-
  162. .rm [V [P [A [T
  163. .rm [N [C [B [O
  164. .rm [R [I [E [D
  165. .rm [G [%
  166. ..
  167. .de ]]
  168. .\"this is never executed and just uses up an end-of-file bug.
  169. ..