2

How do I get my picture to start at the first line of an item instead of at the bottom?

\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}

enter image description here

1 Answer 1

7

Add baseline = (current bounding box.north)

\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}

enter image description here

1
  • 5
    +1 Maybe giving the first node a name and using baseline=(firstnode.base) would look even better.
    – user121799
    Commented May 16, 2018 at 17:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .