BibTeX, biblatex and biberUnable the change of case in titles

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
charlax
Posts: 11
Joined: Mon Apr 20, 2009 9:16 am

Unable the change of case in titles

Post by charlax »

Hi,

I would like to unable the case change in titles in Bibtex. Since I've got many titles with company names, I don't want to review each title and put the characters between brackets to keep the case. I create my own bst file, following the advice at http://www.nabble.com/BibTeX:-Change-of ... 42616.html, yet since I am using MacTex (which is based on the Texlive distribution), I have not updated the FNDB.

I'm using natbib, I just changed the following lines in plainnat.bst, from:

Code: Select all

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

Code: Select all

FUNCTION {format.title}
{ title empty$
    { "" }
    { title "t" }
  if$
}
(lines 299-304).

Yet I got these errors:

Code: Select all

...
---the literal stack isn't empty for entry google:open-web-mobile
while executing---line 1429 of file mybibca.bst
ptr=1, stack=
Web~Server Survey
---the literal stack isn't empty for entry google:web-server-survey
while executing---line 1429 of file mybibca.bst
ptr=1, stack=
Steven~J. Vaughan-Nichols
---the literal stack isn't empty for entry :ve
while executing---line 1429 of file mybibca.bst
ptr=1, stack=
Harry Wingo
...
(There were 86 error messages)
And the process dies.

Any idea?

Thank you in advance!

Charles

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Unable the change of case in titles

Post by josephwright »

You just want:

Code: Select all

FUNCTION {format.title}
{ title empty$
    { "" }
    { title }
  if$
}
The "t" is an instruction for change.case$.
Joseph Wright
charlax
Posts: 11
Joined: Mon Apr 20, 2009 9:16 am

Re: Unable the change of case in titles

Post by charlax »

Thank you very much!

It now works perfectly.
Post Reply