枚举和 tikzpicture

枚举和 tikzpicture

如何让我的图片从项目的第一行开始而不是从底部开始?

\begin{enumerate}[label=\roman*)]
    \item \{C\}$^{+}$ = ACD $\Leftarrow$ R is not BCNF.
    \medskip

    \item
    \begin{tikzpicture}[sibling distance=15em]
    \node {R(ABCD)}
        child { node {R$_{1}$ = ABC} }
        child { node {R$_{2}$ = DBC} };
    \end{tikzpicture}
\end{enumerate}

在此处输入图片描述

答案1

添加基线 = (当前边界框.北)

\begin{enumerate}[label=\roman*)]
    \item \{C\}$^{+}$ = ACD $\Leftarrow$ R is not BCNF.
    \medskip

    \item
    \begin{tikzpicture}[sibling distance=15em, baseline = (current bounding box.north)]
    \node {R(ABCD)}
        child { node {R$_{1}$ = ABC} }
        child { node {R$_{2}$ = DBC} };
    \end{tikzpicture}
\end{enumerate}

在此处输入图片描述

相关内容