有人能帮我用乳胶制作这张表格吗?

有人能帮我用乳胶制作这张表格吗?

我试图在 latex 中为这张表创建代码,但我无法获得多列,有人能帮我处理这张表吗

 \begin{tabular}{|l|l|l|l|}\hline
    Criterion & Discretization method & Dataset & Rank mean\\
    \hline
    \multirow{7}{*}{Cair mean value
     through all intervals} & Equal width \\
      & Equal frequency \\
     & Maximum entropy \\
     & IEM \\ 
     & CADD\\
     & CAIM\\
     \hline
     \multirow{7}{*}{Total no of intervals} & Equal width \\
      & Equal frequency \\
     & Maximum entropy \\
     & IEM \\ 
     & CADD\\
     & CAIM\\
     \hline
     \multirow{7}{*}{Time[s]} & Equal width \\
      & Equal frequency \\
     & Maximum entropy \\
     & IEM \\ 
     & CADD\\
     & CAIM\\
     \hline

这是我尝试过的代码,但我不明白如何从多列数据集中编写代码,有人可以帮帮我吗?

答案1

这样就可以了。我还使用该array包来处理不同的字体大小。

\documentclass{article}
\usepackage[centering,width=9.5in,height=7in]{geometry}
\usepackage{multirow}
\usepackage{array}
\geometry{landscape}
\begin{document}

\begin{center}

% Define column width as a command so it is easier to change
\newcommand{\ColIWidth}{.7in}

% p{\ColIWidth}      - column of specific width
% *{8}{...}          - Do "c|>{\footnotesize}c|" 8 times
% >{\footnotesize}c  - Centered column but prefix each with \footnotesize
\begin{tabular}{|p{\ColIWidth}|l|*{8}{c|>{\footnotesize}c|}c|}\hline
  % multirows and multicolumns where appropriate
  \multirow{2}{\ColIWidth}{\textbf{Criterion}} & \textbf{Discretization} & \multicolumn{16}{c|}{Dataset} & \textbf{RANK}\\\cline{3-18}
  & \textbf{method} & iris & std & sat & std & thy & std & wav & std & ion & std & smo & std & hea & std & pid & std & mean\\
  \hline
  % Need a width in the multirow in order to get desired wrapping.
  % The \vfil helps with vertical alignment.
  \multirow{7}{\ColIWidth}{CAIR mean value
   through all intervals\vfil} & Equal width & 0.40 & 0.01 & 0.24 & 0 \\
    & Equal frequency \\
   & Maximum entropy \\
   & IEM \\
   & CADD\\
   & CAIM\\
   \hline
   \multirow{7}{\ColIWidth}{Total no of intervals\vfil} & Equal width \\
    & Equal frequency \\
   & Maximum entropy \\
   & IEM \\
   & CADD\\
   & CAIM\\
   \hline
   \multirow{7}{\ColIWidth}{Time[s]\vfil} & Equal width \\
    & Equal frequency \\
   & Maximum entropy \\
   & IEM \\
   & CADD\\
   & CAIM\\
   \hline
\end{tabular}
\end{center}

\end{document}

《桌子》的截图

相关内容