我正在尝试在表格旁边创建箭头,如下图所示:
这是我尝试做的,但结果与图片中的结果相差甚远
\tikzstyle{my arrow} = [draw=cyan!75, very thin, single arrow, minimum height=6cm, shape border rotate =#1, fill=gray!10]`
\begin{frame}
\begin{tabular}{| c |}
\hline
fadd1\\
inop1\\
iadd1\\
fmul1\\
inop2\\
fadd2\\
lstore\\
fnop1\\
fmul2\\
inop3\\
\hline
\end{tabular}
\begin{tikzpicture}[overlay]
\node at (-0.25,1) [my arrow=90] {\rotatebox{90}{}};
\node at (8,1) [my arrow=-180] {\rotatebox{-90}{}};
\end{tikzpicture}
\end{frame}
有什么想法吗?感谢您的帮助
答案1
像这样?
很简单,只需画出所有(未使用tabular
):
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{positioning,}
\begin{document}
\begin{frame}[fragile]{ Recurrent Neural Networks (RNNs)}
\begin{center}
\begin{tikzpicture}[
box/.style = {draw, align=left, inner xsep=5pt, outer xsep=3ex},
]
\node (box) [box] {fadd1 \\
inop1 \\
iadd1 \\
fmul1 \\
inop2 \\
fadd2 \\
lstore \\
fnop1 \\
fmul2 \\
inop3 };
\draw[-stealth] (box.north west) node[above] {start} --
(box.south west) node[below] {stop};
\draw[-stealth] (box.south east) node[below] {start} --
(box.north east) node[above] {stop};
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}