On 2013-05-22, Dr Eberhard Lisse wrote:
> Hi,
> I am struggling with importing a document in Spanish into LyX because I
> do not know how to get the Spanish diacriticals to show in the LyX
> frontend and it doesn't compile.
> Here is the minimal example
> \documentclass{scrartcl}
> \usepackage[spanish]{babel}
> \usepackage{selinput}
> \SelectInputMappings{%
> aacute={á},
> ntilde={ñ},
> Euro={€}
> }
> \begin{document}
> \section{Diagnóstico}
> Durante el proceso de visitas al XXXXX, se realizó un inventario de las
> características de la infraestructura de comunicaciones y acceso a
> Internet y otros servicios.
> \end{document}
It seems the non-standard "selinput" package is not known to tex2lyx.
I see two options.
a) convert the source to standard all ASCII input using the accent macros
\~n, \'a, ...
b) use the standard inputenc package with an appropriate encoding, e.g.
\documentclass{scrartcl}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\begin{document}
\section{Diagnóstico}
Durante el proceso de visitas al XXXXX, se realizó un inventario de las
características de la infraestructura de comunicaciones y acceso a
Internet y otros servicios.
\end{document}
Günter