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.

When I try to compile this simple document

\documentclass{article}
\usepackage[italian]{babel}
\usepackage{bm}

\begin{document}
$\bm{,}$
\end{document}

I receive the following complaint:

! Undefined control sequence.
\it@comma@def  ->\futurelet \let@token
                                       \@@math@comma
l.7 $\bm{,}
           $

and a strange number (25915) is printed on the resulting pdf instead of the comma.
Something odd is going on with the babel package, because if I remove the line

\usepackage[italian]{babel}

everything works just fine.

Any thoughts?

share|improve this question
    
Welcome to TeX.SX! –  egreg May 12 at 9:17

1 Answer 1

up vote 6 down vote accepted

Unfortunately, the “intelligent comma” commands proposed in italian.ldf are not really smart.

You can avoid the problem with \bm by using

\bm{\mathpunct{,}}

or

\bm{{,}}

depending if you want it to be punctuation or an ordinary symbol.

share|improve this answer
    
Great answer, thank you! –  Mizar May 12 at 9:26

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.