Skip to content

Julia style with unicode characters #25

@mforets

Description

@mforets

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions