Fonts & Character Setsinclude and accented characters

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
heinerrene
Posts: 2
Joined: Sat Feb 26, 2011 11:04 pm

include and accented characters

Post by heinerrene »

Hi, I have a little trouble with include or input command and accented characters. When I type accented characters in main document is not problem. But when I type accented characters in other document and coming it in the main document with include or input command many errors come up.

I am using \usepackage[spanish]{babel} and \usepackage[latin1]{inputenc} and errors are:
Missing $ inserted.
Extra }, or forgotten $.
Please use \mathaccent for accents in math mode.
You can't use `\spacefactor' in math mode.

Thanks for help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: include and accented characters

Post by Stefan Kottwitz »

Hi heinerrene,

welcome to the board!
Which is the code containing such characters which cause the problem? Please show such a line.

Stefan
LaTeX.org admin
heinerrene
Posts: 2
Joined: Sat Feb 26, 2011 11:04 pm

Re: include and accented characters

Post by heinerrene »

Thanks Stefan_K for your answer.

Now Everything is OK. I do not why the main document was saved with ISO-8859-15 encoding and the other one was saved with UTF-8 encoding. That was the problem.

Thank you.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

include and accented characters

Post by localghost »

heinerrene wrote:[…] Now Everything is OK. […]
Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply