{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

4
votes
1answer
656 views

Arguments of tikzset inside a beamer document

I am trying to use tikzset with an argument in a beamer document, and I am having an error I do not understand. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{My try} ...
2
votes
0answers
144 views

Preserve node and font size when scaling [closed]

I am using tikz for many pictures in my thesis, but I am not really clear on how to scale the pictures to fit my needs... I generally use "\node"s which I connect with line segments. I draw and fill ...
1
vote
1answer
607 views

How to write above a line in a tikzpicture

How could I write just above the blue lines of this tikzpicture? \begin{tikzpicture}[ scale=5, IS/.style={blue, thick}, LM/.style={red, thick}, axis/.style={very thick, ->, ...
9
votes
2answers
495 views

How can I improve those voltage annotations

In France, we draw an arrow above or below a dipole to represent the potential difference between its two poles. I'm trying to automate this using the ideas of the tikz circuits library (not ...
7
votes
5answers
1k views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?
3
votes
1answer
121 views

Options passed to a path inside insert path style

Is there a way to give to the \path (inside mypath style) the options given to the \draw and \fill commands (ideally, the path should be drawn and red then filled and blue) ? ...
9
votes
1answer
249 views

Setting weekend background color

I'm making a calendar in LaTeX with tikz-pgf and I would like to set to gray the background color for the weekend. In the examples I found on the Internet and in the documentation, I can see how to ...
3
votes
1answer
170 views

whitespace after heading when followed by \begin{tikzpicture}

The first chapter section of a book to use tikz ended up placing a great deal of whitespace after the section heading. I've tried \vspace adjustments, but it changes all the vspaces between \begin ...
3
votes
2answers
343 views

anchor arrow start position

Attached below is the minimum working example. I would like the arrow to end at the west anchor of the node "operation". I tried anchor and few other possibilities but they don't seem to affect the ...
10
votes
2answers
606 views

Hyperlinked nodes in TikZ mindmap

I am trying to make a small mindmap such that some of the child nodes are hyperlinked. I tried to follow the advice given here, about the new node style hyperlink node, but the following MWE compiles ...
14
votes
1answer
2k views

Tikz /.style with two parameters

How do I pass two parameters to a tikz style? I would like to do something like this: \begin{tikzpicture}[ transformer/.style={draw, cylinder, gray!80, rotate=90, minimum height=#1, minimum ...
6
votes
2answers
622 views

Nested styles in TikZ

I have: \pgfkeys{/TransformerNetwork/.style={ transformer/.style 2 args={draw, cylinder, gray!80, rotate=90, minimum height=#1, minimum width=#2}, }} And then: ...
4
votes
1answer
494 views

How to make a full equation with tikz?

I am using this solution here to make long dashes within a matrix, and it is working well. The code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} % possible to customize here ...
3
votes
1answer
1k views

How can I set the node size for a TikZ image to be the same for all nodes?

I'm attempting to draw a Kripke structure in TikZ and while I'm successful for the most part, I'm not quite satisfied with the result. Here is my preamble: \documentclass[10pt,letterpaper]{amsart} % ...
10
votes
2answers
502 views

Jackson structured programming diagram (format a tree diagram)

I'm trying to create a Jackson structured programming diagram. This is basically a simple tree diagram with the exception that boxes can either have a circle (O) or a star (*) in the upper right ...
7
votes
1answer
2k views

Tikz: Text along top and bottom of arrow path

How can I add text to both the top and bottom of a path? My commutative diagram below is 90% complete. I would, however, like text={${gKer({\varphi}){\mapsto}{\varphi(G)}}$} following the path below ...
13
votes
2answers
760 views

TikZ: shade also the border of a node

I would like to shade a node and the border of the node. The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
14
votes
2answers
2k views

How to decrease the size of single node in mindmap?

In tikz's mindmap, I want to change the concept size for individual parents or children (not the entire system). It is simply possible to increase the size of a child node, by introducing minimum size ...
10
votes
1answer
633 views

Draw additional parallel paths in TikZ

How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path. Example path: ...
6
votes
1answer
209 views

Determining tikz drawing style, depending on the values of two nested loop iterators

So the question is a tikz one! Assume that you are drawing things inside two nested foreach loops in tikz, and the iterator variables are \x and \y. What I'd like to obtain is to be able to specify a ...
3
votes
2answers
193 views

How do I define tikz styles with a xkeyval command?

I would like to write a command which allows the user to change tikz styles. My code goes like this: \documentclass{article} \usepackage{tikz,xkeyval} \makeatletter \def\DEFstyle{} ...
3
votes
1answer
400 views

TikZ: remove/override auto option (arrow label positioning) from a defined style

I have a defined style which I am applying to many arrows. Most of the time, I want them to have label nodes positioned using auto, but occasionally I do not. Currently, I simply add auto wherever ...
10
votes
3answers
519 views

How to draw multiple lines inside the circle

I wish to draw the picture like below, however, I don't know how to add multiple lines in side the circle. This is my code: \documentclass[tikz]{standalone} \usetikzlibrary{ shapes.geometric, ...
3
votes
1answer
355 views

Problem about pattern and gradient

I draw a graph using the code below . \documentclass[tikz]{standalone} \usetikzlibrary{ shapes.geometric, positioning, fit, calc, patterns } \usepackage{tikz} ...
0
votes
1answer
112 views

the problem about putting one picture on the left and another on the right

I wish to put two graph together, one is on the left side, the other is one the right side. I use "minipage". However, using the below code, the first graph is on the top of the second graph. May ...
4
votes
1answer
190 views

Join point by using Tikz in Beamer document class

I know my question is trivial. By the way, I can not show points given by their coordinates with a Bezier curve using Tikz. \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
0answers
287 views

change color of nodes in pgfplots bar plot [closed]

I have a bar plot which print the number next to the bar. The text is however not very well readable due to the color applied to it. Therefore I would like to know how to modify its style. ...
2
votes
1answer
834 views

How can I have smaller font than \tiny? [duplicate]

I'm using tikz for drawing, and the label are to big, I'm using the font=\tiny parameter, but it's still to big. How can I reduce more the font size? \draw [<->,line width=0.02cm] ...
4
votes
1answer
405 views

how to add dotted line and arc line?

I wish to add dotted line connecting two nodes and an arc line as described in the photo. Here is my code: \documentclass[tikz]{standalone} \usetikzlibrary{ shapes.geometric, positioning, ...
3
votes
1answer
69 views

How to adust the location of the inner component in the Outer component constructed by “fit”?

I use "fit" to make two small rectangles inside a bigger rectangle. And then add some words at the top of the bigger one, which causes a large blank space at the bottom of the bigger rectangle as ...
1
vote
0answers
63 views

how to set the size of the star? [duplicate]

I wish to draw the picture described How to add the circle, star inside the diamond? I tried the code: \node[draw, fill, star, star points=6, minimum size=0.1mm,above=of aux, anchor=center]{}; ...
4
votes
1answer
149 views

How to add new line character in the node

I wish to add the new line character in the node, however, I tried several ways, all cannot work. \node[draw, minimum width = 2em, minimum height=1em] (a) {get \\ flight(gf)};
7
votes
1answer
703 views

How to draw the structure with rectangles inside

I wish to draw the flow like in the picture using the code below, however, I found it is very hard to locate the rectangles by using Coordinate. Is there any better way to do this? Here is the code ...
5
votes
2answers
302 views

how to draw the complex work flow using tikz 2.0

I wish to draw a complex work flow using tikz 2.0 because I tried to update the tikz to 2.1, there are many problems. The work work flow is described as follows: I have tried to draw it by locating ...
19
votes
1answer
6k views

Comprehensive list of TikZ style options?

I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle ...
4
votes
1answer
228 views

Sudoku - Special styles for hints

In the following code, I would like to use one style so as to color background for each hint, and not all the hints, and I would also like to put each single hint in a rounded rectangle. This is to ...
6
votes
3answers
352 views

Page numbering in the middle of a line

How can I set up a document to write the page numbering in the middle of a line? Through fancy pagestyle I've got a situation like the following one: --------------------- % this is a line after the ...
2
votes
1answer
466 views

TikZ - Changing the “z-index” of backgrounds

In the following code, I would like to place the backgrounds under the numbers and not the contrary as it is the case actually. Screenshot Code \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
932 views

Styling tikz-timing signal lines

I'm using the tikz-timing package and would like to apply either snakes type of styling, or say the double for double lines to signal lines. Consider the example below: \documentclass{article} ...
14
votes
1answer
1k views

Drawing shapes around Tikz Tree nodes

I have a Tikz tree in my Latex document as follows: % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=4.5cm, sibling distance=6.5cm] \tikzstyle{level 2}=[level distance=4cm, ...
19
votes
3answers
1k views

Can I mark ends of lines with a cross?

I have the following image: \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{tkz-fct} \usetikzlibrary{arrows, ...
12
votes
1answer
466 views

Nested node class with pictogram decoration

I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax: \node [mynode,fill=yellow!40] {component} \child{ \node [mynode,fill=yellow!40] ...
9
votes
6answers
355 views

How can “execute at begin node” be used with special characters like curly braces? (or: how to raise node content)

I'd like to define the following style: test/.style={ execute at begin node={\raisebox\{-0.2cm\}\{}, execute at end node={\}} } and use it like \documentclass{article} \usepackage{tikz} ...
6
votes
4answers
187 views

How can I calculate within style values?

Is it possible to calculate (addition etc.) in style values? I wanted to do the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,fit,chains} ...
5
votes
1answer
109 views

What's going on with this syntax “somename/.style={…}”

I'm finding the following preference loading syntax popping up a lot in the newer packages: From tikz \tikzset{help lines/.style=very thin} From tcolorbox \tcbset{noparskip/.style={before....}} ...
10
votes
2answers
387 views

Tikz style conflicting with clip command

Below is my example. I'd like to use a global style for all my tikz pictures to set up the line width. It is working well until I use a clip. I guess that it is not possible to pass some style option ...
4
votes
1answer
467 views

Tikz: Styling a node to display text on the right of a dot

I am trying to create a LaTeX document using the Tikz library, more particularly an E/R Diagram. I have downloaded the tikz-er2 additional library, but I am having an issue with the display of ...
5
votes
1answer
254 views

How to apply Tikz-styles in a /tabular{} definiton

I'm just starting out with Tikz, and find it amazing - but a bit overwhelming too. So here is an absolute beginners question: I copied this form somebody: % Draw inside tables: % Some options ...
29
votes
1answer
1k views

Creating thicker Tikz mindmap connectors

I'm running MiKTeX 2.9, on a Windows 7 machine. My pdflatex compilation log lists: pgf 2008/01/15 v2.10 (rcs-revision 1.12) I am using TikZ's mindmap library to draw some graphics and I quite ...
5
votes
2answers
415 views

Off page connector using Tikz

I'm creating a flowchart using TikZ. You can see my code so far below. But now I want to create an off page connector: I don't have a clue how to implement this in my \tikzset. Furthermore I ...