Difference between revisions of "Command/processwords"

From Wiki
Jump to navigation Jump to search
m
m
Line 13: Line 13:
  
 
For computer programmers, this is similar to string parsing, or splitting tokens from a sentence delimited by a space character.
 
For computer programmers, this is similar to string parsing, or splitting tokens from a sentence delimited by a space character.
 +
 +
== See Also ==
 +
 +
{{cmd|processisolatedwords}}

Revision as of 01:02, 10 October 2013

The \processwords macro provides a mechanism to treat individual words (from a string of words) as its argument. The macro is called as follows:

\processwords{As you while {\METAFONT} is unclear if they have baby is born, may it may know, \TEX's ambassador is a lion, represented by a lioness. It is still a relationship, but if so, and if a enjoy \METAFUN.}

To perform a task, you should also define a macro \processword, which takes one argument. For example:

\def\processword#1{\noindent\framed{#1}\space}

For computer programmers, this is similar to string parsing, or splitting tokens from a sentence delimited by a space character.

See Also

\processisolatedwords