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.

I have some reference as the following.

    @article {RefNumber,
    AUTHOR = {LastName, FirstName},
     TITLE = {ArticleTitle},
   JOURNAL = {JournalName},
    VOLUME = {Vol},
    NUMBER = {No},
     PAGES = {FirstPage--LastPage},
      YEAR = {PubYear},
    }

When I call the volume number by \citefield{RefNumber}{volume}, I want the volume to be in bold. I know that \DeclareFieldFormat[article]{volume}{\mkbibbold{#1}} only changes volume in the bibliography. How this code should be modified to solve my problem?

share|improve this question
1  
You have to specify \citefield{RefNumber}[article]{volume} or in \citefield{RefNumber}[bold]{volume}. It seems that \citefield does not follow the formatting instructions specific to a entrytype. –  Guido Jul 6 '13 at 21:21
1  
@Guido Your comment is pretty much the answer. \citefield applies the citefield format when the optional argument isn't provided. In biblatex.def this is defined with \DeclareFieldFormat{citefield}{#1}. Use of \citefield{<key>}[volume]{volume} would probably make the most sense here. –  Audrey Jul 6 '13 at 22:16
    
@Guido, Audrey: Thank you very much. You both helped me to figure this structure out. I use \citefield{#1}[article]{volume}and \citefield{#1}[article]{number} now to copy the formatting from the bibliography. –  bkarpuz Jul 7 '13 at 6:16

1 Answer 1

You have to specify \citefield{RefNumber}[article]{volume} or use \citefield{RefNumber}[bold]{volume}.

\citefield does not follow the formatting instructions specific to a entrytype but it takes the formatting specifications from citefield format when the optional argument is not provided.

share|improve this answer

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.