Difference between revisions of "Command/ labeltext"
< Command
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<cd:commandgroup generated="yes" name="labeltext" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | <cd:commandgroup generated="yes" name="labeltext" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807"> | ||
<cd:shortdesc><!-- a short command summary goes here --> | <cd:shortdesc><!-- a short command summary goes here --> | ||
− | The instances of <tt>\<i>label</i>text</tt> | + | The instances of <tt>\<i>label</i>text</tt> allow access to a language-dependant label. |
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:sequence> | <cd:sequence> | ||
Line 28: | Line 28: | ||
</cd:command> | </cd:command> | ||
</cd:variants> | </cd:variants> | ||
− | <cd:description> | + | <cd:description>Retrieve a label text setup earlier with {{cmd|setuplabeltext}}. Label text group instances are defined by {{cmd|definelabelclass}}. |
</cd:description> | </cd:description> | ||
− | <cd:examples></cd:examples> | + | <cd:examples><cd:example title=""><context source="yes"> |
+ | \setuplabeltext[en][section=Lesson ] | ||
+ | \setuplabeltext[nl][section=Les ] | ||
+ | \setuphead[section][number=yes] | ||
+ | |||
+ | \section{First lesson} | ||
+ | |||
+ | \labeltext{section} 1 | ||
+ | |||
+ | \mainlanguage[nl] | ||
+ | |||
+ | \section{Eerste les} | ||
+ | |||
+ | \labeltext{section} 2 | ||
+ | </context> | ||
+ | </cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> |
Latest revision as of 20:03, 30 August 2020
Contents
\labeltext
Summary
The instances of \labeltext allow access to a language-dependant label.
Instances
\headtext | |
\labeltext | |
\mathlabeltext | |
\taglabeltext | |
\unittext | |
\operatortext | |
\prefixtext | |
\suffixtext | |
\btxlabeltext |
Settings instance
Description
Retrieve a label text setup earlier with \setuplabeltext. Label text group instances are defined by \definelabelclass.
Examples
Example 1
\setuplabeltext[en][section=Lesson ] \setuplabeltext[nl][section=Les ] \setuphead[section][number=yes] \section{First lesson} \labeltext{section} 1 \mainlanguage[nl] \section{Eerste les} \labeltext{section} 2
Notes
See also
Help from ConTeXt-Mailinglist/Forum
All issues with:
- \headtext on the mailing list (all results)
- \headtext on the mailing list (subject only)
- \headtext on stack exchange
- \headtext in ConTeXt's source
- \labeltext on the mailing list (all results)
- \labeltext on the mailing list (subject only)
- \labeltext on stack exchange
- \labeltext in ConTeXt's source
- \mathlabeltext on the mailing list (all results)
- \mathlabeltext on the mailing list (subject only)
- \mathlabeltext on stack exchange
- \mathlabeltext in ConTeXt's source
- \taglabeltext on the mailing list (all results)
- \taglabeltext on the mailing list (subject only)
- \taglabeltext on stack exchange
- \taglabeltext in ConTeXt's source
- \unittext on the mailing list (all results)
- \unittext on the mailing list (subject only)
- \unittext on stack exchange
- \unittext in ConTeXt's source
- \operatortext on the mailing list (all results)
- \operatortext on the mailing list (subject only)
- \operatortext on stack exchange
- \operatortext in ConTeXt's source
- \prefixtext on the mailing list (all results)
- \prefixtext on the mailing list (subject only)
- \prefixtext on stack exchange
- \prefixtext in ConTeXt's source