{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}.

learn more… | top users | synonyms

0
votes
1answer
80 views

A Good way to draw technical Diagrams

I'm currently writing a research paper. For that I need to create some diagrams like the one given below(it is taken from an existing paper). It's not clear so I wanted to make my own figure. I tried ...
3
votes
1answer
73 views

Vertex labelling in TikZ

I want to be able to label the vertices of a graph arbitrarily, i.e., not just by letters or numbers, but by whole formulas. For example, I can't be bothered to rename the vertices in the text, so I ...
5
votes
2answers
131 views

Tikz: failure to fill

I've just gotten into the tikz package, and am using tikzpicture to do some work with graphs and complexes on them. I want to be able to fill in certain areas of the graphs. I've found what I want, ...
2
votes
1answer
26 views

Increase the distance of a tikz path edge

So, I made a graph in Latex, but I can't get the edges of the nodes to elongate themselves in any way. The weights of the edges are hard to read as they currently are. How can I fix this? Below is ...
5
votes
2answers
77 views

Game tree needs adjustment

I've created the following game tree: I want it to look like this and I'm stuck: (Apologize in advance for the ugly drawing!) This is my code: \documentclass[12pt,twoside]{book}%{book} ...
3
votes
1answer
83 views

Animated proof of quadratic formula

I have the following code earlier posted by Alenanno. I want to give an animated proof of quadratic formula. My question is: I want to improve the code so that when I am multiplying with $4a$, ...
0
votes
1answer
91 views

animated proof in latex [closed]

How can I make something like this? I would prefer tikz.
0
votes
0answers
11 views

Changing font and alignment in a tikz, forest organizational chart

I am trying to change the font and orientation of the following organization chart - I started with stackexchange help to create it (here - Third Level Organizational Chart using Latex Tikz) and ...
6
votes
1answer
68 views

Tikz path starting from inside a node

How can I have an arrow, which goes from an outer node to an inner node, leave the outer node from the inside of its border. In the MWE below the arrow leaves the outer blue node's border from the ...
4
votes
1answer
74 views

Plate captions overlapping

I am trying to draw a probabilistic graphical model using BayesNet, a TikZ library for drawing graphical model in latex. I have tried to insert plates caption - Tasks i, Classes c, workers j, ...
3
votes
1answer
61 views

How to split tikz rectangle by half with different colors and text lines

So I have tkiz style: \tikzset{ state/.style={ rectangle, rounded corners, draw=black, very thick, minimum height=2em, inner sep=2pt, text centered, ...
1
vote
1answer
52 views

Modify Fancy Chapter Heading to show Chapter Name

In the code given below, I wanted to have the chapter names show up instead of the numbers just for the first two chapters. This code is building from the code found here. I am writing a "Problem" ...
4
votes
2answers
77 views

Tikz: Is it possible to change line style within same \draw command? [duplicate]

Is it possible to change the line style in a tikz figure in the same \draw command? I am looking for something like: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} ...
5
votes
1answer
65 views

Greek letters and tikz

I have to insert greek letters in place of V_0 and C_t but nothing seems to work. Any hint? \documentclass[11pt,a4paper]{article} \usepackage{tikz} % tikzstyle è deprecato: % ...
5
votes
2answers
56 views

Change Tikz style dependent on foreach counter value

I have a recursive macro that relies on a counter within a tikz \foreach loop. What I have not achieved is how to get a tikz style (what I've called fillMod) to be dependent on the counter value (i.e. ...
3
votes
1answer
37 views

nodes inside an ellipse

I would like to draw nodes inside those two ellipses(and then draw edges).I would also like some of the vertices to be within another elipse The code is \begin {center} \begin {tikzpicture} \tikz ...
0
votes
1answer
110 views

Is it possible to make such an image with Tikz? How?

I'm wondering what's the best way to render this image width the dashed line and with angles between normal lines and dashed lines. And also Is there a way to quickly rotate the tikz resulting image ...
0
votes
0answers
42 views

Draw type-theoretic induction principle for S1

I'm slightly tired from unsuccessful attempts in drawing this one picture. I'm a rookie in TIKZ. Perhaps I can't observe my mistakes.
5
votes
2answers
184 views

Italics in LaTeX (e. g. when using Tikz)

\bfseries is for bolding but what is for italics in tikz? Example where italics needed for "Not SP graph". \begin{tikzpicture}[scale=1] \tikzstyle{every node}=[draw, circle, fill=white, inner ...
5
votes
1answer
357 views

How to draw this smart diagram?

I am drawing a diagram having three major steps say A,B,C. I figured out that Smartdiagram gave a neater look(also colorful),than using Tikz. \smartdiagram[circular diagram:clockwise]{A,B,C} How ...
0
votes
1answer
74 views

How to add arrow to connect between node Tikz?

I have the block nodes as below figure. I want to connect them by arrow, with bold font. Could you help me to look at my code and update them? Thank you so much This is my current result This is ...
1
vote
0answers
46 views

Keep box height around Chapter headers fixed

in the code given below, because of the text that I chose to use, the box around the chapter header changes: How can I keep the box around all the chapter headers at a fixed height and centered ...
2
votes
1answer
97 views

How to draw the following automaton

How does one draw the elliptical blue background and the nodes? I am quite lost here.
0
votes
1answer
48 views

Color two columns separately in a matrix

From the solution code found here, I wanted to be able to also have a colored box around the x4 column like this: I also looked at the solution posted here that gives different colors in ...
3
votes
1answer
46 views

TiKZ: Make parts of a smooth cycle a different color

I'm trying to color parts of a cycle in a different color than the rest. In the code below, I would like the red curve to lie on top of the underlying black curve. Is there a way to do this with ...
3
votes
1answer
64 views

How to set a code block using \tikzset

I always find my self doing a lot of repetition with fixed TikZ code blocks that I have to rewrite over and over again. My question is that, is it possible to create a block of TikZ executable ...
3
votes
1answer
40 views

Change style of individual path labels?

I am working on creating a path diagram using Tikzedt. The problem I'm running into is that the path labels on these lines that are very close to each other are overlapping with the other lines, ...
1
vote
1answer
80 views

3D figures in LaTeX

Can you advise me some good packages for drawing this one stuff: And I'd like to ask for future, what is the most effective method for drawing 3D plot?
1
vote
1answer
105 views

TikZ node distance

I have a question about proper spacing of paths and nodes. I want the following picture: And I am currently using this code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows, ...
1
vote
1answer
59 views

Tikz ER Diagram: Relationship between one entity

I'm drawing a simplified ER model with TikZ. This is the code so far: \documentclass[12pt,a4paper,twoside,openright]{report} \usepackage{tikz} \usetikzlibrary{er} ...
1
vote
2answers
47 views

pgfplots: tikzpicture within tikzpicture

I like to use tikz nodes to position plots next to each other. However in the following MWE the axis seem to be shifted to the left. \documentclass{book} \usepackage{pgfplots} \begin{document} ...
6
votes
2answers
119 views

TikZ custom “to path” with curved edges

I am trying to define a style that sets to path such that a “curvy rectangle” (manifold representation) is drawn when I put \draw (0,0) to[manifold] (5,3). I have manually made the shape by ...
3
votes
1answer
49 views

Lines not ending on nodes with tikz

I have three nodes: \draw (4,2) node(p1)[label={[label distance=0.9cm]0:$$}]{}; \draw (5,3) node(p2)[label={[label distance=0.9cm]0:$$}]{}; \draw (6,4) node(p3)[label={[label ...
1
vote
0answers
40 views

Indentation issues with highlighting cell using tikzmarkin

I am trying to eliminate offset/indentation issues when using tikzmarkin to highlight regions of a table. \documentclass{beamer} \RequirePackage{booktabs,colortbl,caption,tabularx,chngcntr, tikz, ...
4
votes
1answer
67 views

Why can’t I use “execute at begin node” together with “align”?

I want to design a tikz style that will modify a node content according to some function of mine. As suggested in an answer to the original question, I can use the “execute at begin node” key for ...
3
votes
0answers
82 views

Make an organisation Chart on Latex

I am looking to make an organisation chart on latex for a group project. I have never done this before, and I saw that I can use the Forest package or using tikz. My coworker, made the chart using ...
0
votes
0answers
35 views

Approaches to automatically scale figures

I am trying to come up with a general rule of thumb to scale figures such that their vertical size and horizontal size does not exceed a certain limit (assume 300pt). The monkey patching way to do ...
6
votes
1answer
83 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
3
votes
3answers
69 views

How to conditionally color nodes in a grid with a style

I have 3 styles called S1, S2 and S3. I want to conditionally color the nodes. I tried the \ifnum with no luck. You can see the single line of code that has been commented out. That is what I ...
4
votes
1answer
48 views

How to pass style options to \pgfextra nodes

According to this answer, I created a style for drawing rectangles with double lines. The problem is, if I pass options like fill=color or thick to the node which I create with the style, these ...
4
votes
2answers
51 views

Specify top/bottom color of a shade style in TiKz

I just want to modify the color of a shaded node. In the docu I found only an example of right color=...;left color=.... But per default the color of a shaded node goes vertical. And I don't want to ...
2
votes
2answers
136 views

Area diagrams in Tikz

Introduction: I'm currently doing some research in the field of continuum percolation, and I need to create relevant diagrams according to the following specifications: The diagram consists of ...
3
votes
1answer
82 views

Tikz local style within subfigure

I've many "tikzpicture"s which are part of a "subfigure" environment. I don't want to use a global "\tikzstyle". I can write them in each of the "tikzpicture"s. This creates time, space, and editing ...
3
votes
1answer
93 views

Front Cover for document

I was attempting to get an effect similar to this cover that is found here: I started with the code found here that draws a grid with colors. How can I go about completing the code to get the ...
4
votes
5answers
642 views

doubly linked list tikz

I want to draw two doubly linked lists and I know that I can use the tikz package. But I don't know how to. Could anyone show an example code piece for the following doubly linked list? I found some ...
1
vote
1answer
46 views

Caption in a tikzpicture drawing

I have this LaTeX: The \caption line at the end breaks the compilation. How could I make this work? Thanks \begin{center} \begin{tikzpicture}[scale=0.2] \tikzstyle{every node}+=[inner sep=0pt] ...
5
votes
1answer
139 views

How to define a TikZ style for a `matrix of node keys`?

I would like to define a style matrix of node keys such that \input tikz \usetikzlibrary{matrix} \tikzpicture \matrix [matrix of node keys] {red,node contents=a & blue,node contents=b \\}; ...
1
vote
0answers
86 views

shading bent tube

want to build a tube-system.Have tried top, bottom, middle color.But how to fill the bent tube? \documentclass[tikz]{standalone} \begin{document} \tikzset{ pics/.cd, % tubeh tubeh/.style={ ...
4
votes
1answer
93 views

Why is my tikz-figure rendered flushed to the right off-centre?

Here is the code for my graphical model: \documentclass{standalone} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit} \usetikzlibrary{shadows} ...
3
votes
2answers
171 views

Draw a special box with tikz

By inspiring from that nice code of that question I would like to draw something like that but with my tired i just could draw this Output: \documentclass{article} \usepackage{geometry} ...