\cdot no funciona en moderncv

\cdot no funciona en moderncv

Si intento usarlo \cdoten mi documento .tex (moderncv), aparece un error como este:

! Missing $ inserted.
(inserted text)
                $
here_it_gives_line_number_and_hint

Esta línea tiene esta estructura:

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

\cdotCuando lo elimino , mi documento se compila correctamente.

Respuesta1

El comando \cdotsólo funciona en modo matemático, así que escriba $\cdot$. Por cierto, el mensaje de error te dio la pista correcta.

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

Respuesta2

Como han dicho otros, \cdotsólo funciona en modo matemático, por lo que puedes escribir $\cdot$.

Sin embargo, en mi opinión, una solución más elegante es usar \textbullet, que es el equivalente a \cdotpero para el modo texto.

información relacionada