Questions tagged [tikz-styles]

{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}.

Filter by
Sorted by
Tagged with
3 votes
2 answers
82 views

curly braces around set of nodes with some text

Is it possible to put curly braces around a set of nodes with some text near the bottom right of the brace. \documentclass[a4paper]{scrartcl} \usepackage{amsmath,amssymb,amsfonts} \usepackage{tikz} \...
  • 517
0 votes
2 answers
75 views

Moving a box in a forest tree diagram to the middle [closed]

Could you help me place the grandchild and grand-grandchild in the middle of the diagram? How could I do it? I also notice that when I try to add a fourth grandchild or child, the graph does not fit ...
0 votes
1 answer
131 views

Causal diagram with many grandchildren and great-grandchildren

Causal Diagram with a Common Grandchild How do I add a grand grandchild to the bottom? What about if I want to add 3 grand-grandchild and then one common grand-grand-grandchild as you did above? ...
2 votes
2 answers
199 views

Causal Diagram with a Common Grandchild

I want to make the following diagram type, but with a vertical orientation (Common Grandchild Horizontal): Specifically, I want the 3 children from my diagram to end up having a common grandchild. So ...
2 votes
1 answer
64 views

tikz style for cell of table

If I make a table by tikz, I can define style for row or column. For example, \tikzset{ row 1/.style={ minimum height=3.5em, nodes={font=\bfseries} }, column 1/.style={ ...
  • 139
2 votes
2 answers
563 views

How to change diamond with heart :)

The title is indeed correct. I want to change the diamond in the following figure with heart and star with club symbol: \documentclass[tikz]{standalone} \usetikzlibrary{shapes.geometric} \...
  • 199
1 vote
1 answer
48 views

Scaling labels at the same proportion with pictures in tikz

I'm learning Tikz. I draw a picture with some labels and I want to insert it in my thesis. But I would like to scale it if it is big. Scaling pictures is not scaling the labels. I can apply a scaling ...
  • 610
0 votes
1 answer
126 views

Show numbers on help lines (tikz)

I want to learn tikz, but since I can't visualize coordinates, I need to draw/show step numbers on help lines. How can I achieve this? \documentclass{standalone} \usepackage{tikz} \begin{document} \...
  • 610
2 votes
2 answers
97 views

Access tikz matrix cell content to programmatically set cell style

I'm trying to set the style of each cell of a tikz matrix. However, I can't find information on how to access the content of the cell to pass it as an option to the style. What I would like to do is ...
  • 10.8k
2 votes
2 answers
110 views

Custom section style

I would like to format the section like seen below. I started with these codes. \documentclass[openany]{book} \usepackage{titlesec,xcolor} \usepackage{mathspec} \titleformat{\section}{\Large\fontspec{...
1 vote
0 answers
170 views

Illegal parameter number in definition of \pgfkeyscurrentkey. ... fill=#2!#3, inner sep=0pt, outer sep=0pt}} [closed]

According to the answer of @percusse here, I am trying to define a multi-argument \tikzstyle as below \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \tikzset{mystyle/....
  • 3,504
2 votes
2 answers
120 views

Placing text and arrows on a TikZ circle

I have the figure below from the following MWE: \documentclass{article} \usepackage{tikz} \usepackage{etoolbox} \usetikzlibrary{arrows.meta} \usetikzlibrary{bending} \usetikzlibrary{decorations.text} ...
  • 296
3 votes
1 answer
61 views

How can add the next objects to format the page of the document?

I see some layout in a book that I liked, and I'm trying to make something that looks like it, but I'm unaware of how it should be done. Layout intended (these are two pages separated) First page 2....
  • 1,077
19 votes
1 answer
1k views

Create fancy environment in Tikz

Trying to prepare homeschool reading material for kids in lockdown and I would love to use an environment like the one below: I adapted codes from enter link description here Credit @SebGlav and made ...
0 votes
1 answer
74 views

Tikz `regular polygon` in Rmarkdown

I am looking to produce a tikz figure with a node triangle. Most ressources I have found online use \usetikzlibrary{shapes} and its regular polygon. Rmarkdown seems unable to use it. This will work in ...
  • 101
6 votes
3 answers
247 views

Circles not getting filled with the right color

The following code \documentclass{minimal} \usepackage{tikz} \begin{document} \[ \begin{tikzpicture}[ every circle/.style={radius=2pt} ] \filldraw[draw=black] (0,0) \foreach \...
2 votes
3 answers
339 views

Tikz: how to position arrows emanating from a sentence?

I wish to create the following diagram (the arrows could be made shorter): Here, quick points to quick, jumps points to jumps, lazy points to lazy. However, the following code seems to create these ...
  • 497
2 votes
1 answer
57 views

Arrows do not appear in graphdrawing

I try to draw a diagram showing how different areas communicate with each other. In the end it should have the areas labelled A1,...,A5 in a circle and there will be many labelled arrows between them. ...
  • 33
1 vote
1 answer
42 views

Graph in pgfplots: global style for all node labels

I have this graph rendering three functions: \documentclass[12pt,a4paper]{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ width=10cm, height=10cm, ...
  • 13
7 votes
1 answer
196 views

Gaussian on an oblique ray with Tikz

I try to draw a generic Gaussian over a ray, to indicate a possible generic trend. At the moment I have managed to draw both the ray and the Gaussian, but I can't get it to lay on the ray, as changing ...
0 votes
1 answer
66 views

Editing 2D Drawing using Tikz in Latex

I'm trying to edit a 2D figure using Tikz. My current code and plot are as follow: \usepackage{tikz} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
  • 159
1 vote
1 answer
84 views

Get one value from a pgf/tikz style

Considering \pgfkeys{ A/.style={ key=value, key2=value2, } } how do I retrieve "value" from "A" and "key"? After some experiments, next seems to work for at ...
2 votes
2 answers
219 views

How to change \slice{} color on quantikz

Within quantikz package there's this possibility to put a single slice to separate two columns, through the command \slice{}. By default it is colored in red and no standard command allows to change ...
-1 votes
1 answer
164 views

How to customize the background color by using tikz [closed]

Does anybody know how can I remove the black color generated in the background? \documentclass{beamer} \usetheme{Hannover} \usepackage{xcolor} \usepackage{tikz} \usepackage{pgfmath} \usetikzlibrary{...
  • 9
5 votes
1 answer
62 views

Tikz: Style depending on previous styles

I would like to create a style that depends on other style values, for instance "if the current looseness is bigger than 2, don't change it, otherwise set it to 2". I'm also interested to ...
  • 5,265
1 vote
1 answer
109 views

How to customize todonotes not to be in the margin

I would like to produce solved examples with comments like below. I tried package todonotes with the following codes \documentclass[12pt,openany,twoside,fleqn]{book} \usepackage{amsmath} %\usepackage[...
3 votes
1 answer
203 views

Re-creating Tikz image with other package

I have an array in my latex template something like this: This picture is made with Tikz. Here is the code: \begin{figure}[!h] \centering \begin{tikzpicture} [ nodes in empty ...
0 votes
0 answers
34 views

Create different label styles for \dimline in Tikz

I am creating a diagram that has a lot of metrics that need to be labeled. I have found myself copying and pasting my own code on multiple occasions and was curious if there's a way to create a ...
  • 23
0 votes
2 answers
134 views

Tikz: Text not aligned in Box of flow chart

I am constructing a flow chart type diagram using tikzpicture package. Please find the code and the output below However, as seen in the image, the text is not aligned in the box. The text is touching ...
  • 791
2 votes
2 answers
112 views

Creating arrow plot with tikz

How can I make with tikz in latex, something like in the following plot? Do you have any reccomendation where to search anything like this in overleaf or maybe if someone could tell me what commands ...
  • 133
1 vote
1 answer
353 views

How to produce fancy box in tcolorbox

I would like to reproduce the fancy box below. I tried to adapt some codes from the manual Sec 10.2 and made adjustment as below. \documentclass[openany]{book} \usepackage{xcolor} \usepackage[many]{...
1 vote
1 answer
68 views

Changing number format in newmdtheoremenv or newtheorem

Using the mdframed package (with [frame-method=tikz]) I can create a new environment that resets every chapter with \newmdtheoremenv[<options>]{myenv}[<numberedlike>]{Sample}[chapter] The ...
0 votes
1 answer
92 views

How to draw circle covering of a triangle with Tikz

I want to modify the answer to this post in two ways: Pack a triangle Put a point at the center of each circle with label y_1,y_2,... How can this be done? Thanks in advance :)
  • 332
0 votes
1 answer
35 views

Separate lower level child nodes

I'm trying to represent a diagram of Max Heapify. I used the following settings for tikz \usepackage{tikz} \tikzset{ heap/.style={ every node/.style={circle,draw}, level 1/.style={sibling ...
2 votes
1 answer
184 views

xymatrix: make long equal signs "=" to replace the arrow

Do people know how to make long equal signs "=" to replace the arrow in the xymatrix? \begin{equation} \xymatrix{ a \ar@{^{(}->}[r] \ar@{^{(}->}[d] & b\\ c & d }\nn \end{...
  • 2,179
2 votes
1 answer
102 views

What is the simplest way to control the opacity of block fill in `nicematrix`?

I am trying to control the opacity of blocks background fills. I tried the following \pgfsetfillopacity{<transparency level>}, which controls the opacity of the entire array drawn by nicematrix ...
0 votes
0 answers
188 views

Change font size in legend

I have the following tikz plot figure. I want the legend to have a smaller text. I would prefer to just scale it by 0.5. Is there any easy way to do that? Thanks in advance! \documentclass[10pt,...
  • 1
1 vote
1 answer
61 views

Text make the path of a letter

How can a text make the path of a letter, for example, letter "S"? Instead of taking a circle like for the following code: \documentclass[landscape]{article} %\usepackage{babel} \usepackage[...
  • 11
2 votes
3 answers
92 views

Line below the figure

\documentclass[border=6mm]{standalone} \usepackage {siunitx} \usepackage {tikz} \usetikzlibrary{angles} \sisetup {output-decimal-marker={,}} \begin{document} \begin{tikzpicture}[scale=0.3,...
1 vote
1 answer
115 views

Tikz: How to append style to avoid styles spilling across nodes

My MWE is based on the excellent template. The original template defines a \vacations command to store the dates of the vacation and the text to be printed; it defines some styles for each of these; ...
  • 2,684
3 votes
3 answers
572 views

How to draw a Cartesian plane with shaded upper half plane

I am a beginner at LaTeX. Could someone please guide me how can I draw the attached picture with caption in my LaTeX presentation? P.S. I want the area with diagonal lines to be a shaded area (...
1 vote
1 answer
65 views

How to label my diagrams in Tikz

I found that the following code using the tikz package will draw a rectangle: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle (4,4); ...
4 votes
1 answer
147 views

Tikz Antenna Diagrams

I need to draw these antenna diagrams. My approach is using kind of a parametric curve like this: \documentclass[convert = false, border=5pt]{standalone} \input{../common/settings.tex} \...
  • 187
1 vote
1 answer
83 views

Vertical representation of Euclid's algorithm

I want to show how to find the gcd(greatest common divisor) of 299 and 247 : But how can I get this ?tabular?Thx for your kind reply.....
1 vote
1 answer
124 views

tikz figure from file

Lets say i have a tikz figure in a file called tik_fig1.tex and tik_fig2.tex with \documentclass[tikz]{standalone} Is it then possible to add these to a main.tex with \documentclass{article} by ...
1 vote
1 answer
58 views

How do I embed a smaller graph in a larger graph?

I wish to embed a bell-curve in the center of a big circle (hopefully with some flexibility in location) but fail to accomplish that. The following is my current code. Need help! Thanks. \...
1 vote
1 answer
161 views

How to illustrate double distributive property?

$\left(a+b\right)\left(c+d\right)=ac+ad+bc+bd$
2 votes
1 answer
223 views

Weekly calendar with different tasks

I have found a code for a calendar and would like to be able to write different tasks for each day. Basically, to make the command \daytext individual for each day. I have added an example with ...
2 votes
2 answers
117 views

Placing three tikzpicture items next to each other in one Figure - adding two arrows between them

Hi, I have drawn three items in tikzpicture, and now would like to place them next to each other, in a row. Ideally placing a \leftrightarrow between them to indicate that they are equivalent. I have ...
0 votes
1 answer
60 views

How to add horizontal space between two blocks of tikzpicture

I need horizontal space between (block6) and (block7). There are two separate blocks but both are overwritten. Here is the code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{...

1 2 3
4
5
35