Changes

Jump to navigation Jump to search
11 bytes added ,  21:17, 6 February 2008
m
now utf-8 works again
<texcode>
% the first line can hold texexec's command line options
\enableregime [utf-8] % choose input encoding: utf is (in LuaTeX and XeTeX, UTF-8is on by default, thus not needed)
\mainlanguage [de] % language mode: changes typesetting rules, quote signs etc.
 
\starttext
 
Rotkäppchen:
\quotation{Aber Großmutter, warum hast du so große Augen?}
<context>
\enableregime [il1utf-8] % choose input encoding: il1 is "ISO Latin 1" (ISO 8859in LuaTeX and XeTeX, UTF-18 is on by default, thus not needed), same as "win"; utf doesn't work here!
\mainlanguage [de] % language mode: changes typesetting rules, quote signs etc.
\setupbodyfontenvironment[default][em=italic] % ConTeXt's default \em is slanted, but italic is better
 
\starttext
Rotkäppchen:
</context>
* '''regime''' is the input encoding, i.e. what you type, so that you can use accented characters (like umlauts in the example) directly. It depends on your languageOld encodings are supported, your OS but use UTF-8 whenever possible. In [[XeTeX]] and [[LuaTeX]] that's the capabilities of your editor. Try "utf" if your editor can process Unicodedefault already, otherwise "il1" (ISO Latin 1) on Windows or "mac" (Mac Roman) on a Macso you don't need that line any more. (More on that topic in [[Encodings and Regimes]].)
* '''language''' is the language of your text. Besides <cmd>mainlanguage</cmd> there's also <cmd>language</cmd> to switch temporarily. Try your internet top level domain code as language code (de = german, fr = french, it = italian etc., see [[Language Codes]]).
* '''quotation''': use logical markup instead of specified signs! You get single quotes with <cmd>quote</cmd>. You can use <cmd>startquotation</cmd> ... <cmd>stopquotation</cmd> for longer (indented) quotes.

Navigation menu