合并列然后在表中插入项目

合并列然后在表中插入项目

我想合并两列,然后在合并的列中插入项目,但我的代码可以正常工作。表格的理想外观如附图所示。请帮忙!

\begin{tabular}{p{11cm}c}   
&\multirow{2}{*}{CBS}}\\
\textbf{M.Sc. in Finance}& \\
&Sep 2016 - July 2018\\
Main courses:&\\
\multicolumn{2}{l}{
\begin{itemize}
    \item Corporate Finance, International Business Finance, Entrepreneurial Finance 
    \item Accounting
\end{itemize}}
\end{tabular}

愿望表示例

答案1

您无法在标准单元格中插入列表,因为根据定义,这些单元格是单行的。您必须使用段落式说明符。以下是使用 和 的解决tabularx方案enumitem

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[showframe]{geometry}
\usepackage{ragged2e}
\usepackage{tabularx, multirow}
\setlength{\extrarowheight}{2pt}
\makeatletter
\newcommand*{\compress}{\@minipagetrue}
\makeatother
\usepackage{enumitem}

\begin{document}

\noindent{\sffamily\begin{tabularx}{\linewidth}{@{}Xc@{}}
&\multirow{2}{*}{CBS}\\
\textbf{M.Sc. in Finance}& \\
&Sep 2016 - July 2018\\
Main courses:&\\
\multicolumn{2}{>{\compress}p{\dimexpr\linewidth-2\tabcolsep}}{%
\begin{itemize}[wide=0pt, leftmargin=*, itemsep=0pt, after=\vspace{-\topsep}]
    \item Corporate Finance, International Business Finance, Entrepreneurial Finance
    \item Accounting
\end{itemize}}
\end{tabularx}}

\end{document} 

在此处输入图片描述

相关内容