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

learn more… | top users | synonyms

3
votes
1answer
50 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
42 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
67 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
88 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} ...
3
votes
1answer
49 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) ...
4
votes
1answer
49 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
38 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
168 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
56 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
41 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, ...
2
votes
1answer
95 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, ...
3
votes
1answer
141 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
126 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!... ...
1
vote
1answer
64 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
72 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
92 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
82 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
36 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
146 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
129 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
73 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
138 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
172 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
622 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} ...
0
votes
0answers
127 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
107 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
219 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
82 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
425 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
98 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
379 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
288 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
597 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
614 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
378 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 ...
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} ...
4
votes
2answers
874 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
389 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
363 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
228 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
336 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
719 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} ...
2
votes
1answer
970 views

How to draw bigger circular states and multiple transitions in automata?

I want to draw something like this. I have three difficulties: How to draw bigger circular states and dashed circular state? How to draw multiple arrows between states? (Ex. In the state "App ...
5
votes
1answer
679 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. ...
7
votes
1answer
561 views

Drawing multiple iterations of cellular automatons inline, possibly with TikZ

I want to illustrate the iterations of a cellular automaton picture-by-picture in some slides. For those not familiar with the topic, imagine a two-dimensional grid of square cells where each square ...
3
votes
2answers
2k views

TikZ picture positioning in landscape

I wrote a large game tree (using automata package) and need to display it in landscape mode. I already tried to use both textpos and geometry (newgeometry command) packages but without any positive ...
3
votes
1answer
637 views

Draw an automaton with more states and bent arrows

I want to draw this automaton: But I drew it with a bad way !! \documentclass{article} \usepackage{pgf} \usepackage{tikz} \usetikzlibrary{arrows,automata} \usepackage[latin1]{inputenc} ...