BibTeX, biblatex and biberChange needed individual bibliography style with custom-bib

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
daena
Posts: 1
Joined: Tue Jul 27, 2010 10:55 pm

Change needed individual bibliography style with custom-bib

Post by daena »

Hello,

I just started working with Latex and was already very proud when I managed to create my own bibliography style with custom-bib. Now I noticed that I need a formatting which is not considered in custom-bib so I tried to change the code manually, but it did not quite work out.

What my bibliography should look like:

For @Incollection:
Authors (Year): Title. In: Editors (Ed.) (Year): Collection-title, Publisher, Pages

Right now my bibliography looks like this:
Authors (Year): Title. In: Editors (Ed.) Collection-title, Publisher, Pages

So as you can see, the second block "(Year):" is missing and I don't manage to include it into the code.

This is what the code looks like right now:

Code: Select all

FUNCTION {format.in.ed.booktitle}
{ format.booktitle duplicate$ empty$ 'skip$
    {
      format.bvolume duplicate$ empty$ 'pop$
        { ", " swap$ * * }
      if$
      editor "editor" format.names.ed duplicate$ empty$ 'pop$
        {
          " " *
          get.bbl.editor
          capitalize
          "(" swap$ * ") " *
          * swap$
          * }
      if$
      word.in swap$ *
    }
  if$
}

and

Code: Select all

FUNCTION {incollection}
{ output.bibitem
  format.authors "author" output.check
  author format.key output
  format.date "year" output.check
  date.block
  format.title "title" output.check
  new.sentence
  crossref missing$
    { format.in.ed.booktitle "booktitle" output.check
      format.publisher.address output
      format.number.series output
      format.chapter.pages output
      format.edition output
    }
    { format.incoll.inproc.crossref output.nonnull
      format.chapter.pages output
    }
  if$
  format.pages "pages" output.check
  format.note output
  fin.entry
}
So I will very much appreciate if someone could help me out.

Thank you in advance,

yours Daena!

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change needed individual bibliography style with custom-bib

Post by localghost »

You may take a look at the biblatex package. Although in beta state, it is quite reliable and has recently been incorporated into the MiKTeX 2.8 distribution.


Best regards and welcome to the board
Thorsten
Post Reply