Changes

Jump to navigation Jump to search
423 bytes added ,  13:19, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
Here's a slightly more complex sampleexample:
<precontext source="yes" text="looks like:">% the first line can hold texexec's command line options\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)
\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:
\stoptext
</precontext* '''regime''' is the input encoding, i.e. what you type, so that you can use accented characters (like umlauts in the example) directly. Old encodings are supported, but use UTF-8 whenever possible. In [[XeTeX]] and [[LuaTeX]] that's the default already, so you don't need that line any more. (More on that topic in [[Encodings and Regimes - Old Content]].)* '''language''' is the language of your text. Besides {{cmd|mainlanguage}} there's also {{cmd|language}} to switch temporarily. Try your internet top level domain code as language code (de = german, fr = french, it = italian etc., see [[Languages#Language_tags|language tags]]).* '''quotation''': use logical markup instead of specified signs! You get single quotes with {{cmd|quote}}. You can use {{cmd|startquotation}} ... {{cmd|stopquotation}} for longer (indented) quotes.* '''em''': again, logical markup! say "{{cmd|em}}phasized" instead of bold or italics. Remember, it's a switch, not a command! (Not <tt>\em{foo}</tt>, but <tt>{\em foo}</tt>.)
* '''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 "utf8" if your editor can process Unicode!* '''language''' is the language of your text. Besides <tt>\mainlanguage</tt> there's also <tt>\language</tt> to switch temporarily.* '''quotation'''[[Category: use logical markup instead of specified signs! You get single quotes with <tt>\quote</tt>. Use <tt>\startquotation ... \stopquotation</tt> for longer quotes.* '''em''': again, logical markup! say "<tt>em</tt>phasized" instead of bold or italics. Remember, it's a switch, not a command! (Not <tt>\em{bla}</tt>, but <tt>{\em bla}.)Old_Content]]

Navigation menu