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

Tikz circle diameter when letter inside?

I have the following tikz code: \tikzstyle{city} = [draw, fill=white!20, circle, node distance=0.5cm] \begin{tikzpicture}[baseline={(current bounding box.center)},node distance=0.7cm] \node [city] ...
3
votes
1answer
56 views

Drawing a feynman diagram results in “unknown key”

I want to create something similar to this image (just the upper part, and with different line shapes): with tikz, thus I started with defining the different elements and placing them: ...
1
vote
0answers
82 views

curves with Tikz

I have 5 curves of functions that I want to put in the same TikZ graphic. The functions are: $$f(x)= 1.5e6(s^(-1/0.06)-1)^(1-0.06)$$ $$g(x)= 10^7(s^(-1/0.412)-1)^(1-0.412)$$ $$h(x)= ...
4
votes
1answer
73 views

Weird braces tikz/decoration

The right end of the braces is compiling weird in every program that I tried to use. Can someone help me, please? \documentclass[tikz,border=5]{standalone} \usepackage{tikz} ...
4
votes
1answer
76 views

Tikz triangle formatting

I have a problem when i am drawing triangles in TikZ. If i want to add a value to the figure then it looks odd and are laying in layers. is there any way to "beautify" this? ...
3
votes
1answer
77 views

Why styles aren't propagated in TikZ scopes?

I need to embed a (complex) TikZ picture in a command in order to reuse it in several scales and colors. No problems when scaling, but I cannot change the color of the image (see image below for MWE ...
4
votes
1answer
117 views

Annotate the table row highlighted by Tikzmark in Beamer

Here is my situation: I am using \tikzmarkin to highlight relevant rows of a results table in my Beamer slide deck. I want to put annotations to the right of the row highlight, so that hypothesis ...
1
vote
1answer
54 views

Tikz arc arrow scaling problem [duplicate]

I want the arrow to scale with the arc scale. See my example below. You will notice that the arrow looks fine as long as the arc radius is large. \documentclass[crop,tikz]{standalone} ...
1
vote
1answer
96 views

Align boxes in a page

Thank you very much. I could do the boxes using your comments. The one thing I am having problem is how to align the first and second box (China and EE.UU.). Here is my minimal example (I am writong ...
1
vote
1answer
91 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: ...
1
vote
1answer
111 views

bend circuit elements in tikz

I am trying to bend circuit elements in bigger circuits for clarity of the values/labels of elements. However, whenever I use bend command, the circuit element is replaced by a line. Any suggestion on ...
3
votes
0answers
37 views

Variable dash spacing on a line in tikz/pgfplots

I would like to have a variant on the tikz dashed line style that begins with dashes spread far apart, and as the line continues to plot, the spacing between dashes reduces, perhaps to zero at the ...
3
votes
0answers
61 views

Is it possible to increase the line's width from its start to its end?

I was wondering if it is possible to let the line's width dynamically increase from its start to its end. I found such an illustration in a book: I am a TikZ noob but what I came up with would be ...
2
votes
2answers
73 views

How to draw the leads of the Controlled Current Source in a Box?

\documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[ start chain=going right, box/.style={ on ...
0
votes
1answer
85 views

Why my Tikz can not show color in standalone document class ? But the color do show in article class

Why my Tikz can not show color in standalone document class ? But the color do show in article class. Here is the code which I follow from Example: Rusting Iron % Rusting Iron % Author: Jason ...
1
vote
1answer
78 views

Node with curved, parallel lines

I want to create a node style, which consists of a circle with two lines (curved inwards possibly) connecting south west with south east and north west with north east. After a bit of research, I ...
1
vote
0answers
25 views

creating double sided arrow with tikz [duplicate]

Ho can I make a figure like the following with tikz package?
3
votes
1answer
115 views

Setting different sizes for markers and line width

I'd like to draw a plot with a very thin line but large markers, like in the following example \documentclass[tikz]{standalone} \RequirePackage{pgfplots} \begin{document} \begin{tikzpicture} ...
0
votes
1answer
87 views

Drawing mitochondria [closed]

Could someone give me a code to plot a mitochondrion like the picture below, or something similar. The pie plot is not necessary. I'm a beginner of tikz and I tried some method and googled a lot but ...
2
votes
1answer
100 views

cube folding with tikz

I would like to fold 12 cubes to one. Please help me with this. \documentclass[11pt]{article} \usepackage{tikz} %optional libraries \usetikzlibrary{decorations,arrows,automata,positioning} ...
3
votes
1answer
65 views

How to perform correct manipulation of child?

MWE: \documentclass[onecolumn]{IEEEtran} \usepackage{tikz} \usetikzlibrary{mindmap} \pagestyle{empty} \begin{document} \begin{figure}[H] \centering \begin{tikzpicture}[mindmap, grow cyclic, every ...
3
votes
2answers
183 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
139 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
121 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) ...
2
votes
2answers
230 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 ...
13
votes
3answers
369 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 ...
1
vote
1answer
56 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
113 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} ...
2
votes
1answer
121 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 ...
0
votes
0answers
45 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
132 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
88 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) ...
3
votes
3answers
165 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 ...
4
votes
1answer
68 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
77 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
50 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
73 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
67 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 ...
6
votes
2answers
104 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
95 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
73 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} ...
4
votes
1answer
404 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 ...
1
vote
1answer
284 views

drawing a 2D-plane

i need to draw this plane, but i don't know how can anyone help me? its important i need it in my master report. i try to use this from an old example to start with but it didn't work ...
3
votes
1answer
73 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
178 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
259 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 ...
1
vote
0answers
86 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 ...
2
votes
1answer
252 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
1answer
75 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
190 views