Color Pseudo-Character-Styles
<<<< ^^^^^ >>>>

Character styles map by function an appearance to a piece of text

The Code

\ifthenelse{\equal{#1}{blue}}{{\textsl{\textsf{#2}}}}{}% Baseball name
\ifthenelse{\equal{#1}{magenta}}{{\large{\texttt{#2}}}}{}% Computer guru name
\ifthenelse{\equal{#1}{magenta}\or\equal{#1}{blue}}{}{#2}% fallthrough

Example Text

Barry Bonds and Sammy Sosa are carrying on the slugging tradition of Babe Ruth, Roger Maris and Mark McGwire. But who is carrying on the tradition of Linus Torvalds, Richard Stallman and Larry Wall? Keep coding, and one day you might carry the eternal flame of free software.

The Result

<<<< ^^^^^ >>>>
Copyright (C) 2002 by Steve Litt, you can freely distribute unmodified copies if this copyright notice and disclaimer are intact.  This material originally appeared on Troubleshooters.Com.

This presentation has no warranty, express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the presentation is with you.


Exit Slideshow