Difference between revisions of "Command/Cap"

From Wiki
Jump to navigation Jump to search
(Improve example)
(More elaborate example)
Line 21: Line 21:
  
 
== Example ==
 
== Example ==
<context source='yes' text='yields'>
+
Uppercase to small caps
\enableregime[utf]
+
<context source='yes'>
\Cap{Mayday, \Cap{mayday}, Mayday, mayday.}
+
\Cap{Mayday, Mayday}, Mayday
 
</context>
 
</context>
 +
 +
----
 +
 +
Lowercase to small caps
 +
<context source='yes'>
 +
\Cap{mayday, mayday}, mayday
 +
</context>
 +
 +
----
 +
 +
Punctuation to small caps
 +
<context source='yes'>
 +
\Cap{'ayday, mayday}, 'ayday
 +
</context>
 +
  
 
== See also ==
 
== See also ==

Revision as of 17:04, 28 March 2012

\Cap

Syntax

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


Description

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


Example

Uppercase to small caps

\Cap{Mayday, Mayday}, Mayday


Lowercase to small caps

\Cap{mayday, mayday}, mayday


Punctuation to small caps

\Cap{'ayday, mayday}, 'ayday


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: