[Tex/LaTex] biblatex: Something like \ifentrytype

biblatexconditionals

I’d like to change the bibmacro cite:short only for one entry type (@music). So is there a way to test for the entry type?

Best Answer

You can use the \iffieldequalstr command to check for a specific entry type.

\newbibmacro*{cite:short}{%     
    \iffieldequalstr{entrytype}{music}
      {} %true
      {} %false
}

From the biblatex manual (p. 147)

\iffieldequalstr{<field>}{<string>}{<true>}{<false>}

Executes <true> if the value of the <field> is equal to <string>, and <false> otherwise. This command is robust.

Related Question