[pstricks] Background color for page.

Herbert Voss Herbert.Voss at alumni.TU-Berlin.DE
Thu Oct 21 23:10:03 CEST 2004



John Culleton wrote:
> Given plain tex and not latex or context, I want to color an entire page in 
> a certain shade. Then I want to lay horizontal color bands over the page 
> from margin to margin. Then I want to overlay the bands with text.  Think 
> of a typical book cover layout for an example.  That is what I am 
> attempting in plain tex and Pstricks. 
> 
> Lets start with step one. I can create a rectangle that is the same size as 
> the page, with origin 0,0, and then color it with the background color.
> But is there a better way? 

\documentclass{article}
\usepackage{pstricks}
\begin{document}

\pstVerb{gsave 1 0 0 setrgbcolor clippath fill grestore}

foo bar
baz

\end{document}


or for plain TeX


\input pstricks.tex
\pstVerb{gsave 1 0 0 setrgbcolor clippath fill grestore}

foo bar
baz
\bye


Herbert


-- 
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes




More information about the PSTricks mailing list