Difference between revisions of "Command/setupheadtext"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
(Create entire page)
Line 14: Line 14:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Command/keyword:name|name]]</td>
+
     <td class="cmd">''head name''</td>
     <td>[[Command/value:text|text]] </td>
+
     <td>''head text''</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 22: Line 22:
 
== Description ==  
 
== Description ==  
  
 +
Certain sections, like the table of contents or the list of figures, have a default title head. This title can be altered with {{cmd|setupheadtext|[name=text]}}. This is the set of headtexts in English:
 +
 +
{| class="wikitable"
 +
! name || text
 +
|-
 +
| content || Contents
 +
|-
 +
| tables || Tables
 +
|-
 +
| figures || Figures
 +
|-
 +
| graphics || Graphics
 +
|-
 +
| intermezzi || Intermezzos
 +
|-
 +
| index || Index
 +
|-
 +
| abbreviations || Abbreviations
 +
|-
 +
| logos || Logos
 +
|-
 +
| units || Units
 +
|-
 +
| pubs || References
 +
|}
  
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
<context source=yes>
 +
\setuppapersize[A5]
 +
\mainlanguage[de]
 +
% default headtext is 'Einhalt'
 +
\setupheadtext[de][content=Einhaltsverzeichnis]
 +
 
 +
\starttext
 +
 
 +
\completecontent
 +
\chapter{The first chapter}
 +
 
 +
\stoptext
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like {{cmd|goto}} -->
+
* {{cmd|setuplabeltext}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 09:42, 27 November 2012

\setupheadtext

Syntax

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


Description

Certain sections, like the table of contents or the list of figures, have a default title head. This title can be altered with \setupheadtext. This is the set of headtexts in English:

name text
content Contents
tables Tables
figures Figures
graphics Graphics
intermezzi Intermezzos
index Index
abbreviations Abbreviations
logos Logos
units Units
pubs References


Example

\setuppapersize[A5]
\mainlanguage[de]
% default headtext is 'Einhalt'
\setupheadtext[de][content=Einhaltsverzeichnis]

\starttext

\completecontent
\chapter{The first chapter}

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: