表格第一列

表格第一列

我想创建一个表,如下所示:

在此处输入图片描述

但是,我希望第一列有更多空间。如何解决这个问题?

我的代码是:

    \begin{table}[htbp]
  \centering
  \caption{Add caption}
  \begin{tabularx}{\textwidth}{*{5}{>{\centering\arraybackslash}X}}
  \toprule
          & Clay  & Talco & GCC   & PCC \\
    \midrule
    Formula &       &       &       &  \\
    Estrutura do cristal & vdfvd & fdgfd & fdgfd & dfgdg \\
    Densidade ($kg/dm^3$) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Índice de Refracção & vdfvd & fdgfd & fdgfd & fdgfd \\
    Dureza (escala de Mohs) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Brancura (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Distribuição de Tamanhos (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\
    < 10 um & vdfvd & fdgfd & fdgfd & fdgfd \\
    <5 um & vdfvd & fdgfd & fdgfd & fdgfd \\
    <2    & vdfvd & fdgfd & fdgfd & fdgfd \\
    àrea de superficie & vdfvd & fdgfd & fdgfd & fdgfd \\
    Potencial Zeta & vdfvd & fdgfd & fdgfd & fdgfd \\
    Abrasão & vdfvd & fdgfd & fdgfd & fdgfd \\
  \bottomrule
  \end{tabularx}
  \label{tab:addlabel}%
\end{table}%

答案1

仅对第一列使用类型X

\begin{tabularx}{\textwidth}{>{\Centering}X *4c}

我也使用了包ragged2e。它只允许写入\Centering

\documentclass{article}
\usepackage{tabularx,booktabs,ragged2e}

\begin{document}

  \begin{tabularx}{\textwidth}{>{\Centering}X *4c}
  \toprule
          & Clay  & Talco & GCC   & PCC \\
    \midrule
    Formula &       &       &       &  \\
    Estrutura do cristal & vdfvd & fdgfd & fdgfd & dfgdg \\
    Densidade ($kg/dm^3$) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Índice de Refracção & vdfvd & fdgfd & fdgfd & fdgfd \\
    Dureza (escala de Mohs) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Brancura (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\
    Distribuição de Tamanhos (\%) & vdfvd & fdgfd & fdgfd & fdgfd \\
    < 10 um & vdfvd & fdgfd & fdgfd & fdgfd \\
    <5 um & vdfvd & fdgfd & fdgfd & fdgfd \\
    <2    & vdfvd & fdgfd & fdgfd & fdgfd \\
    àrea de superficie & vdfvd & fdgfd & fdgfd & fdgfd \\
    Potencial Zeta & vdfvd & fdgfd & fdgfd & fdgfd \\
    Abrasão & vdfvd & fdgfd & fdgfd & fdgfd \\
  \bottomrule
  \end{tabularx}

\end{document}

为了节省空间,您还可以使用:

  {\small\tabcolsep=3pt
  \begin{tabularx}{\textwidth}{@{} >{\Centering}X *4c @{}}
  ...
  \end{tabularx}%
  }

相关内容