« Getting a 64-bit copy of Windows XP | Main | kvm vs kqemu »

A fun LaTeX Command

A while back, I wanted to write "Google" in a presentation.  (Given that I do some research on the PageRank system they proposed, I guess this isn't too surprising.)

I believe in making presentations fun and wanted to use the Google colored version of the term.  After some googling, I found the RGB colors and painstakingly converted them to floating point values to use with the latex xcolor package.  To make my life easier, I encoded everything into the following command.

\newcommand{\Google}{{
  \color[rgb]{    0.2000 ,   0.3922  ,  0.7647}G%
  \color[rgb]{    0.9529  ,  0.0980  ,  0.0118}o%
  \color[rgb]{   0.9686  ,  0.8431  , 0.1529}o%
  \color[rgb]{    0.2000 ,   0.3922  ,  0.7647}g%
  \color[rgb]{    0.2667 ,   0.7686  ,  0.0235}l%
  \color[rgb]{   0.9529 ,   0.0980 ,   0.0118}e%
 }
}

Later, I learned that I could have used the RGB values with the color package directly.  Oh well, it would have saved a little bit of time.

TrackBack

TrackBack URL for this entry:
https://www.stanford.edu/~dgleich/cgi-bin/mt/mt-tb.cgi/11

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on December 8, 2007 5:47 PM.

The previous post in this blog was Getting a 64-bit copy of Windows XP.

The next post in this blog is kvm vs kqemu.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34