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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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