i know that this answer is a duplicate but the solution proposed to other question doesn't work for me.
So, i declared my language and my style and then add a "literate={è}{{\`{e}}}{1}" (or "literate={è}{{\`e}}1", i tried a lot of combinations) to use "\`e" as "e" accented. But this doesn't work for me. for example:
\lstset{
language=Arduino,
style=myArduino,
literate={è}{{\`{e}}}{1},
}
and then:
\begin{lstlisting}[style=myArduino, caption="funzione "loop", captionpos=b]
// quando il bluetooth \`e connesso posso procedere ad inizializzare...
\end{lstlisting}
that should produce an output with the "\`e" substituted by the è, but that doesn't happen and i get "\`e" as output.
now, how i can write the accented letters like "\`e" and get the è as output?
(i have an english keyboard that don't have accented letters)
thanks a lot.
quando il bluetooth è connesso
. The purpose ofliterate
is to transformè
into\`e
, not conversely.è