我试图让这张表适合一列,但出了点问题。
以下错误行为,还如您所见,它扩展到另一列,这是一个错误:
以下期望行为:
以下是我目前的格式:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{booktabs,chemformula}
\usepackage{multirow,booktabs,blindtext}
\usepackage{siunitx}
\usepackage{tabularx}
\usepackage{booktabs, makecell}
\usepackage{float}
\usepackage{seqsplit, collcell, ragged2e}
\newcolumntype{Y}{>{\arraybackslash\collectcell\seqsplit}X<{\endcollectcell}}
\usepackage{lipsum}
// some paragraphs....
\begin{table}[H]
\centering\footnotesize
\setlength{\tabcolsep}{4pt}
\setlength{\extrarowheight}{3pt}
\begin{tabularx}{\columnwidth}{>{\RaggedRight}X@{}ccc>{\RaggedRight}X@{}Y}
\toprule
Grouping & Dimensions & Rationale \\
\midrule
Analysis of publication data & Number of publications & Size of research field \\
{} & Time distribution of publications & Trends in the research field \\
{} & Most popular journals for publication & Journals where research is published \\
{} & Most prolific authors & Leading researchers \\
{} & Geography of scholars & Setting of scholars \\
{} & Distribution of keywords & no info \\
{} & Social network analysis of keywords & Central Concepts \\
\bottomrule
\end{tabularx}
\end{table}
我已经使用了以下内容来源为了实现我想要的表格类型,这很有用,但我遇到了一些格式问题,如图所示。
也遇到了另一个帖子这对于理解我正在寻找的概念也很有帮助,但对于解决问题却没有用。
与本问题相关的问题 我还有一个与此问题密切相关的问题:如何使同一张表占据两列而不是仅占据一列? 我认为因为这是问题的简单变体,所以我也可以在这里提出它。如果我也需要为此写一个单独的问题,请告诉我。
感谢您指出正确的方向以找到解决方案。
答案1
像这样:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{siunitx} % v3!
\usepackage{ragged2e}
\usepackage{booktabs, makecell, multirow, tabularx}
\setcellgapes{2pt}
\newcolumntype{L}[1]{>{\RaggedRight\hspace{0pt}%
\hsize=#1\hsize}X}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{table}[ht]
\centering
\small
\setlength{\tabcolsep}{4pt}
\makegapedcells
\begin{tabularx}{\columnwidth}{@{}L{0.8}L{1.1}L{1.1} @{}}
\toprule
Grouping & Dimensions & Rationale \\
\midrule
\multirow[t]{2}{=}{1. Analysis of publication data}
& Number of publications
& Size of research field \\
& Time distribution of publications
& Trends in the research field \\
& Most popular journals for publication
& Journals where research is published \\
& Most prolific authors
& Leading researchers \\
& Geography of scholars
& Setting of scholars \\
& Distribution of keywords
& no info \\
& Social network analysis of keywords
& Central Concepts \\
\addlinespace
\multirow[t]{2}{=}{2. Analysis of citation data}
& Number of citations
& Central concepts \\
& Time distribution of citations
& Realtions between central concepts \\
& \dots
& \dots \\
\bottomrule
\end{tabularx}
\end{table}
\lipsum
\end{document}
您的表格定义不明确:实际使用的只有三列,但定义的有六列。单元格格式也太复杂了。SE MWE,代码应该是不言自明的。