BibTeX, biblatex and biberIntroducing change.case in modified .bst

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
Matifou
Posts: 23
Joined: Fri Jan 14, 2011 11:27 am

Introducing change.case in modified .bst

Post by Matifou »

Hi

I'm kind of "reverse engineering" a bibtex file for own style definition. I could make a few change, but there is one I was not succesfful in making: I'm modifying a style without the change.case function, but want it.

The original plain.bst has this:
FUNCTION {format.title}

Code: Select all

{ title empty$
    { "" }
    { title "t" change.case$ }
  if$
}
The style I want to modify is this:

Code: Select all

FUNCTION {format.title}
{ title empty$
    { "" }
    { title
      %"``" swap$ * ",'' " * %original
      "" swap$ * ", " * %already modified
    }
no.comma 'output.state :=   %%%KCB:
  if$
}


Any idea where I should introduce this change.case? Tried few solutions which did not work... Should it replace this swap$ (what is it exactly?).

Also, I removed the '' in the definition, I'm not sure if I could then have written actual line more clearly?

Thanks so much!!

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

Introducing change.case in modified .bst

Post by josephwright »

I'd leave the

Code: Select all

title "t" change.case$
part from the original, and add your quote marks after that.
Joseph Wright
Matifou
Posts: 23
Joined: Fri Jan 14, 2011 11:27 am

Introducing change.case in modified .bst

Post by Matifou »

Thanks for your answer.

I had indeed tried this, but then there is a problem of spacing: there are no spaces between year-title-journal...

I tried after some manipulations and got soem result with:

Code: Select all

" " title "t" change.case$ * ", " *
I must say I am really unsure about this solution... but works... Any idea whether I am doing something wrong here?

Thanks!!
Post Reply