{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
20 views

Centering / horizontal alignment of text inside tikz boxes

I am facing a problem with centering the text inside the boxes: \documentclass[a4paper,fontsize=12pt,a4paper,DIV=10,BCOR=10mm,twoside,titlepage=false,openany,pagesize]{scrbook} ...
2
votes
1answer
120 views

How can I draw an ellipse with a rainbow color?

I need to draw a rainbow-colored (hue colormap) ellipse in tikz. Something like this but then in an ellipse shape, and in tikz. I've thought about drawing to ellipses, one with rainbox filling, the ...
2
votes
1answer
98 views

Using TikZ to draw array figures

I am new in LaTeX and even more on TikZ. I want to use TikZ to draw the kind of figure described in the below picture. I looked for some tutorial or particular topics that deals with that but never ...
4
votes
1answer
134 views

Theorem Style Design

I'm trying to design a a theorem style using the code below. However, I would like to be able to write the name of the Theorem right after the phrase. I mean I'd like to have Theorem 1 (First ...
2
votes
1answer
64 views

How do you define a command for use in a tikzpicture environment?

I want to define an environment for the tikzpicture environment which defines tikz specific commands. Here's an abbreviated example for a UML environment which defines a \Class command): ...
1
vote
0answers
36 views

What are the unit of measurement in Tikz? [duplicate]

I want to know what are the units of measurement (of length) in tikz are available. I know that pt, in, mm like units are available , but what more are allowed in tikz? I work sometimes with qss ...
2
votes
1answer
45 views

How can I start newpage after using tikz to create page border line?

I have created front page of paper with border line around the paper. But the problem is like the image below. I hope any one can help me. Thank you! \documentclass{exam} \usepackage{fullpage} ...
2
votes
1answer
89 views

Axis tick options, ticks and labels inside axis area

I know the title can be misleading, but I don't know how to put it better. I will correct it when I get better proposals. I try drawing plots from external tables with pgfplots. Alas, the template I ...
7
votes
2answers
65 views

Pgfplots - ugly marks when using dotted or dashed line [duplicate]

Recently I spotted that applying the option dashed or dotted to a plot results in having ugly / distorted marks or marks with dots (when applying dotted) around them. Here is a MWE: ...
15
votes
1answer
430 views

TikZ, arrow, looking for ++++++> style

I'm wondering if it's possible to draw, by \tikzstyle, this style of arrow : +++++>. Thanks, Simon
5
votes
1answer
133 views

tikz: Better raised text effect

If you look carefully at the raised text in this image, you can see that it has two drop shadows: as well as the black one to the southeast of the text, there is a white one to the northwest. I know ...
6
votes
1answer
91 views

Scale dash pattern with line width

I would like to have dash patterns which scale proportionally to the active line width like shown in the following example: \documentclass[tikz]{standalone} \newdimen\gpdashlength \begin{document} ...
3
votes
1answer
116 views

Beamer with Tikz graphs

Following this question of mine, I now need to make a presentation using Beamer. If you look at the plot below, it has some values on the arrows namely p1, 1-p1, ... I want to put the graph structure ...
2
votes
2answers
66 views

Problem formula with \usepackage{marvosym} \usepackage{tikzsymbols} \usepackage{MnSymbol,wasysym}

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
5
votes
1answer
69 views

setting tikz styles

How do I set labeling styles associated with each style type? For example: (source below) I have an "input" style (medium circle) and a "junction" style (small dot) which I would like to have the ...
1
vote
1answer
101 views

Creating “cylinder with bottom” node shape in TikZ/PGF

How to create custom TikZ node "cylinder with bottom", where hidden line in cylinder bottom is shown using dashed line. Something like the following creation, except node center should be in the ...
7
votes
2answers
120 views

how can I create keys such as “column … to …” for a TikZ matrix

I have a node style I would like to apply to many (but not all) the cells/columns/rows of a matrix of nodes. Currently, for every column or cell that I want the style to apply to, I declare the style ...
4
votes
2answers
53 views

node style is only taking partial effect in a matrix of nodes

This is probably the first of two closely related questions. I have defined a style: my node style/.style={%% minimum width=\dimexpr0.60in+12pt\relax, minimum ...
6
votes
2answers
146 views

TiKZ and color filling with word spacing on multiple lines

I am attempting to make a figure in TikZ which I want to look like this: I have been able to come up with something close in TikZ, but I would really like to have the above figure instead of my ...
1
vote
1answer
56 views

Fault Tree: reducing gap between levels

I am facing problem moving the level of the tree UP. I wanna move the row with yellow boxes and OR gate up, to conserve some space. i tried adding "level distance" in level 3/.style, but that didn't ...
5
votes
2answers
104 views

Fault tree : problem with anchoring gates

I am trying to modify the Fault tree e.g. from Tikz where the nodes are the objects like gates instead of text boxes, and would even elimiate text boxes from few paths if possible. This is my code so ...
4
votes
1answer
59 views

Is it possible to reuse tcolorbox definitions in another tcolorbox definition?

TiKZ allows to define a .style which can be later be used in another one: \tikzset{ first/.style={rectangle, draw}, second/.style={first, inner sep=2mm} } any change in first is ...
7
votes
1answer
152 views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

just started using LaTex yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): change the page size to even ...
5
votes
1answer
163 views

Drawing SQL tables

I'd like to draw SQL tables, some example content and relations between the id's. Output should be something like below, without the contents. Could you help me with a head start here? Is there any ...
5
votes
1answer
65 views

how to wrap text in arrow with tikzset

I refer to web and found some good examples to add fancy arrow, I show my code \documentclass[a4paper,11pt]{book} \usepackage{color} \usepackage{xcolor,colortbl} \definecolor{ForestGreen}{rgb}{0.13, ...
3
votes
1answer
67 views

Define “edge types” for graphs and inheritance?

I'm really new to TikZ (but not to LaTeX) because currently I write an important work in which I want to use some nice scalable graphics. My current state is that I can define node types with ...
7
votes
1answer
140 views

Snake line with an arrowhead in the middle

in my code i need to draw some Feynmann diagrams with several lines like this one: To draw this image, i usually use this code: \tikzset{White/.style={ draw=white, postaction={decorate}, ...
11
votes
1answer
165 views

TikZ: nodes with text, scale = or \large, \Large, \Huge?

If one needs to slightly increase the size of the text in a TikZ node. What are the pros and cons of using scale= in the style options instead of changing the font size with the usual LaTeX\TeX ...
8
votes
1answer
90 views

Double style and double colour line in tikz

in my document i have a lot of lines like this: I usually do this with a code like this: \begin{tikzpicture}[node distance = 5cm] \node (a) {}; \node (b) [right of=a] {}; \draw[red] (a) -- (b); ...
2
votes
1answer
101 views

Tikz positioning inside matrix node

I have created a figure for tikz that looks like this: But when I add it inside a matrix node it became like this: Why does this happen? My code for the first is: \begin{tikzpicture} ...
5
votes
1answer
138 views

How can I make Beamer overlays with TikZ node attributes?

As a follow-up question to Tikz animated figure in Beamer, how can I animate a particular attribute of a node? MWE \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{graphs} \tikzset{ node ...
0
votes
0answers
100 views

How do i create this graph on latex?

So…i made this graph using paint(!)…and it looks horrible. I have used tikz to create similar graphs but this one seems to be more difficult.
6
votes
1answer
131 views

Can't find the documentation for \tikzstyle or `+=` operator in tikz

I've noticed in a number of examples that the following is occasionally used when working with tikz: \tikzstyle{every picture}+=[remember picture] When I search the documentation I can't find ...
0
votes
2answers
199 views

Drawing Flow Chart with LaTeX

TikZ can draw flow chart but I want some sort of a graphical tool where I can create flowchart in an interactive way and then somehow export to LaTeX. Any advice? I am not a geek and the interface ...
5
votes
1answer
56 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...
6
votes
1answer
72 views

Cross-reference of custom environments created with environ and TikZ package

Problem: I want to create an environment named Example, and the environment has a counter (number within chapter). I want to refer to the counter for illustration just as the table, figure and ...
5
votes
1answer
137 views

Reuse tikz picture in another tikz picture [duplicate]

I have a TikZ picture \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] ...
3
votes
1answer
107 views

flow chart page size issue

I have been doing this since from last month. I want to draw this flow chart using \documentclass[a4paper,11pt]{report} but if I use above configuration (which I want to use) the flow chart does ...
3
votes
1answer
118 views

Removing bounding box of text node (tikz)

When I added some text into my Tikz figure, it also hows the bounding box how can I get rid of it. (I took the example from: TikZ Adding Text) Here is what I've got: \begin{figure} ...
3
votes
1answer
96 views

TikZ - I do not know the key … despite correct code (can't define a new style anymore)

I just wanted to define a new style, a very very simple one with align left, text width=6cm but I found out even simpler code won't work. Basically I assume my installation is broken or I run the code ...
2
votes
1answer
75 views

\xleftrightarrows command in TikZ with arrows matching the LaTeX font

There is the command \xrightarrow that inserts an arrow that extends with the text you put above and/or under it. There is also the command \rightleftarrows (notice the "s" at the end) that display ...
5
votes
1answer
146 views

Still some of the flows missing in the flowchart

I have posted this question few days back but still I can't complete the algortihm. This is the uncompleted work done so far \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
1
vote
1answer
567 views

Tikz: increase arrow head size

Given the Tikz example here http://www.texample.net/tikz/examples/double-arrows/ how do I increase the size of the arrow head? I'd like to make it way bigger but, after manipulating the code, I was ...
2
votes
0answers
91 views

Tikzpicture highlight on matrix in different slides

I am new to latex but I have to make a presentation in university with it (or more I want to do the presentation in LaTeX). But I am struggling with the package tikz. So my first question is ...
3
votes
1answer
72 views

How to give simple label to each connected component of graph

I have a disconnected graph, with six components. I would like to give some name at the bottom for each component. I would like to represent them with $D_1, D_2 . . .D_6$. Can some one help me out. ...
4
votes
1answer
81 views

TikZ: Create a downward chain of nodes with different heights

I want to create a downward chain of TikZ nodes. Some nodes are rotated and they may differ in height. Consider the output of the MWE below: The horizontal chain adapts to the different widths of ...
3
votes
1answer
117 views

How to get edges after vertices in a graph using TikZ?

The following code is giving me a graph, how to display edges one after the other instead of displaying total graph at a time. \begin{figure} \begin{tikzpicture} [scale=.8,auto=left,every ...
7
votes
2answers
180 views

comma in node name [TikZ]

In my database some objects have name in A,B format, i.e there is comma in between. I wanted to do something like this \node (A,B) {Comma}; \node (x) {normal}; \draw (A,B) -- (x); However, this is ...
3
votes
1answer
75 views

How can I style tkz-euclide points?

The tkz-euclide package lets you do things like \begin{tikzpicture} \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C} \tkzDrawPoints(A,B,C) \tkzDrawSegments(A,B B,C C,A) ...
7
votes
3answers
194 views

To make one environment flow into another without empty space

I have this design at the moment. However, when you have many of those, they distract much. I propose to have Answer just on the same line with Question like Question 41 Lorem ipsun. Answer 38 ...