Changes

Jump to navigation Jump to search
451 bytes removed ,  13:19, 9 August 2020
m
Text replacement - "</cmd>" to "}}"
< [[Main Page]] | [[First Document]] | [[Next Steps]] >
 
Here's a slightly more complex example:
<texcodecontext 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), same as "win"
\mainlanguage [de] % language mode: changes typesetting rules, quote signs etc.
\starttextRotkäppchen:setupbodyfontenvironment[default][em=italic] % ConTeXt's default \quotation{Aber Großmutterem is slanted, warum hast du so große Augen?}but italic is better
Der böse Wolf:
\quotation{Damit ich dich besser {\em sehen} kann!}
 
\stoptext
</texcode>
 
looks like:
 
<context>
\enableregime [il1] % 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
\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 "utf8" if your editor can process Unicode or "mac" (Mac Roman) on a Macdefault 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</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 [[Languages#Language_tags|language tags]]).* '''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 StepsCategory:Old_Content]] can be...

Navigation menu