如何定位(居中)三部分表格的“表格注释”?如能提供任何帮助,我们将不胜感激。提前致谢。
我已经完成了所有必要的代码,但在格式化过程中我需要一些帮助。该表格将包含在 Elsevier 单列手稿中。它在当前格式下看起来很奇怪。请帮忙。
为了使任务清晰,我编写了代码。表格由 * 标记组成,在表格内显示为上标,并使用表格注释进行定义。请查看代码。
\documentclass[preprint,3p,12pt]{elsarticle}
\usepackage{threeparttable}
\begin{document}
\begin{table*}
\centering
\caption{Identified search terms for the above defined Research Questions.}
\label{t0}
\begin{threeparttable}
\renewcommand{\arraystretch}{1.3}
\scalebox{0.9}
{
\begin{tabular}{ll}
\hline
RQ.~\# & Identified Terms\\\
\hline
RQ.~1 & SOA\textsuperscript{*}, cost estimation\textsuperscript{*}, effort estimation\textsuperscript{*} \\\
RQ.~2 & approach\textsuperscript{*}, technique\textsuperscript{*}, SOA cost, SOA scope \\\
RQ.~3 & classification\textsuperscript{*}, ranking, type \\\
RQ.~4 & validation, evaluation, empirical study\textsuperscript{*} \\\
RQ.~5 & future work\textsuperscript{*}, improvement \\\
\hline
\end{tabular}
}
\begin{tablenotes}
\item [*] Note: These search terms are having synonyms or alternate spellings or abbreviations.
\end{tablenotes}
\end{threeparttable}
\end{table*}
\end{document}
答案1
(评论太长,如果不能解决问题就会删除。)
在下面的代码中,你会发现表格的两个版本,一个版本适合单列,另一个版本更宽。表格不会延伸到页面的宽度。但是,如果你将它提交给 Elsevier,他们很可能会重新排版所有内容。
该lipsum
包和\lipsum
命令仅用于创建虚拟文本,不要将它们包含在您自己的文档中。
\documentclass[preprint,twocolumn,3p]{elsarticle}
\usepackage{threeparttable,array,booktabs}
\usepackage{lipsum}
\begin{document}
\lipsum[1] %dummy text
\begin{table}
\centering
\caption{Identified search terms for the above defined Research Questions.}
\label{t0}
\begin{threeparttable}
\renewcommand{\arraystretch}{1.3}
\begin{tabular}{l >{\raggedright\arraybackslash}p{0.75\columnwidth}}
\toprule
RQ.~\# & Identified Terms\\
\midrule
RQ.~1 & SOA\textsuperscript{*}, cost estimation\textsuperscript{*}, effort estimation\textsuperscript{*} \\
RQ.~2 & approach\textsuperscript{*}, technique\textsuperscript{*}, SOA cost, SOA scope \\
RQ.~3 & classification\textsuperscript{*}, ranking, type \\
RQ.~4 & validation, evaluation, empirical study\textsuperscript{*} \\
RQ.~5 & future work\textsuperscript{*}, improvement \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item [*] Note: These search terms are having synonyms or alternate spellings or abbreviations.
\end{tablenotes}
\end{threeparttable}
\end{table}
\lipsum[2]
\begin{table*}
\centering
\caption{Identified search terms for the above defined Research Questions.}
\label{t1}
\begin{threeparttable}
\renewcommand{\arraystretch}{1.3}
\begin{tabular}{l l}
\toprule
RQ.~\# & Identified Terms\\
\midrule
RQ.~1 & SOA\textsuperscript{*}, cost estimation\textsuperscript{*}, effort estimation\textsuperscript{*} \\
RQ.~2 & approach\textsuperscript{*}, technique\textsuperscript{*}, SOA cost, SOA scope \\
RQ.~3 & classification\textsuperscript{*}, ranking, type \\
RQ.~4 & validation, evaluation, empirical study\textsuperscript{*} \\
RQ.~5 & future work\textsuperscript{*}, improvement \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item [*] Note: These search terms are having synonyms or alternate spellings or abbreviations.
\end{tablenotes}
\end{threeparttable}
\end{table*}
\lipsum\lipsum
\end{document}