Difference between revisions of "Command/mainlanguage"
< Command
Jump to navigation
Jump to search
(Create reference page) |
|||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
{{Reference | {{Reference | ||
|name=mainlanguage | |name=mainlanguage | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>mainlanguage</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
+ | |||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
Line 13: | Line 15: | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
<td class="cmd">[...]</td> | <td class="cmd">[...]</td> | ||
− | <td>nl fr en uk de es cz .. </td> | + | <td>nl fr en uk de es cz ro.. </td> |
</tr> | </tr> | ||
</table> | </table> | ||
+ | == 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, use the parameter <code>de</code> or <code>german</code>. The example below places the table of contents. | ||
− | == | + | <context source="yes" text="produces"> |
− | < | + | \setuppapersize[A5] |
+ | \mainlanguage[de] | ||
+ | |||
+ | \starttext | ||
+ | |||
+ | \completecontent | ||
+ | \chapter{The first chapter} | ||
+ | |||
+ | \stoptext | ||
+ | </context> | ||
== See also == | == See also == | ||
− | |||
− | [[Category: | + | * {{cmd|language}} to change the language rules used for hyphenation and quotation. |
+ | * {{cmd|setuplabeltext}} to alter some of a language's labels. (E.g. to change 'Section' to 'Lesson'.) | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
+ | |||
+ | [[Category:Command/Languages|mainlanguage]] |
Latest revision as of 20:37, 11 November 2019
\mainlanguage
Syntax (autogenerated)
\mainlanguage[...] | |
[...] | language |
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, use the parameter de
or german
. The example below places the table of contents.
\setuppapersize[A5] \mainlanguage[de] \starttext \completecontent \chapter{The first chapter} \stoptext
produces
See also
- \language to change the language rules used for hyphenation and quotation.
- \setuplabeltext to alter some of a language's labels. (E.g. to change 'Section' to 'Lesson'.)
Help from ConTeXt-Mailinglist/Forum
All issues with: