The following piece of code works and compiled, when I change the \pagestyle{empty} to \pagestyle{plain} in the following style file for resume.


\documentclass[overlapped, 12pt]{res}

\usepackage[hmargin=1.0in, bottom=0.5in, top=0.5in]{geometry}
\errorcontextlines 10000

\moveleft\hoffset\vbox{\hrule width\resumewidth height 1pt}\smallskip 

\begin{tabular}[t] {@{} p{\textwidth}p{\rcollength} lcr}
PhD in Physics, Syracuse University, Syracuse, NY, USA & 2006-2009\\
{\sl Title} & \\\\


However, as soon as I try to adjust the width of first column

\begin{tabular}[t] {@{} p{\textwidth-\rcollength}p{\rcollength} lcr}

I get a compilation error:

./cv_sadia.tex:53: Missing number, treated as zero.
<to be read again> 
\@startpbox ...vtop \bgroup \setlength \hsize {#1}
<template> ...startpbox {\textwidth -\rcollength }
<to be read again> 
l.53 P
      hD in Physics, Syracuse University, Syracuse, NY, USA & 2006-2009\\

If I keep the pagestyle empty, then there is no error. Any help is appreciated, as I do want to keep page number displayed on each page.


Should be:

| improve this answer | |
  • Thank you very much, it works. I appreciate if you can explain it as well. – Sadia Khalil Dec 31 '15 at 17:20
  • only with package calc you can have expressions of lengths. But res.cls doesn't load package calc. However, using macro \dimexpr is the better choice. – user2478 Dec 31 '15 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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