[Tex/LaTex] wasysym symbols render to something different

packagessymbols

I would like to use the wasysym package to get access to characters such as lightning and clock. However, the following MWE for me gives different symbols.

\documentclass{article}
\usepackage{wasysym}
\begin{document}
$\lightning\clock$
\end{document}

This results in the following when I run pdflatex on it.

enter image description here

That is, lightning is instead rendered to a backtick and clock is instead rendered to a 0.

I have TeXLive 2012 on Ubuntu 12.04 and the same shows up when using Evince or Okular to view. I do not know if this is a problem with my LaTeX code or with my TeX installation or some encoding problem particular to my machine.

Best Answer

Don't use mathmode

\documentclass{article}
\usepackage{wasysym}
\begin{document}
\lightning\clock
\end{document}

enter image description here

I don't have much idea on mathmode. But here is a workaround using \text from amsmath:

\documentclass{article}
\usepackage{amsmath,wasysym}
\begin{document}
\lightning\clock $\text{\lightning}$
\end{document}

Or use \mbox{} --- $\mbox{\lightning}$ as noted by Gonzalo.

Related Question