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

Lines not ending on nodes with tikz

I have three nodes: \draw (4,2) node(p1)[label={[label distance=0.9cm]0:$$}]{}; \draw (5,3) node(p2)[label={[label distance=0.9cm]0:$$}]{}; \draw (6,4) node(p3)[label={[label ...
1
vote
0answers
29 views

Indentation issues with highlighting cell using tikzmarkin

I am trying to eliminate offset/indentation issues when using tikzmarkin to highlight regions of a table. \documentclass{beamer} \RequirePackage{booktabs,colortbl,caption,tabularx,chngcntr, tikz, ...
4
votes
1answer
57 views

Why can’t I use “execute at begin node” together with “align”?

I want to design a tikz style that will modify a node content according to some function of mine. As suggested in an answer to the original question, I can use the “execute at begin node” key for ...
3
votes
0answers
70 views

Make an organisation Chart on Latex

I am looking to make an organisation chart on latex for a group project. I have never done this before, and I saw that I can use the Forest package or using tikz. My coworker, made the chart using ...
0
votes
0answers
25 views

Approaches to automatically scale figures

I am trying to come up with a general rule of thumb to scale figures such that their vertical size and horizontal size does not exceed a certain limit (assume 300pt). The monkey patching way to do ...
3
votes
3answers
56 views

How to conditionally color nodes in a grid with a style

I have 3 styles called S1, S2 and S3. I want to conditionally color the nodes. I tried the \ifnum with no luck. You can see the single line of code that has been commented out. That is what I ...
4
votes
0answers
50 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
4
votes
1answer
34 views

How to pass style options to \pgfextra nodes

According to this answer, I created a style for drawing rectangles with double lines. The problem is, if I pass options like fill=color or thick to the node which I create with the style, these ...
2
votes
2answers
126 views

Area diagrams in Tikz

Introduction: I'm currently doing some research in the field of continuum percolation, and I need to create relevant diagrams according to the following specifications: The diagram consists of ...
4
votes
2answers
27 views

Specify top/bottom color of a shade style in TiKz

I just want to modify the color of a shaded node. In the docu I found only an example of right color=...;left color=.... But per default the color of a shaded node goes vertical. And I don't want to ...
5
votes
1answer
110 views

How to define a TikZ style for a `matrix of node keys`?

I would like to define a style matrix of node keys such that \input tikz \usetikzlibrary{matrix} \tikzpicture \matrix [matrix of node keys] {red,node contents=a & blue,node contents=b \\}; ...
3
votes
1answer
68 views

Tikz local style within subfigure

I've many "tikzpicture"s which are part of a "subfigure" environment. I don't want to use a global "\tikzstyle". I can write them in each of the "tikzpicture"s. This creates time, space, and editing ...
3
votes
1answer
68 views

Front Cover for document

I was attempting to get an effect similar to this cover that is found here: I started with the code found here that draws a grid with colors. How can I go about completing the code to get the ...
6
votes
1answer
104 views

Beamer's (implicit) options regarding tikzpictures and shadows

While trying to use the torn page effect in a beamer document, I was confronted to an unexpected problem. If you just take the the code of this answer and compile it, you get: If you just change ...
4
votes
5answers
538 views

doubly linked list tikz

I want to draw two doubly linked lists and I know that I can use the tikz package. But I don't know how to. Could anyone show an example code piece for the following doubly linked list? I found some ...
1
vote
1answer
38 views

Caption in a tikzpicture drawing

I have this LaTeX: The \caption line at the end breaks the compilation. How could I make this work? Thanks \begin{center} \begin{tikzpicture}[scale=0.2] \tikzstyle{every node}+=[inner sep=0pt] ...
1
vote
1answer
88 views

Section title oppsite 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 ...
4
votes
1answer
94 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: الدورانية ...
1
vote
0answers
79 views

shading bent tube

want to build a tube-system.Have tried top, bottom, middle color.But how to fill the bent tube? \documentclass[tikz]{standalone} \begin{document} \tikzset{ pics/.cd, % tubeh tubeh/.style={ ...
3
votes
2answers
146 views

Draw a special box with tikz

By inspiring from that nice code of that question I would like to draw something like that but with my tired i just could draw this Output: \documentclass{article} \usepackage{geometry} ...
4
votes
1answer
79 views

Why is my tikz-figure rendered flushed to the right off-centre?

Here is the code for my graphical model: \documentclass{standalone} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit} \usetikzlibrary{shadows} ...
3
votes
1answer
107 views

Eyeglasses as item bullet

I would like to Customizing lists itemize and title of theorem to looks like that : as usual in order to Switch chip, size and color for itemize i use \usepackage{pifont} or we can use Math ...
8
votes
4answers
192 views

Allignment of Tikz tree levels

I want to reproduce the following figure. And got the following figure with the code given below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{arrows, shapes, trees, positioning} ...
10
votes
4answers
460 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] ...
4
votes
2answers
303 views

How can I draw a tree structure graph?

I already draw the directed graph but it shows some error. MWE: \begin{document} \begin{figure} \begin{tikzpicture}[>=stealth',shorten >=1pt,node distance=3cm,% on ...
6
votes
1answer
133 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 ...
5
votes
2answers
101 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 ...
12
votes
5answers
142 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) .. ...
2
votes
0answers
40 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 ...
4
votes
3answers
154 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}}% ...
4
votes
1answer
56 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 ...
6
votes
2answers
111 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
42 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 ...
6
votes
1answer
81 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 ...
5
votes
1answer
457 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 ...
2
votes
1answer
104 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{ ...
5
votes
3answers
235 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
37 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 ...
3
votes
1answer
42 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 ...
1
vote
2answers
135 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 ...
2
votes
1answer
63 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, ...
3
votes
2answers
177 views

TikZ align nodes with different heights

I am trying to make a tree view 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 ...
1
vote
0answers
59 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
55 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} ...
0
votes
1answer
74 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
73 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
130 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
88 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
65 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
84 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] ...