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
0 votes
1 answer
16 views

How to adjust a box position with tcolorbox

I would like to adjust the position of a box created with tcolorbox by respecting the values of the horizontal margin on each of the two sides. For instance : I would like to avoid the box to appear ...
user avatar
  • 27
0 votes
1 answer
38 views

Creating a box surrounded by text in Tcolorbox

How is it possible for me to put a box of adjustable size surrounded by a text in a latex document ? For instance : my inspiration is from the yellow boxes in this image : \documentclass{article} \...
user avatar
  • 27
0 votes
1 answer
29 views

Creating 2 boxes side by side with tcolorbox

I want to create 2 boxes side by side (image below) in order to have the red box on the right of the blue one : I wrote this code but I don't know how to do it (I am just specifying the width to fit ...
user avatar
  • 27
2 votes
1 answer
36 views

Positioning and Aligning Nodes in TikZ

I am trying to make a business card and have made the following so far (based on this): % !TEX TS-program = xelatex \documentclass[10pt,oneside,final]{article} % set all margins to 0 and set business ...
user avatar
  • 185
3 votes
4 answers
272 views

Subgroup diagram of $S_3$

I am trying to make the subgroup diagram of the symmetric group $S_3$. Analyzing some materials, I arrived at something close, but it is still far from desired. Below I present the commands that I am ...
user avatar
  • 225
1 vote
1 answer
31 views

How can I align tikz nodes ragged left?

I'm producing a CV from a template which uses tikz nodes for a general skills section. This is what the section looks like: I would like the nodes to be left-aligned in relation to one another, ...
user avatar
  • 133
0 votes
2 answers
56 views

tikz: draw arc between two specific points

How can I draw between two specific coordinates? Cord are (1,0) and (5,0) \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \usepackage{...
user avatar
4 votes
2 answers
101 views

Style rows/columns of a `tikz-cd` diagram

Apparently, the tikz keys row n/column n don't work in tikz-cd diagrams: \documentclass{scrartcl} \usepackage{tikz-cd, tikz} \begin{document} \[ \begin{tikzcd}[row 1/.style={nodes={font=\...
user avatar
  • 1,486
0 votes
1 answer
13 views

How to return/realign/reunite a branch of a tree structure to the original parent lineage using the forest package?

I am drawing etymological trees using forest and I am wondering if I can reunite my forked-off branches back with the main "line" somehow. Essentially the question could also be: Can one ...
user avatar
0 votes
2 answers
35 views

tikz: fit rectangle to content and rectangle nodes

I'd like these two rectangles are positioned side by side, aligned with their upper side, without having to "manually" calculate the position, using the anchor points. I've made sure that ...
user avatar
-1 votes
0 answers
36 views

Need help animating these figures with Tikz in Beamer

Can someone help me to animate these figures with Tikz in Beamer?
user avatar
  • 1
3 votes
1 answer
84 views

Change line draw style in TikZ

In order for the edges of the graph in the figure to look beautiful, I want to add the following set of options to each edge: [draw=white, double=black, very thick]. At the same time, I would like to ...
user avatar
0 votes
1 answer
68 views

Draw this scheme on TikZ

I am currently trying to draw this graph using Tikz : The fact is that I am a bit lost with this process since it's my first time trying to do so. I am reading a documentation but this is only about ...
user avatar
  • 27
2 votes
2 answers
68 views

Center-align stacked molecules with chemfig

At right, the vertical arrow from ethylene to M is a coordination bond. Is it possible to centrally align the two molecules (ethylene and the solid catalyst surface), aligning their centers with the ...
user avatar
0 votes
1 answer
71 views

Smooth curve with tikz

This graph shows the effect of catalysts on activation energy \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[full]{textcomp} \usepackage[greek,italian]{babel} \...
user avatar
1 vote
1 answer
26 views

How to fill a customized shape?

in the following code I want to fill the area defined by $v_2, v_3, v_5$ with dashed lines. I know how to fill a shape if the line connecting $v2$ and $v3$ is not bend with \draw[fill = gray] (v2)--(...
user avatar
  • 247
0 votes
2 answers
45 views

Interface for diagrams and example [duplicate]

I would like to know if there are interactive graphic-oriented programs to construct diagrams of latex. For example, I know https://q.uiver.app/ There are others that do something similar? I am ...
user avatar
0 votes
0 answers
14 views

Flowchat \end{tikzpicture}: Overfull \hbox 74.6pt

I got overfull error (74.6pt) in \end{tikzpicture}. It goes over the page and it cannot be presented in a A4 page. It also start at the center of the page and I want to start it at the left hand side ...
user avatar
0 votes
2 answers
68 views

Drawing a number line in TikZ with text descriptions

I was wondering how one could construct the following number line using TikZ: https://imgur.com/a/PuYsnl6 I've tried reading the other questions here, but the main challenge that I am having is: (1) ...
user avatar
2 votes
2 answers
60 views

TikZ: prevent overlapping boxes when using fit

I am drawing the following figure where I am highlighting a node-set using red. It is meant to include five nodes and it does. But this is a complex shape for fit (probably too complex) so I decided ...
user avatar
  • 311
2 votes
1 answer
75 views

Drawing subgroup lattice of G in Tikz

Since I am new to tikz I have made an attempt to draw the subgroup lattice in G, but struggling to make it work. what I have tried \begin{figure} \begin{tikzpicture}[node distance=2cm] \title{...
user avatar
0 votes
0 answers
26 views

Reducing space in graph of tikz

I have the following graph on Tikz. \begin{tikzcd} & & & ...
user avatar
6 votes
1 answer
194 views

Modify This Tikzpicture

I am trying to create a tikz image as follows: Its \documentclass[border=1cm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{newtxtext} \usepackage{tikz} \usetikzlibrary{decorations.text, ...
user avatar
2 votes
0 answers
81 views

Improving Rightarrow in tikz-cd

Update 2 The discussion continues on Github where the latest work in progress (and possible future updates) can be found. As I was able to fix all of the problems in the code below, I consider this ...
user avatar
0 votes
2 answers
94 views

Tree Diagram with Filesystem Branches

I am trying to draw this tree diagram exactly: I edited my code and it looks better, but still needs more work. Here is the code and result: \usetikzlibrary {trees} \tikz [font=\footnotesize,grow=...
user avatar
  • 19
0 votes
1 answer
28 views

Change the style of graph vertex

I want to change the style of the vertex. I want all the black filled vertex to be named vertices. And all the vertices with double circles are now named as well. That way: This is the output I had: ...
user avatar
  • 33
1 vote
1 answer
121 views

Drawings inside Concentric circles using TikZ

I want to draw certain shapes inside a set of concentric circles. I have been able to draw the concentric circles. My current MWE is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
  • 147
2 votes
2 answers
79 views

I Need to Edit Part of this Tikzpicture

I want to edit the fifth element which is the last and the element at the bottom right of this picture. I want to change it to be (the first to the fourth element) I do not know how to go about it. ...
user avatar
1 vote
2 answers
67 views

Draw a diagram with different shapes with TikZ

How one can draw a diagram like this in Latex: I already know how to draw transition states and things like this using \usetikzlibrary{automata, arrows.meta, positioning} but I don't know how to draw ...
user avatar
2 votes
2 answers
54 views

\tikztonodes not picking up the nodes

The following declaration \tikzset{ ncbar/.style={ to path={% ($(\tikztostart)!#1!90:(\tikztotarget)$) -- ($(\tikztotarget)!#1!270:(\tikztostart)$)\tikztonodes}}, ...
user avatar
  • 220
-1 votes
1 answer
63 views

How to draw a Tikz diagram for the parallel canonical form (with two integrators) of a linear control system with two phase variables?

I need help in drawing a Tikz diagram for the parallel canonical form (with two integrators) of a linear control system with two phase variables. I enclosed the diagram for the parallel canonical form....
user avatar
0 votes
1 answer
61 views

Arbitrary container around a tikzcd diagram

I wish to draw a picture like this with an arbitrary shape around a few points with arrows between them. I am using the circle command in tikzpicture but the result is very different. Could someone ...
user avatar
1 vote
1 answer
54 views

Tikz: Line caps when meeting circular nodes

I have a large number of tikz figures involving circular nodes (some of which are filled white), which are connected by edges (some of which are thick). The problem I am having is that whichever line ...
user avatar
  • 1,373
-7 votes
1 answer
96 views

Reproduce this slide - tikz

I would like to reproduce the attached slide in beamer. Of course, I don't ask you to make it for me. I'm just wondering if you are aware about which package I should use to make the blue big arrow on ...
user avatar
  • 155
0 votes
1 answer
41 views

Multiline in section title

I am using this template: http://www.fluortools.com/misc/LaTeXtemplate and I have this defined in formatAndDefs.tex file \usepackage{tikz} \usetikzlibrary{calc,decorations,decorations.pathmorphing,...
user avatar
  • 143
15 votes
5 answers
495 views

How to draw parts of a line dotted with TikZ?

I want to create a straight line between two nodes in a tikzpicture interrupted in the middle by a dotted portion. This should work whatever the orientation of the line. Here is an expected output: ...
user avatar
0 votes
0 answers
46 views

Given the adjacency matrix of weighted directed graph, how to draw such graph in Tikz without weights?

I have the adjacency matrix for a directed weighted graph. I want to draw this graph in tikz. My adjacency matrix is of size 50 by 50 and I have it in txt format. Obviously it is better to have code ...
user avatar
2 votes
3 answers
101 views

Help with rectangle splitting in tikz

I want to draw something like the following picture. I tried the split tikz library, and tried splitting a rectangle but drawing 32 parts is not happening, it is showing only some parts. Any help on ...
user avatar
5 votes
3 answers
309 views

Imperfect cube vertices

Hi guys I'm trying to draw a really simple cube in different ways but there is something that is bugging me, why the vertices are so imperfect? \documentclass{article} \usepackage{tikz} \begin{...
user avatar
  • 71
1 vote
1 answer
94 views

Drawing Intelligent Reflecting Surfaces in LaTex

How to generate in LaTeX (TikZ or something similar) the following image: 1-IRS (a planner surface that is gridded) I wrote This code but I don't know how to tilt it; \begin{center} %\fbox{ \begin{...
user avatar
0 votes
0 answers
32 views

How to add optional arguments to tikz command

I used the code for adding overlay animations on tikz-qtree diagrams, suggested by Ignasi (tex.SE answer here). With this code, I can create the following animations: \documentclass{beamer} \...
user avatar
  • 323
5 votes
1 answer
149 views

Understanding <something>/.style={<bla bla>} syntax

I'm having trouble finding good docs about this specific way of writing styles for latex documents. The way I understand the grammar should be <name of the command>/.style = {<options of the ...
user avatar
  • 63
0 votes
1 answer
55 views

How to draw a diagram using TikZ to represent a parallel connection of two blocks?

I am learning TikZ to draw diagrams for LaTeX documents.. One challenge for me is to draw a block diagram using TikZ for a parallel connection of two blocks. Kindly help me with a suitable TikZ code ...
user avatar
1 vote
0 answers
20 views

How to make the part of the rectangle wider than the red part in tikz?

I have a figure where there is a train-test split visible. However, I would like to make the red part 'wider' than the blue part, but I cannot find an option in shapes.multipart that allows me to do ...
user avatar
  • 43
3 votes
2 answers
77 views

How to set rectangle split with the same size (width and height)?

I want to draw a graphic like this one: But the vertical rectangle split does not have the same size (the horizontal one works OK). How to ensure the width and height with the same size? MWE: \...
user avatar
  • 407
3 votes
2 answers
76 views

How to set rectangle split with the same size (especially the width)?

I'm using rectangle split to draw link nodes: How to ensure every rectangle split with the same size, especially with the same width! no matter it is empty or with one digit or with two digits (...
user avatar
  • 407
0 votes
1 answer
68 views

TikZ : decoration and quotes positioning in a graph

There're some positioning conflicts here for the graph to be more legible : the 2 arrows in the center (from C1 to v4 and C3 to v1) : they should be placed for example at pos=.48. some numbers over ...
user avatar
  • 107
2 votes
1 answer
96 views

How to draw multi-blocks block diagram?

I am trying to draw this block diagram I am a beginner and I started with this code \begin{figure} \centering \tikzstyle{block} = [draw, fill=white, rectangle, minimum height=3em, minimum width=6em] ...
user avatar
1 vote
1 answer
38 views

How to set node to left and below in tikz

I have the following tikz code in which I want to set a node to the left and below of an endpoint of a line. \tikzstyle{node} = [font=\footnotesize] \def\r{0.5pt} \filldraw[densely dotted] (6.5,0) ...
user avatar
  • 462
0 votes
0 answers
30 views

Color of tikz node is not working

I have the following graph, I aim to have the labels in black color to be orange color. In Overleaf, it's completely normal and the texts are in orange, but when I insert the very same code it shows ...
user avatar

1
2 3 4 5
34