It seems that showexpl
removes the accents when it is processing them.
How can I make it to use accented letters?
Is there a replacement or a similar package that is more robust?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{listings}
\usepackage{showexpl}
\lstset {
literate=%
{á}{{\'{a}}}1
{é}{{\'{e}}}1
{í}{{\'{i}}}1
{ó}{{\'{o}}}1
{ú}{{\'{u}}}1
{ñ}{{\~{n}}}1
{Ñ}{{\~{N}}}1
}
\begin{document}
\begin{lstlisting}
á é í ó ú a e i o u
\end{lstlisting}
\begin{LTXexample}
á é í ó ú a e i o u
\end{LTXexample}
\end{document}
showexpl
uses thelistings
package, this is a duplicate of Having problems with listings and UTF-8. Can it be fixed?.