home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / text / 1636 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  3.3 KB

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!bb3.andrew.cmu.edu!news.sei.cmu.edu!dberry
  2. From: dberry@sei.cmu.edu (Daniel Berry)
  3. Newsgroups: comp.text
  4. Subject: RE: refer question
  5. Message-ID: <1993Jan27.110628.21062@sei.cmu.edu>
  6. Date: 27 Jan 93 16:06:28 GMT
  7. Article-I.D.: sei.1993Jan27.110628.21062
  8. Sender: netnews@sei.cmu.edu (Netnews)
  9. Reply-To: dberry@sei.cmu.edu (Daniel Berry)
  10. Organization: Software Engineering Institute, Pittsburgh, PA
  11. Lines: 102
  12.  
  13. Weidong Wang writes:
  14. (wwang@osf.org)
  15.  
  16. "Anyway: I have to use the numbering (superscript format) for 
  17. references. And if there are several consecutive references, say 
  18. 3,4,5,6,7, I am required to do it as 3-7, instead of 3,4,5,6,7 which
  19. is what refer gives me."
  20.  
  21. This is relatively easy if you remember who does what. refer finds the
  22. citations in the data base and replaces them with the full information
  23. or a number or key, as you specifiy in the command line
  24.  
  25. The macros deal with how the full information, number or key is displayed..
  26.  
  27. So I will assume that you have a macro package for refer that implements
  28. superscripting of references and you have invoked refer to get numbers as
  29. the reference to a bibligraphy accumulated at the end.
  30.  
  31. Suppose that the way you would get 
  32.  
  33.         [3,4,5,6,7]
  34. blah blah
  35.  
  36. is to say
  37.  
  38. blah blah
  39. .[
  40. imprecise citation to reference 3
  41. .]
  42. .[
  43. imprecise citation to reference 4
  44. .]
  45. .[
  46. imprecise citation to reference 5
  47. .]
  48. .[
  49. imprecise citation to reference 6
  50. .]
  51. .[
  52. imprecise citation to reference 7
  53. .]
  54.  
  55.  
  56. OK what you do is change your input to..
  57.  
  58. .ig
  59. .[
  60. imprecise citation to reference 3
  61. .]
  62. .[
  63. imprecise citation to reference 4
  64. .]
  65. .[
  66. imprecise citation to reference 5
  67. .]
  68. .[
  69. imprecise citation to reference 6
  70. .]
  71. .[
  72. imprecise citation to reference 7
  73. .]
  74. ..
  75. blah blah
  76. .nr XX 1
  77. .[
  78. imprecise citation to reference 3
  79. .]
  80. .nr XX 2
  81. \(en
  82. .[
  83. imprecise citation to reference 7
  84. .]
  85. .nr XX 0
  86.  
  87. .ig causes troff to ignore the input up to the ..
  88. this is done to allow input to a preprocessor that does not affect the
  89. output from troff.
  90. It is important that the .ig block come just before the blah blah
  91. and its citations to establish the numbering of the references..
  92. and to get the full information to be put in the bibligraphy at the end.
  93. The repeated citations to reference 3 and 7 pick up the numbers already
  94. assigned by the .ig block citations..
  95.  
  96. Now then you modify the macro package so that when the number register XX
  97. is 1, the closeing bracket symbol is null, when the register XX is 2,
  98. the open bracket symbol is null, and when the register XX is 0 the normal
  99. situation: open bracket symbol means move up half a line and reduce point
  100. size and close bracket symbol means move down a half a line and reduce point
  101. size.
  102.  
  103. Since each macro package is different, all I can do is give the outlines of
  104. what you're to do..
  105.  
  106. I have done all of the above except getting the endash inside the
  107. superscript.. When I did it, the style of citation was in-line brackets
  108. and I used the word "through" as in "See references [3] through [37]."
  109.  
  110. Dan
  111. Dr. Daniel M. Berry, Software Engineering Institute, Carnegie Mellon Institute
  112. Pittsburgh, PA 15213, +1-412-268-7778 dberry@sei.cmu.edu FAX:+1-412-268-5758
  113. Prof. Daniel M. Berry, Computer Science Department, Technion, Haifa 32000
  114. ISRAEL +972-4-294325, DBERRY@TECHSEL.bitnet dberry@cs.technion.ac.il
  115.