Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
    
you are missing a \usepackage[utf8]{inputenc} in your document –  Herbert Oct 24 '11 at 16:19
add comment

1 Answer

up vote 6 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.