I'm currently writing my final thesis in TeXstudio and for a better organization I'm writing each chapter in a different text file. I'm also writing in Spanish and as far as I know, the inputenc
package with utf8
configuration (\usepackage[utf8]{inputenc}
) along the babel
package (\usepackage[spanish,activeacute]{babel}
) must be ok for that. I started to write the first chapter with Spanish accents without any problem, nevertheless as soon as I started writing chapter 2 there was an inputenc
error whenever I typed an accented word or the letter ñ
. The error is like this:
Package inputenc Error: Unicode char \u8: étr not set up for use with LaTeX
Package inputenc Error: Unicode char \u8: ño not set up for use with LaTeX
Package inputenc Error: Unicode char \u8: ón not set up for use with LaTeX
Package inputenc Error: Unicode char \u8: És not set up for use with LaTeX
etc.
etc.
.
.
.
I don't really get it since I wrote chapter 1 without problems. I'm using those lines to add the chapters to the main file.
\input{Capitulo1}
\input{Capitulo2}
\input{Capitulo3}
\input{Capitulo4}
\input{Capitulo5}
It's as if TeXtstudio wouldn't keep recognizing the inputenc
function after the first \input{file.tex}
or something. And the wiered thing is that the inputenc error is for the accented words interacting inside a word, for example étr
or ño
inside the words paramétrico
and diseño
.
I can only make it work if I place the whole chapter's 2 content into the chapter's 1 TeX file.
Any ideas?
Best Answer
Try using:
If it doesn't work, then try (For iso-8859-1):
Write in normal spanish, don't worry about special characters (i.e. use "diseño", you don't have to write "dise\~no").
This should work just fine. It does for me.