{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
2answers
34 views

TikZ: How do I change the path color without changing nodes alongside?

It is difficult to google for this problem, as I use the to command in tikz in order to bend edges left or right. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,positioning} ...
6
votes
2answers
83 views

How to define a tikzstyle using append after command?

I am trying to define a style to help my pupils understand the resolution of equations. Nevertheless, I have two problems : 1 : I cannot make arrows of grey color between the steps of the resolution. ...
4
votes
1answer
61 views

Drawing a graph with labeled edges in foreach loop

How to add different label for each edge in example on the picture. How can I do this in foreach loop? \begin{tikzpicture} [scale=.8,auto=left,every node/.style={circle,fill=blue!20}] \node (n6) ...
13
votes
3answers
307 views

Straight line in TikZ with 'continued' marking in the middle

I'm looking to get a line drawn in a way that I've often seen in schematics: ---||---, so a line, interrupted by two vertical bars (like a capacitor sign), the two vertical bars very close by, also ...
2
votes
2answers
106 views

Representing general transformations on a 3D grid using TikZ

I have a cuboid made from unit squares which in 2D looks like the following: Considering a 3D version of this (i.e. a cuboid). I wanted to use Tikz to demonstrate some of the possible deformations ...
1
vote
1answer
43 views

Change part environment to chapter environment

This question builds from the post customizing-part-style-with-tikz. How do I go about making this heading work for the Chapters? How to change the PART name that shows up in the number to ...
2
votes
1answer
60 views

TikZ: how to set text position over a row

I would put text ("yes" or "no") over a flowchart arrow. But with this code: \documentclass[crop=true,border=2cm (all sides) i]{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
0
votes
0answers
24 views

Tikz, graphdrawing - common style for groups of nodes

I'm using tikz's graphdrawing library. I would like to define a common style for a group of nodes. What is the correct way of doing so ? Currently I specify the style per node, e.g. \graph[random ...
0
votes
1answer
82 views

Adding 3D elements to a grid in Tikz

Based on my question here I created the the triangular mesh given below. Note that I am very new to Tikz so I don't know if this is the best approach. I would like to add 2 to 3 3D elements to the ...
3
votes
1answer
58 views

Multiple Pics in \TikZset?

Is it possible to have multiple pictures within a single \tikzset command? In my MWEs I try to create an X and an O pic. E.g. This did not work. \tikzset { X/.pic={\draw (-5mm,5mm)--(5mm,-5mm) ...
2
votes
1answer
114 views

New Question: Serious problem by creating a figure

I have now trying to make this model: But I do not know how to add the nodes in top; "1 text", "2 text", "3 text" and "4 text". Furthermore, I do not know how to make a fourth box, as shown: "9 ...
4
votes
1answer
40 views

Tikz: Align left/width of different fit boxes so multiple fitboxes align nicely vertically

The Tikz fit functionality is very nice, but what (1) if I want to align multiple fit boxes to the same left/width location so that all fit boxes matches, so different fit boxes are nicely aligned ...
2
votes
1answer
31 views

Tikz: How to fit also the text of a node inside a box?

Assume I want to cluster certain nodes in a box, however I also want the node text to get boxed. The following MWE place the node in the box, however the below (or left/top/right) placed text, not. ...
1
vote
1answer
35 views

I get problems when I use the same tikzmark label in every slide

Inorder for my tikzmark to be displayed properly, I need not to use different names for each tikzmark. It troublesome to keep track of the names, is there a work around this problem. In the below ...
3
votes
1answer
67 views

tikpicture moves location with every compilation

I am using TikZ to draw arrows or position figures. My code has three slides. TikZ worked fine with the first two, but with the last, the image moves with every compilation. I suspect the reason is in ...
6
votes
1answer
38 views

Forest local versus global style

This is something that has been frustrating me for an hour or two. Usually I maintain forest styles locally within each image. I have one particular forest that has been driving me insane, but I am ...
4
votes
1answer
62 views

text side in the chapter title

i used tikz code in lyx preample to add decoration around the chapter, but the title words was not good. example: the chapter before tikz: الحركة الدورانية the chapter aftr i used tikz: الدورانية ...
3
votes
1answer
112 views

Changing the Beamer Theme “Feather”?

I wanna adjust the Beamer Theme "Feather" for my needs: Change the Front Page Deleting the gray horizontal bar (@barcolor) Set the @headercolor to red Transpose the feather logo in the ring Replace ...
5
votes
2answers
78 views

Wrong indentation in tikz environment

I want to create a titlepage with tikz and therefore I have a node within a title and a subtitle after a line-break. The problem now is, that something is wrong with the indentation, as you can see ...
2
votes
0answers
81 views

How to draw Box UEFA champions league

My source \documentclass{article} \usepackage[table]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \tikzset{add reference/.style={insert path={% coordinate ...
2
votes
1answer
62 views

linking a dot and a triangle

I am trying to link a triangle and a dot but I couldn't figure it how to do it. here is followed by the image of what I get: \documentclass[border=3mm]{standalone} \usepackage{etex} ...
3
votes
1answer
66 views

Organizing automatons in boxes and add links between them

I have the following three automaton : I want to put them in boxes and add some link, such that I can get something like this: Here is my code : \documentclass{standalone} \usepackage{etex} ...
2
votes
1answer
102 views

Custom footer using tikz

I am trying to modify the footer of my article document using Tikz but I don't know where to start. My idea is to enclose the page number in a circle and between lines at the footer: ...
6
votes
3answers
223 views

How to create a tabbed box using TikZ?

I'd like to create a new style in TikZ for nodes with transparent background, rounded corners, with labels oriented vertically on their left on a opaque fill (similar to a tabbed paper). A sample ...
2
votes
1answer
59 views

How to scale and color the *-plotmark in scatter plot using pgfplots in conjunction with a colorbar

What I have right now: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \begin{document} \pgfplotstableread{ A B C 0 5 -1 0.5 2 0 1 7 1 1.5 11 ...
1
vote
0answers
62 views

How to preserve information after exporting Tikz code from Geogebra and compiling it?

I use Geogebra to draw the figures in my book, exporting it to Tikz code to compile. However I found that the information of labeling in Geogebra was lost after exporting or compiling, and it ...
1
vote
1answer
63 views

Draw squared edge for a node

I want to draw an edge like this: From the edge labeled "Si" to the node "Especificar tareas TD/CD/FF" but I don't know how to continue it. This is my code. Thanks \documentclass{article} ...
2
votes
5answers
142 views

How to make the simple three square box and connect them?

I want to make the three square box and simply connect them.
3
votes
1answer
63 views

Style stored in command

I have created a \newcommand with some arguments that allow me to call an other command. Command syntax: \newcommand{\nodeperso}[1]{\node[\noexpand\type#1](){\noexpand\nom#1};} I have declared a ...
4
votes
2answers
109 views

How to draw the same shape efficiently at different positions and label efficiently?

Here is the code, which is working fine: \begin{tikzpicture}[scale=0.3] \draw (1,2)-- (1,4) -- (8,4) -- (8,2) -- cycle; \draw (6,4) -- (8,4) -- (8,11) -- (6,11) -- cycle; \draw (6,11) -- ...
1
vote
1answer
52 views

Tikz Graph with bended arrows (annotations)

I have a tikz graph with bend arrows and somehow tikz draws the arrow annotation (in my case just numbers) on the arrow. This happens a lot more often when the arrow is bend. It seems that tikz has no ...
2
votes
1answer
35 views

How can I increase the padding around nodes in a fitted box?

I have code: \documentclass[tikz,border=10pt]{standalone} \usepackage{verbatim} \usepackage{textcomp} \usetikzlibrary{shapes,arrows,fit} \begin{document} \tikzset{ sum/.style = {draw, circle, ...
2
votes
1answer
62 views

Redefining some of predefined styles in tikzstyle?

In the following example, how can I redefine one property of the predefined block style in the tikzpicture environment without affecting the others: \documentclass{article} \usepackage{pgfplots} ...
3
votes
3answers
134 views

How can I make the loops fatter?

In this code, how can I make my loop fat? I know how to make it longer, but I want it wider as well. Please try to tell me using this code, and not new code. I'm new to tikZ and this is what is ...
0
votes
0answers
29 views

Styling parts of a split node in Tikz [duplicate]

Using the following code, I can currently produce the simple first multi-part node in the image below. Is there a way to set the style for individual node parts such as a different background color ...
2
votes
2answers
52 views

I would like to add y-axis labels to my tikz drawing at the given values (0, 0.05, 0.1, …, 0.5)

\documentclass{article} \usepackage{pgfplots} \begin{document} %me learning how to draw stuff in tikz \begin{tikzpicture}[] \draw[->] (0,0) -- (17,0) node[right] {$x$}; \draw[->] (0,0) ...
1
vote
1answer
112 views

Cover page : Tikz need explications

I so on this forum a very nice way to create a cover page with the tikz package, I understand globally what the functions doing but I want to understand every instruction. ...
3
votes
2answers
171 views

forest “every leaf node” and “every tree node” like syntax

I was seeing around that the forest package is better at drawing trees than tikz-qtree. I want to migrate my drawings, however, I can't find a way to easily format the tree. I see that there are ways ...
4
votes
1answer
71 views

How to typeset a MinMax algorithm tree?

I want to typeset MinMax decision trees in LaTeX, just like the one in following picture: I have played around a little and achieved part of my goals: \documentclass{article} ...
2
votes
1answer
70 views

Dotted lines with border around the dots?

When we are working with lines, it is possible to change the border color of a line using the parameter "double". Another option is to draw a thicker line in the background and use it as border. But ...
1
vote
0answers
42 views

Connect \item and \minipage with arrows

I want to connect an \item in beamer with \minipage using TikZ. Here is a MWE \begin{itemize} \item (some text)\\[0.3cm] \begin{minipage}{0.4\textwidth} \begin{flushleft} ...
4
votes
1answer
187 views

Tikz: adjusting pin anchor

Old title: Pgf .style args: optional named arguments with defaults I was looking for a possibility to adjust the anchor of the text of a pin. Tikz does not allow this out of the box. This question ...
1
vote
0answers
83 views

TikZ align nodes with different heights

iam trying to make a treeview with tikz of the different hazards modes that exist with lithium-ion batteries. now i have the problem that some nodes have a text with two lines and then it doesn't look ...
4
votes
3answers
148 views

Adjusting edge and vertex label

I am using the following code (thanks to several answers on TeX.Stackexchange) to draw a small bipartite graph: \documentclass{article} \usepackage{tkz-berge} \usetikzlibrary{fit,shapes,arrows} ...
2
votes
2answers
47 views

PGF-Plot not at centre

I would like to plot some circles with pgfplots inside a diagram, however, they are always off-centered. \pgfplotsset{width=7cm, compat=1.12} \pgfplotsset{compat=1.5.1} \begin{tikzpicture} ...
2
votes
0answers
34 views

How to stack the tizk tables in block?

\documentclass{beamer} \usepackage{adjustbox} % adjusting table (too wide) % Fancy tables \usepackage{tikz} \usetikzlibrary{trees,positioning} % tree \usetikzlibrary{matrix} % Table ...
4
votes
2answers
79 views

Expansion in forest

I am trying to expand a macro as part of a style within a forest tree. Here's an MWE: \documentclass[tikz,border=5pt]{standalone} \usepackage{forest,ifthen} \begin{document} \bracketset{action ...
4
votes
2answers
103 views

tkz-berge, renumbering vertices

This TikZ code for drawing an icosahedron and labeling gives only a partial answer to my question. With the following code \documentclass{article} \usepackage{tkz-berge} \begin{document} ...
3
votes
1answer
63 views

Can we define a node's inner sep value with relative units in terms of the in-scope font key value?

Very often I find myself defining styles for various drawing annotations. This is great for structuring figures. There is, however, a minor thing I hope I can improve. This stems from the fact that ...
2
votes
2answers
144 views

How to center text in a ellipse and to draw circle nodes?

I have spend much time on this figure too and I have tried different types of tikz, pstricks and multido use packages. I would like to create a figure, which look like this: I have wrote following: ...