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

learn more… | top users | synonyms

6
votes
1answer
2k views

How to make different shape nodes in automata in TikZ?

This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,positioning,automata} \begin{document} \begin{tikzpicture}[shorten >=1pt,auto,node distance=7 ...
3
votes
2answers
67 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] ...
3
votes
1answer
82 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} ...
1
vote
1answer
53 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? ...
2
votes
1answer
102 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 ...
6
votes
2answers
133 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} ...
2
votes
1answer
935 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} ...
3
votes
1answer
311 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) ...
8
votes
1answer
3k views

How to change the position of the initial text in TikZ automata?

It seems PGF manual for v1.18 doesn't cover the case on how to change the position of the initial text relative to the initial transition. Accoring to the PGF manual section 19.3 the parameters of ...
5
votes
1answer
156 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
43 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
483 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
86 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: ...
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, ...
1
vote
1answer
201 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
421 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) ...
1
vote
1answer
83 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 ...
2
votes
1answer
175 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!... ...
3
votes
1answer
127 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 ...
6
votes
3answers
2k views

TikZ - game tree representation with continuum of moves

I have been using TikZ to draw game-trees for my game-theory lectures (mostly using the automata package) but I could not figure out how to draw an arc across the edges the leave a given node. When we ...
2
votes
2answers
185 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
85 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
41 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
225 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
158 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} ...
3
votes
1answer
76 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
148 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
200 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 ...
0
votes
0answers
146 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
117 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
300 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
517 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} ...
1
vote
1answer
106 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} ...
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
410 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
337 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
771 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
729 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
431 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} ...
10
votes
2answers
7k views

How do you get two lines between nodes that have paths to each other instead of a double ended line? [duplicate]

Possible Duplicate: Double arrow in TIKZ? \begin{tikzpicture} [->,>=stealth',shorten >=1pt,auto,node distance=1.5cm,semithick,font=\tiny] \tikzstyle{every state}= ...
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] ...
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 ...
3
votes
1answer
3k 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} ...
3
votes
1answer
448 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} ...
2
votes
1answer
414 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
258 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
381 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}$}; ...
5
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 ...
5
votes
1answer
752 views

How to set a default parameter for all edges

Question How do you set all edges in an automaton to have the additional parameter double? This should be easy, but I can't find the solution here or in the tikz/pgf manual or anywhere else. ...