表格中单词之间的间距太大

表格中单词之间的间距太大

我想知道如何删除表格中单词之间的大空格。请参见第 4 行,第二列“与研究问题的相关性”。我希望单词之间只留简单的空格。

\documentclass
\begin{center}
\begin{tabular}{ | m{1.5em} | m{3.0cm}| m{11cm} | } % 15.5
  \hline
  \textbf{No. }& \textbf{Criteria} & \textbf{Reason for inclusion} \\ 
  \hline
  1 & Theoretical papers & Provide the theoretical assumptions to be used in the paper \\ 
  \hline
  2 & Qualitative empirical studies & capture empirical evidence for the given problem statement \\ 
  \hline
  3 & Working papers & Ensure coverage of the most current research, valuable when assessing new emerging trends and technology \\ 
  \hline
  4 & Relevance to the research question  & The studies must be directly related to the chosen industry players, how they are meeting consumer demands, digitalization and climate change, as well as theory understating the topic  \\ 
  \hline
\end{tabular}
\end{center}

\end{document}

在此处输入图片描述

答案1

您可以对列使用不规则的右文本对齐方式:

\documentclass{article}
\usepackage{array}
\begin{document}
\begin{center}
\begin{tabular}{ | c | >{\raggedright}m{3.0cm}| >{\raggedright\arraybackslash}m{11cm} | } % 15.5
  \hline
  \textbf{No. }& \textbf{Criteria} & \textbf{Reason for inclusion} \\ 
  \hline
  1 & Theoretical papers & Provide the theoretical assumptions to be used in the paper \\ 
  \hline
  2 & Qualitative empirical studies & capture empirical evidence for the given problem statement \\ 
  \hline
  3 & Working papers & Ensure coverage of the most current research, valuable when assessing new emerging trends and technology \\ 
  \hline
  4 & Relevance to the research question  & The studies must be directly related to the chosen industry players, how they are meeting consumer demands, digitalization and climate change, as well as theory understating the topic  \\ 
  \hline
\end{tabular}
\end{center}

\end{document}

在此处输入图片描述


或者你可以切换到tabularray使语法更易于阅读的包:

\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{
  colspec={cX[halign=l,valign=m]X[halign=l,valign=m]},
  vlines,hlines,
  row{1}={font=\bfseries}
}
  No.& Criteria & Reason for inclusion\\ 
  1 & Theoretical papers & Provide the theoretical assumptions to be used in the paper \\ 
  2 & Qualitative empirical studies & capture empirical evidence for the given problem statement \\ 
  3 & Working papers & Ensure coverage of the most current research, valuable when assessing new emerging trends and technology \\ 
  4 & Relevance to the research question  & The studies must be directly related to the chosen industry players, how they are meeting consumer demands, digitalization and climate change, as well as theory understating the topic  \\ 
\end{tblr}

\end{document}

与您的问题无关,但也许可以查看booktabs软件包的文档以获得一些关于专业表格的灵感。通过删除大部分行,您的表格可以得到很大的改进。

我建议采用以下布局:

\documentclass{article}
\usepackage{tabularray}
\usepackage{geometry}
\begin{document}
\begin{tblr}{
  colspec={@{}cX[halign=l]X[halign=l,3]@{}},
  row{1}={font=\bfseries},
  hline{1,2,Z}={solid}
}
  No.& Criteria & Reason for inclusion\\ 
  1 & Theoretical papers & Provide the theoretical assumptions to be used in the paper \\ 
  2 & Qualitative empirical studies & capture empirical evidence for the given problem statement \\ 
  3 & Working papers & Ensure coverage of the most current research, valuable when assessing new emerging trends and technology \\ 
  4 & Relevance to the research question  & The studies must be directly related to the chosen industry players, how they are meeting consumer demands, digitalization and climate change, as well as theory understating the topic  \\ 
\end{tblr}

\end{document}

在此处输入图片描述

答案2

使用{NiceTabular}nicematrix可以l为列类型添加一个选项mm[l]{...}

\documentclass{article}
\usepackage{nicematrix} 

\begin{document}

\begin{center}
\begin{NiceTabular}{ | m[c]{1.5em} | m[l]{3.0cm}| m[l]{11cm} | } % 15.5
  \hline
  \textbf{No. }& \textbf{Criteria} & \textbf{Reason for inclusion} \\ 
  \hline
  1 & Theoretical papers & Provide the theoretical assumptions to be used in the paper \\ 
  \hline
  2 & Qualitative empirical studies & capture empirical evidence for the given problem statement \\ 
  \hline
  3 & Working papers & Ensure coverage of the most current research, valuable when assessing new emerging trends and technology \\ 
  \hline
  4 & Relevance to the research question  & The studies must be directly related to the chosen industry players, how they are meeting consumer demands, digitalization and climate change, as well as theory understating the topic  \\ 
  \hline
\end{NiceTabular}
\end{center}

\end{document}

上述代码的输出

相关内容