Skip to main content

Questions tagged [automata]

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

Filter by
Sorted by
Tagged with
4 votes
2 answers
61 views

Control positioning of Tikz label of an edge

Here's my code: \usepackage{tikz} \usetikzlibrary{automata, positioning, arrows} \tikzset{ ->, % makes the edges directed >=stealth, % makes the arrow heads bold node distance=3cm, % specifies ...
RatherAmusing's user avatar
2 votes
0 answers
34 views

Can TikZ/Graph do automatic placement taking into account edge label length?

I wish to automatically draw a graph, with labels of diverse lengths on the edges. For it to be pretty, I need that: If a node is automatically placed below another, then the edge label length ...
Michaël's user avatar
  • 1,434
3 votes
1 answer
73 views

Draw edge between same node such that there is no overlap

How can I adjust the path \path (a) edge [edge, loop left] node {$1_a$} (a) so that both the beginning and end of the path are near the node, but not so near that there is an overlap between the node ...
Idr's user avatar
  • 157
2 votes
1 answer
159 views

Antiparallel arrows between nodes

I am attempting to draw state machines in which two states have input that shifts the current state to each other. The following representation using bent arrows does not suit my application: \...
username's user avatar
4 votes
2 answers
143 views

Change accepting states using automata and overlay-beamer-styles without having nodes shift around

I am trying to draw an automaton using TikZ with the automata package that I am modifying from slide to slide with overlay-beamer-styles. One of the things I am changing is which nodes are marked as ...
Kalobi's user avatar
  • 43
-2 votes
1 answer
218 views

Flow diagram Latex Code [closed]

Can someone please help with a code that will draw this flow chart diagram in Latex.The image is given the picture below.
Kishoyian Duncan 's user avatar
0 votes
2 answers
56 views

Nested tikz picture

I want to have the following tikzpicture \begin{tikzpicture} [ node distance = 5cm, on grid, auto, every loop/.style={stealth-}] % State q0 \node (q0) [state, initial, ...
user1868607's user avatar
1 vote
1 answer
58 views

Edge endpoints when automating node connections with Tikz/automata

I'm trying to draw a Markov chain. As I have 11 states, I tried to automate the declaration of states as well as the edges in a for loop. Here is my MWE: \documentclass{standalone} \usepackage{tikz} \...
Akif YAZICI's user avatar
0 votes
1 answer
84 views

How to set edge label style in latex using tikz?

The edge caption style of this automaton is really fancy, yet I can't figure out how to use tikz to reproduce it, any help would be greatly appreciated! I could only use tikz automata library to draw ...
GreenieQwQ's user avatar
3 votes
1 answer
175 views

Squiggly transition in automaton

I need to make an automaton, that looks like this: I can only do the following: \usepackage{tikz} \usetikzlibrary{arrows, automata, quotes, positioning } \begin{...
McDuck's user avatar
  • 63
6 votes
3 answers
363 views

Make edges parallel

The edges are matching. I would like them to be parallel horizontally. I tried changing the value of the yshit parameter, but it didn't work. \documentclass{article} \usepackage{geometry} \...
B612's user avatar
  • 153
0 votes
1 answer
44 views

How to make edges parallel

How can I make the edges between the vertices {q_1,q_3} and {q_1,q_2,q_3} parallel? Code: \documentclass[tikz,12pt,border=1mm]{standalone} \usepackage[brazil]{babel} \usepackage{tkz-euclide} \...
B612's user avatar
  • 153
1 vote
3 answers
81 views

Reposition graph edges

How can I place the loop of vertex {q_1, q_2, q_3} and vertex {empty set} above and below these vertices, respectively (as in the drawing below), instead of on the right? This is my .TEX: \...
B612's user avatar
  • 153
-1 votes
1 answer
130 views

How to do graph in LaTeX [duplicate]

Does anyone know how to make this graph in LaTeX?
B612's user avatar
  • 153
0 votes
1 answer
129 views

How can I make this figure fit on the page, without going over the margin?

\documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, fit, positioning, quotes} \begin{document} \begin{...
B612's user avatar
  • 153
0 votes
1 answer
156 views

How to change vertex style

I wanted final states to be the same size as non-final states. The only difference between finals and non-finals should be the existence of the double circle in the final states. Does anyone know how ...
B612's user avatar
  • 153
0 votes
1 answer
156 views

Change the style of graph vertex

I want to change the style of the vertex. I want all the black filled vertex to be named vertices. And all the vertices with double circles are now named as well. That way: This is the output I had: ...
B612's user avatar
  • 153
2 votes
3 answers
122 views

How to position the edges of the automaton\graph

I got this: But I would like to get that: This is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1.102pt}, ...
B612's user avatar
  • 153
0 votes
2 answers
127 views

how to change the angle between the edges of the automaton/graph

I would like to get this: but this is what i got: this is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1....
B612's user avatar
  • 153
0 votes
1 answer
106 views

How can I draw this Automata with Tikz?

I want something like the figure: But what I got is: this is my code: \begin{center} \begin{tikzpicture}[node distance=1.5cm] % position the nodes a..d \node (a) [] {$\textrm{I}$}...
B612's user avatar
  • 153
0 votes
1 answer
179 views

How to draw Automata/graph

I'm new to LaTeX. How can I make this automaton?
B612's user avatar
  • 153
0 votes
3 answers
72 views

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 ...
sorry's user avatar
  • 417
4 votes
2 answers
138 views

Why is this tikz-picture not compiling

I am new to Latex and especially to Latex-Beamer. I try to make this tikz-picture compile, but it does not work. Would anybody be so kind to help me fix it? Thanks in advance! MWE: \documentclass{...
sorry's user avatar
  • 417
0 votes
0 answers
762 views

Drawing Finite State Machines

I want to enlarge the arc from state Q2 to Q9, any help? This is the code. Thanks. \node[thick, state, initial] (A){$q_{1}$}; \node[thick, state] (B) [right of=A]{$q_{2}$}; \node[thick, state]...
Miguel JV's user avatar
1 vote
1 answer
42 views

Automata edge arrows that go straight to the left do not appear properly

Simply put, If I make an automata with the following code: \begin{tikzpicture} [node distance = 2cm, on grid] \node (q0) [state, initial, initial left, initial distance=1.5cm, ...
user3322166's user avatar
1 vote
1 answer
1k views

Multiple line label on a tikz automata loop edge

In the following Turing Machine graph, the transitions $b \to a, R$ and $a \to a, R$ occlude each other. How can I write them to two lines, so that both can be seen? Minimum MWE: \documentclass[...
O. Altun's user avatar
  • 147
3 votes
1 answer
130 views

Unwanted arrowhead at the end of a tikz underbracket

I'm trying to reproduce this automata: This is what I have managed to achieve, so far: And here's my MWE: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \...
LukeTheWolf's user avatar
0 votes
1 answer
244 views

Drawing Transition table

I want to draw the following diagram Yellow colour can be avoided. I have no clue how to draw this. I have not used \tikzpicture before.
Manjoy Das's user avatar
0 votes
1 answer
246 views

When drawing FSM automata, tikz seems to eat the arrows

I have the following automata, and notice that some of the arrows have been eaten by Tikz for some reason. I've drawn where I expected to see arrows in red (roughly). The code is as follows: \begin{...
a6623's user avatar
  • 103
0 votes
2 answers
155 views

Tikz - Overlapping nodes in binomial tree

I am new to Tikz, and I want to draw a binomial tree with the tikz libary automata. Other questions suggested the use of the library positioning, and to use the syntax right=of (node) instead of right ...
Tamar's user avatar
  • 69
1 vote
2 answers
279 views

Tikzpicture double bend left nodes

Is there any possible way to make double bend arrows from one node to two other nodes? I now have: \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm,semithick] \...
Julius's user avatar
  • 13
2 votes
1 answer
100 views

Arrowhead won't appear

I've drawn the following DFA but for some reason, the arrow connecting node 4 to node 3 will not show an arrowhead. Interestingly, if I delete the edge at the other side from node 3 to node 4, the ...
trieasyboid's user avatar
0 votes
2 answers
729 views

Using schwa in math mode

I am working on an automata and am trying to use \textschwa or just \schwa in math mode and all I end up getting is an ampersand. Anyone know how to achieve this in math mode? the code I am using is ...
Hatsuma's user avatar
1 vote
3 answers
392 views

How to draw finite state automata in TikZ?

I am trying to draw the following diagram in tikz. The code I am working on is: \documentclass {article} % example taken from % http://www.guitex.org/home/images/doc/GuideGuIT/introingtikz.pdf \...
Praveen's user avatar
  • 241
0 votes
1 answer
857 views

Changing color of initial state in tikzpicture automata on a per-node basis

When using the initial state with the automata drawing library for the tikzpicture environment, I have been unable to find a way to change the color of the initial state on a per-node basis. That is, ...
Gigi Bayte 2's user avatar
0 votes
2 answers
528 views

How to adjust edge description for automata and other tiny questions

I am drawing an automaton using tikz but unfortunately I encountered some problems. So far it looks like this: . What I dislike is that -two of the transition descriptions are two close together (I'd ...
sorry's user avatar
  • 417
0 votes
0 answers
98 views

Tikz: Padding in finite automata nodes

If I write in the code of a state diagram of finite automaton: \tikzset{every state/.append style={shape=ellipse, inner sep=0pt}} Then my state nodes look like this: I would like to get rid of nearly ...
nicnajder's user avatar
2 votes
1 answer
569 views

Adjusting the ring inside accepting state, tikz's automata library

Long story short, I have decided to make my LaTeX documents needlessly pretty. I achieved this by using \xcolor to define nord colors then used \color and \pagecolor to adjust the colors of the whole ...
Crimson Crusader's user avatar
1 vote
1 answer
93 views

Newline in tikzpicture

How do I get the edge from q5 to qA to break into two lines? I looked at other posts and nothing seemed to work. Edit: Added macros and formatting %=====================================================...
Louis Ye's user avatar
1 vote
2 answers
561 views

Picture push down automata mecanism [closed]

I am trying to type the attached picture. Below is the code I have. I have downloaded it somewhere, tried to adapt it, but could not. Thank you. \documentclass[12pt]{book} \usepackage[paperwidth=16cm, ...
cProg's user avatar
  • 591
1 vote
1 answer
442 views

How to draw the Moore diagram

I'm beginner in tikz package. Recently, with help of this site, I learned to build basic diagrams (graphs, trees), but I still don't understand these constructions the way I would like. I'm trying to ...
Lucas's user avatar
  • 269
1 vote
2 answers
82 views

Automata in logical relation

I am trying to write a logical expression involving 2 automata as shown on the attached picture. But I am having the following error message: Use of \a doesn't match its definition \documentclass[...
cProg's user avatar
  • 591
0 votes
1 answer
42 views

Automata: nodes vertically centering

How can I vertically center nodes 1 and 6, as shown on the picture below? Thank you. \documentclass[12pt]{book} \usepackage[paperwidth=16cm, paperheight=24cm]{geometry} \usepackage[T1]{fontenc} \...
cProg's user avatar
  • 591
1 vote
1 answer
590 views

tikz, automata, forcing size of self-loops to be identical

On the following picture that uses the tikz automata library, I would like all self-loops to have the same size (i.e. namely the size of the self-loop attached to the rightmost-lower node labelled by ...
Nicolas Beldiceanu's user avatar
0 votes
3 answers
638 views

Ti*k*Z, automata: Change decoration of initial state?

I'm partial to marking the initial state of my automata with a '>' (somewhat larger) pointing at the state. I find the "initial -->" distracting. Is there any way to change the default?
vonbrand's user avatar
  • 5,551
1 vote
1 answer
69 views

Is it possible to put the two values aligned on top of each other? \usetikzlibrary{automata}

This looks good, but just out of curiosity. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,automata} \begin{document} \begin{tikzpicture}[->,node distance=1cm,auto,shorten >=...
Libreik's user avatar
  • 91
2 votes
2 answers
92 views

Automate without initial, nodes on 3 lines

New to LaTex trying to redraw some diagrams Any ways of doing that? Is automata a way to go? How do i set the node positions with automata nodes? And how to draw lines like these withh description? ...
Rack Cloud's user avatar
1 vote
1 answer
262 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 ...
flugdrachen's user avatar
1 vote
0 answers
345 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 ...
The R's user avatar
  • 227
1 vote
1 answer
86 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 ...
flugdrachen's user avatar