我试图将表格中的所有列居中,但只有第一列居中,有人可以帮帮我吗?
这是我正在使用的代码:
\begin{table}[H]
\centering
\caption{The four main criteria for conceptual model evaluation.}
\label{concept_criteria}
\begin{tabular}{|c|p{12cm}|}
\hline
\textbf{Criteria} & \textbf{Description}\\
\hline
Validity & A modelers perception that the conceptual model can be converted into an computer model accurate enough for the purpose at hand \\
\hline
Credability & The clients perception that the conceptual model can be converted into a computer model accurate enough for the purpose at hand \\
\hline
Utility & The conceptual model can be developed into a computer model that can be used as decision making in the specific context \\
\hline
Feasibility & The conceptual model can be converted into a computer model with the time, resources and data available \\
\hline
\end{tabular}
\end{table}
答案1
一般para模式p{00cm)
对齐方式默认没有center
对齐,需要自己定义,如下:
\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}%
\begin{tabular}{P{10cm}
否则应该遵循leandriis
评论...