{automata} is about the realization of automata (i.e. finite state machines) in (La)TeX.

learn more… | top users | synonyms

1
vote
1answer
52 views

How to clip with a path between customized, bent sides (e.g. as drawn by edges from graphs)?

In the next MWE, I tried to clip by using a path drawn by edges between nodes, a circle, but I didn't succeed. It's not essential to draw it using automata, though. But the point is: being able to ...
3
votes
1answer
34 views

text position not correct for TikZ, automata

Here is the code to generate state machine: \documentclass[xcolor=x11names,compress]{beamer} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata} \begin{document} \begin{frame}{...
0
votes
1answer
61 views

drawing state diagrams / graphs in matplotlib with LaTeX?

is there a way to draw the following state diagram in matplotlib? Or instead to embed inside a matplotlib figure LaTeX code that draws these diagrams using a package like tikz? ideally I would ...
1
vote
0answers
56 views

Drawing automata paths step by step with TikZ and \onslide command

I have an oral presentation on friday, where I will have to explain the determinization process for transducers. To save time, and make the whole thing clearer, I'd like to do a step by step ...
3
votes
2answers
71 views

Tikz- Transitions around whole automaton

I have following automaton in Tikz: Is it possible to do a transition similar to this one? Here's my code: \begin{tikzpicture}[>=stealth,node distance=2.7cm,auto] \node[state,initial,...
3
votes
1answer
85 views

I want to draw a transition in automata exactly as shown below. From state q7 to state q1

Here is the code \documentclass[landscape, 12pt]{report} \usepackage{tikz} \usepackage{lipsum} \usepackage{enumitem,amsmath,amssymb,latexsym} \usepackage{mathtools} \usepackage{cmap} \usepackage[...
1
vote
1answer
56 views

Writing code on arrows

I am trying to write code on arrows between nodes. Ideally I would like the code to be on the left (or right) of the arrow and in the middle. Is there a way to acheive just that? \documentclass[11pt,...
2
votes
1answer
124 views

How to depict Hierarchical State Machines in Latex

I want to depict a Hierarchical Statemachine (HSM) in a latex document. I've implemented the state machine I want to depict in Qt's Statemachine Framework. Just so that you know what I'm talking about....
6
votes
2answers
149 views

Customize arrow path tikz

I want to connect two nodes with an arrow, but I want the arrow to follow a "customized" path. Instead of the simple way: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,shapes,...
3
votes
1answer
480 views

“Invisible” states in automata with Tikz

I am new to Tikz and drawing things with LaTex, so I have a question. This is the code for my tikz drawing \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto] \node[state] (q_0) {...
5
votes
1answer
165 views

TikZ: force two pictures to use the same baseline/frame of reference

I have two TikZ automata I would like to place side-by-side: However, I would prefer the 'start' nodes to be aligned vertically on the page. This happens automatically if I add help lines large ...
0
votes
1answer
44 views

Horizontally center DFA

How can I horizontally center the following tikzpicture (which includes a DFA) on the whole page without changing the distance between the nodes? \documentclass{article} \usepackage[english]{babel} \...
3
votes
1answer
578 views

Trying to draw a picture of a Turing Machine in TexMaker using Tikz

Again I have to call on your expertise to help me draw a picture. This time it's for a Turing Machine. I have two problems with the self loops and one with the general spacing. The first problem ...
5
votes
1answer
99 views

Trying to draw a picture of an automata in TexMaker using Tikz

I'm looking for some help drawing automata in TexMaker. My problem is that the lines of the automata cross and it makes the whole thing a bit unreadable. MWE: \documentclass[a4paper,twoside,11pt]{...
1
vote
0answers
51 views

Whitespace Around TikZ Automaton

I have the following TikZ picture: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,automata,positioning} \begin{document} \begin{tikzpicture}[initial text={}, auto, >=stealth'...
1
vote
1answer
262 views

How can I draw a circular graph in tikz?

I want to draw a wheel graph which is a cycle of nodes centred on another node. What I would like is to draw edges or other paths between the cycle's nodes in a way that they form an actual circle, ...
4
votes
1answer
598 views

Package pgf Error: No shape named is known. (D) edge node {a} (B) edge node {b} (E) ()

\begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto] \node[state,initial,accepting] (A) {$A$}; \node[state,accepting] (B) [above right=of A] {$B$}; \node[state,accepting] (C) [...
2
votes
1answer
213 views

Orthogonal Edges Style

I'm trying to draw a block diagram. I want to make the edge (red) orthogonal, like the black path made with -|. I know there are the commands \tikztostart, \tikztotarget and the ....!0.5!... opertator,...
1
vote
1answer
88 views

Unexplained stretching of path automata using tikz in Latex

I'm writing a maths report in Latex which requires drawing Free State Automata. Up until this point in the document, using the tikz package was great, but it is being inexplicably weird. I am trying ...
3
votes
1answer
147 views

Why do loose edges in a tikz graph create empty space? [duplicate]

I want to create an automaton in tikz and adjust the looseness and bend properties of the edges. If I set the values high, it creates a lot of empty space to the left and below the graphic. In my ...
2
votes
2answers
227 views

Adding extra texts to nodes in tikz automata

I want to draw a diagram like the one shown below. However, the nearest I can come up with is the following code. \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \...
3
votes
1answer
90 views

Putting circles to crossing lines

I have the following figure. I want to add semi-circles to the crossing lines (as in electronic circuits). Here is my code: \documentclass{article} \usepackage{fixltx2e} \usepackage{ntheorem} \...
1
vote
1answer
44 views

controlling subfloats [duplicate]

I have the following figures created using tikz. I want to center subfigure a so that it will be at the same vertical space as the middle of subfigure b. Here is my code: \documentclass{article} \...
2
votes
1answer
266 views

Controlling edge shape in tikz

I have written latex code for automata using tikz. I am using \path and \draw for my edges (cf figure1), and I want to have edges of the form (cf figure 2). Any thoughts on how to do it? Thanks in ...
2
votes
2answers
168 views

Adding Finite State Transducer (FST) in XeLaTeX

Hi I am trying to add a Finite state transducer in the paper, which look like this Using tikz library. I don't understand how it works. The code I am working on \usepackage{times} \usepackage{...
3
votes
1answer
77 views

Organizing automatons in boxes and add links between them

I have the following three automaton : I want to put them in boxes and add some link, such that I can get something like this: Here is my code : \documentclass{standalone} \usepackage{etex} \...
3
votes
1answer
155 views

3-labelled automaton

I need to draw a (kind of) automaton with every arc having: a "letter label" at the midpoint of the arc, and (some) having a "number label" at the beginning of the arc, a "number label" at ...
2
votes
1answer
215 views

How to add arrow from text to node?

I am currently using Tikz in order to draw a finite automata. I would need to add an arrow from a bit of text to one of the nodes of the finite automata, as shown in the example. I have tried created ...
2
votes
1answer
1k views

tikz automata start arrow customization

I have one automata FSA as below. I wish to customize the start arrow with a big dot, and keep the arrow 2pt to the target. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,...
1
vote
0answers
153 views

How to draw Timed Hybrid Petri Nets with tex?

Reading David, René, and Hassane Alla. Discrete, continuous, and hybrid Petri nets. Springer, 2010. I wonder how can one drow such thing in TeX: This is not a retirical question - a technological ...
3
votes
1answer
118 views

Making the automata diagram still better

I have drawn an automaton using the tikz library automata. I need help in refining the diagram. I am not able to : Align the edge labels (kr, ur, etc.) to the center meaning exactly between two ...
3
votes
1answer
326 views

How to group nodes of an automaton with tikzpicture

I want to obtain this result: and so far I've written this code: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{automata,positioning} \begin{document} \begin{tikzpicture}[% >=...
2
votes
1answer
85 views

Problem compiling Tikz automaton library example

This doesn't compile for me (adapted from p.521 of the Tikz manual, v3.0.0): \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \begin{document} \begin{tikzpicture}[shorten >=...
3
votes
2answers
550 views

Scaling nodes in automata in TikZ, inside equation.

I fail to scale the nodes (which is what I initially wanted) of the following \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,...
1
vote
1answer
107 views

Align in nested node

I want to create nested node in tikz but meet difficult to align Here is the code \documentclass[12pt, a4paper, oneside]{standalone} \usepackage{algorithm2e} \usepackage{pdfpages} \usepackage{...
0
votes
1answer
2k views

Another TeX capacity exceeded, sorry [input stack size=5000] [closed]

I got another error as below TeX capacity exceeded, sorry [input stack size=5000]. [...ial,right= of m0] (A1B1C1) {$A_1B_1C_1$};] Here is the code \documentclass[12pt, a4paper, oneside]{standalone} ...
6
votes
5answers
434 views

Add a second label to a path in an automaton

Friends, consider the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[shorten >=1pt,,node ...
3
votes
0answers
352 views

dot2tex: some frames are missing

I'm trying to dot2tex to render automata. For reasons I do not understand, the rendering is missing some boxes. For the following Dot file input: digraph { rankdir = LR { I0 [shape = point, ...
4
votes
1answer
806 views

Transition in Petri Net

I am newbie in Tikz, After reading this question Transitions in Petri nets I want to create this And this is my code, you can access with this link https://www.writelatex.com/read/bxwwcmmghpmw \...
6
votes
2answers
777 views

Avoid arrows crossing one another in automata TikZ

I was wondering if there is a way to avoid arrows crossing one another like they do in the figure below. It is the arrows going from "account", "pin", and "verify" I want to go around "log" so that ...
4
votes
2answers
456 views

hline inside a TikZ node

How can I draw a horizontal line inside a TikZ node? I want the name of the state to be seperated from the rest of the node. How can i achieve this? \documentclass[tikz,border=2pt]{standalone} \...
2
votes
0answers
54 views

Drawing labels on Finite State Machines with TikZ [duplicate]

I am trying to draw up some finite state machines with TikZ. However, when I compile the following code it puts my labels into the regular document rather than in the nodes. Can someone explain what I ...
4
votes
1answer
4k views

Make a TikZ automata edge pass “outside ” the automata [duplicate]

I am trying to draw a Moore machine with TikZ. This is what I have so far: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{arrows,automata,positioning} \begin{document} \begin{tikzpicture}[...
4
votes
2answers
1k views

Arrow tips in TiKZ appearing where I do not specify them

In a simple drawing like this (I use automata library): \begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto,initial text=] \tikzstyle{every state}=[draw=blue!50,very thick,fill=blue!20] ...
3
votes
1answer
475 views

Prevent oval loops when using Tikz package

I'm just starting to learn LaTex, escpecially graphics, and this is my (simplified) code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata,positioning} \begin{document} \tikzset{...
2
votes
1answer
417 views

change the angle of an edge of an automaton

I want to draw a transducer (automaton) that has the following characteristic. In every final state some edges leave those states with a letter label and don't go to any node. But i want to be able to ...
6
votes
1answer
278 views

standalone not working properly with PStricks?

I'm using Vaucanson-G to render automata (I also use TikZ, but here, I want Vaucanson-G). Because it uses PStricks although I want to compile with pdflatex, I have put all my automata in separated ...
2
votes
2answers
404 views

Labeling loops in tikz picture

I need to label the edges and the loop on this graph, but I'm having some trouble. \begin{tikzpicture} [scale=.5,auto=left,every node/.style={circle,fill=blue!20}] \node (n2) at (0,8) {$x_{2}$}; ...
6
votes
1answer
1k views

Tikz automaton placed too far to the right

So I'm having a bit of trouble drawing an automaton that I've created. I've been looking around for a while to no real avail, so I decided to just ask the question myself: when I make an automaton (I'...
6
votes
1answer
779 views

How to draw rectangle edge label in tikz?

I want to draw something like this. How to get that rectangle edge label? This is the MWE. \documentclass{article} \usepackage{tikz} \usepackage[margin=15mm]{geometry} \usepackage{calc} \...