Create a vertical line in Latex

  • Context: LaTeX 
  • Thread starter Thread starter member 428835
  • Start date Start date
  • Tags Tags
    Latex Line Vertical
Click For Summary

Discussion Overview

The discussion revolves around creating a vertical line in LaTeX, specifically within the context of building a resume using a downloaded template. Participants explore various methods and challenges associated with implementing a vertical rule in LaTeX documents.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks assistance in creating a vertical line, noting their familiarity with horizontal lines in LaTeX.
  • Another participant suggests that creating a vertical line is not trivial and provides links to external resources for potential solutions.
  • A participant questions the use of the term "trivial" and seeks clarification on the challenges involved.
  • It is explained that vertical rules require special packages and may not integrate easily with LaTeX's page processing.
  • Participants discuss the relevance of the document class being "resume" and whether it affects the implementation of a vertical line.
  • One participant shares a successful method for creating a vertical line, including specific LaTeX commands and parameters.

Areas of Agreement / Disagreement

Participants express differing views on the complexity of creating a vertical line in LaTeX, with some acknowledging the challenges while others share successful solutions. There is no consensus on the impact of the document class on this task.

Contextual Notes

Participants mention the need for special packages to create vertical lines, indicating potential limitations in understanding or mastery of these tools. The discussion also reflects uncertainty about how different document classes may interact with the proposed solutions.

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:
Thanks a ton! I found one that works!
 
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!
 
  • #10
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:)
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 0 ·
Replies
0
Views
6K
  • · Replies 6 ·
Replies
6
Views
6K