Difference between revisions of "Command/CAP"

From Wiki
Jump to navigation Jump to search
(Move to category Fonts)
(better example)
Line 7: Line 7:
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
     <td colspan="2" class="cmd">\cap<span class="first" >{...}</span></td>
+
     <td colspan="2" class="cmd">\CAP<span class="first" >{...}</span></td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
Line 18: Line 18:
 
== Description ==  
 
== Description ==  
  
Doesn't do anything at present (March 2012); use {{cmd|cap}} instead.
+
Changes letters preceded by <code>\\<code> to small capitals. May go away in the future.
  
 
== Example ==
 
== Example ==
 
<context source=yes>
 
<context source=yes>
\type{\CAP} does not \CAP{work}. But \type{\cap} \cap{works}.
+
\CAP{A \\user \\sometimes \\needs a cap\\ital}
 
</context>
 
</context>
  

Revision as of 17:42, 28 March 2012

\CAP

Syntax

\CAP{...}
{...} text


Description

Changes letters preceded by \\ to small capitals. May go away in the future.

Example

\CAP{A \\user \\sometimes \\needs a cap\\ital}

See also

  • \cap -- turn text into small caps
  • \Cap -- turn first character into small caps
  • \Caps -- turn first character of each word into small caps
  • \CAP -- doesn't work
  • \Word -- turn first character into uppercase
  • \Words -- turn first character of each word into uppercase
  • \WORD -- turn first word into uppercase
  • \WORDS -- turn text into uppercase

Help from ConTeXt-Mailinglist/Forum

All issues with: