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

Peter Lichtner lichtner at lanl.gov
Wed Jun 25 19:06:39 CEST 2008


On Jun 25, 2008, at 10:52 AM, Bruno Voisin wrote:

> 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
>

Works great! Many thanks, ...Peter

>
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>

<><><><><><><><><><><><><><><><><><><><><>
Peter C. Lichtner (lichtner at lanl.gov)
LANL EES-6: MS D469
(505) 667-3420 (o), 665-3285 (fax), 795-2881 (cell)
Los Alamos National Laboratory
SM-30 Bikini Atoll Road
Los Alamos, NM 87545
<><><><><><><><><><><><><><><><><><><><><>






More information about the macostex-archives mailing list