Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Latex Help

  1. Nov 11, 2014 #1

    joshmccraney

    User Avatar
    Gold Member

    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
     
  2. jcsd
  3. Nov 12, 2014 #2

    DrClaude

    User Avatar

    Staff: Mentor

  4. Nov 13, 2014 #3

    joshmccraney

    User Avatar
    Gold Member

    What do you mean by trivial?

    Thanks for the response!
     
  5. Nov 14, 2014 #4

    DrClaude

    User Avatar

    Staff: Mentor

    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 verticle rule is hard.
     
  6. Nov 15, 2014 #5

    joshmccraney

    User Avatar
    Gold Member

    Does it matter that my document class is "resume"?
     
  7. Nov 15, 2014 #6

    DrClaude

    User Avatar

    Staff: Mentor

    I don't know. You'll have to try a package and see how well it interacts with that class.
     
    Last edited: Nov 15, 2014
  8. Nov 15, 2014 #7

    joshmccraney

    User Avatar
    Gold Member

    Thanks a ton! I found one that works!
     
  9. Nov 15, 2014 #8

    RonL

    User Avatar
    Gold Member

    If you care, or can, perhaps it might be something you can share, in case someone else is having the same question:)
     
  10. Nov 16, 2014 #9

    joshmccraney

    User Avatar
    Gold Member

    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!
     
  11. Nov 16, 2014 #10

    RonL

    User Avatar
    Gold Member

    It will, thanks:)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Latex Help
  1. LaTeX Help (Replies: 5)

  2. Latex Help (Replies: 3)

  3. Help on LaTeX (Replies: 1)

  4. LaTeX picture help (Replies: 1)

  5. LaTeX help (Replies: 2)

Loading...