# Transforming the .bib file to get upper cases

With the following entry in the .bib file

@ARTICLE{a1,
AUTHOR="M., J. J.",
TITLE="My Sample Title",
JOURNAL="Journal Name",
pages="132--234",
YEAR=2000`
}

and with \bibliographystyle{plain} in the preamble, my PDF output displays the reference title with lower case, except for the first letter: "My sample title". How could I state that the title should be shown in PDF as I write it in the .bib file?

-
Afaik you could enclose the first letter into {} like My {S}ample {T}itle. But I haven't tried it and I really doubt that this is the best way ... –  Thorsten Apr 23 '12 at 14:25
Of course I could do so. The problem is that the .bib file I have on disposal has around 600 entries. –  boy Apr 23 '12 at 14:42
If you're a Vim user, you could add the braces with :g/^TITLE=/ s/\<\([A-Z]\)\([a-z]*\)\>/{\1}\2/g. –  Martin Apr 23 '12 at 15:22

of course, this isn't an answer to "how do i modify my .bib file"...

make a "myplain.bst" that is a copy of plain.bst, but replaces

FUNCTION {format.title}
{ title empty\$
{ "" }
{ title "t" change.case\$ }
if\$
}

by

FUNCTION {format.title}
{ title empty\$
{ "" }
{ title }
if\$
}