[texhax] Reversing letter color
William Adams
will.adams at frycomm.com
Tue May 8 16:19:39 CEST 2012
On May 8, 2012, at 8:05 AM, neville holmes wrote:
> I want to reverse occasional letters or words, reversion
> in the sense of the letter or word being white on a black
> (or dark gray) background.
>
> If you could provide me with a macro to do this, that
> would be wonderful.
Something like this?
\documentclass{minimal}
\usepackage{xcolor}
\newcommand{\reversedtext}[1]{\colorbox[gray]{0}{\textcolor[gray]{1}{#1}}}
\begin{document}
\reversedtext{reversed text}
\end{document}
0== black, 1 == white, values in-betwixt for grey tints.
William
--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.
More information about the texhax
mailing list