MWE 如下所示
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{indentfirst}
\usepackage{caption}
\usepackage{subcaption}
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
\begin{document}
\begin{table}
\centering
\begin{tabular}{| p{7cm} | p{7cm} |}
\hline
\multicolumn{2}{|c|}{Bezier Curves} \\
\hline
\multicolumn{1}{|c|}{Properties} & \multicolumn{1}{c|}{Disadvantages} \\
\hline
\tabitem A\newline
\tabitem B\newline
\tabitem C\newline
\tabitem D \newline &
\tabitem E\newline
\tabitem F\newline
\tabitem G\\
\hline
\end{tabular}
\end{table}
\end{document}
答案1
更改命令\newcommand{\tabitem}{\textbullet~~}
。
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{indentfirst}
\usepackage{caption}
\usepackage{subcaption}
\newcommand{\tabitem}{\textbullet~~}
\begin{document}
\begin{table}
\centering
\begin{tabular}{| p{7cm} | p{7cm} |}
\hline
\multicolumn{2}{|c|}{Bezier Curves} \\
\hline
\multicolumn{1}{|c|}{Properties} & \multicolumn{1}{c|}{Disadvantages} \\
\hline
\tabitem A\newline
\tabitem B\newline
\tabitem C\newline
\tabitem D &
\tabitem E\newline
\tabitem F\newline
\tabitem G\\
\hline
\end{tabular}
\end{table}
\end{document}
答案2
使用itemize
表格内具有方便参数的环境更简单:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{indentfirst}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{enumitem}
\begin{document}
\begin{table}[!htb]
\centering%
\setlist[itemize]{wide=0.35em, leftmargin = *, itemsep=-3pt, before=\vspace*{-\dimexpr\baselineskip+\partopsep}, after =\vspace*{\dimexpr-\baselineskip+\partopsep}}
\begin{tabular}{| p{7cm} | p{7cm} |}
\hline
\multicolumn{2}{|c|}{Bezier Curves} \\
\hline
\multicolumn{1}{|c|}{Properties} & \multicolumn{1}{c|}{Disadvantages} \\
\hline
\begin{itemize}
\item A
\item B
\item C
\item D
\end{itemize}
&
\begin{itemize}
\item E
\item F
\item G
\end{itemize}\\
\hline
\end{tabular}
\end{table}
\end{document}
答案3
这是对我上面的评论的回答的转化。
在我的评论的第一部分,我提供了链接 我的答案,可以轻松适用于您的情况:
\documentclass[a4paper]{article}
\usepackage{enumitem} % for nice list
\newlist{tablist}{itemize}{1}% <-- defined new list
\setlist[tablist]{nosep, % <-- new list setup
topsep = 0pt ,
partopsep = 0pt ,
leftmargin = * ,
label = $\bullet$ ,
before = \vspace{-0.5\baselineskip},
after = \vspace{-\baselineskip}
}
\begin{document}
\begin{table}
\renewcommand\arraystretch{1.3}
\centering
\begin{tabular}{| p{7cm} | p{7cm} |}
\hline
\multicolumn{2}{|c|}{Bezier Curves} \\
\hline
\multicolumn{1}{|c|}{Properties} & \multicolumn{1}{c|}{Disadvantages} \\
\hline
\begin{tablist}
\item B
\item C
\item D
\end{tablist} & \begin{tablist}
\item E
\item F
\item G
\end{tablist} \\
\hline
\end{tabular}
\end{table}
\end{document}
在评论的第二部分,我建议替换你的定义
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
(rlap{...}
你的麻烦出在哪里)
\newcommand{\tabitem}{\textbullet~~}
其结果与上述 MWE 相同。哪种建议更合适由您决定 :)