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

5

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 May 16 '18 at 17:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.