5

I have installed the ifsym package and added the following line to my .tex file:

\usepackage{ifsym}

When I try printing the sun symbol through \Sun I get this error:

! Undefined control sequence. l.226
Testing \Sun

What am I missing?

4
  • Hi, welcome to TeX.SX, you could be missing one of many things, or none at all... It's hard to tell without a Minimal Working Example (MWE). Please add that so we can try and see what's up.
    – Elad Den
    May 16, 2017 at 14:08
  • 2
    try \usepackage[weather]{ifsym}
    – Troy
    May 16, 2017 at 14:10
  • Possible duplicate of How to use the ifsym package?
    – Troy
    May 16, 2017 at 14:14
  • \usepackage[weather]{ifsym} worked for me, thank you!
    – Tonechas
    May 16, 2017 at 14:18

1 Answer 1

9

[Converting my comment into an answer]

You need to pass the appropriate option when loading the ifsym package to access the symbols. In your case, you need to pass the option weather, like so:

MWE

\documentclass{article}
\usepackage[weather]{ifsym}

\begin{document}
    We are \Sun\ when the question has been answered.
\end{document}

sunny

Related answer provided by Andrew: https://tex.stackexchange.com/a/100578/117534

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .