I'm submitting a paper to a journal using LaTeX, and I need to be able to write Unicode symbols into listings. So far, I've been able to get by with the moreverb
package. It's listing environment is pretty good in conjunction with the utf8x
set on inputenc
. However, some symbols, like Σ, just won't work.
Note: I'm using listings because the contents are code-snippets and not traditional math expressions. Here are some minimal examples.
\documentclass[preprint, 11pt]{sigplanconf}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{verbatim}
\usepackage{moreverb}
\usepackage{listings}
This works:
\begin{listing}{1}
test = 2 ∈ s
\end{listing}
This doesn't work:
\begin{listing}{1}
sum = Σ(s)
\end{listing}
Please help!