Difference between revisions of "Command/Cap"

From Wiki
Jump to navigation Jump to search
m (Add description)
(Improve example)
Line 1: Line 1:
 
{{Reference
 
{{Reference
|name=cap
+
|name=Cap
 
|attributes=
 
|attributes=
 
}}
 
}}
Line 17: Line 17:
  
 
== Description ==  
 
== Description ==  
Turns the entire text into small capitals, regardless of case.
+
Turns the first character of the text into a small capital, regardless of case.
  
  
Line 23: Line 23:
 
<context source='yes' text='yields'>
 
<context source='yes' text='yields'>
 
\enableregime[utf]
 
\enableregime[utf]
\cap{Mayday is pronounced much like the French “M’aides”}
+
\Cap{Mayday, \Cap{mayday}, Mayday, mayday.}
 
 
Mayday is pronounced much like the French “M’aides”
 
 
</context>
 
</context>
  

Revision as of 16:58, 28 March 2012

\Cap

Syntax

\cap{...}
{...} text


Description

Turns the first character of the text into a small capital, regardless of case.


Example

\enableregime[utf]
\Cap{Mayday, \Cap{mayday}, Mayday, mayday.}

yields

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: