{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

2
votes
1answer
58 views

Problems plotting histograms as a line graph?

I would like to plot some percentages as a line graph, so I tried this: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=2.12} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
126 views

Distance between arrows and nodes in tikzcd [closed]

How can I adjust the default distance between arrows and nodes in tikz-cd? I prefer a global solution, but a local solution would also be fine. I think the default distance is a little bit too large ...
3
votes
1answer
80 views

How to plot this histograms as a line graph?

Let's say I have this histogram plot: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ symbolic x coords={a small bar,a medium bar,a large bar}, ...
2
votes
1answer
50 views

tikz mdframed environment: lemma/excursus skips pages

I used the example code under this link [TikZ mdframed environment: close box at end of page and continue on next to successfully create a nice excursus section in an a4 onesided environment. However, ...
9
votes
2answers
182 views

Good way of ignoring \draw, \fill or \node

I know three ways how to "ignore", or at least "hide" something in TikZ using [...] or \tikzset{bla/.style={...}}: [draw=none] (works like charm for \draw, but doesn't work for node contents; ...
7
votes
3answers
290 views

drawing an orthonormal frame with semi circles

Hi, I have a problem in drawing this frame, and with colors, especially using tikz programs or the hobby the program don't compile with hobby. Can anyone help me in drawing this pic? thank you. i ...
3
votes
1answer
101 views

tikz, minipage and positioning problem

I am using tikz and minipage to create a note box inside a description list. The problem I am facing is that I practically do not have any control over the positioning of the minipage and the ...
6
votes
1answer
133 views

Reproducing picture as shown in the example

\documentclass[landscape,a5paper,11pt]{article} \usepackage[utf8x]{inputenc} % utf8 encoding \usepackage[T1]{fontenc} % use T1 fonts \usepackage{amsmath} % nice math symbols \usepackage{bm} % bold ...
6
votes
1answer
68 views

Why `fill` covers `append after command` elements?

Next code is just a little example to describe the problem. I would like to add some elements (lines or text) inside a node and I would like to do it through node's .style. I've tried with append ...
1
vote
1answer
43 views

Make axis longer in 3dplot

How can one adjust the length of the axes in a plot made with pgfplots/TikZ without affecting the plot itself?
1
vote
1answer
54 views

A line crossing root-node in tikzpicture

I am facing a little problem. I have a line crossing a root-node.. How to fix it ? \tikzset{ basic/.style = {draw, text width=1.5cm, drop shadow, font=\sffamily, rectangle}, ...
-1
votes
1answer
142 views

Fractals in TikZ [closed]

How to draw a shape like below using fractals in tikZ?
4
votes
2answers
95 views

Issue with nodes using tikzstyle

I am having some trouble forming a game tree. My third layer appears to want to connect to the labels of the layer above, rather than the end nodes. Here is an image and the following is what is ...
3
votes
1answer
94 views

Change style of PGFplots 3d box

When making a 3d axis plot by means of PGFplots, one can for instance change the style of the grid with \pgfplotsset{grid style={dashed,gray}} . But when using 3d ...
3
votes
2answers
167 views

How to make a rectangle of 3 colors with Tikzstyle and Tcolorbox

I've to write a book in arabic, with a background given by an image with stripes in 2 colours in the margin of the page. I include it in the document without any problem with the package bachground. ...
1
vote
1answer
181 views

Drawing figure of a boat with the Tikz-package

I want to draw a simple figure of a boat in LaTex, does anyone know a good way to do that? Is TikZ the best package to use for this? I want it to look similar to the boat in the picture below, which I ...
5
votes
0answers
65 views

Beamer's (implicit) options regarding tikzpictures and shadows

While trying to use the torn page effect in a beamer document, I was confronted to an unexpected problem. If you just take the the code of this answer and compile it, you get: If you just change ...
6
votes
2answers
267 views

Bend arrow decorations in Tikz

This is a follow-up to my recent question Half arrows in graph using TikZ. \documentclass[tikz]{standalone} \usetikzlibrary{matrix,arrows,arrows.meta,bending,decorations.pathreplacing, ...
2
votes
0answers
35 views

how to plot a linear function with TikZ? [duplicate]

I am plotting a simple linear function. The plot looks fine, but I want to extend the function up to x=7. Anyone knows, please how to do that? My code is the following: \usepackage{tikz} %for ...
4
votes
1answer
128 views

Error “Undefined control sequence” when using [remember picture, overlay]

I am using two tikzpicture inside another tikzpicture. I want to draw a arrow from one picture to the other. For that I used [remember picture, overlay] property as shown in the code below. New Code ...
2
votes
1answer
76 views

figure 2 for Crossed Ladders Problem

I'd like to draw triangle like the following: but using the following code which produces: The code must represent the structure of the triangle, like that: ...
3
votes
1answer
77 views

figure 1 for Crossed Ladders Problem

i would like creat report for the solution of that problem http://math.stackexchange.com/questions/1124801/crossed-ladders-problem so i need to create some figurs with latex to make solution more ...
4
votes
2answers
116 views

Defining styles that provide nested, parameterized styles with TikZ

I want to draw different kinds of graphs which I want to define using styles. One particular graph has labelled nodes, and I want to be able to attach these labels using a custom key (cn). The ...
11
votes
1answer
150 views

Reference a node's color by using node name

I am trying to use a node name to reference the node's color. I am not sure if this is even possible. I have a TikZ mindmap: \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
263 views

How to create an edge style in tikz with a crossing in the middle and a label near it?

I wonder how to recreate an edge between nodes in Petri Nets using tikz that would look like this: I played with different options yet cant get it wright. A minimal code sample I am trying to ...
7
votes
4answers
337 views

Drawing a circle with an angle using TikZ

I'm trying to re-create this picture using TikZ: I, however, have a very limited understanding of TikZ, and, despite trying to learn how to draw this for an hour or so, have gotten nowhere on my ...
3
votes
1answer
82 views

Enumerating tikz-cd diagrams

How can I enumerate diagrams made with tikz-cd? I mean, not only enumerate them but enumerate in order to quote them later in the document.
3
votes
1answer
579 views

How to change line style while drawing in Tikz

I'm trying to draw a dotted line from A to B and a straight line from B to C. If I use two draw commands, then there is an obvious break in the line, because I use rounded edges. Just using one draw ...
3
votes
1answer
133 views

Changing Font Size of Node

I am new to TkiZ. I am trying to decrease the font size of a node locally. Tried to read the below (Page 224): http://mirror.utexas.edu/ctan/graphics/pgf/base/doc/pgfmanual.pdf The changes are not ...
4
votes
2answers
101 views

Overruling global node style in matrix

I want to build a matrix of several nodes of different types. In my example there is a matrix containing two "modules" and one "label". For convenience I wanted to use matrix of nodes with ...
1
vote
0answers
57 views

Input/Output Nodes - Specification and Description Language

I am new to TkiZ. I am trying to create the below Input and Output nodes of Specification and Description Language Is there an existing \node or \tikzstyle to achieve the above in the TIKZ ...
1
vote
1answer
99 views

How to create a doublecircle in tikz?

I want to create a circle in circle (doublecircle) style like this: . \tikzset{ place/.style={ circle, thick, draw=black!75, fill=white!20, minimum ...
3
votes
3answers
133 views

Change the distance of text lines in tikz nodes with Beamer

I have a tikz tree that doesn't fit on the slide. The theme and the linespread is given, so I only want to change the line distances of the text in the tikz nodes. But nothing worked for me :( ...
2
votes
1answer
138 views

Improve flow chart template with rectangle split

I'm try to build a flow chart template: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amsfonts,amssymb,graphicx} \usepackage[left=2.00cm, right=2.00cm, ...
5
votes
1answer
80 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
3
votes
2answers
298 views

Tikz \draw as part of style (Drawing something inside each node of certain type)

I'm currently learning how to use Tikz and was looking into drawing automata (specifically Simulink-like state models). Currently, I'm making a style that should reduce my efforts to a minimum when ...
6
votes
3answers
443 views

How to get an arc to sit exactly on a circle?

I have created the following figure: With this segment: \documentclass[a4paper,12pt]{article} \usepackage{parskip} \usepackage{amssymb} \usepackage[fleqn]{amsmath} \usepackage[svgnames]{xcolor} ...
3
votes
1answer
46 views

How to set node on line on a different layer than line?

Is it possible to declare, that node on lines are on the main layer regardless that lines are in background layer? For example: With the following MWE: ...
2
votes
1answer
233 views

Define text color for all tikz nodes of a particular type

I want a particular node type in tikz to have a specific text color. Currently, I have defined a macro for text color. But I need to keep using that macro at every node. Is not there a better ...
4
votes
2answers
176 views

Draw matrix with specific style in TikZ

I'm wondering how could I draw a matrix like that: I know how to draw a simple matrix: \documentclass[journal]{IEEEtran} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usetikzlibrary{matrix, ...
4
votes
2answers
146 views

Orthogonal shift of a line

I want to shift a line by some amount in some direction. Here the direction is fixed, orthogonal to the line. One difficulty is that the line should be drawn like it would be at the origin position. ...
4
votes
1answer
170 views

I want Tikz template for taxonomy Tree like the below mentioned image.

I could not find any Tikz template to fit in the same amount data like the below image. I did not get the same kind of template also. Am trying to find if there is any other alternative or same kind ...
2
votes
1answer
115 views

TikZ: specify label position in edge style

I am writing many small graphs, using TikZ's graphs library, which often include loops. I do not like the way the default loop left or loop right options look, so I have made my own style, called ll ...
7
votes
1answer
121 views

How to fill an area with fading color?

I want to fill an area on a x--y plane with fading color, but have no idea how to do it. I know how to fill shapes with color, but not how to do it when the area is not a well defined shape. Let me ...
1
vote
2answers
44 views

how to join lines in a diagram using tikz?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{shadows,positioning,shapes,arrows,decorations.markings,arrows.meta} \tikzset{ box/.style={draw,fill=white,rectangle,minimum ...
2
votes
0answers
166 views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
6
votes
2answers
178 views

Why does \ifnum not work inside of TikZ style definitions?

I'm trying to write some conditional TikZ styles. This has been tried here before, but I think never in a completely satisfying way. My try is this: \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
115 views

Options for tikzcd

I like to pass options for a specific column (or row) in a tikzcd diagram. The obvious choice column x/.style=... does not work. I think the problem is connected with the hierarchy of styles. Code: ...
5
votes
1answer
129 views

Tikz “none at all” style

I'm creating a customisable TikZ pic where I want to enable or disable certain parts of it (e.g. some labels). Is there a style that I can pass to a node, pic, path or so that doesn't visibly draw it? ...
3
votes
1answer
124 views

TikZ mdframed environment: close box at end of page and continue on next

I used the Excursus environment as a template to create my own box like this: \usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed} \newenvironment{boxtype1}{% ...