Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] What do you use for bib references w/ troff?

27 views
Skip to first unread message

Fco.J.Ballesteros

unread,
Dec 13, 2001, 6:16:38 AM12/13/01
to
the subject says it all.
thanks


Russ Cox

unread,
Dec 14, 2001, 2:35:37 PM12/14/01
to
I've been using the setup demonstrated by the attached
bundle. The only thing I don't like is having to format
the reference entries myself, but then, I'd rather deal
with formatting the entries than remembering what the
magic incantations for bibtex are.

If functionality/lines-of-code is a metric you care
about, this is orders of magnitude better than bibtex!

# To unbundle, run this file
echo mkfile
sed 's/.//' >mkfile <<'//GO.SYSIN DD mkfile'
-%.refs:QD: %.ms
- troff $stem.ms >/dev/null |[2] {grep '^\.\.\.' >$target; status=''}
-
-%.ps:D: %.refs %.ms
- awk -f fixref.awk $stem.refs $stem.ms | pic | eqn | tbl | troff -ms | lp -dstdout >$target
-
//GO.SYSIN DD mkfile
echo fixref.awk
sed 's/.//' >fixref.awk <<'//GO.SYSIN DD fixref.awk'
-$1=="..." && $2=="Rx" {
- ref[$4] = $3;
- next
-}
-
-$1==".Rf" { if($2 in ref) $2=ref[$2]; else print "!!! no ref for " $2 >"/dev/stderr" }
-
-{print}
-
//GO.SYSIN DD fixref.awk
echo sample.ms
sed 's/.//' >sample.ms <<'//GO.SYSIN DD sample.ms'
-.de Rf
-\\$3[\\$1]\\$2
-..
-.nr Rx 0 1
-.de Rx
-.ps 9
-.vs 11
-.IP \s9\\n+(Rx.
-.ps 9
-.vs 11
-.tm ... Rx \\n(Rx \\$1
-..
-.TL
-Editing Remote Files over Low-Bandwidth Links
-.PP
-One approach is to use a file system protocol optimized for
-low bandwidth, like LBFS
-.Rf lbfs .
-LBFS works well over today's low-speed links, like ADSL.
-Another approach is to use a text editor that splits
-the user interface from the editing process, like Sam
-.Rf sam .
-Sam works well over yesterday's low-speed links, like 19.2kbps
-modem connections.
-.SH
-References
-.Rx lbfs
-Athicha Muthitachaeroen,
-Benjie Chen,
-and
-David Mazires,
-``A Low-bandwidth Network File System'',
-.I "Proceedings of the 18th ACM Symposium on Operating System Principles (SOSP '01)" ,
-Chateau Lake Louise, Banff, Canada,
-October 2001,
-pp. 174\-187.
-.Rx sam
-Rob Pike.
-``The Text Editor
-.I sam '',
-.I "Software\(emPractice and Experience" ,
-Vol. 7, No. 11 (November 1987), pp. 813\-845.
//GO.SYSIN DD sample.ms

0 new messages