# Fill the left 1/3 of the title page with color?

This is my first time to try and write documentation by using LaTeX. The generated PDF is quite impressive, but there is one thing I have no idea of how to do it:

I would like to have the left 1/3 of my title page (created by titlepage) filled with color (no left and top, bottom margin), and then put the title text on it. The title will be centered, so its left part could overlap with the colored left 1/3 of the page.

Is it doable? What is the best way? Can the picture environment do this?

(The documentclass is [a4paper]{report}.)

-
–  Martin Scharrer May 27 '11 at 15:39

A simple solution, without complex drawing packages:

\documentclass{report}
\usepackage{xcolor}
\usepackage{eso-pic}

\begin{document}

\begin{titlepage}
\color{blue!20}\rule{.33\paperwidth}{\paperheight}}}
Title
\end{titlepage}

bar
\newpage

blah

\end{document}

-
@Jake: thanks for your suggestion. I updated my solution. –  Leo Liu Feb 8 '11 at 16:47
Thank you.I used your way because it does not need extra package ;) –  murphytalk Feb 9 '11 at 13:50
Note, however, that this requires a fairly recent (mid-2010?) version of the eso-pic package. Earlier versions did not have \AddToShipoutPictureBG*. –  Harald Hanche-Olsen Feb 24 '11 at 15:00

You can use TikZ for this (although I'm almost certain that if all you need is a coloured rectangle, someone else will come up with a solution that does not require a full-fledged graphics package).

The TikZ command needs to be supplied to the \title{} entry to make sure it gets drawn with the title page.

\documentclass[a4paper]{report}
\usepackage{tikz}

\title{\tikz[remember picture,overlay] \draw [fill,red!20] (current page.north west) rectangle +(0.33\paperwidth,-\paperheight);%
Rather Long Document Title to Show that the Colour is Behind the Title}
\author{John Doe}

\begin{document}
\maketitle

\end{document}


-
Thank you for your prompt answer! Too bad that the tetex @ cygwin I am using doesn't come with this package,but it is still a elegant way to address my problem.Thank you! –  murphytalk Feb 9 '11 at 13:49
@murphytalk if at all possible you should switch from tetex to a newer distribution like TeXlive –  Seamus Feb 24 '11 at 14:58