I was working on my resume and for some reason there is an error message that says "You can't use \moveleft in horizontal mode." I've been working on this for the past 45 minutes and I haven't really touched any of the formatting. I don't understand why I am getting this message.
Here is my code:
\documentclass[centered,11pt,]{res}
\begin{document}
% Establish mywidth as width of entire resume (since res.cls co-opts textwidth!):
\newlength\mywidth
\setlength\mywidth\textwidth
\addtolength\mywidth{\sectionwidth}
% Center the name over the entire width of resume:
\moveleft0.5\hoffset\centerline{\Large \bf TIM H. JOO}
% Contact info centered over entire width of resume:
\raggedright \hspace*{-\sectionwidth}123 Sesame Street \hfill (123) 456-7890\\
\raggedright \hspace*{-\sectionwidth}St. Paul, MN 12345 \hfill younrame@isp.com
% Draw a horizontal line the whole width of resume:
\vspace{-3 mm}
\moveleft\hoffset\vbox{\hrule width \mywidth}
\vspace{-8 mm}
\begin{resume}
blah blah blah
Using \leavehmode does not seem to work.
\vspace. You exit horizontal mode by issuing\par(a blank line does it). – egreg Sep 16 '14 at 13:19\vspaceisn't (unfortunately)\vskip. The\vspaceis implemented via\vadjustprimitive and this is a source of many many user confusions:). I don't understand why this implemetation was used. IMHO it is one of many examples of bad design of LaTeX. – wipet Sep 16 '14 at 15:50