Download Wikibooks.org - Parent Directory

Transcript
Hyphenating languages
Icelandic Special Characters.
\ae
\DH
\dh
æ
Ð
ð
39.4.11 Italian
Italian is well supported by LaTeX. Just add \usepackage[italian]{babel} at the beginning of your
document and the output of all the commands will be translated properly. You can add letters
with accents without any particular setting, just write \‘a \‘e \'e \‘i \‘o \‘u and you
will get à è é ì ò ù (NB: the symbol changes if the inclination of the accent changes). Anyway,
if you do so, it could be quite annoying since it's time-wasting. Moreover, if you are using any
spell-checking program, "città" is correct, but "citt\‘a" will be seen as a mistake. If you add
\usepackage[latin1]{inputenc} at the beginning of your document, LaTeX will include correctly all
your accented letters. To sum up, just add
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
at the beginning of your document and you can write in Italian without being worried of translations
and fonts. If you are writing your document without getting any error, then don't worry about
anything else. If you start getting some unknown errors whenever you use an Italian letter, then you
have to worry about the encoding of your files. As known, any LaTeX source is just plain text, so
you'll have to insert accented letters properly within the text file. If you write your document using
always the same program on the same computer, you should not have any problem. If you are writing
your document using different programs, if could start getting some strange errors from the compiler.
The reason could be that the accented letters were not included properly within your source file and
LaTeX can't recognize them. The reason is that an editor modified your document with a different
encoding from the one that was used when creating it. Most of the operating systems use UTF-8 as
default, but this could create problems if are using programs based on different libraries or different
operating systems. The best way to solve this problem is to change the encoding to ISO-8859-1, that
includes all the letters you need. Some text editors let you change the encoding in the settings.
39.4.12 Korean
To use LaTeX for typesetting Korean, we need to solve three problems:
1. We must be able to edit Korean input files. Korean input files must be in plain text format
a) Korean using Unicode. These days all three major operating systems (Mac OS, Unix,
Windows) come equipped with pretty decent multilingual support and internationalization
features so that editing Korean text file is not so much of a problem anymore, even on
non-Korean operating systems. In your text editor (not your word processor), go to
"Settings" and choose UTF-8. Set the preamble in latex to UTF-8 as well (usepackage
with values ucs and utf8x). Open your Korean keyboard from the keyboard menu, and
start writing.
b) Korean using older formats. The two most widely used encodings for Korean text
files are EUC-KR and its upward compatible extension used in Korean MS-Windows,
323