Difference between revisions of "Command/processwords"
< Command
Jump to navigation
Jump to search
m |
m |
||
Line 6: | Line 6: | ||
</code> | </code> | ||
− | To perform a task, you should also define a macro <tt>\processword</tt>, which takes one argument. | + | To perform a task, you should also define a macro <tt>\processword</tt>, which takes one argument. |
+ | |||
+ | For computer programmers, this is similar to string parsing, or splitting tokens from a sentence delimited by a space character. |
Revision as of 00:55, 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 computer programmers, this is similar to string parsing, or splitting tokens from a sentence delimited by a space character.