JuliaConSubmission.jl
JuliaConSubmission.jl copied to clipboard
Julia style with unicode characters
Hi,
First off, thanks for your work on this great submission template.
I have found that the listings package doesn't like some unicode characters that we use in our Julia library, eg.
\begin{lstlisting}[label=composition, numbers=left, mathescape]
Ω₀ = CH(X₀, Φ*X₀ ⊕ E₊(X₀))
\end{lstlisting}
gives an error.
A workaround is to escape the math commands like this:
\begin{lstlisting}[label=composition, numbers=left, mathescape]
$\Omega_0$ = CH($X_0, \Phi*X_0 \oplus E_+$)
\end{lstlisting}
While this shows the code, I find this is not great because the colors are wrong (all math characters in dollar signs are shown in red).
Another solution is to add the missing characters to the jlcode.sty style sheet. For example, if I add {⊕}{{\ucc{$\oplus$}}}{1} then such symbol can be used in listings, and it is displayed in the expected color (black). Do you accept that we make modifications to such file?