[OS X TeX] Using boldsymbol in figure caption with listoffigures

Bruno Voisin bvoisin at mac.com
Wed Jun 25 18:52:30 CEST 2008


Le 25 juin 08 à 18:43, Peter Lichtner a écrit :

>> I am trying to create a caption to a figure using boldsymbol as in
>>
>> \caption{$\hat\bzeta$}
>>
>> where \bzeta is defined as
>>
>> \newcommand{\bzeta}{\boldsymbol{\zeta}}
>>
>> But this gives an error in \listoffigures. I assume I need a  
>> \protect somewhere but can't seem to get it to work. Any help  
>> appreciated.
>
> One further comment: it seems to be the use of both \hat and \bzeta  
> that is causing the problem.

Use the bm package and \DeclareBoldMathCommand. The following works  
here:

\documentclass{article}
\usepackage{bm}
\DeclareBoldMathCommand{\bzeta}{\zeta}
\begin{document}
\listoffigures
\newpage
\begin{figure}
\caption{$\hat\bzeta$}
\end{figure}
\end{document}

Bruno Voisin




More information about the macostex-archives mailing list