{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

5
votes
2answers
142 views

Including TikZ file: the key '/tikz/cap' requires a value

I'm trying to include a file with a specific shape (cup) into another TikZ image, in order to use the cup as a "stamp" to draw more complex figure. The file is located in ...
4
votes
1answer
63 views

Code with foreach AND coordinate does not compile - but if i remove one or the other, it compiles

Based on this question i did some experiments with tikzset, coordinates and foreach. The following code plots four times the same thing. Twice with and twice without a tikzset. Twice with and twice ...
4
votes
3answers
185 views

Tikz: Node instead of newcommand: Making custom nodes

How do I make a special node out of the command \innblock? \documentclass[tikz,border=5]{standalone} \makeatletter \newcommand\getwidthofnode[2]{% \pgfextractx{#1}{\pgfpointanchor{#2}{east}}% ...
6
votes
2answers
144 views

changing your latex code to modify the existing block diagram

My figure now looks like figure 1 using below code whenever I try to add more blocks ,the blocks become overlapping . % https://www.packtpub.com/hardware-and-creative/latex-cookbook ...
4
votes
1answer
48 views

Why does storing a tikzset parameter in a coordinate cause an error?

I'm having a hard time understanding how TikZ handles coordinates. This question is thus related to my previous two questions, and some more in the future... In the code below I define a tikzset that ...
12
votes
5answers
149 views

How can I specify a different style for (a difficult to describe concretely) part of a line?

I'm in the following situation: Using TikZ, I have drawn a curve which is fairly simply described: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (1,1.5) .. ...
6
votes
1answer
105 views

Using coordinates in a tikzset

I try to pass two coordinates to a tikzset and plot a arrow between those points. However, it does not work. I guess it's because of the interpretation of the coordinates. The result of my MWE is ...
1
vote
0answers
54 views

How to add text at a particular location in tikz picture

From TikZ Adding Text I try \node[draw,align=left] at (0.5,-6.5) {text}; But I have defined previously that every node/.style = {draw, circle, minimum size = 7mm}. I do not want the circle around the ...
1
vote
2answers
225 views

Tikz drawing: child node positioning

I want to achive such drawing with n nodes in level n. (Ignore the irregularities of circle) From http://www.texample.net/tikz/examples/coin-flipping/, it has 4 nodes in level 3. When I cancel one ...
3
votes
1answer
58 views

How can I apply a style to elements of a submatrix of a tikz matrix?

I'm trying to apply a style for a submatrix of a matrix and ended up by passing arguments through two .list-handlers. Things don't work as I expected, again I'm just able to set either rows or columns ...
7
votes
1answer
158 views

Beamer annotated tables

I am trying to include some boxes around numbers in a table. I am using the method exactly described on the answer to question below: Beamer, annotated tables using Tikzmark The issue is that the ...
2
votes
1answer
81 views

Use a macro that expands as tikz code as content for forest

I'm trying to produce a tree that sets the content of each node as a table. My attempt is like this \documentclass{article} \usepackage{forest} \tikzset{ table/.style={% rectangle split, ...
2
votes
1answer
142 views

Draw dotted line with circled dots and automatic spacing

I'm trying to create dotted lines with tikz where every dot has a defined size and a circle around it, with also a defined size. First I applied this answer to create a dash pattern: \tikzset{ ...
2
votes
0answers
42 views

Tizkit: Package pgfkeys Error: I do not know the key '/tikz/shape1' [duplicate]

I'm trying to use tikzit, and I created a shape (basically a new kind of node). The shape is located into /home/user/.config/tikzit/shapes/shape1 but tikzit (and pdflatex as well, obviously) doesn't ...
5
votes
3answers
287 views

How to draw architecture with tikz

I'm learning tiKz packages for the drawing of charts etc in LaTex but I have to draw an architecture that is quite difficult for me. I need to draw the architecture in the figure below and, in ...
1
vote
0answers
82 views

Tikz draw lines on Triangle

I was wondering if any of you know how to draw the lines there is in this picture? I don't have any problems with drawing the triangles and angels itself, it is just the lines there are going through ...
3
votes
1answer
59 views

Tex Add nodestyle

Is it possible to use different node styles with my "syntax" of defining the nodes (using [. ]). \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
1
vote
1answer
115 views

Section title opposite to the logo

Could you please advise me how I could change that code from this link to place the section title opposite to the logo? I am new in LaTeX and I would be very grateful for advice. For example: 1st ...
0
votes
1answer
82 views

Abstract word embeddings with TikZ

I am new to TikZ and I am looking to draw simple abstraction of word embeddings. Here's a quick sketch from Keynote: Any help will be much appreciated. Thanks!
4
votes
2answers
103 views

Problem with vertical alignment and centering of caption for pgfplot

I am having a problem keeping the vertical alignment of the plots. Also, my caption text is not centered. This is what I get in my document: Can you assist me in getting the graphs to align ...
3
votes
1answer
150 views

How to make a line style for drawing the ground line?

I'd like to draw a piece of "ground line" (picture below), but I don't know, how to make a line style and how to ensure proper localizations of the picture boundary. The solution of achieving an ...
3
votes
1answer
125 views

Arrow pointing to text in equation

This question is building from the question asked here and answered by Mr. Gonzalo Medina I am now trying to get this effect: \documentclass{book} \usepackage{amsmath,amsfonts,amssymb,amsthm} ...
1
vote
1answer
93 views

Draw angle in Tikz

i am trying to draw an angle in this Tikz picture but i just can't figure out how to do it rigt? iw ant to draw the angle so it is red and a random value \documentclass[a4paper,10pt]{article} ...
3
votes
1answer
110 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
70 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
86 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
93 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
99 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
79 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 ...
1
vote
1answer
67 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
143 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 ...
1
vote
1answer
104 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 ...
3
votes
0answers
46 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
65 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 ...
4
votes
1answer
154 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 ...
2
votes
2answers
106 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
100 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
89 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
27 views

creating double sided arrow with tikz [duplicate]

Ho can I make a figure like the following with tikz package?
3
votes
1answer
229 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} ...
2
votes
1answer
123 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} ...
0
votes
1answer
91 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 ...
3
votes
1answer
81 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
336 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
147 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
142 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
393 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
315 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
68 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
142 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} ...