BibTeX, biblatex and biberMake volume number bold in custom bibliography style (bst)

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
esmitex
Posts: 5
Joined: Sun Nov 11, 2012 5:45 pm

Make volume number bold in custom bibliography style (bst)

Post by esmitex »

Hi,

I have been trying to get my bibliography to look like my teacher asked... but I still have a problem with it. The volume number won't appear in boldface. I have been using "latex makebst" in the shell to customize my bibliography style and it's driving me crazy :shock: :shock: .

Is there a way to make the volume number appear in bold by modifying the bst file ?

This is what I have in the .bst

Code: Select all

FUNCTION {format.bvolume}
{ volume empty$
    { "" }
    { bbl.volume volume tie.or.space.prefix
      "volume" bibinfo.check * *
      series "series" bibinfo.check
      duplicate$ empty$ 'pop$
        { emphasize ", " * swap$ * }
      if$
      "volume and number" number either.or.check
    }
  if$

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

Make volume number bold in custom bibliography style (bst)

Post by josephwright »

Try

Code: Select all

FUNCTION {format.bvolume}
{ volume empty$
    { "" }
    { bbl.volume volume tie.or.space.prefix
      "volume" bibinfo.check * *
      series "series" bibinfo.check
      duplicate$ empty$
         'pop$
        { "\textbf{" swap$ * "}" * ", " * swap$ * }
      if$
      "volume and number" number either.or.check
    }
  if$
Joseph Wright
Post Reply