在表格中使用 makecell 和 textsuperscript 进行左对齐

在表格中使用 makecell 和 textsuperscript 进行左对齐

我正在使用以下课程向 IET 期刊撰写论文cta-作者.cls,表格中的左对齐与表格单元格(第二列)中的换行选项不兼容\makecell,与表格(第五列)中的换行选项一样\textsuperscript。我该如何修复此问题?

在此处输入图片描述

梅威瑟:

\documentclass{cta-author}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{array}
\usepackage{booktabs}
\usepackage{multirow}
\newtheorem{theorem}{Theorem}{}
\newtheorem{corollary}{Corollary}{}
\newtheorem{remark}{Remark}{}
\usepackage{multirow, makecell}


\begin{document}
 \begin{table*}[!t]
        \setlength\extrarowheight{2pt}
        \processtable{A Comparative Description of Different Algorithms\label{table3}}
{\begin{tabular}{>{\raggedright\arraybackslash}m{2.24cm}>{\raggedright\arraybackslash}m{2.74cm}>{\raggedright\arraybackslash}m{1.74cm}>{\raggedright\arraybackslash}m{1.74cm}>{\raggedright\arraybackslash}m{4.74cm}>{\raggedright\arraybackslash}m{2.74cm}}
\toprule
Authors & Feature extraction & Feature reduction & Fusion level & Database and number of image considered & Evaluation results (best EER) \\
\midrule
Y. Wang et al. \cite{16} 2003 2 & {\makecell{Face: PCA and FDA \\ Iris: 2D Gabor}} & $/$ & Score level fusion & NLPR$^{LAD}$ for iris good quality. ORL, MIT and Yale for face. 90 subjects with 5 face  and 5 iris images for each subject & EER = 0 \% \\
\bottomrule
\end{tabular}}{}
\end{table*}


\end{document}

答案1

要在类型单元格中插入换行符m,可以使用\newline如下例所示的命令。

\documentclass{cta-author}
\usepackage{array}
\usepackage{booktabs}

\begin{document}
 \begin{table*}[!t]
        \setlength\extrarowheight{2pt}
        \processtable{
        A Comparative Description of Different Algorithms\label{table3}}
{\begin{tabular}{>{\raggedright\arraybackslash}m{2.24cm}>{\raggedright\arraybackslash}m{2.74cm}>{\raggedright\arraybackslash}m{1.74cm}>{\raggedright\arraybackslash}m{1.74cm}>{\raggedright\arraybackslash}m{4.74cm}>{\raggedright\arraybackslash}m{2.74cm}}
\toprule
Authors & Feature extraction & Feature reduction & Fusion level & Database and number of image considered & Evaluation results (best EER) \\
\midrule
Y. Wang et al. \cite{16} 2003 2 & Face: PCA and FDA \newline Iris: 2D Gabor & $/$ & Score level fusion & NLPR\textsuperscript{LAD} for iris good quality. ORL, MIT and Yale for face. 90 subjects with 5 face  and 5 iris images for each subject & EER = 0 \% \\
\bottomrule
\end{tabular}}{}
\end{table*}

\end{document}

如果您更喜欢该makecell包,您应该明确指定水平对齐,在您的情况下使用\makecell[l]{<text>}

相关内容