Difference between revisions of "Second Step"

From Wiki
Jump to navigation Jump to search
(changed tt into cmd and some small stuff)
m (changed pre to texcode)
Line 3: Line 3:
 
Here's a slightly more complex example:
 
Here's a slightly more complex example:
  
<pre>
+
<texcode>
 
% the first line can hold texexec's command line options
 
% the first line can hold texexec's command line options
 
\enableregime [il1] % choose input encoding: il1 is "ISO Latin 1" (ISO 8859-1), same as "win"
 
\enableregime [il1] % choose input encoding: il1 is "ISO Latin 1" (ISO 8859-1), same as "win"
Line 15: Line 15:
  
 
\stoptext
 
\stoptext
</pre>
+
</texcode>
  
 
* '''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 or "mac" (Mac Roman) on a Mac.
 
* '''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 or "mac" (Mac Roman) on a Mac.

Revision as of 10:15, 2 September 2004

< Main Page, First Document

Here's a slightly more complex example:

% the first line can hold texexec's command line options
\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.
\starttext
Rotkäppchen:
\quotation{Aber Großmutter, warum hast du so große Augen?}

Der böse Wolf:
\quotation{Damit ich dich besser {\em sehen} kann!}

\stoptext
  • 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 or "mac" (Mac Roman) on a Mac.
  • language is the language of your text. Besides \mainlanguage there's also \language to switch temporarily.
  • quotation: use logical markup instead of specified signs! You get single quotes with \quote. You can use \startquotation ... \stopquotation for longer quotes.
  • em: again, logical markup! say "\emphasized" instead of bold or italics. Remember, it's a switch, not a command! (Not \em{bla}, but {\em bla}.)