Difference between revisions of "Command/ labeltext"

From Wiki
Jump to navigation Jump to search
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> are used for ...
+
The instances of  <tt>\<i>label</i>text</tt> are contain a language-dependant string.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 28: Line 28:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<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>

Revision as of 17:15, 30 August 2020


\labeltext

Summary

The instances of \labeltext are contain a language-dependant string.

Instances

\headtext
\labeltext
\mathlabeltext
\taglabeltext
\unittext
\operatortext
\prefixtext
\suffixtext
\btxlabeltext

Settings instance

\LABELtext{...}
{...}key

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: