Questions tagged [tikz-styles]

{tikz-styles} are predefined sets of options that organize how graphics elements are drawn. It is thus possible to program specific styles and reuse the styles on different objects. The {tikz-styles} tag can be used in parallel with {tikz-pgf}.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

How Can I Improve the Look of this Decision Network Made in Tixz?

So I've made a decision network using the Tikz package. Unfortunately, it is quite messy and it is hard to see where all the arrows are going. Is there a way I can improve the look of the decision ...
0
votes
0answers
39 views

problem with a tikz image,maybe the preamble?

I wrote this code to draw a graph with some arrows and stuff in it: \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,italian]{babel} \...
2
votes
0answers
41 views

positioning of the elements using Tikz (a big graph)

I'm using Tikz for first time and I'm trying to make this graph but... It's being kinda hard. 1. About positioning: I'm using relative positioning and I think that's not a good idea (look at orange ...
0
votes
1answer
34 views

draw autoencoder in latex

I want to draw the figure which I have attached. I have added the following code from https://github.com/JamesAllingham/LaTeX-TikZ-Diagrams/blob/master/2019/Neural%20Networks/Autoencoder/main.tex . ...
2
votes
1answer
37 views

How to define specific styles for each tick?

I want to change the style (such as color, font, size and shape of tick mark) for each tick. In this example I want to change the color of the numbers (2,3,4) to something different and define a ...
0
votes
0answers
22 views

TikZ mindmap's child connectors seem discontinuous with white lines

I'm doing a mindmap with LaTeX Tikz, with the code below (sorry if it seems messy or the color names that I'm using are not correct): \documentclass[preview]{standalone} \usepackage{amsmath,amssymb} \...
2
votes
3answers
90 views

little help in drawing a simple figure

I am a noob in latex, and I received a lot from you. Is there any chance someone can help me with this figure, I am totally stuck. So far I could only do this: \documentclass[a4paper,12pt]{book} \...
0
votes
1answer
35 views

Trouble Making Ellipse Shaped Tikz Node

I have the following code where Im trying to draw a graph. I want the P and M nodes to be ellipses(oval shaped), but they just come out as circles. Im aware that an ellipse is a special case of a ...
1
vote
1answer
58 views

How can I have a figure or a table in tikzset?

Here is the code for Convolutional neural network. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage[table]{xcolor} \usepackage{pifont} \usepackage{booktabs} \...
1
vote
1answer
28 views

TikZ ignores temporary overridden macro value and uses the previous one

I'm racking my brains with the strange behaviour of this simple TikZ graphic: I have the following pgf keys: \tikzset{ the name/.store in=\nodename, the name=OLD, my node/.style={ ...
4
votes
1answer
180 views

How to shorten an arrow at the end?

I want to draw the coil line in direction of the red points, but they shouldn't surpass the circle. Is it possible to just shorten the length of the arrow to the radius of the circle? My Code: \...
0
votes
1answer
65 views

Trying to replicate this Chapter Style using titlesec

I have created this style for my section titles in Lyx using the option shaded background box and defining the text as "section *" , this is how it looks in Lyx (the pink color is just the ...
1
vote
1answer
40 views

Node with circle split text alignment

I'm very detail oriented and could need some help aligning my text inside my node. In my MWE, the text in the lower part of the node is "touching" the horizontal line splitting the circle ...
1
vote
0answers
38 views

Label faces and edges in a tikz diagram

Is it possible to label the faces/edges of a drawing without specifying additional invisible nodes at the locations where we want labels? The code I'm currently working with is copied below: \...
0
votes
1answer
57 views

How to draw shapes around text in TikZ?

Please look at the following figure. The right arrow consists of an &. I want to highlight only that & by drawing a circle or square or other shapes around it. The shape will be filled with ...
0
votes
1answer
34 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, ...
0
votes
0answers
27 views

Making a tree where some nodes contain node objects

I want to create a tree using tikz. However, I have a few constraints. Most of the nodes at all the levels are standard usual nodes. However, I want to have the following at some level (say level 3) ...
3
votes
2answers
106 views

How to draw a rectangle between nodes in TikZ?

I have a beamer frame as shown below. It draws two nodes of tikzpeople and then an arrow between them. However, what I want to draw is a rectangle in the middle of the arrow and write some text inside ...
1
vote
1answer
47 views

Draw a circle on node in taxonomy or tree using tikz latex [closed]

I am new to tikz and I want to add a circle on tree node but I didn't found any solution that how to draw a circle on node. If anyone has a suggestion or working example it will be a great favour. ...
6
votes
0answers
90 views

zoombox array with adjustable width ratio

I've become an avid user of the zoomboxarray library created by Jake. Soon, one becomes aware that a fixed ratio (1:1) between the width of the subcaptionboxes containing the full image and the \...
0
votes
0answers
14 views

TikZ style expansion containing \pgfkeysvalueof

I though that I had a good understanding of how the TikZ's style handler is used/expanded but I found myself trying to figure out why this behaviour is happening: \documentclass[12pt]{standalone} \...
1
vote
4answers
49 views

How to draw arrow in a flowchart with TikZ?

I am trying to reproduce this flowchart, but I'm having trouble with the arrows. Any solution? My attempt. \begin{tikzpicture}[ node distance = 1.5cm and 2mm, process/.style = {rectangle, ...
-1
votes
1answer
61 views

How can I draw a network with labelled vertices and edges? [duplicate]

I would like to draw the graph in the picture below using LaTeX, I want it to be in nice better shape. 1.) The position of the edge labels I would like to center it in middle over or below the edge as ...
1
vote
0answers
12 views

How can the alternate bundle be used with the meter in quantikz?

The quantikz package handles the [alternate] fine when it is placed before a normal gate. \documentclass{standalone} \usepackage{braket,tikz} \usetikzlibrary{quantikz} \begin{document} \begin{...
1
vote
1answer
66 views

X-axis discontinuity for plot with two ordinate axes - not in pgfplots manual

Despite multiple ordinates and axes discontinuities appearing adjacent in the pgfplots manual, achieving both in the same plot is proving difficult. Specifically, I have the following pgfplots plot ...
0
votes
1answer
44 views

Tikz mathematical pictures

I'm trying to do a figure and the idea was triangle + triangle + point I did the triangles, but the plus signals and the point are not getting aligned. Here's what I got until now \begin{figure}[!htb] ...
3
votes
3answers
75 views

Is it possible to draw an arc by knowing the origin point, the middle of the arc and the degrees that it should span?

I am trying to connect the origin of my picture (Black dot) and the different colored dots around it by drawing and filling arcs. As you can see in the image attached, its relatively easy to do by ...
1
vote
1answer
37 views

Tikz matrix with array below and braces

I am trying to achieve a table similar to the picture below. I have almost made it, but I can't figure out how to put the row with "a_{1n} ..." below the matrix so that it matches to rows. \...
0
votes
1answer
32 views

How to change caption style and location of a vertical timeline with tikz package?

I found this code in How can you create a vertical timeline?. But I want the caption below my timeline and need to change TIMELINE 1 to Table 1. Could you help me to get this? Thank you! \...
2
votes
1answer
64 views

CRISP-DM diagram with tikz

I am trying to make the diagram of the popular CRISP-DM model. My code is below. \documentclass[tikz,border=20pt]{standalone} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsthm} \...
1
vote
0answers
50 views

What is the assign operator in tikz

I'd like to know if there is a separate assign operator like "=" in tikz for assigning results from certain operations. I know \pgfmathparse can do it through \pgfmathresult, but it seems ...
0
votes
1answer
29 views

Visualizing relations in latex

How do I ensure that the texts at the nodes or at the edges stand where they should be rather than running across the figure? I would like it if I can box the nodes. Here is what I am trying to do: \...
3
votes
2answers
63 views

How to draw bar chart from a function

I'd like to know how to draw a bar (step) chart from a given function. The code for a (continuous) chart is: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{tikz} \usetikzlibrary{...
0
votes
2answers
74 views

Tikzpicture of 3 perfect hexagons overlapping

for some university stuff I need to align 3 perfect hexagons and they have to be overlapping, see attached image below. That means, I need equal distance between every pair of nodes. Of course I could ...
1
vote
1answer
53 views

Filling out the space between two circles with dashed lines in order to create a torus like shape

\documentclass[fleqn]{book} \usepackage{amsmath, amssymb} \usepackage{amsthm} \usepackage{xcolor} \definecolor{nord0}{HTML}{2E3440} \definecolor{nord4}{HTML}{D8DEE9} \definecolor{nord5}{HTML}{E5E9F0} \...
4
votes
1answer
77 views

How to shift plot

I want to draw several plots in the same tikzpicture (I am not sure if there is other ways to do it) using plot function in tikz. The code is: \documentclass[preview,border=2pt,2pt]{standalone} \...
0
votes
2answers
92 views

How do I change the arrow length in a tikz file

Edit: I have the following code in which I want to change the length of arrows: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \...
0
votes
2answers
76 views

How can I draw this graph in the picture attached below by using tikz [duplicate]

I would like to draw this graph in the pic via tikz, could you please help me
0
votes
2answers
55 views

How to align label to the center of picture in tikz

I have a tikz code to draw four circles as follows: \begin{document} \pagestyle{empty} \tikzstyle{white} = [fill=white,fill opacity=0.4] \tikzstyle{gray1} = [fill=gray!5,fill opacity=0.7] \...
0
votes
0answers
25 views

How to access style values of a node

I'd like to access the style of a node, something like mynode.fill or mynode.color etc.. Particularly, I have this task: draw a node and grid it. But I'd like to use some node properties when I plot ...
0
votes
2answers
40 views

How to draw complicated arrows in a big flowchart and also how to maintain the size of the whole thing in an article?

I have been trying to draw a big flowchart inside my article. I have managed to draw most of it but got stuck in some places. First, I can't draw the arrow marked in red in the image. I tried to use ...
-1
votes
1answer
79 views

How to draw and shade dependent sets with legend? [closed]

Suppose $x$ and $z$ are variables in interval $[0,1]^2$. How is it possible to draw the following sets and shade them and provide legend? $c1 \quad if 0<x<1/13*(5-2sqrt(3)),0<z<1/2(2x+x^2)+...
0
votes
1answer
141 views

A Mindmap with Tikz

I want to create a mindmap by using the following. I have never created a mindmap before. I want to use \usetikzlibrary{mindmap,trees} But I think that I have a lot of things about this. Question 1: ...
1
vote
1answer
56 views

How to make a Whitehead link in the tikzpicture

I made an attempt to make a Hopf link using my own code: \begin{document} \begin{tikzpicture} \begin{knot}[ clip width=3, flip crossing={2}, ] \strand [ultra thick, red ] (1.5,0) ...
2
votes
1answer
62 views

How can I get an horizontal double loop (infinity symbol) with TikZ?

I want to get the following image, wich consists on two horizontal loops, by using Tikz (or Tikz-feynman). I know that probably I have to use the parameter "arc", but I get very confused ...
0
votes
1answer
61 views

How to put one TikZ picture on top of another?

I have two TikZ pictures on my slide, and now for me they are displayed one next to the other. I want first one to be on top of the other one. Also, I want to draw three arrows between Alice and Bob, ...
5
votes
1answer
84 views

How to mesh connect the nodes and do curvy arrows in TikZ?

I want to draw the following in TikZ: However, I'm not sure how I can draw all the arrows, and position the math equations in the places that they are shown. I have the following nodes (I used "...
2
votes
1answer
83 views

How to draw arrows below nodes in TikZ?

I want to replicate the following drawing with TikZ in beamer, with slight changes to the names. Currently, I have something like this, but it is not exactly what I want. The lines are next to the ...
0
votes
1answer
51 views

TikZ drawing lines between nodes and text above/below nodes

I want to draw kind of a protocol flow, where I have two parties, and each send one message to the other one. One arrow should be above the other one, and above both arrows there should be some text. ...
0
votes
1answer
54 views

how to create a term-life annuity timeline on LaTex [duplicate]

how to create a term-life annuity timeline like this

1
2 3 4 5
30