Questions tagged [automata]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
21 views

Positioning a state node, that is fitted to a scope inside of it, in a FSM

I am trying to draw a FSM in which some of the state nodes contain trees. To achieve this, I am using scopes as suggested in the answer to my last question. I want to position the state nodes ...
0
votes
0answers
24 views

Missing \endcsname inserted when drawing tikz automata

I am using the example provided here, and the code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \usetikzlibrary{positioning} \usetikzlibrary{arrows} \tikzset{node ...
1
vote
1answer
41 views

Edges of tree inside the state of a FSM are not displayed correctly

I am trying to draw a FSM (with \usetikzlibrary{automata}) that has trees as states. With my current code, the edges of trees inside states are only drawn incompletely. What may be causing this and ...
1
vote
1answer
139 views

How to Recreate this in LaTeX? (Unsure What the Notation is Called)

How would I produce a diagram like this in LaTeX? It's from my book, and I'd like to be able to answer the questions from the section in this format.
0
votes
0answers
27 views

Draw a path through some specified points

I want to write a small program to draw an automata using tikz, but when I finish, it seems like this: Actually, I use the way of converting Graghviz to tikz. So I would like to draw a path from (_0) ...
1
vote
1answer
116 views

How do I draw a labeled diagram like following

I believe there is help to draw the nodes and edges using Tex, but how do I draw the text on top of the edges?
4
votes
3answers
131 views

Two questions about nodes at Tikz

I saw this question How to change the size of nodes? and I wonder: If I want the nodes will be at the same size as automata nodes, what I need to fill at size? (or the scale). If I want make it ...
3
votes
2answers
104 views

Package for Finite Automata similar to this image

In some beamer slides I found several finite automata similar to this one: How to reproduce that style in Latex? Which package and configuration I should set? TikZ should be the way to go, but ...
0
votes
1answer
210 views

Tikz draw automata..

I've been able to draw the states, and the arrows between the states. It's the "labeling" around the automata I've got issues with ( I, E, P, and R).. Any ideas?
7
votes
2answers
282 views

Splitting an edge into two parts in a probabilistic automaton

I am currently trying to split an edge in an automaton in tikz. What I already have is this: I would like to get somethink like this (not in red, just to highlight): The idea is to have a ...
2
votes
0answers
44 views

Predefined box for automata

I got from my university for my paper a predefined way of displaying automata and figures in general. Now I got the problem, that they don't really adjust to the margins of the paper. I want the ...
1
vote
1answer
62 views

Unpredictable directionality of the edge label texts with tikz automata

I'm have a wired situation when I'm fine-tuning the edge position between 2 states with \usetikzlibrary{automata}. An example: \begin{tikzpicture} \tikzstyle{every node}=[font=\tiny] [ initial/....
3
votes
1answer
129 views

Is it possible to insert an image into an automata node?

I am building a little automaton and since one state is basically representing a sine wave I wondered if it's possible to have a little sine wave pdfplot or something inside the note instead of just ...
0
votes
1answer
71 views

Trace / sample run of cascade of finite state transducer

In Natural Language Processing (NLP) cascades of finite state transducers (FST) are used to model morphological processes. Now, I already know how to draw a graph illustration of an FST. See e.g., ...
0
votes
1answer
68 views

How can I make tikz daw a curve around the perimeter of a diagram?

With the following code \begin{tikzpicture}[scale=0.05,shorten >=0.25pt,node distance=1.4cm,on grid,auto] \node[state,initial] (A) {$A$}; \node[state] (B) [right=of A] {$B$};...
3
votes
2answers
336 views

How to straighten the transition relations of an automaton in TikZ?

I have the following MWE: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{arrows, automata} \tikzset{ initial text=\(\ast\), } \begin{document} \begin{figure}[h] \centering ...
2
votes
2answers
109 views

How do I change the size of a state in a FSA in tikz?

I have the following FSA: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata,positioning,decorations.text,topaths,arrows.meta,decorations.pathmorphing,quotes} \tikzstyle{every ...
2
votes
2answers
182 views

questions about drawing finite automata

two questions: first one: 1-how do i make the line going from q2 to q6 go around q5 and not throw q4 and q5? i tried [Bend left = 120] and other numbers but i won't go around it what matter i put as a ...
1
vote
1answer
7k views

Directed graph example in Tikz [closed]

How to draw a MWE of a directed graph in Tikz using arrows and automata?
2
votes
1answer
431 views

TikZ automata: “accepting by arrow” colour

I'd like to be able to achieve the following colouring of the arrow of an "accepting by arrow" node, but on a node-by-node basis, rather than globally: From this question I was able to see how to set ...
3
votes
3answers
435 views

How to make edges join in an automaton with TikZ

This is a figure from Sipser's Intro to Theory of Computation: As we can see, the transitions on the right side "join together" before pointing to another node. How may I draw such an automaton with ...
3
votes
1answer
62 views

Edges enter tangentially and not perpendicular to the node

In the following code, treat the circles as nodes. The edges should be directed to the center of the node, not meet it tangentially as is evident in the white vertex. I don't know which order I missed,...
2
votes
3answers
879 views

How to center TikZ automata?

I have the following code for an automaton, how can I put it on the page center (horizontally)? \documentclass{article} \usepackage{pgf} \usepackage{tikz} \usetikzlibrary{arrows,automata} \...
2
votes
1answer
361 views

Equilateral polygon inscribed within an ellipse in TikZ

I am using the automata library in TikZ, and I'd like to obtain an automaton with its nodes describing an equilateral $n$-polygon inscribed within an ellipse. I was trying to adapt the answer in a ...
3
votes
2answers
716 views

Surprising node positioning in TikZ automata

The following code (using the automata library in TikZ) \documentclass[11pt]{article} \usepackage{tikz,tkz-graph} \usetikzlibrary{automata,positioning} \begin{document} \begin{tikzpicture} ...
10
votes
2answers
4k views

How to make all nodes same size in TikZ?

I'm draw a TikZ figure, but I came across two problems. First one is that all the nodes have the different size due to the size of the text inside the nodes. I read in some other question here, that ...
2
votes
1answer
752 views

How to remove the circles in states of automata in TikZ?

I try to draw an LTS instead of an automata, but I don't know whether TikZ has any specific options for LTS, so I tried to draw an automata, but in LTS you don't have usually circles around the states,...
2
votes
1answer
158 views

Creating cube with tikz

I have tried building a 3D box to be something like but I ended up with from this code \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{automata} \...
0
votes
1answer
51 views

Bad positioning in tree

I wanted to use forest to build a tree, but I need each node to be the same layout as when using state from \usetikzlibrary{automata}, so I had to create the tree with the normal nodes in tikz. \...
0
votes
1answer
99 views

How to put a state in automaton in the middle in TikZ?

I'm drawing an automaton consisting of three states. Where the second state is on the right of the first state, and I want the third state to be below first and second, but right in the middle, ...
1
vote
1answer
1k views

How to separate parallel edges and remove start in automata in Tikz?

I want to draw an automata in TikZ, and I have the following code segment: \usepackage{tikz} \usetikzlibrary{automata,arrows} \begin{document} \begin{tikzpicture}[>=stealth',shorten >=1pt,auto,...
1
vote
1answer
206 views

How to arrange the automaton's states on an arbitrary path?

I need to locate some states of an automaton on a circular path, is which neither easy nor precise to do with right, above, left, left above and the other typical options for relative replacement. Is ...
1
vote
1answer
340 views

How to control starting point in tikz, automata

I am trying to create the Markov chain. And at the first sreenshot you can see what I get now. It is horrible that arrows intersect the second ellipse in the first line. I want to fix it by changing ...
1
vote
1answer
239 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
303 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}{...
2
votes
1answer
3k 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 like ...
1
vote
0answers
265 views

Drawing automata paths step by step with TikZ and \onslide command [closed]

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 ...
2
votes
2answers
630 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,...
2
votes
1answer
347 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[...
0
votes
1answer
88 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,...
3
votes
1answer
907 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
4k 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
5k 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
364 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
110 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
4k 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
405 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
126 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'...
2
votes
1answer
2k 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, ...
5
votes
1answer
3k 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) [...