如何使用 Latex 创建表,如下所示。表格必须适合 2 列页面格式中的 1 列,但表格标题太长,第一列中的内容也太长。所以,我想用粗体格式将第一列的列标题和内容分成多行。
不太清楚为什么 \makecell 不合作粗体文本并设计一个实心边框,但这是我的乳胶代码:
\begin{table}[h]
\begin{center}
\begin{tabularx}{\linewidth}{|L|L|L|L|L|}
\toprule
\makecell[lt]{Type}
&\makecell[lt]{Financial \\ benefit \\ of the \\users}
& \makecell[lt]{Financial\\ loss of the \\ users}
&\makecell[lt]{Interruption \\ of user’ \\ daily activity}
&\makecell[lt]{Monetary \\ reward \\ for works}\\
\midrule
\makecell[lt]{Category 1: \\ Work in \\ the retail \\ sector}
& \ding{51}
& \ding{51}
&
& \ding{51}\\
\midrule
\makecell[lt]{Category 2: \\ Work in \\ the industry \\ sector}
& \ding{51}
& \ding{51}
& \ding{51}
& \ding{51}\\
\midrule
\makecell[lt]{Category 3: \\ Work in \\ the corporate \\ sector}
& \ding{51}
& \ding{51}
& \ding{51}
& \ding{51}\\
\bottomrule
\end{tabularx}
\end{center}
\end{table}