水平对齐 \itemize 和 \tabular

水平对齐 \itemize 和 \tabular

我有一个\itemize列表和一个\tabular表格,如何让它们在同一行水平对齐?这是我目前所拥有的:

\documentclass[8pt, a4paper,twoside]{article}
\usepackage{amssymb, amsmath, comment, array}
\usepackage[cm]{fullpage}

\begin{document}

\begin {itemize}
    \item \begin{math} P[S] = 1\end{math}
    \item \begin{math} \{ \forall A \in S  : P[A] \ge 0 \} \end{math}
    \item \begin{math} P[\varnothing] = 0 \end{math}
    \item \begin{math} P[A'] = 1 - P[A] \end{math}
\end {itemize}

\begin{tabular} {| p{3cm} | p{6cm} | }  
\hline
    General Addition Rule & \begin{math} P[A_1\cup A_2] = P[A_1] + P[A_2] - P[A_1 \cap A_2] \end{math} \\ \hline
    Conditional Probability & \begin{math} P[A_2|A_1] = \frac {P[A_1 \cap A_2]} {P[A_1]} \end{math} \\ \hline
    Independent Events &\begin{math} P[ \displaystyle \bigcap_{A \in S} A] = \prod_{A \in S} P[A] \end{math} \\ \hline
    Multiplication Rule & \begin{math} P[A_1 \cap A_2] = P[A_2|A_1]P[A_1] \end{math} \\ \hline
    Bayes' Theorem & \begin{math} P[A_j|B] = \frac {P[B|A_j]P[A_j]} {\displaystyle \sum_{i=1}^n P[B|A_i]P[A_i]} \end{math} \\ \hline 
\end{tabular}
\end{document}

在此处输入图片描述

答案1

你只需要把列表放在小页面中。同样没有8pt选项。

在此处输入图片描述

\documentclass[pa4paper,twoside]{article}
\usepackage{amssymb, amsmath, comment, array}
\usepackage[cm]{fullpage}

\begin{document}

\noindent X\dotfill X


\noindent
\begin{minipage}{.3\textwidth}
\begin {itemize}
    \item \begin{math} P[S] = 1\end{math}
    \item \begin{math} \{ \forall A \in S  : P[A] \ge 0 \} \end{math}
    \item \begin{math} P[\varnothing] = 0 \end{math}
    \item \begin{math} P[A'] = 1 - P[A] \end{math}
\end {itemize}
\end{minipage}%
\hfill
\begin{tabular} {| p{3cm} | p{6cm} | }  
\hline
    General Addition Rule & \begin{math} P[A_1\cup A_2] = P[A_1] + P[A_2] - P[A_1 \cap A_2] \end{math} \\ \hline
    Conditional Probability & \begin{math} P[A_2|A_1] = \frac {P[A_1 \cap A_2]} {P[A_1]} \end{math} \\ \hline
    Independent Events &\begin{math} P[ \displaystyle \bigcap_{A \in S} A] = \prod_{A \in S} P[A] \end{math} \\ \hline
    Multiplication Rule & \begin{math} P[A_1 \cap A_2] = P[A_2|A_1]P[A_1] \end{math} \\ \hline
    Bayes' Theorem & \begin{math} P[A_j|B] = \frac {P[B|A_j]P[A_j]} {\displaystyle \sum_{i=1}^n P[B|A_i]P[A_i]} \end{math} \\ \hline 
\end{tabular}
\end{document}

相关内容