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$
}
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
}
Thank you in advance,
yours Daena!