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

[Q:BibTex] I want a comma!

929 views
Skip to first unread message

GRUTER Peter

unread,
Nov 29, 1994, 1:46:00 PM11/29/94
to
Hello,

I am using BibTex with an own style based on unsrt.bst.
Unsrt.bst now produces periods ("."s) after the authors' names,
but I want to have commas (","s) instead. I have looked into
unsrt.bst and it seems to me that this "feature" is programmed quite
deeply inside the style (in the ouput routine itself there is
an add.period function which I would to replace by add.comma,
however, as this function is not predefined, I would have to rewrite
it).

Has anybody a short hack (no new style file) please?


--
Pjotr

David Kastrup

unread,
Dec 2, 1994, 5:59:18 PM12/2/94
to
gru...@dmi.ens.fr (GRUTER Peter) writes:

>Hello,

>I am using BibTex with an own style based on unsrt.bst.
>Unsrt.bst now produces periods ("."s) after the authors' names,
>but I want to have commas (","s) instead. I have looked into
>unsrt.bst and it seems to me that this "feature" is programmed quite
>deeply inside the style (in the ouput routine itself there is
>an add.period function which I would to replace by add.comma,
>however, as this function is not predefined, I would have to rewrite
>it).

Easy. add.period$ adds a period conditionally, i.e., if there is none
already, as in abbreviations. Kommas you do not have to add conditionally,
so you just write
"," *
which means add a comma to the current string on top of the stack
(bibTeX is rather Forth- or HP-calculator-like).
--
David Kastrup d...@pool.informatik.rwth-aachen.de
Tel: +49-241-72419 Fax: +49-241-79502
Goethestr. 20, D-52064 Aachen
--
David Kastrup d...@pool.informatik.rwth-aachen.de
Tel: +49-241-72419 Fax: +49-241-79502
Goethestr. 20, D-52064 Aachen

0 new messages