1

I am using TeXworks to write documents, but as I am doing some stuff in spanish, accents are required. When I write

áéíóú

I get

áà c

If I do \'a \'e \'i \'o \'u I get the desired result áéíóú

I have changed in Edit->preferences->Editor->Coding->ISO-8859-1 instead of UTF-8 but get the same results.

1
  • you are missing a \usepackage[utf8]{inputenc} in your document
    – user2478
    Commented Oct 24, 2011 at 16:19

1 Answer 1

6

You have to load the package inputenc with the current encoding or the package selinput.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
áéíóú
\end{document}

Example with selinput

\documentclass{article}
\usepackage{selinput}
\SelectInputMappings{
adieresis={ä},
Euro={€},
}
\usepackage[T1]{fontenc}
\begin{document}
áéíóú
\end{document}

You see this behavior is independent from the editor.

1
  • I just wanted to add that, in my case, Texworks editor was not loading accents when I was trying to open the .tex file with accents. However, by simply changing the encoding: Edit->preferences->Editor->Coding->ISO-8859-1 instead of UTF-8 solved the problem.
    – sinner
    Commented Feb 5, 2017 at 14:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .