TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.