Quantcast
Viewing all articles
Browse latest Browse all 28

Positioning this automaton in beamer

the following question might seem very much like a duplicate, but unfortunately I cannot figure it out myself:

In the following MWE, I try to have the automaton in the upper right corner. I very much suspect that this is possible with inserting a node and using "remember" and "overlay", but unfortunately I am still missing the right combination of them to make it work.

Would anybody be so kind to help me out on that?Thanks in advance!

MWE:

\documentclass{beamer}\usepackage{tikz}\usetikzlibrary{arrows,automata, positioning}\usepackage[ruled,linesnumbered]{algorithm2e}\usepackage{setspace}\SetKwInOut{Input}{Input}\SetKwInOut{Output}{Output}\begin{document}\begin{frame}[t]{Minimal consistent automata ($ |\Sigma| \geq 2 $)}    \begin{block}{}        The plan: \textbullet  construction of a sample which provokes $ \geq 3 $ states    \end{block}%           \begin{tikzpicture}[remember picture,overlay]%                       \node[opacity=1,xshift=5.5cm,yshift=3cm,at=(current page.center)] {            \begin{tikzpicture}                                [scale = 0.4, transform shape,                                -> , >= stealth,                                shorten >=0pt ,                                node distance =2.5 cm ,                                initial text = ,                                semithick ]                                \node[state, initial] (q1) {$ \varepsilon $};                                \node[state, accepting] (q2) [right = 2cm of q1]{$ 0 $};                                \path[->]                                 (q1) edge [below] node {0} (q2)                                (q1) edge [loop above] node {1} (q1)                                (q2) edge [loop above] node {1} (q2)                                (q2) edge [bend right = 15, above] node {0} (q1)                                ;%                       };          \end{tikzpicture}\end{frame} \end{document}

Viewing all articles
Browse latest Browse all 28

Trending Articles