{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

6
votes
1answer
44 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
85 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
40 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 ...
2
votes
1answer
54 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
63 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
43 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 ...
4
votes
1answer
149 views

Drawing phase line for differential equations

How can one draw one of this pictures in latex with the simplest way and good looking output?
5
votes
1answer
109 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
66 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
77 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
53 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
59 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
87 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
140 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
58 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
181 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 ...
2
votes
1answer
104 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 ...
1
vote
0answers
47 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is ...
6
votes
1answer
177 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
1
vote
2answers
229 views

Making the TikZ drawing(ER Diagram) looking nicer

My ER Diagram is finally complete. But I need help in making it look complete. I need changes in, i) Making the diagram centered to the page ii)Adjusting the node distances (need very badly, not able ...
4
votes
1answer
73 views

Creating a directed graph with some cosmetic structure

Via utilizing Tikz, I would like to create a graph such as the following : So I would like to have a classical directed graph, where there is some text in each node. Moreover there is a single ...
3
votes
0answers
65 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 ...
3
votes
1answer
125 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 ...
2
votes
1answer
76 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. ...
4
votes
1answer
114 views

Change boxplot style

I'm following this PGFPLOTS manual. At first I was enthusiastic with it. However I'm finding some difficulties on doing even basic things. Now I'm trying to change boxplot style. Up to now I wrote ...
3
votes
1answer
150 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 ...
4
votes
1answer
221 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} ...
5
votes
2answers
86 views

How to decorate a node with additional paths?

I want to add styles to my nodes that draw additional paths inside of the node. For example (without proper placement of nodes) \node[draw,circle,lVert] {}; \node[draw,circle,lHor] {}; ...
2
votes
1answer
95 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} ...
4
votes
2answers
229 views

Fancy Styled Borders in LaTeX

How to draw attractive Borders in LaTeX. A Sample image like this:
8
votes
1answer
115 views

How can I add nodes through a TikZ style?

Consider a small example below. I'd like to automate the addition of the label-node along the edge through the use of styles. I've tried the naïve solution of just adding such a necessary node ...
3
votes
2answers
97 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, ...
1
vote
1answer
96 views

Using variables to draw a tikz diagram

I am defind my own command to plat a diagram with tikz. Instead of constant values I rather want to pass numbers to my command which determine the height of the bars in my diagram. Problem: I am ...
2
votes
3answers
117 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 ...
5
votes
2answers
180 views

Tikz Nodes Positions and Shapes with a General Number of Nodes

My purpose is rather simple: use tikzpictures to draw tables of numbers, where the numbers are drawn inside colored boxes with fancy shapes, with different shapes and colors for different numbers. ...
4
votes
1answer
89 views

Modifying the look of table of contents

How to modify the table of contents to appear similar to this.Alignments are temporary but it should be similar.How do I do it?
1
vote
0answers
112 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
1answer
129 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 ...
4
votes
1answer
141 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 ...
9
votes
3answers
189 views

Don't do any fills in TikZ

I have a macro that will draw several things in a TikZ picture using some styles I defined, which include fills: \documentclass{article} \usepackage{tikz} \tikzset{% ...
0
votes
0answers
34 views

Use Case diagrams , UML diagrams and E-R diagrams in LaTeX [duplicate]

Does LaTeX allow to draw Use Case Diagrams, UML Diagrams and E-R Diagrams. How to implement these? What packages to use?
8
votes
2answers
171 views

Correct use of arguments pattern in pgfkeys/append after command in tikz?

I could not find many examples for the correct use of arguments patterns in pgfkes, but I was able to come up with the following: \documentclass{standalone} \usepackage{tikz} ...
1
vote
1answer
40 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
1answer
65 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 ...
3
votes
1answer
89 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} ...
1
vote
1answer
106 views

How to define a command that could generate similar environments just as \newtheorem does?

It's well known that the LaTeX built-in command \newtheorem could generate a series of the theorem environments that are similar: they share the same theme of layout style but differ in their name and ...
5
votes
1answer
171 views

How to change the color scheme to make this figure more elegant?

Here different colors means different weight of the edge, and the color of the points is arbitrary. The tex code: \documentclass[aps,prl,superscriptaddress]{revtex4} \usepackage{subfigure} ...
8
votes
1answer
98 views

Why doesn't “double” work in the options list of a scope?

An example document: \documentclass[convert={size=320}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[line width = 2pt, red] \foreach \x in {1, 2, 3, ...
4
votes
1answer
69 views

Distinction between number and dimension in tikz key-value interface

When declaring shapes, I usually define the desired shape width with: minimum width = <number> <measure units> However, sometimes, I calculate calculate the shape's width separately. In ...
5
votes
1answer
150 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...