BibTeX, biblatex and biberParentheses around the Year in Bibliography List

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
jsrichter
Posts: 2
Joined: Wed Jan 23, 2013 11:15 pm

Parentheses around the Year in Bibliography List

Post by jsrichter »

Hi,

I'm writing my thesis with an old and modified bibliography style originating in "alpha.bst". I have been altering the file for some university-requirements but I don't seem to be able to add parentheses around the year in the bibliography list. I have been looking for help on other forums but haven't been successful.

I'm new to the language used in BibTeX, so I don't quite understand the code. There is no Function {format.date} in my file, all changes cited in other forums have referred to this.

I was wondering if maybe a change can to be made in the individual functions? - Such as:

Code: Select all

FUNCTION {article}
{ output.bibitem
  list.label.output
  "  " list.year * output.nonnull
  author "author" item.check
  title.field field.used =
    { skip$ }
    { format.title "title"  output.check } 
  if$
  crossref missing$
    { journal emphasize "journal" duplicate$ item.check
      " " * format.vol.num.pages * output
    }
    { format.article.crossref output.nonnull
      format.pages output
    }
  if$
  new.block
  note output
  fin.entry
  write.url
}
I have found an instruction for example to bolden the year in Ki-Joo Kim's "guide via examples", can this be done in similar fashion to add parentheses?

Thanks you so much for your help!
S.R.
Last edited by cgnieder on Thu Jan 24, 2013 12:42 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Parentheses around the Year in Bibliography List

Post by josephwright »

Does changing the line

Code: Select all

"  " list.year * output.nonnull
to

Code: Select all

"  (" list.year * ")" * output.nonnull
help? (It's a bit hard to be sure of the desired result from the fragment, but I think this should be OK.)
Joseph Wright
jsrichter
Posts: 2
Joined: Wed Jan 23, 2013 11:15 pm

Re: Parentheses around the Year in Bibliography List

Post by jsrichter »

Wow, this was perfect. Thank you very much for your help, I'm saved!
S.R.
Post Reply