Re: roffbib & sortbib for linux?
From: Robert Goulding (goulding_at_princeton.edu)
Date: 11/08/03
- Next message: Anonymous: "Re: [OpenOffice] Unable to identify an operator '=' for types 'cstring'Q"
- Previous message: Neo: "Re: PGP protection"
- In reply to: Trudie: "roffbib & sortbib for linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Anonymous: "Re: [OpenOffice] Unable to identify an operator '=' for types 'cstring'Q"
- Previous message: Neo: "Re: PGP protection"
- In reply to: Trudie: "roffbib & sortbib for linux?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|