Difference between revisions of "Command/ labeltext"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>labeltext</i>")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<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>
+
<cd:shortdesc><!-- a short command summary goes here -->
<!-- a short command summary goes here -->
+
The instances of  <tt>\<i>label</i>text</tt> allow access to a language-dependant label.
The instances of  <tt>\<i>labeltext</i></tt> are used for ...
 
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 31: 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}}.
<!-- the long description of the command goes here -->
 
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
<!--  command example(s)
+
\setuplabeltext[en][section=Lesson ]
<cd:example title="">
+
\setuplabeltext[nl][section=Les ]
</cd:example>
+
\setuphead[section][number=yes]
-->
+
 
</cd:examples>
+
\section{First lesson}
<cd:notes>
+
 
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
+
\labeltext{section} 1
<cd:note author="..." date="...">
+
 
</cd:note>
+
\mainlanguage[nl]
-->
+
 
</cd:notes>
+
\section{Eerste les}
 +
 
 +
\labeltext{section} 2
 +
</context>
 +
</cd:example></cd:examples>
 +
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<cd:commandref name="_copylabeltext" originator="system"></cd:commandref>
 
<cd:commandref name="_copylabeltext" originator="system"></cd:commandref>
 
<cd:commandref name="_currentlabel" originator="system"></cd:commandref>
 
<cd:commandref name="_currentlabel" originator="system"></cd:commandref>
Line 65: Line 59:
 
<cd:commandref name="_startlabeltext" originator="system"></cd:commandref>
 
<cd:commandref name="_startlabeltext" originator="system"></cd:commandref>
 
<cd:commandref name="definelabelclass" originator="system"></cd:commandref>
 
<cd:commandref name="definelabelclass" originator="system"></cd:commandref>
<cd:source file="lang-lab.mkiv" originator="system"></cd:source>  
+
<cd:source file="lang-lab.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Language"></cd:wikipage>  
+
<cd:wikipage originator="system" page="Category:Language"></cd:wikipage></cd:seealso>
</cd:seealso>
 
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 20:03, 30 August 2020


\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

\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: