2

I need to diagram arguments (Beamer). I've tried to use tikzcd but it doesn't work. How can I draw a diagram as the following one?

Diagram

1
  • 3
    Hi, welcome to TeX.SX. Could you show us what you tried with tikz-cd (the code)? How didn't it work? Oct 31, 2013 at 9:09

1 Answer 1

4

You probably have a problem with &: when used in a beamer frame, & is not eligible for separating entries in a tikz-cd environment. You can use \& after telling it to tikz.

\documentclass{beamer}
\usepackage{tikz-cd}

\tikzset{ampersand replacement=\&}

\begin{document}

\begin{frame}
\frametitle{A diagram}

\begin{center}
\begin{tikzcd}[row sep=1em,column sep=1em]
{} \& {} \& 5 \arrow{d} \\
2 \arrow{dr} \& 3 \arrow{d} \& 4 \arrow{dl} \\
{} \& 1
\end{tikzcd}
\end{center}

\end{frame}

\end{document}

enter image description here

1

You must log in to answer this question.

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