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? – Torbjørn T. Oct 31 '13 at 9:09
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

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.