{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

3
votes
1answer
118 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
287 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
322 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
337 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
112 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
610 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
182 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
650 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
223 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
165 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
354 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
298 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 ...
3
votes
1answer
743 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
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. ...
3
votes
1answer
208 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
985 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
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 ...
3
votes
1answer
98 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
100 views

removing bounding box of text node

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
113 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
114 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
452 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} ...
3
votes
1answer
63 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 ...
3
votes
1answer
295 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 ...
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 ...
3
votes
0answers
86 views

Dual axis: yticks scaling [closed]

I have a problem in fixing my y ticks when having a dual axis plot. The ticks on the second plot dont match the grid of the first. Is it possible to rescale the second plot in order to make only one ...
2
votes
3answers
131 views

Tikz Nodes Order and Shapes with a General Number of Nodes

This is part 2 of Tikz Nodes Positions and Shapes with a General Number of Nodes, a question I was asked to split. Please refer to the code below. In the table below I'd like to: Control the ...
2
votes
1answer
70 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 ...
2
votes
2answers
570 views

Tikz-timing: using an arrow for a vertical line like G (glitch) symbol?

I just asked this question: Does the program counter always have to change (upon an instruction tick)? - Stack Overflow, where I used the following code: % min-timing.tex % pdflatex min-timing.tex ...
2
votes
2answers
58 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} ...
2
votes
1answer
43 views

PGF’s \foreach can’t replace in [start chain=\here]?

Here in TikZ/PGF, I need two lines of dots to connect them later. – I make those dots with chains in a \foreach loop. But I can’t get the naming to work in the loop. The code below works, but ...
2
votes
2answers
200 views

Inheritance in Tikz tree

As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? ...
2
votes
1answer
231 views

Subnodes in a vector in TikzEdt

I am trying to display two vectors in two differnt nodes, and then, link some elements using arrows. \tikzstyle{line} = [draw, -latex'] \begin{tikzpicture}[node distance = ...
2
votes
1answer
678 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 ...
2
votes
1answer
419 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} ...
2
votes
1answer
130 views

How can I draw an arrow linking two items in a list?

I know you can use the package tikz to have braces like \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark,decorations.pathreplacing,calc} \begin{document} ...
2
votes
1answer
722 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] ...
2
votes
1answer
85 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 ...
2
votes
1answer
139 views

Breakable boxes with Tikz and right and leftmargin

I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the ...
2
votes
1answer
90 views

Heaped up tikz figure-how to fix

My problem is: The figure looks ok on Geogebra, but after exporting to Tikz code and importing to LaTex, it is ugly and have some heaped up between point, lines, and the name of the point or line. ...
2
votes
1answer
99 views

Tikz How to unset/cancel/disable text width?

I want to style a bunch of nodes using a complex Tikz style generalStyle, defined as \tikzstyle{generalStyle}=[draw,... lots of options here..., text width=50pt] Now, the design of an illustration ...
2
votes
1answer
738 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 ...
2
votes
2answers
561 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} ...
2
votes
1answer
94 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} ...
2
votes
1answer
150 views

using tikz to draw a flattened polyhedron

I want to create the net of a flattened hexagonal based box. Each side of the box is a slight trapezium (so in 3D the sides will not be perpendicular to the base, but that's not important to the ...
2
votes
1answer
43 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
0answers
89 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 ...
2
votes
0answers
222 views

Designing Magazines in LaTeX [closed]

How to design attractive magazines using LaTeX?Will TikZ be sufficient.What packages to include in the book class
2
votes
0answers
137 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
561 views

set textcolor in tikzstyle

How can I set text color inside tikzstyle? I tried as shown below, but surely that is not the correct thing. I can do it seperately in each node, as shown here, but I want to declare it globally. ...