Questions tagged [automata]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
51 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 ...
user avatar
  • 33
0 votes
1 answer
28 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: ...
user avatar
  • 33
1 vote
2 answers
53 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}, ...
user avatar
  • 33
0 votes
2 answers
35 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....
user avatar
  • 33
0 votes
1 answer
42 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}$}...
user avatar
  • 33
0 votes
1 answer
33 views

How to draw Automata/graph

I'm new to LaTeX. How can I make this automaton?
user avatar
  • 33
0 votes
3 answers
59 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 ...
user avatar
  • 367
4 votes
2 answers
56 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{...
user avatar
  • 367
0 votes
0 answers
37 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]...
user avatar
1 vote
1 answer
35 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, ...
user avatar
1 vote
1 answer
233 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[...
user avatar
  • 147
0 votes
0 answers
68 views

tikz automata automatic layout

I know from jflap that there are some layout algorithms for automata (most probably they are for graphs in general). Is there some package, which can do this in tikz as well? I know there is the ...
user avatar
  • 393
3 votes
1 answer
58 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} \...
user avatar
0 votes
1 answer
94 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.
user avatar
0 votes
1 answer
69 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{...
user avatar
  • 103
0 votes
2 answers
74 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 ...
user avatar
  • 69
1 vote
2 answers
92 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] \...
user avatar
  • 13
2 votes
1 answer
30 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 ...
user avatar
0 votes
2 answers
209 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 ...
user avatar
0 votes
1 answer
284 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, ...
user avatar
0 votes
2 answers
113 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 ...
user avatar
  • 367
0 votes
0 answers
57 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 ...
user avatar
1 vote
1 answer
177 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 ...
user avatar
1 vote
1 answer
46 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 %=====================================================...
user avatar
1 vote
2 answers
315 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, ...
user avatar
  • 479
1 vote
1 answer
186 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 ...
user avatar
  • 269
1 vote
2 answers
58 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[...
user avatar
  • 479
0 votes
1 answer
38 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} \...
user avatar
  • 479
1 vote
1 answer
248 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 ...
user avatar
0 votes
2 answers
278 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?
user avatar
  • 5,237
1 vote
1 answer
47 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 >=...
user avatar
  • 91
2 votes
2 answers
58 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? ...
user avatar
1 vote
1 answer
126 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 ...
user avatar
1 vote
0 answers
296 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 ...
user avatar
  • 207
1 vote
1 answer
82 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 ...
user avatar
1 vote
1 answer
161 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.
user avatar
1 vote
1 answer
273 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?
user avatar
4 votes
3 answers
186 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 ...
user avatar
  • 2,377
3 votes
2 answers
216 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 ...
user avatar
0 votes
1 answer
495 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?
user avatar
  • 1
8 votes
2 answers
699 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 ...
user avatar
  • 327
2 votes
0 answers
64 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 ...
user avatar
1 vote
1 answer
78 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/....
user avatar
3 votes
1 answer
165 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 ...
user avatar
  • 235
0 votes
1 answer
105 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., ...
user avatar
  • 113
0 votes
1 answer
104 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$};...
user avatar
  • 135
3 votes
2 answers
601 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 ...
user avatar
  • 3,039
2 votes
2 answers
606 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 ...
user avatar
2 votes
2 answers
491 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 ...
user avatar
2 votes
1 answer
1k 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 ...
user avatar
  • 3,806