Re: roffbib & sortbib for linux?

From: Robert Goulding (goulding_at_princeton.edu)
Date: 11/08/03


Date: 8 Nov 2003 10:21:34 -0800

Trudie <trudie_smc@yahxx.cxm> wrote in message news:<bogt11$r51$1@news2.netvision.net.il>...
> Do these things exist?
>
> I've been told that "groff -R" (groff with "refer" preprocessor) somehow
> replaces roffbib, but I can't seem to get it to understand my bib database.
> If I run it on the database file itself, I get the entire text of the
> file, %A, %T, and all.
> If I run it on a file containing
> .R1
> bibliography books.bib
> .R2
> I get nothing at all.
>
> What am I doing wrong?

If you run refer on your file, all it will produce is a long series of
string declarations and (undefined) macro calls such as .][ - hence,
no output. You *must* use a macro package which can make sense of the
strings and has the refer macros defined: for instance, -ms or -me
(but, for printing out a bibliography, GNU -ms works best; -me needs
some hacking).

So, for instance, the file biblio.ms I use to print out a bibliography
is:

.ds REFERENCES
.LP
.R1
sort A1D1
annotate
reverse A
capitalize A
abbreviate AE
no-label-in-reference
bibliography optmod.ref
.R2

(you can find out what the additional refer flags mean in refer (1);
you are almost certainly going to want a sort line).

Then I run groff -R -ms biblio.ms > biblio.ps.

HTH,
R.

PS: If you're looking for sortbib (i.e., a program that will sort the
actual refer bibliography files, rather than printing out a sorted
database), I posted a simple-minded shell script to do this to the
groff mailing list some time back. Use Google to search the domain
ffii.org for the terms groff sortbib.



Relevant Pages

  • Re: OK, stupid question about picture managment programs...
    ... one place and refer to it whenever it's needed. ... You probably need some sort of database, even if it's hidden behind a nice GUI. ...
    (rec.photo.digital)
  • Re: [9fans] troff bibliography
    ... i have aded the -B option from heirloom to forsyth's port of refer, plus a simple script 'roffbib.rc' that makes complete bibliography from the database, plus a tmac.bib macro; ...
    (comp.os.plan9)
  • Re: My Enterprise Architecture - your thoughts?
    ... > of Enterprise application architecture" is a bit of a misnomer as ... >> interface layer need change). ... database connection/display I would not say it has performance ... > I would refer to ...
    (comp.object)
  • Re: My Enterprise Architecture - your thoughts?
    ... Personally my database schema is usually pretty close to my domain ... Are you testing it in the same physical deployment that you intend ... > ethernet connections to the servers. ... >> I would refer to ...
    (comp.object)
  • Company Contacts
    ... I am making a database for a call center so they can look up people, ... refer problems to the right people or give out correct adresses, ... I could have a subform for each breakdown- ie- company with a subform, ... Also- Each person has duties and (this is the most useful part of this ...
    (microsoft.public.access.tablesdbdesign)