Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it possible to make an entire reference appear bold in the references section when using BibTeX? I'm using the IEEE templates and .bst.

I found this related question, but is there a more elegant way to highlight certain entries rather than just adding \textbf{} to every field in my .bib file?

Note that I only want to highlight selected entries from my bilbiography, so changing the whole thing wouldn't accomplish what I'm trying to do.

Unfortunately, I can't use biblatex as \usepackage[style=ieee]{biblatex} differs from what I get using the official IEEE .bst

share|improve this question
    
Nope, it's completely arbitrary in that sense. I'm trying to highlight certain references for someone else to look at. –  zje May 7 '12 at 23:27
    
I think you can simple setup biblatex but you can't simple setup the bst -- method. So it's easier if you try biblatex. –  Marco Daniel Jun 2 '12 at 20:44
3  
@user825518 I'd love to know what is wrong with the biblatex IEEE style: please report the issues to joseph.wright@morningstar2.co.uk :-) –  Joseph Wright Jun 2 '12 at 22:06
add comment

1 Answer

up vote 8 down vote accepted

Assuming numeric citations, here's a way: put the following code in your document preamble.

\usepackage{xparse}
\ExplSyntaxOn

\clist_new:N \g_boldcite_list_clist
\cs_new:Npn \boldcite_checkkey:n #1
 {
  \clist_if_in:NnTF \g_boldcite_list_clist { #1 } { \bfseries } { \mdseries } \boldcite_bibitem:n {#1}
 }
\cs_set_eq:NN \boldcite_bibitem:n \bibitem

\RenewDocumentCommand{\bibitem}{m}
 {
  \boldcite_checkkey:n { #1 }
 }
\NewDocumentCommand{\boldreferences}{m}
 {
  \clist_gput_right:Nn \g_boldcite_list_clist { #1 }
 }
\ExplSyntaxOff

You can then add any number of commands

\boldreferences{key1,key2}

where you list the keys of the references you want to embolden.

share|improve this answer
    
I apologize for my delay in response, but thank you very much! That does exactly what I was looking for! –  zje Jun 14 '12 at 15:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.