Difference between revisions of "Command/setuplabeltext"

From ConTeXt wiki
(Create reference page)
 
(cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=setuplabeltext
 
|name=setuplabeltext
Line 29: Line 27:
  
 
Here is an example of changing chapter and section heads.
 
Here is an example of changing chapter and section heads.
<pre class="example">
+
<context source="yes" text="results in">
 
\setuplabeltext[en][chapter=Chapter ]
 
\setuplabeltext[en][chapter=Chapter ]
 
\setuplabeltext[en][section=Section ]
 
\setuplabeltext[en][section=Section ]
Line 43: Line 41:
 
\section{First Section}
 
\section{First Section}
 
\stoptext
 
\stoptext
</pre>
+
</context>
  
  

Revision as of 17:49, 14 April 2010

\setuplabeltext

Syntax

\setuplabeltext[...][...=...]
[...] nl fr en uk de es cz ..
name text


Description

Example

Here is an example of changing chapter and section heads.

\setuplabeltext[en][chapter=Chapter ]
\setuplabeltext[en][section=Section ]

\def\setheadnumber#1#2{#1. #2}

\setuphead
 [chapter,section]
 [command=\setheadnumber]

\starttext
\chapter{First Thoughts}
\section{First Section}
\stoptext

results in


See also