Thread View: comp.text
2 messages
2 total messages
Started by Daniel Berry
Wed, 27 Jan 1993 16:06
RE: refer question
Author: Daniel Berry
Date: Wed, 27 Jan 1993 16:06
Date: Wed, 27 Jan 1993 16:06
102 lines
3464 bytes
3464 bytes
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
RE: refer question
Author: Weidong Wang
Date: Wed, 27 Jan 1993 21:48
Date: Wed, 27 Jan 1993 21:48
27 lines
1370 bytes
1370 bytes
Here are answers for my two refer questions (of course there are more
other ways).
1. refer with abbreviation when numbering is used.
I have found that grefer (GNU verison of refer) does what I
want. You can set a command to turn the abbreviation on. And
it has much more features than refer.
I was alos told that bib can do it too.
2. troff file with a line starting with ".".
Add "\&" in front of . this way this line is not considered
as troff command line and since "\&" is a zero length
non-printable character, you are ok.
Thanks to those who responded.
------------
+--------------------------------------------------------------------+
| Weidong Wang | Open Software Foundation |
| wwang@osf.org | 11 Cambridge Center |
| (617) 621-7272 | Cambridge, MA 02142 |
+--------------------------------------------------------------------+
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads