表格未居中

表格未居中

我在创建下表时遇到了一些问题:

\begin{table}[h]
\begin{tabularx}{\textwidth}{X X}
    \textbf{Advantages} & \textbf{Disadvantages}    \\
    \begin{itemize}
        \item  Very efficient!
        \item Use of mild conditions
        \item Broad spectrum of reactions, almost everything
        \item Not Bound to Natural decision!
    \end{itemize}
    & 
    \begin{itemize}
        \item Only one enantiomeric form 
        \item Restricted conditions
        \item Prone to inhibition
        \item Better in water
    \end{itemize} 
\end{tabularx}
\end{table}

问题

我想将其置于中央(现在它更靠左侧)。

另外,我想将列标题(优点和缺点)置于中央。

我尝试过

我尝试使用 \begin{center} 代替表格环境,并且我也尝试使用 \centering 命令,但它不起作用。

我怎样才能以简单的方式做到这一点?

答案1

也许是这样的:

在此处输入图片描述

\documentclass[a4paper]{article}
\begin{document}
\begin{table}[htp]
\begin{minipage}{.5\textwidth}\centering
    \textbf{Advantages} 
    \begin{itemize}
        \item  Very efficient!
        \item Use of mild conditions
        \item Broad spectrum of reactions, almost everything
        \item Not Bound to Natural decision!
    \end{itemize}
\end{minipage}%
\begin{minipage}{.5\textwidth}\centering
\textbf{Disadvantages}
    \begin{itemize}
        \item Only one enantiomeric form 
        \item Restricted conditions
        \item Prone to inhibition
        \item Better in water
    \end{itemize} 
\end{minipage}
\end{table}

\end{document}

相关内容