I am having an issue with hyphens not appearing in an enumerated list using IEEEtran. Sometimes the hyphen will present correctly, and other times it will not appear at all. Here is a working example:
\documentclass[conference]{IEEEtran}
\usepackage{caption}
\captionsetup{justification=centering}
\ifCLASSINFOpdf
\usepackage[pdftex]{graphicx}
\else
\fi
\begin{document}
\subsection{Section} \label{section}
\begin{enumerate}
\item \emph{Item} - Initial stuff.
\item \emph{Item 2} – Here is some stuff.
\begin{itemize}
\item Stuff
\item Stuff
\end{itemize}
\item \emph{Item 3} - More stuff
\item \emph{Item 4} – Also stuff
\end{enumerate}
\bibliographystyle{IEEEtran}
\end{document}
And the outcome:
I'm at a loss for why this is happening.
-
and–
are different symbols (the first is an hyphen, the second is an en dash). You need to tell the engine which encoding you are using (both input and font). Adding, say,\usepackage[T1]{fontenc}
and\usepackage[utf8]{inputenc}
to your MWE makes the en dash appear. Also note that you can get the same result with--
instead.:)
:)