我正在尝试为目前正在撰写的 IEEE 会议论文创建一个多列表。
所需的列格式如下:
我编写了一个代码,它可以紧密地提供我想要的表格,但我无法在表格的第二列和第三列中放置项目符号。
\begin{table*}[htbp]
\caption{Converter Operation Under Various Component Failure}
\begin{center}
\begin{itemize}
\begin{tabular}{ |c|p{0.4\linewidth}| p{0.4\linewidth}| }
\hline
\multirow{2}{4em}{\textbf{Device}}&\multicolumn{2}{|c|}{\textbf{Type of Failure}} \\
\cline{2-3}
& \multicolumn{1}{|c|}{\textbf{Open Circuit failure (OCF)}} & \multicolumn{1}{|c|}{\textbf{Short Circuit failure (SCF)}} \\
\hline
\multirow{3}{4em}{\textbf{Main Switch}} & \item Converter operation possible without any additional components. & \item Converter operation possible with fuse incorporated in each phase between switch and inductor of that phase. \\
& \item Current and voltage stresses on other phases increases. & \item Current and voltage stresses on other phases increases. \\
上述代码的结果表如下:
谁能帮我在表格的第二列和第三列添加项目符号?
另外,有人能告诉我如何在每列中嵌套 itemize 环境吗?谢谢。
答案1
\textbullet
假设您希望左右两侧同步,那么在每一行添加一个会更容易。
否则,您需要将整个 itemize 放在列内的 minipage 中(minipage 会消除顶部和底部的间隙)。甚至可以使用数组包来创建 minipage 列类型,但已经很晚了,我累了。
\documentclass{IEEEtran}
\usepackage{multirow}
\usepackage{lipsum}% MWE only
%\usepackage{showframe}% MWE only
\begin{document}
\begin{table*}[tp]% [hb] not supported
\caption{Converter Operation Under Various Component Failure}
\centering
\begin{tabular}{ |c|cp{0.4\linewidth}|cp{0.4\linewidth}| }
\hline
\multirow{2}{4em}{\textbf{Device}}&\multicolumn{4}{|c|}{\textbf{Type of Failure}} \\
\cline{2-5}
& \multicolumn{2}{|c|}{\textbf{Open Circuit failure (OCF)}} & \multicolumn{2}{|c|}{\textbf{Short Circuit failure (SCF)}} \\
\hline
\multirow{3}{4em}{\textbf{Main Switch}}
&\textbullet& Converter operation possible without any additional components.
&\textbullet& Converter operation possible with fuse incorporated in each phase between switch and inductor of that phase. \\
&\textbullet& Current and voltage stresses on other phases increases.
&\textbullet& Current and voltage stresses on other phases increases. \\
\hline
\end{tabular}
\end{table*}
\begin{table*}[tp]% [hb] not supported
\caption{Converter Operation Under Various Component Failure}
\centering
\begin{tabular}{ |c|p{0.4\linewidth}| p{0.4\linewidth}| }
\hline
\multirow{2}{4em}{\textbf{Device}}&\multicolumn{2}{|c|}{\textbf{Type of Failure}} \\
\cline{2-3}
& \multicolumn{1}{|c|}{\textbf{Open Circuit failure (OCF)}} & \multicolumn{1}{|c|}{\textbf{Short Circuit failure (SCF)}} \\
\hline
\parbox{4em}{\textbf{Main Switch}} &
\begin{minipage}{\hsize}% needed to remove gaps at top and bottom
\begin{itemize}
\item Converter operation possible without any additional components.
\item Current and voltage stresses on other phases increases.
\end{itemize}
\end{minipage} &
\begin{minipage}{\hsize}
\begin{itemize}
\item Converter operation possible with fuse incorporated in each phase between switch and inductor of that phase.
\item Current and voltage stresses on other phases increases.
\end{itemize}
\end{minipage}\\
\hline
\end{tabular}
\end{table*}
\lipsum[1-20]
\end{document}