home *** CD-ROM | disk | FTP | other *** search
- 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
- From: dberry@sei.cmu.edu (Daniel Berry)
- Newsgroups: comp.text
- Subject: RE: refer question
- Message-ID: <1993Jan27.110628.21062@sei.cmu.edu>
- Date: 27 Jan 93 16:06:28 GMT
- Article-I.D.: sei.1993Jan27.110628.21062
- Sender: netnews@sei.cmu.edu (Netnews)
- Reply-To: dberry@sei.cmu.edu (Daniel Berry)
- Organization: Software Engineering Institute, Pittsburgh, PA
- Lines: 102
-
- Weidong Wang writes:
- (wwang@osf.org)
-
- "Anyway: I have to use the numbering (superscript format) for
- references. And if there are several consecutive references, say
- 3,4,5,6,7, I am required to do it as 3-7, instead of 3,4,5,6,7 which
- is what refer gives me."
-
- This is relatively easy if you remember who does what. refer finds the
- citations in the data base and replaces them with the full information
- or a number or key, as you specifiy in the command line
-
- The macros deal with how the full information, number or key is displayed..
-
- So I will assume that you have a macro package for refer that implements
- superscripting of references and you have invoked refer to get numbers as
- the reference to a bibligraphy accumulated at the end.
-
- Suppose that the way you would get
-
- [3,4,5,6,7]
- blah blah
-
- is to say
-
- blah blah
- .[
- imprecise citation to reference 3
- .]
- .[
- imprecise citation to reference 4
- .]
- .[
- imprecise citation to reference 5
- .]
- .[
- imprecise citation to reference 6
- .]
- .[
- imprecise citation to reference 7
- .]
-
-
- OK what you do is change your input to..
-
- .ig
- .[
- imprecise citation to reference 3
- .]
- .[
- imprecise citation to reference 4
- .]
- .[
- imprecise citation to reference 5
- .]
- .[
- imprecise citation to reference 6
- .]
- .[
- imprecise citation to reference 7
- .]
- ..
- blah blah
- .nr XX 1
- .[
- imprecise citation to reference 3
- .]
- .nr XX 2
- \(en
- .[
- imprecise citation to reference 7
- .]
- .nr XX 0
-
- .ig causes troff to ignore the input up to the ..
- this is done to allow input to a preprocessor that does not affect the
- output from troff.
- It is important that the .ig block come just before the blah blah
- and its citations to establish the numbering of the references..
- and to get the full information to be put in the bibligraphy at the end.
- The repeated citations to reference 3 and 7 pick up the numbers already
- assigned by the .ig block citations..
-
- Now then you modify the macro package so that when the number register XX
- is 1, the closeing bracket symbol is null, when the register XX is 2,
- the open bracket symbol is null, and when the register XX is 0 the normal
- situation: open bracket symbol means move up half a line and reduce point
- size and close bracket symbol means move down a half a line and reduce point
- size.
-
- Since each macro package is different, all I can do is give the outlines of
- what you're to do..
-
- I have done all of the above except getting the endash inside the
- superscript.. When I did it, the style of citation was in-line brackets
- and I used the word "through" as in "See references [3] through [37]."
-
- Dan
- Dr. Daniel M. Berry, Software Engineering Institute, Carnegie Mellon Institute
- Pittsburgh, PA 15213, +1-412-268-7778 dberry@sei.cmu.edu FAX:+1-412-268-5758
- Prof. Daniel M. Berry, Computer Science Department, Technion, Haifa 32000
- ISRAEL +972-4-294325, DBERRY@TECHSEL.bitnet dberry@cs.technion.ac.il
-