我有以下设置:
\documentclass[graybox]{svmult}
\usepackage{type1cm} % activate if the above 3 fonts are
\usepackage{makeidx} % allows index generation
\usepackage{graphicx} % standard LaTeX graphics tool
\usepackage{multicol} % used for the two-column index
\usepackage[bottom]{footmisc}% places footnotes at page bottom
\usepackage{newtxtext}
\usepackage{newtxmath} % selects Times Roman as basic font
\usepackage{color, colortbl}
\definecolor{Gray}{gray}{0.9}
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title*{My article}
\author{Me}
\maketitle
\abstract{My abstract}
%%% Table %%%
\begin{table}[!t]
\caption{Listing something.}
\label{tab:linmodres}
% Table body
\begin{tabular}{p{0,05\textwidth}p{0,27\textwidth}>{\centering\columncolor{Gray}}p{0,17\textwidth}>{\centering}p{0,17\textwidth}>{\centering}p{0,17\textwidth}p{0,17\textwidth}}
\hline\noalign{\smallskip}
Sy. & Predictor & Estimate & Std. error & $t$-value & $p$-value \\
\noalign{\smallskip}\svhline\noalign{\smallskip}
$X_0$ & Intercept & 1 & 1 & 1 & 1\\
$X_1$ & Activity & 1 & 1 & 1 & 1\\
\noalign{\smallskip}\hline\noalign{\smallskip}
\end{tabular}
\end{table}
%%% End Table %%%
\end{document}
我无法让最后一列居中对齐。如果我像这样更改标题tabular
:
\begin{tabular}{p{0,05\textwidth}p{0,27\textwidth}>{\centering\columncolor{Gray}}p{0,17\textwidth}>{\centering}p{0,17\textwidth}>{\centering}p{0,17\textwidth}>{\centering}p{0,17\textwidth}}
我明白了:
! Misplaced \noalign.
<recently read> \noalign
l.46 \noalign
{\smallskip}\svhline\noalign{\smallskip}
我究竟做错了什么?