Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How can I add a small (1cm) colored bar from top to bottom on the left side of my document title page?

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted
\documentclass[a4paper]{article}
\usepackage{atbegshi,color,picture}

\AtBeginShipoutNext{\AtBeginShipoutUpperLeft{%
  \put(0,-\paperheight){{\color{red}\rule{1cm}{\paperheight}}}}}

\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}

Consult the documentation of atbegshi for other examples.

share|improve this answer
    
Tnx, instant succes. –  Ward Bekker Jul 22 '11 at 12:51
add comment
\documentclass{article}
\usepackage{xcolor,picture,calc}
\title{foobar}
\author{foo}

\begin{document}
\begin{titlepage}
\picture(0,0)\put(-2\oddsidemargin,-\textheight-3.8cm){\color{red!40}\rule{1cm}{\paperheight}}\endpicture
\begin{center}
\huge Me, I and myself

\vspace{3cm}
\normalsize by\\[1cm]
\Large Erasmus von Rotterdam
\vfill
\rule{\linewidth}{5mm}
\end{center}
\end{titlepage}

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.