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
1 answer
41 views

Change dot shape for edge in tikz?

I would like to draw an edge between two nodes in tikz, but this edge should be both "dotted" and the dots must be a distinct shape (not dots or dashes). Currently, I am aiming at getting ...
  • 3
0 votes
1 answer
29 views

scrlttr2 same head back filled as my CV

Lately I just found the scrlttr2 class for my letters, as it has the SN option that gets all I need, in less than 5-10 seconds. But if I would like to use it to make my CV cover letter, I need one ...
  • 43
0 votes
2 answers
22 views

Align center doesn't work when text overflow in tikz

I have an example below. I'm trying to force the text to be in the center of the nodes. \documentclass[tikz]{standalone} \usepackage{mwe} % For dummy images \usepackage{mathtools} \usetikzlibrary{...
  • 217
1 vote
1 answer
34 views

Fitting a Latex Tikz figure in a page

I am trying to create a figure in latex using Tikz. But its not fitting in a page. I do not need the levels to match for different groups. \documentclass[10pt,twoside,a4paper]{memoir} \usepackage{...
  • 13
1 vote
1 answer
34 views

Changing arrowhead style

I would like to change the style of my arrowheads. I looked up and found a solution here. However, it doesn't work in my case, and I'm wondering what went wrong. Here is my MWE: \documentclass{article}...
0 votes
1 answer
42 views

Giving text as a paramater to the image

I simply modified the clock code in this link: clock Here is my code: \NewDocumentCommand{\Clock}{O{1cm}O{\large}O{cyan}O{\textbf{}}}{% \def\radius{#1}% \begin{tikzpicture}[line cap=rect,line width=0....
  • 115
3 votes
1 answer
38 views

TikZ: bad endpoint with "snake it" arc

I'm trying to draw a simple diagram of the type showed in the picture below. I need an arc with a wiggle line. Using proper decoration packages, the option \draw [decorate,decoration=snake] does the ...
3 votes
1 answer
61 views

TikZ: draw a Neural Network with two sets of outputs layers

I have the following TikZ code, which produces a Neural Network figure. However, I would like to have two sets of different output layers. The first one running from g_{1} to g_{J}, and the other ...
5 votes
2 answers
148 views

Feynman diagrams: Package pgfkeys Error: I do not know the key '/tikz/empty dot' and I am going to ignore it. Perhaps you misspelled it

I am trying to draw a specific feynman diagram using tikz-feynman. It plots it almost correctly apart from the fact that I get this error Package pgfkeys Error: I do not know the key '/tikz/empty dot'...
0 votes
1 answer
87 views

TikZ: draw two Neural Networks side by side connected by a softmax layer

I have the following code to draw a Neural Network, which produces the image below \documentclass[border=3pt,tikz]{standalone} \usepackage{amsmath} % for aligned %\usepackage{amssymb} % for \mathbb \...
5 votes
1 answer
65 views

How to fix the style of a tcolorbox based on the tcbcounter?

I would like to define a tcolorbox with an auto counter. The value of the counter will decide some part of the final style of the box. As an example, imagin that the background of the box alternates ...
  • 132k
2 votes
1 answer
117 views

figure TIKZ with a trajecotry visiting regions

I want to create the following figure with tikz with a green backgroud. This is what I ve done so far (with circles) \begin{tikzpicture} \draw (-4,-1) rectangle (4,4); % E \draw (0,0) ++(45:2) circle ...
  • 254
-1 votes
1 answer
48 views

Free shaping in tikz [closed]

I want to draw these two figure in tikz Is it possible to draw these free shapes in tikz including characters and the dots? My ultimate goal is to make a lot of them and bring one big image but if I ...
  • 115
1 vote
1 answer
53 views

Write the equation, box it and put clock under it by using tikz

I have a long equation and I want to write this equation in the following shape: I want to put some text under each big rectangle and draws the clock in tikz too P.S I have put just the first part of ...
  • 115
1 vote
1 answer
44 views

TikZ draw command mistake with two dashes and confusing results

I made a silly mistake in my TikZ code and fixed it but I still don't know why so I'll post my question here. First assume that I generate something with an arrow in background like this. \...
  • 537
2 votes
1 answer
57 views

How to set the box with different height?

There are two boxes draw with multi-part nodes of TiKZ. How to draw the lower box with more height? (the lower box should be with more vertical space) \documentclass[border=10pt]{standalone} \...
  • 439
2 votes
1 answer
83 views

Drawing homotopy sequence with tiKz

I'm trying to draw the homotopy sequence of a Serre fibration. I've been looking for how to do it and I have found how to draw a "snake diagram" but it did not work for me writing this code: ...
10 votes
1 answer
302 views

TikZ - "Hand-like" style a flow chart

I would like to imitate the following formatting. The randomness of the styles should be adjustable by indicating the seed used so that the same diagram is always repeated if necessary. I would also ...
  • 12.2k
3 votes
1 answer
107 views

Why is the text not centered inside the ellipse?

Why is the text not centered inside the ellipse? EDIT: As mentioned by pascal974, removing text width=4.3em works fine but this would cause the ellipse width too big. How can I solve that? \...
  • 537
0 votes
4 answers
86 views

How can I make the shape shadow and reduce distance between rows?

Can anyone help to make the shape shadow and also reduce distance between the first row and second row? This is the type of shadow I'm looking for. \documentclass{minimal} \usepackage{tikz} \...
  • 537
0 votes
1 answer
61 views

Drawing a control diagram with graph

I am trying to create the attached diagram. But I can't seem to figure out how to create it. My code is shown below. Could someone please help me? Thanks for your help \begin{tikzpicture} \...
  • 125
10 votes
3 answers
2k views

How can I draw a shape with overlapping regions with opacity?

Can anyone help making this shape but you can change the length, width of each sections. (and I want to be able to fill, opacity and change the length, width of it). This is just my rough drawing. I ...
  • 659
0 votes
1 answer
39 views

How to remove the protrude of the path with arrow?

From this code is from an answer to my previous post. The arrow is nice but if I want to move the arrow to the end of the path by setting mark = at position 1 there is still a protrude part which ...
  • 537
1 vote
1 answer
49 views

How to shift the current path up?

I'm trying to adap the answer here to add current flowing path to my circuit. Unfortunately, the result is not same as in the reference above. I want to shift the current path up a bit. How can I do ...
  • 537
0 votes
1 answer
43 views

How to fix these errors?

Could anyone help fixing the error and shift the table's legend up a bit? Can you make the table legend with TikZ instead of \legend? \documentclass[]{standalone} \usepackage{tikz} \usetikzlibrary{...
  • 659
3 votes
2 answers
106 views

How can I make the arrow and label red without changing the inductor color and position?

From Zarko's answer to my preivous question by adding [short,...] I can insert a current arrow on any wire section and can specify color of both label and the arrow. That is great and satisfy in most ...
  • 537
2 votes
1 answer
140 views

How to move current arrow further away from components and color it?

How can I shift the arrow more to the far way from the components and color both arrows and labels differently as in the image? (Placing the label below the arrow probably makes it look a bit better ...
  • 537
3 votes
2 answers
72 views

How can I increase the size of the open pole ocirc?

How can I increase the size of the open pole ocirc without affecting other components? There is \ctikzset{nodes width=0.15} in the manual but this would also increase the size of ocirc in the ...
  • 537
6 votes
1 answer
257 views

How to make voltage plus/minus signs bolder

How can I make the voltage plus/minus signs bolder? The setting circuitikz/voltage/american font=\boldmath works, but it is not bold enough. It would be nice if there is something which can be placed ...
  • 537
2 votes
2 answers
129 views

How to make a box like this

Please how can I make something like this in LaTeX. Kindly, help.
1 vote
1 answer
35 views

How to change path width without changing the core inductor width, or change the ratio between their widths?

How can I change the line width of the path? If I change line width from thick to ultra thick or something, the core inductor would increase significantly while the path doesn't change much. Is there ...
  • 537
1 vote
1 answer
46 views

How to set visible value inside TikZ based on calculation?

I have the following beamer frame, which has two matrices, one with 4 columns, and another with 3 columns. The first one is displayed column by column as expected, but the second one is not. ...
  • 1,144
5 votes
2 answers
171 views

How to shift voltage label down?

How can I move $V_L$ down? I checked previous posts but none of them work. Probably I missed something 1.v^=\raisebox{-10ex}{$V_L$} doesn't seem to work with negative number. 2.voltage shift = -1 ...
  • 537
5 votes
1 answer
158 views

How to make pins with a square and X inside?

I have spent one hour on this, one of my first Tikz circuit. I'm trying to reprocedure this. I haven't finished it though. I have some questions as I feel confused while making the drawing not sure ...
  • 537
0 votes
2 answers
69 views

How to uncover columns of matrix in TikZ?

I have the following beamer frame, which has a matrix with 4 columns. The point is that I want to uncover the columns one by one, and additionally somewhere above where one column ends and other one ...
  • 1,144
1 vote
1 answer
51 views

How to style text and change shape along with color of a node in TikZ?

I have a beamer frame as shown below, and it produces something like the following: The point is that I want to do the following changes: I want all the upper nodes to be the same size, and same ...
  • 1,144
2 votes
1 answer
55 views

How to specify size of the square when drawing in TikZ?

I have a beamer frame as shown below. The problem is when I draw nodes A and B how can I specify their size? I want both of them to be squares of side length 1.5cm, and the text to be centered inside ...
  • 1,144
0 votes
2 answers
61 views

How to shift a node text upwards one line?

I have two types of rectangle nodes, each hosting two lines of text inside. The first type of node must be 3 lines high, with the 2 lines of text being the first two ones (the main constraint is ...
1 vote
1 answer
45 views

How to move tikzpicture horizontally and vertically?

I have a beamer frame as shown below. The problem is that tikzpicture is a bit more down, and it covers my items. How can I move the whole tikzpicture a bit horizontally to center and also vertically ...
  • 1,144
2 votes
2 answers
60 views

How to draw circular arrow and multiline text below a node in TikZ?

I have a beamer frame as shown below. It draws two nodes of tikzpeople and then arrows between them. However, I want to draw two additional things. First I want to have multiline text below the left ...
  • 1,144
5 votes
4 answers
338 views

Changing the style of a line that connects two nodes in tikz

I have been trying to draw a quiver diagram using TikZ. I have made some progress, so far, but I am struggling to understand the following: How can I draw lines from nodes to nowhere that continue as ...
  • 193
0 votes
1 answer
58 views

TikZ: Difficulty Aligning/Rotating Text in State Diagram

I am creating my first state diagram in Tikz. It is finished, except for the text alignment. As you can see with the code I included here, I cannot figure out how to get the text off of the arrows. ...
0 votes
0 answers
28 views

How to add command \multimeasureD{}{} to the quantikz package

I'd like to add the \multimeasureD{}{} command, coming from this package, to the quantikz library. Is it possible? Heres how I would expect to use it: \begin{quantikz} & \multimeasureD{2}{} &...
0 votes
0 answers
88 views

How to make a shaded box like this picture using tcolorbox

\documentclass{jsarticle} \usepackage[dvipdfmx]{graphicx} \usepackage{tikz,tcolorbox,color} \tcbuselibrary{skins} \usetikzlibrary{calc} \usepackage{amsmath} \usepackage{color} \usepackage{tcolorbox} ...
  • 1
4 votes
2 answers
113 views

Defining line style for drawing feedback loops in tikzdiagrams

I would like to be able to draw inside a tikzdiagram a line that represents a feedback loop like the following with a command like (but not necessarily exactly like) \draw[feedback](0,0)to(-1,-1); I ...
  • 97
-4 votes
1 answer
110 views

draw diagram in latex

my question is when I replace the alphabet with a phrase gives me the error out of a compilation \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usepackage[a4paper,margin=...
  • 23
3 votes
1 answer
116 views

Create style that displays the area under the curve with pgfplots

I currently have this code: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \definecolor{linecolor1}{HTML}{3DC6F3} \pgfplotsset{integration/.style={color=linecolor1,mark=none,line ...
1 vote
1 answer
28 views

Place beamer frame title into parallelogram at top left corner

I am trying to place the title of each frame in a parallelogram that adjusts to the length of the title. I want the parallelogram to start at the same position of each frame, for example, at the top ...
  • 13
0 votes
1 answer
34 views

Inserting text in the middle of two tikzpictures

I have the following code: \documentclass[tikz, border=10pt]{standalone} \usetikzlibrary{calc, intersections} \begin{document} \begin{center} \begin{tikzpicture}[ coordinate/.style={ ...
  • 471
1 vote
1 answer
36 views

Set default font for tikzpicture environment

I want all the text in a tikzpicture environment to be sans serif by using a every node/.style={font=\sffamily} command: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \...

1
2 3 4 5
37