Difference between revisions of "Command/mainlanguage"

From Wiki
Jump to navigation Jump to search
(Add See Also)
m (Smaller example output)
Line 27: Line 27:
  
 
<context source="yes" text="produces">
 
<context source="yes" text="produces">
 +
\setuppapersize[A5]
 
\mainlanguage[de]
 
\mainlanguage[de]
  

Revision as of 12:49, 21 May 2012

\mainlanguage

Syntax

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

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-generated language elements in German the paramater has to be de.

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

\setuppapersize[A5]
\mainlanguage[de]

\starttext

\completecontent
\chapter{Chapter 1}

\stoptext

produces

See also

  • \language - Change the hyphenation language.
  • \setuplanguage to alter some properties of the main language
  • \setuplabeltext to alter some of a language's labels. (E.g. to change 'Section' to 'Lesson'.)

Help from ConTeXt-Mailinglist/Forum

All issues with: