Changes

Jump to navigation Jump to search
6 bytes added ,  19:39, 6 February 2008
m
changed regime to UTF-8
<texcode>
% the first line can hold texexec's command line options
\enableregime [il1utf] % choose input encoding: il1 utf is "ISO Latin 1" (ISO 8859UTF-1), same as "win"8
\mainlanguage [de] % language mode: changes typesetting rules, quote signs etc.
\starttext
<context>
\enableregime [il1utf] % choose input encoding: il1 is "ISO Latin 1" (ISO 8859-1), same as "win"
\mainlanguage [de] % language mode: changes typesetting rules, quote signs etc.
\setupbodyfontenvironment[default][em=italic] % ConTeXt's default \em is slanted, but italic is better
</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 language, your OS and the capabilities of your editor. Try "utf" if your editor can process Unicode , otherwise "il1" (ISO Latin 1) on Windows or "mac" (Mac Roman) on a Mac. (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.).
* '''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.
* '''em''': again, logical markup! say "<cmd>em</cmd>phasized" instead of bold or italics. Remember, it's a switch, not a command! (Not <tt>\em{blafoo}</tt>, but <tt>{\em blafoo}</tt>.)
Now you can start with your own document, let's see what your [[Next Steps]] can be...

Navigation menu