Create a vertical line in Latex

  • Context: LaTeX 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Latex Line Vertical
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
9 replies · 6K views
member 428835
Hi PF!

I am very new with Latex and was building a resume using a downloaded template. What I would like to do is create a vertical line down the page. Can anyone help?

The line of code that seems to create a horizontal line is:
\noindent\makebox[\linewidth]{\color{headings}\rule{\paperwidth}{0.4pt}} % Horizontal rule
Can anyone help me understand how to make a vertical one (and where I can place it)?

This is in a .cls file

Thanks!

Josh
 
Physics news on Phys.org
What do you mean by trivial?

Thanks for the response!
 
joshmccraney said:
What do you mean by trivial?
What I mean by "not trivial" is that having a vertical rule like that does not fit naturally in the way Latex does page processing. You thus have to use special packages that can take some time to master. In other words, a horizontal rule is easy, a vertical rule is hard.
 
Does it matter that my document class is "resume"?
 
joshmccraney said:
Does it matter that my document class is "resume"?
I don't know. You'll have to try a package and see how well it interacts with that class.
 
Last edited:
joshmccraney said:
Thanks a ton! I found one that works!

If you care, or can, perhaps it might be something you can share, in case someone else is having the same question:)
 
yea no problem! here it is:

\SetBgScale{1}% Thickness of rule
\SetBgAngle{0}% Sets rule angle
\SetBgColor{black}% Color
\SetBgContents{\rule{.4pt}{20cm}}% How long rule is going to be
\SetBgHshift{-3.3cm}% How far into page rule is placed

\begin{document}

hope this helps!
 
joshmccraney said:
yea no problem! here it is:

\SetBgScale{1}% Thickness of rule
\SetBgAngle{0}% Sets rule angle
\SetBgColor{black}% Color
\SetBgContents{\rule{.4pt}{20cm}}% How long rule is going to be
\SetBgHshift{-3.3cm}% How far into page rule is placed

\begin{document}

hope this helps!
It will, thanks:)