尝试获取此表时收到一条错误消息:
\documentclass[10pt]{article}
\textwidth= 5.00in
\textheight= 7.4in
\topmargin = 30pt
\evensidemargin=0pt
\oddsidemargin=55pt
\headsep=17pt
\parskip=.5pt
\parindent=12pt
\font\smallit=cmti10
\font\smalltt=cmtt10
\font\smallrm=cmr9
\usepackage{tabularx}
\usepackage{amssymb,latexsym,amsmath,epsfig,amsthm,enumerate}
\makeatletter
\renewcommand\section{\@startsection {section}{1}{\z@}
{-30pt \@plus -1ex \@minus -.2ex}
{2.3ex \@plus.2ex}
{\normalfont\normalsize\bfseries\boldmath}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}
{-3.25ex\@plus -1ex \@minus -.2ex}
{1.5ex \@plus .2ex}
{\normalfont\normalsize\bfseries\boldmath}}
\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname. }
\makeatother
\begin{document}
Examples for all values of the parameters are given below.
\begin{tabular*}{}{@{\extracolsep{\fill}}lll}
$x_0 = x_1 = x_2 = x_3 = x_4 \leq \dots \leq x_n$ & $A(x) = 4$ & $B=1$\\
$x_0 = x_1 = x_2 = x_3 = x_5 \leq \dots \leq x_n$ & $A(x) = 4$ & $B=2$\\
$x_0 = x_1 = x_2 = x_3 = x_6 \leq \dots \leq x_n$ & $A(x) = 4$ & $B=3$\\
$x_0 = x_1 = x_2 = x_3 = x_7 \leq \dots \leq x_n$ & $A(x) = 4$ & $B=4, \text{ etc.}$
\end{tabular*}
\end{document}
什么可以解决?
答案1
错误消息突出显示错误的位置
! Missing number, treated as zero.
<to be read again>
\relax
l.37 \begin{tabular*}{}
{@{\extracolsep{\fill}}lll}
?
参数必须是宽度,例如\textwidth
不为空。
无关,但不要用于epsfig
1993 年以来编写的任何文档中,也不要用于\font
乳胶中。