Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm new to LaTeX and am trying to make a simple resume. I'd like my left-justified name to appear above an \hrulefill line followed by my right-justified address on the next line.

However, when I do this there is a large return space that I can't seem to remove above my address. I can get the name to be directly on top of the line with \nointerline skip after my name but get errors when trying to use this after the line.

btw: Because I'm just using text and not any designated section or title, titlesec doesn't seem too necessary at this time.

This doesn't work as desired because of the return space after the horizontal line:

\begin{flushleft}
\Large{CptZpBrngn\\}
\nointerlineskip\hrulefill
\end{flushleft}
\begin{flushright}
\small{1234 Fake St.}
\end{flushright}

Putting another \nointerlineskip after \hrulefill causes an error (! You can't use \prevdepth in horizontal mode.) and after the flushleft section it doesn't do anything.

Edit: Thanks go to David for leading me to the answer.

This is the formatting that ended up looking best to me:

\begin{flushleft}
{\large CptZpBrngn\\}
\nointerlineskip\hrulefill\\
{\raggedleft \small 1234 Fake St.\par}
\end{flushleft}
share|improve this question
    
Welcome to TeX.sx! –  Peter Jansson Apr 24 '13 at 20:41
add comment

1 Answer 1

up vote 2 down vote accepted

enter image description here

\documentclass{article}

\begin{document}

\begin{flushleft}
\Large CptZpBrngn
\hrule
\end{flushleft}
\begin{flushright}
\small 1234 Fake St.
\end{flushright}

\end{document}

Note the rule touched the letters, you could add a blank line then \vspace{2pt} to add some space. Note that size change commands like \Large and \small do not take a {...} argument and should always include the end of the paragraph in their scope otherwise the line spacing will be incorrect.

Or version with no vertical space at all

enter image description here

\documentclass{article}

\begin{document}

{\raggedright
\Large CptZpBrngn
\hrule
\par
\raggedleft
\small 1234 Fake St.
\par}

\end{document}
share|improve this answer
    
Thanks for the suggestion, but please notice the spacing above the address. This is what I would like to remove (tops of letters as close to the bottom of the line as the bottom of the name is to the top of the line). –  CptZpBrngn Apr 24 '13 at 20:26
    
@CptZpBrngn That is from the flush environments, you can use {\raggedleft the address\par} to have no vertical space –  David Carlisle Apr 24 '13 at 20:28
    
@CptZpBrngn see 2nd version in updated answer –  David Carlisle Apr 24 '13 at 20:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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