我正在使用 mint 将代码列表插入表格,但相应列中的文本和列表未居中。如何将它们居中?
这是我的表格代码:
\begin{center}
\begin{tabular}{| c | m{12cm} | m{6cm} | m{6cm} |}
\hline
Clone Type & Definition & Sample piece 1 & Sample piece 2 \\ \hline
1 &
Identical code fragments except for variations in whitespace (may be also
variations in layout) and comments. & \begin{minted}
[
fontsize=\footnotesize,
]
{c}
if (a >= b)
{ c = d + b; }
else c = d - a;
\end{minted}
& \begin{minted}
[
fontsize=\footnotesize,
]
{c}
if (a >= b)
{ c = d + b; }
else c = d - a;
\end{minted}
\\ \hline
\end{center}