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.

1 Answer 1


Should be:

  • Thank you very much, it works. I appreciate if you can explain it as well. Dec 31, 2015 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, 2015 at 17:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .