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

Relationship diagram

So this is what I would like to have Diagram 1 Diagram 2 Diagram 3 with help of Nico i could draw it like that \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows} ...
4
votes
1answer
170 views

Is it possible to define abbreviations for coding?

I am using the tikz-timing package to create a timeline since chronosys and chronology wouldn't cooperate and were too limited and archaic-looking to suit my purposes, and moderntimeline unfortunately ...
4
votes
1answer
237 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 ...
4
votes
1answer
456 views

How to modify just some nodes' styles in chemfig

In the following molecular drawing, I want to only circle the rightmost OH of the first molecule and the leftmost H of the second, to show that they are the ones that are involved in the formation of ...
4
votes
1answer
3k views

Styling the text placed on \path [line] using \tikzstyle.

I'm new to LaTeX and I'm trying to work out how I can configure TikZ to position the text ON the connecting lines (rather than beside it) in this flowchart and then give that text a filled white ...
4
votes
1answer
117 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 ...
4
votes
1answer
656 views

How to change theme of fancytikzposter

Elena Botoeva has written a new package for creating posters with TikZ. I have already dowloaded the file fancytikzposter sources. I would like to modify file fancytikzposter.sty in order to have ...
4
votes
1answer
195 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} ...
4
votes
1answer
144 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 ...
4
votes
1answer
65 views

Setting \tikzstyle inside \foreach

I am building a tree structure in tikz and am following this texample, which suggests adding styles for the children according to their depth in the tree (first, second and so on). The purpose is that ...
4
votes
0answers
184 views

Latex - picture color and minted color

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} ...
3
votes
2answers
99 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
2answers
119 views

How to define edges in tikz

When I use absolute position for the edges, I get almost intersecting arrows. Here is my code. Kindly help. \begin{tikzpicture} [ node distance = 2cm and 0.8cm, >=stealth, ...
3
votes
1answer
66 views

How can a style applied to a given node be inherited by all descendants of that node?

I'm using the graphs TikZ library to draw directed acyclic graphs. When I apply a particular style to a given node, I would like that style to be inherited by all descendants of the node in question. ...
3
votes
1answer
234 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 ...
3
votes
1answer
971 views

Display Database Instance Relationship with TikZ

I'm trying to display all of my corporate database instances and their relationship to each other, so to speak the database links. I found the geometry shape cylinder using TikZ ...
3
votes
2answers
208 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
2answers
95 views

Colouring one side of a rectangle defined by \draw

I create a rectangle like this: \draw (2,2) -- (2,4) -- (6,4) -- (6,2) -- (2,2); I would like to give the red colour to the side defined by points (2,2) and (2,4). I tried doing \draw [red] (2,2) ...
3
votes
1answer
123 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 ...
3
votes
1answer
86 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) ...
3
votes
1answer
187 views

fixing diagram to be a good-looking diagram

i draw this with help of question here notice that draw doesn't looks good-looking diagram could someone fix it i think that's because of the size of the words i can't control them to make it ...
3
votes
1answer
1k views

Draw a filled circle at every point of a TikZ plot

Consider the following simple example: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate (b) at (1,1); \coordinate (c) at (2,0); ...
3
votes
1answer
284 views

ChangingTikz Node Style works only once in Beamer

I am trying to change the node style of a Tikz-node twice in Beamer but the second time the change is not done. What needs to be fixed in my MWE to make it work? \documentclass{beamer} ...
3
votes
1answer
124 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) ? ...
3
votes
2answers
428 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 ...
3
votes
1answer
379 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} ...
3
votes
1answer
359 views

Using counter values as part of style name for plots

I figured I should be able to give a bunch of line styles and access them using counters. Sure enough, this works out fine; this document \documentclass{article} \usepackage{tikz,pgfplots} ...
3
votes
1answer
66 views

tikz: Different styles across a line

I need to have a line partially dotted. I have accomplished it with an horizontal line, by inserting a node to delete that part of the line and then drawing a new line. However, for bended lines I ...
3
votes
1answer
187 views

How to draw a system architecture with databases and shadows?

My goal is to draw a complex system architecture. Some approaches to do it are here How to draw a layered architecture using Latex? This approach http://tex.stackexchange.com/a/102669/44348 seems to ...
3
votes
1answer
250 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 ...
3
votes
1answer
1k views

Tikz diagram with bold text

I'm trying to make a diagram using Tikz, however I have trouble combining; fixed text widths, centered text and font=[\large,\bf , etc]. When the font command is used the text has a slight offset to ...
3
votes
1answer
239 views

How to create a tikzstyle for special edges, like transfer and rest arcs?

I need for petri nets some special edges for arcs: Reset arc which has an cross at Place Transfer arc which has an dashed edge from place to place and an snaked edge from transition to dashed ...
3
votes
1answer
263 views

tick mark separation

My graphs have two ticks on the x-axis. I'd like to have 3 graphs across a page and include y-axis labels. Right now that wont fit. Is it possible to move the x-tick marks closer together so the ...
3
votes
1answer
273 views

Tikzstyle for 2:1 Mux

Could someone help me with a \tikzstyle for this trapezium block: I tried but look how it looks like: The main problem it is in how to set the text (0 1) in the right place. The code I'm using ...
3
votes
1answer
175 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
1answer
433 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 ...
3
votes
1answer
803 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 ...
3
votes
1answer
41 views

Tikz coordinates scaled to image size

Is there anyway to specify coordinates relative to the image size ? Consider for example the following code : \begin{tikzpicture} \node [inner sep=0pt,above right] ...
3
votes
2answers
65 views

problems with ellipse TikZ

I'm working on a mac, I use the package TikZ and it works. But I have problems when I want use ellipse or diamond ex : \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} ...
3
votes
1answer
293 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
293 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
85 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. ...
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} % ...
3
votes
1answer
72 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 ...
3
votes
1answer
87 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} ...
3
votes
1answer
72 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} ...
3
votes
1answer
218 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} ...
3
votes
1answer
148 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 ...
3
votes
1answer
162 views

tikz includegraphics within style

I searching for a solution to define a node style whish includes a png-picture. \documentclass[10pt]{article} \usepackage{tikz} \begin{tikzpicture} [ PIC/.style n args = {1} ...
3
votes
1answer
471 views

Arrow scaling problem. How can I zoom properly a very tiny part of a drawing?

Thanks to this solution, I can draw tangent line to a path. I'd like to zoom a very little part of my drawing. Here it is the code: \documentclass{standalone} \usepackage{tikz} ...