Changes

Jump to navigation Jump to search
126 bytes added ,  20:13, 28 March 2012
Merge examples; add code demonstrating \Word{\sc ...} trick.
</tr>
</table>
 
== Description ==
Turns the first character of the text into a small capital, regardless of case. In Mkii, this works as a solution for fonts lacking small capitals.
 
== Example ==
Uppercase to small caps
<context source='yes'>
\Cap{Mayday, Mayday}, Mayday
</context>
 
----
 
Lowercase to small caps
<context source='yes'>
\setupbodyfont[9pt]Uppercase or lowercase to small caps:\crlf\Cap{Mayday, Mayday}; \Cap{mayday, mayday}, mayday</context>.\crlf
----Punctuation counts as the first character:\crlf\Cap{'ayday, 'ayday}.\crlf
Punctuation to First letter uppercase and the rest small caps<context source='yes'>capitals:\crlf\CapWord{'ayday, mayday\sc andra moi ennepe}\crlf(May not work with the \CONTEXT\ on this wiki, 'ayday\crlfbut should work on your local install.)
</context>

Navigation menu