Inputting accented characters
By default, LaTeX works with simple ASCII characters. For accented characters, such as in the German word "schön", you need to type sch\"on
into your editor. The babel
command with the ngerman
option simplifies the syntax to sch"on
. But there is an easier way.
How to do it...
We will activate extended input character support as follows:
- Check your editor's configuration and find out its input encoding setting.
utf8
(UTF-8 means Unicode) is standard for Linux, Mac OS X, and some Windows editors. However, some Windows editors still work withlatin1
orcp1250/cp1252
, while some older Macs useapplemac
. - Load the
inputenc
package with the corresponding option, like so:\usepackage[utf8]{inputenc}
- Now you can directly type characters such as a, ü, ö, é, and è in to your document.
Tip
If you need help with editor settings, you can post a question in the forum at http://latex-community.org/forum/. This web site provides support...