Difference between revisions of "Command/mainlanguage"

From Wiki
Jump to navigation Jump to search
(Wrote a description and a small example for the command \mainlanguage.)
(Substituted "texcode" tag with the tag "context" to produce a preview of the example.)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 +
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
Line 16: Line 17:
  
 
== Description ==
 
== Description ==
 +
 
Set the language of auto-generated language elements, like the title of the table of contents or the appendix.
 
Set the language of auto-generated language elements, like the title of the table of contents or the appendix.
  
 
== Example ==
 
== Example ==
 
<!-- Please fill in an example if you can -->
 
<!-- Please fill in an example if you can -->
To get the auto-genereated language elements in German the paramater has to be '''de'''.
 
  
The title 'Inhalt' ist typeset above the table of contents ([[cmd:completecontent|\completecontent]]).
+
To get the auto-genereated language elements in German the paramater has to be <code>de</code>.
 +
 
 +
The title "Inhalt" ist typeset above the table of contents ([[cmd:completecontent|\completecontent]]).
  
<texcode>
+
<context source="yes" text="produces">
 
\mainlanguage[de]
 
\mainlanguage[de]
  
Line 33: Line 36:
  
 
\stoptext
 
\stoptext
</texcode>
+
</context>
  
 
== See also ==
 
== See also ==
 
<!-- something like [[cmd:goto|\goto]] -->
 
<!-- something like [[cmd:goto|\goto]] -->
 +
 +
[[cmd:language|\language]]
  
 
[[Category:Reference/en|mainlanguage]]
 
[[Category:Reference/en|mainlanguage]]

Revision as of 21:16, 7 September 2010

\mainlanguage

Syntax

\mainlanguage[...]
[...] nl fr en uk de es cz ..

Description

Set the language of auto-generated language elements, like the title of the table of contents or the appendix.

Example

To get the auto-genereated language elements in German the paramater has to be de.

The title "Inhalt" ist typeset above the table of contents (\completecontent).

\mainlanguage[de]

\starttext

\completecontent
\chapter{Chapter 1}

\stoptext

produces

See also

\language