表格:缺失数字,视为零

表格:缺失数字,视为零

当我将以下样式文件中的 更改为 以进行简历\pagestyle{empty}时,下面的一段代码可以运行并编译。\pagestyle{plain}

https://www.math.nyu.edu/student_resources/res.cls

\documentclass[overlapped, 12pt]{res}
\usepackage{enumitem}
\setlist{itemsep=0pt,leftmargin=*}

\reversemarginpar
\setlength{\textwidth}{6.in}
\newlength{\rcollength}\setlength{\rcollength}{2.in}%
\usepackage[hmargin=1.0in, bottom=0.5in, top=0.5in]{geometry}
\errorcontextlines 10000
\begin{document}

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

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

\end{resume}
\end{document}

然而,当我尝试调整第一列的宽度时

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

我收到一个编译错误:

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

如果我将页面样式保留为空,则不会出现错误。任何帮助都非常感谢,因为我确实希望保留每页上显示的页码。

答案1

应该:

 p{\dimexpr\textwidth-\rcollength}

相关内容