1

I am designing my resume on latex and I need to put a colored vertical rule in my resume like this light green rule in this CV

enter image description here

  • 1
    It would be helpful to show us what you have tried. Posting a minimal working example that indicates what you are trying to do makes it easier for people to understand what you want. It also makes it easier for people to help you, since they have some code to start from, and much more likely that some one will try to help you. – user30471 Nov 1 '16 at 4:02
4

Assuming that you already have the layout sorted, placement of a vertical rule along the left side of the page can be done by eso-pic:

enter image description here

\documentclass{article}% Your resume class

\usepackage{eso-pic,xcolor,lipsum}

\newlength{\siderulewidth}\setlength{\siderulewidth}{25pt}
\definecolor{siderulecolor}{RGB}{139,196,128}
\AddToShipoutPictureBG{
  \AtPageLowerLeft{%
    \color{siderulecolor}\rule{\siderulewidth}{\paperheight}%
  }
}
\begin{document}

\lipsum[1-50]% Your resume

\end{document}

If you wish to add some content to the vertical bar:

enter image description here

\documentclass{article}% Your resume class

\usepackage{eso-pic,xcolor,graphicx,lipsum}

\newlength{\siderulewidth}\setlength{\siderulewidth}{25pt}
\definecolor{siderulecolor}{RGB}{139,196,128}
\AddToShipoutPictureBG{%
  \AtPageLowerLeft{%
    \rotatebox{90}{\colorbox{siderulecolor}{\makebox[\dimexpr\paperheight-2\fboxsep]{%
      \Large
      \rule[-.4\baselineskip]{0pt}{1.4\baselineskip}% strut
      \textcolor{white}{Curriculum vitea}%
    }}}
  }
}
\begin{document}

\lipsum[1-50]% Your resume

\end{document}
| improve this answer | |
  • Perfect! Could we write a center vertical text like "Curriculum vitae" – BetterEnglish Nov 1 '16 at 18:30
  • @BetterEnglish: See the updated answer. – Werner Nov 1 '16 at 20:22
  • it does not work! it is an horizontal bar – BetterEnglish Nov 1 '16 at 20:24
  • @BetterEnglish: Then why does it work in my minimal example? – Werner Nov 1 '16 at 20:26
  • @Werner How to shift this green side rule forward by about 1cm so that it just touches the left side of the paragraph--so blank space 1cm+green vertical rule – js bibra Dec 20 '19 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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