Difference between revisions of "Command/setuplabeltext"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
m (Text replace - "Reference/en/" to "Command/")
Line 14: Line 14:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:name|name]]</td>
+
     <td class="cmd">[[Command/keyword:name|name]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:text|text]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 02:37, 14 March 2012

\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