Difference between revisions of "Command/Word"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \Word")
 
m (add \camel)
 
(2 intermediate revisions by one other user not shown)
Line 23: Line 23:
 
<cd:source file="typo-cap.mkiv" originator="system"></cd:source>
 
<cd:source file="typo-cap.mkiv" originator="system"></cd:source>
 
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage>
 
<cd:wikipage originator="system" page="Category:Fonts"></cd:wikipage>
<cd:commandref name="setcharactercasing"></cd:commandref>
+
<cd:commandref name="setcharactercasing">Pass casing command (Word, WORD, etc) as a keyword</cd:commandref>
<cd:commandref name="WORDS"></cd:commandref>
+
<cd:commandref name="WORDS">convert text into uppercase</cd:commandref>
<cd:commandref name="Words"></cd:commandref></cd:seealso>
+
<cd:commandref name="Words">turn first character of each word into uppercase</cd:commandref>
 +
<cd:commandref name="Caps">turn first character of each word into small caps</cd:commandref>
 +
<cd:commandref name="Cap">turn first character into small caps</cd:commandref>
 +
<cd:commandref name="cap">turn text into small caps</cd:commandref>
 +
<cd:commandref name="sc">start using small caps (preserve capitals)</cd:commandref>
 +
<cd:commandref name="camel">turn first character of each word into uppercase</cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 17:27, 6 March 2024


\Word

Summary

The command \Word capitalizes the first character of the text.

Settings

\Word{...}
{...}text

Description

Capitalizes the first character of the text.

Examples

Example 1

\Word{on the origin of species}\crlf
\Word{'on the origin of species}

yields

Notes

See also

  • typo-cap.mkiv
  • \setcharactercasing Pass casing command (Word, WORD, etc) as a keyword
  • \WORDS convert text into uppercase
  • \Words turn first character of each word into uppercase
  • \Caps turn first character of each word into small caps
  • \Cap turn first character into small caps
  • \cap turn text into small caps
  • \sc start using small caps (preserve capitals)
  • \camel turn first character of each word into uppercase

Help from ConTeXt-Mailinglist/Forum

All issues with: