3

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

2 Answers 2

7
\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.

1
  • Tnx, instant succes. Commented Jul 22, 2011 at 12:51
3
\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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .