{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
747 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
369 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
140 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)};
5
votes
2answers
297 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 ...
6
votes
1answer
634 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 ...
19
votes
1answer
5k 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
224 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
327 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 ...
11
votes
2answers
1k views

TikZ: Defining and reusing complex objects?

(How) Is it possible to save some complex TikZ objects for reusing them (in the same and in different pictures)? I know it's possible to define own styles, but I'm not sure if it's the right thing ...
2
votes
1answer
431 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} ...
10
votes
2answers
577 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 ...
19
votes
3answers
959 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, ...
6
votes
4answers
181 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} ...
9
votes
6answers
337 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} ...
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
368 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 ...
12
votes
1answer
457 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] ...
21
votes
1answer
2k views

TikZ picture shapes

I am very new to the TikZ package, and I need to draw some flow chars by using the following shapes. However I couldn't figure out how to draw the 4th and and 6th ones below. It would be very nice ...
4
votes
1answer
445 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
242 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 ...
3
votes
1answer
338 views

Commutative diagram using TeX Writer

I bought an ipad app TeX writer and I am wondering if I can draw a commutative diagram. It includes the packages amslatex revtex4-1 IEEEtran babel cyrillic graphicx color xcolr geometry algorithm2e ...
29
votes
1answer
969 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
401 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 ...
15
votes
2answers
3k views

Change style of labels of Tikz nodes of a given style

How can all labels of a given type of node be restyled in Tikz? Imagine that there are nodes of different styles, and that only the nodes of style X should have red labels. Is this possible without ...
14
votes
1answer
968 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, ...
6
votes
1answer
174 views

TikZ: posticipate execution of type /.code key

I'm trying to create some TikZ keys which allows to easily draw distributed loads on a mechanical structure (or truss). The code I wrote at the moment is: \documentclass[a4paper]{article} ...
3
votes
2answers
97 views

why my pic was changed by un-used tikzstyle

In a joint file, my picture was changed by some un-used global tikzstyle, which is added by other. Here is a minimal example. The output dots become bigger if I un-comment the commented line. ...
3
votes
1answer
312 views

Command to set cycle list position?

Is there a command to (re)set the starting point of a cycle list? What I am using now is the cycle list shift command but I end up doing some time consuming calculations and my code is oftenless ...
2
votes
1answer
766 views

Arrow decoration in TIKZ [duplicate]

Possible Duplicate: TikZ: How to draw an arrow in the middle of the line? I'd like to use Tikz for drawing Feynman diagrams. I found an example in TeXample, but it looks inefficient. One ...
6
votes
2answers
254 views

How to share selected options between different nodes in TikZ?

(I didn't find a better title for the question. Suggestions are welcomed.) I have created some new shapes in TikZ and I would like to put one of them below another one when a certain key is passed to ...
3
votes
1answer
752 views

TikZ edge thickness causing errors in foreach loop

I'm experiencing some weirdness in making a simple TikZ diagram (a comb-shaped graph with variable number of nodes). The weirdness comes from the style applied to the edge paths. Here's the ...
1
vote
2answers
402 views

pgfplots - axis xmode/ymode in user-defined style

I would like to specify xmode and ymode for the axis with \pgfplotsset (or any other way, so that the mode can be changed by an if statement) The error message which I get is: ! Package pgfplots ...
5
votes
1answer
425 views

When to use TikZ styles?

I planned to illustrate how a quadtree data structure I'm using is implemented, showing all internal pointers and arrays. The image will look something like this: (Here, if a pointer points at the ...
1
vote
1answer
226 views

How can I make the path picture bigger? [duplicate]

Possible Duplicate: How should I draw a singly/double linked list? I am currently trying to create an image of a linked list like this one: This is my current try: What I miss is the ...
2
votes
2answers
569 views

Nested rectangles

I am trying to get this figure: The figure is generated by the following code: \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{fit,shapes,backgrounds,arrows} \begin{document} ...
5
votes
2answers
482 views

How do you draw this prism in tikz/pstricks

The numbers are in Persian (side SB=6 and angle SBA=60 degrees).
7
votes
2answers
288 views

Restoring previous value of PGF/TikZ key?

How does one restore the previous value of a PGF/TikZ key? For example, I would like to set the inner sep of a matrix to 0em but set the inner sep of nodes within the matrix to be the value that ...
6
votes
2answers
4k views

how to decrease the size of a node and a label - tikz package

i trying to draw an automata using tikz package, and i want to decrease the size of node and labels on each edge , im have trying to put the option [scale=0.5] but it doesn't work ! I have : ...
1
vote
0answers
2k views

! I can't find file `pgflibrarytikz*.code.tex' [closed]

I can compile the following LaTeX: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,plotmarks} \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
15
votes
1answer
1k views

How to create a ball shading and to customize 3D lighting manually?

TikZ shading=ball will create a perfect 3D ball perspective, but it has no option to change the lighting angle, the contract, radius of light, etc (or I am not aware of). I tried to create a 3D ball ...
7
votes
1answer
2k views

How to control text margin in TikZ shapes

When using different shapes from TikZ library, they have different inner padding for text. Thus, for similar text, we will have nodes (shapes) with different sizes. Then, the child nodes will not be ...
10
votes
2answers
2k views

Inserting text inside an arrow in Tikz

I want to draw an arrow between two nodes (a) and (b), and write text inside the arrow. How can I modify this command to control the size of the arrow head and insert the text? \draw[->, ...
6
votes
1answer
980 views

Custom sibling angle for child nodes

As I explored the TikZ manual and available examples; the position of child nodes are defined within the parent node. This means that all child nodes spread on the same radius from the parent with ...
8
votes
1answer
923 views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
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 ...
6
votes
1answer
648 views

What is the correct way to pass array elements to TikZ styles?

I'm trying to use styles to generate TikZ figures that have repeated, regularly spaced elements by looping through an array, but am perplexed by the results I'm getting. For example, if I define the ...
5
votes
1answer
1k views

Extract x, y coordinate of an arbitrary point on curve in TikZ

We have very nice Extract x, y coordinate of an arbitrary point in TikZ \documentclass{article} %\url{http://tex.stackexchange.com/q/33703/86} \usepackage{tikz} \usetikzlibrary{decorations.markings} ...
10
votes
2answers
886 views

How to draw a point at a particular location along the curve in TikZ

I got a nice code to draw an arrow at the mid position of the curve. From Tikz: Arrowheads in the center \tikzset{->-/.style={decoration={ markings, mark=at position .5 with ...