{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
0answers
67 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
50 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
57 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
45 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
203 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
31 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
59 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
53 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} ...
1
vote
5answers
118 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
60 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
90 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
31 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
31 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
53 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} ...
1
vote
2answers
78 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
49 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
92 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
121 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
62 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
66 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
33 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
132 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
64 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
128 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
43 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
31 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
69 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
100 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
48 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
109 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: ...
1
vote
0answers
98 views

Möbius transform Tikz - special request

I would need some picture in Tikz but I don't know how could I achieve them. ( I don't know if exsist some code of it). There is a youtube video which shows the Möbius transforms in two dimension ...
1
vote
1answer
56 views

Aligning edge labels horizontally with tikz package

I have the following figure: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage[active,float]{preview} \usetikzlibrary{calc} ...
3
votes
2answers
94 views

How to set distance between individual siblings in a tikz-qtree tree?

I have made this tree for my research project. I've just renamed all attributes for this question. You can see in the picture below that siblings on the top are very congested and the picture overall ...
1
vote
1answer
39 views

Replace axis line which has been set as a style before

I can't figure out how to override the axis line style from "with arrow" (set in a style) to "without arrow". Here is a MWE: \documentclass[]{scrartcl} \usepackage[utf8]{inputenc} ...
2
votes
0answers
29 views

Add a row and a column to tikz matrix with a different style [duplicate]

I should add a header row: 1 2 3 4 to a matrix and a column (as before: 1 2 3 4 ) on the left of the same matrix. But the style should be different like below: this is my MWE: ...
10
votes
1answer
176 views

TikZ decoration to draw a winding or twisting ribbon

I enjoy TikZ styles and decorations a lot, but I still dabble with them. I know how to draw ribbons with a style, if they aren't meant to twist. But I'd like to define a style that has a twist of the ...
3
votes
1answer
79 views

Adding manually a grid to a .tikz file generated by matlab2tikz

I asked this question here Stackoverflow Now, I know of the existence of the problem with the conversion with the matlab2tikz script and the inclusion of a grid. GridProb How can I manually add a ...
4
votes
1answer
28 views

How can I set a style in `\forestset` which requires delayed calculations with the results of node walks?

What is the correct way to wrap the specification for the tree below into the my binomial style defined in \forestset and why? The following code works fine: ...
2
votes
1answer
72 views

Labels close to pie chart figures

I am trying to crate two pie charts side by side using tikz. I've found a code in the web that I am adapting, and so far, it seems to work. However, instead of using a separate legend below, I would ...
1
vote
0answers
51 views

tikz label over path flips!

I'm trying to come up with a nice schematic of recursive calls using tikz, but the result is not what I expect as one label is flipped without a reason: The MWE is: ...
9
votes
3answers
251 views

Tikz Edge: Distance from other nodes?

I have the following Tikz code: \usetikzlibrary{positioning} \begin{tikzpicture} \tikzstyle{bordered} = [draw,thick,inner sep=5,minimum size=10,minimum width=100,font=\sffamily] ...
1
vote
1answer
56 views

Get x and y labels for tikzpicture

I have plotted a scatter diagram with pgfplots: With this code: \begin{figure}[H] \centering \begin{tikzpicture} \pgfplotsset{ticks=none} \begin{axis}[ymin=0, ymax=10.5, ...
2
votes
1answer
68 views

How to get line width and inner sep values?

I try to get the values of line widths and node inner sep. How to read such a value form own style (if it will be specified during modifications of the picture) or if it is not specified in this ...
4
votes
1answer
56 views

How to group 2 by 2 style this plot?

I have the following plot that say something about performance: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[legend ...
5
votes
1answer
108 views

pgfplots - How to specify default line widths for plots and marker?

I would like to specify different default line widths for plots and for markers (like x-marker). For the plot line width, I use: \pgfplotsset{every axis plot/.append style={line width=1pt}} Yet, ...
6
votes
2answers
134 views

How does the angle key from arrows.meta TikZ library work?

The title says it all. How does angle=<angle>:<first dimen> <second dimen> works. More exactly, what do the first length and the second length mean? \usetikzlibrary{arrows.meta} ...
4
votes
1answer
100 views

Why does “fill opacity” affect nodes in the same path?

With the following code \documentclass[border=3mm,tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[fill=brown] (0,0) rectangle ++(1,1) node[above right]{B}; \draw[fill=brown, fill ...
5
votes
1answer
108 views

How to draw inside a TikZ node using node style with arguments?

The question is an extension to this question, and is also related to this one. I want to draw a Simulink-style sum block which is basically a circle node with a port in each direction (north, west, ...
4
votes
2answers
38 views

Why are explicitly positioned nodes affected by 'on chain' as a default?

I want to place an X on a connection to show it is impossible. This is the MWE; the full example has a large number of chained nodes, hence the default, even though the MWE has no chained nodes. ...