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.

If I try to use \cdot in my .tex document (moderncv) then I'm getting error like this:

! Missing $ inserted.
(inserted text)

This line have this structure:

\tlcventry[orange]{year}{0}{DESC_1}{\href{http://DESC_1}{DESC_1} \cdot \href{http://DESC_1}{DESC_1}}{DESC_1}{ \scriptsize{\underline{\textbf{DESC_1}}} }{DESC_COMMENT}

When I remove \cdot from it, then my document compiles sucessfully.

share|improve this question
as the error message says, \cdot is a math command, you have to use it in math mode: $\cdot$ –  Juri Robl Sep 2 '12 at 11:08
It seems you need no math mode here. You can also use \dots without switching in mathmode. –  Kurt Sep 2 '12 at 14:31
@Kurt \dots is not the same as $\cdot$. \dots produces an ellipsis, i.e. three consecutive dots on the baseline, while $\cdot$ produce a single dot that is centered vertically. The equivalent of \cdot in text mode is \textbullet. –  Xavier Sep 7 '12 at 12:50
@Xavier: you are right. I oversaw the missing s. –  Kurt Sep 7 '12 at 13:20

2 Answers 2

up vote 6 down vote accepted

The command \cdot works only in mathmode so type $\cdot$. By the way the error message gave you the correct hint.

\tlcventry[orange]{year}{0}{DESC_1}{\href{http://DESC_1}{DESC_1}$\cdot$ \href{http://DESC_1}{DESC_1}}{DESC_1}{ \scriptsize{\underline{\textbf{DESC_1}}} }{DESC_COMMENT}
share|improve this answer

As others have said, \cdot only works in math mode, so you can write $\cdot$.

However, a more elegant solution in my opinion is to use \textbullet, which is the equivalent of \cdot but for text mode.

share|improve this answer

Your Answer


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.