This is how it should look like: I can do this with HTML and CSS in two simple steps:
- Create a box with a vertical gradient from alpha to white (for fade out).
- Place this box over the piece of text I want to fade.
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
some text above
\pgfdeclareverticalshading{myshadingE}{80bp}
{color(0bp)=(white); color(80bp)=(black)}
\begin{pgfpicture}
\pgfpathrectangle{\pgfpointorigin}{\pgfpoint{3cm}{7cm}}
\pgfshadepath{myshadingE}{-0}
\end{pgfpicture}
some text below
\end{document}
\pgfdeclareverticalshading
will not accept transparency. I also have no idea if I can place this box over a piece of text but make it so it covers the bottom 3cm of text.I know I can start using shades of gray over different parts of the text but that means I have to depend on the wrapping and it kind of loses it's point.
Can anyone provide a lead on this?
I'm using TeX Live 2012.