9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] What do you use for bib references w/ troff?
@ 2001-12-13 11:04 Fco.J.Ballesteros
  0 siblings, 0 replies; 2+ messages in thread
From: Fco.J.Ballesteros @ 2001-12-13 11:04 UTC (permalink / raw)
  To: 9fans

the subject says it all.
thanks




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] What do you use for bib references w/ troff?
@ 2001-12-14 19:23 Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2001-12-14 19:23 UTC (permalink / raw)
  To: 9fans

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 Maziéres,
-``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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-14 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-13 11:04 [9fans] What do you use for bib references w/ troff? Fco.J.Ballesteros
2001-12-14 19:23 Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).