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
2 answers
327 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{...
user3713179's user avatar
4 votes
2 answers
456 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=\...
Bubaya's user avatar
  • 2,279
0 votes
1 answer
32 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 ...
Devouring Radiant Light's user avatar
0 votes
2 answers
102 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 ...
user3713179's user avatar
3 votes
1 answer
333 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 ...
Alexey Ismagilov's user avatar
0 votes
1 answer
122 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 ...
Waxler's user avatar
  • 646
2 votes
2 answers
125 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 ...
user3713179's user avatar
0 votes
1 answer
175 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} \...
user3713179's user avatar
1 vote
1 answer
50 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)--(...
samabu's user avatar
  • 257
0 votes
2 answers
156 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 ...
user234212323's user avatar
0 votes
2 answers
450 views

Drawing a number line in TikZ with text descriptions

I was wondering how one could construct the following number line using TikZ: https://i.stack.imgur.com/oQtaD.jpg I've tried reading the other questions here, but the main challenge that I am having ...
plausibly_exogenous's user avatar
3 votes
2 answers
110 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 ...
Astrid's user avatar
  • 341
2 votes
1 answer
230 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{...
GiantSalamander's user avatar
0 votes
0 answers
33 views

Reducing space in graph of tikz [duplicate]

I have the following graph on Tikz. \begin{tikzcd} & & & ...
Romero-RodríguezC's user avatar
6 votes
1 answer
250 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, ...
Daniel James's user avatar
9 votes
1 answer
263 views

Improving Rightarrow in tikz-cd

The problem The tikz/double option which is used by tikz/commuting diagrams/Rightarrow internally creates a wide black line and a slightly less wide white line on top of it to display what looks like ...
Jonathan's user avatar
  • 409
0 votes
2 answers
176 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=...
Ali 's user avatar
  • 73
0 votes
1 answer
141 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: ...
B612's user avatar
  • 153
1 vote
1 answer
215 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{...
Rahman's user avatar
  • 189
2 votes
2 answers
116 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. ...
Daniel James's user avatar
1 vote
2 answers
605 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 ...
mrjamaisvu's user avatar
2 votes
2 answers
103 views

\tikztonodes not picking up the nodes

The following declaration \tikzset{ ncbar/.style={ to path={% ($(\tikztostart)!#1!90:(\tikztotarget)$) -- ($(\tikztotarget)!#1!270:(\tikztostart)$)\tikztonodes}}, ...
Nre's user avatar
  • 222
-1 votes
1 answer
129 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....
Dr. Sundar's user avatar
0 votes
1 answer
216 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 ...
concordepi's user avatar
1 vote
1 answer
207 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 ...
rbrignall's user avatar
  • 1,554
-8 votes
1 answer
144 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 ...
avati91's user avatar
  • 175
0 votes
1 answer
166 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,...
Laura's user avatar
  • 143
18 votes
8 answers
2k 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: ...
Guilian Deflandre's user avatar
0 votes
1 answer
237 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 ...
dazz mine's user avatar
2 votes
3 answers
270 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 ...
hiren_garai's user avatar
5 votes
3 answers
387 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{...
cento18's user avatar
  • 201
1 vote
1 answer
278 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{...
Alireza Ghazavi's user avatar
5 votes
1 answer
202 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 ...
radm's user avatar
  • 63
0 votes
1 answer
261 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 ...
Dr. Sundar's user avatar
1 vote
0 answers
28 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 ...
intStdu's user avatar
  • 143
4 votes
2 answers
226 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: \...
xaero's user avatar
  • 459
3 votes
2 answers
230 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 (...
xaero's user avatar
  • 459
0 votes
1 answer
302 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 ...
macxpat's user avatar
  • 119
2 votes
1 answer
521 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] ...
Adeel Ahsan's user avatar
3 votes
1 answer
780 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) ...
Eugene Zhang's user avatar
0 votes
0 answers
180 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 ...
Khalil Mebarkia's user avatar
0 votes
2 answers
86 views

How to circle text in paragraph that points to other text to work in XeLaTeX

I would like to know how to go about circling words in a paragraph and then have arrows pointing from the circled words to other words, like this: This is just the start of the code: \documentclass{...
Joe's user avatar
  • 9,080
4 votes
1 answer
379 views

3D Geometry using Tikz

I use the following code to generate a 2D geometry: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
Rahman's user avatar
  • 189
1 vote
0 answers
221 views

Template to write cheque

I would like to use latex to write cheques as perfect word placement is only possible with it. For this, I would require to do following things Set page size to cheque size Write current date in ...
Vaibhav's user avatar
  • 6,625
2 votes
1 answer
88 views

Decorations on circuitikz elements

I was trying to create a schematic with TikZ that looks like hand drawn. Unfortunately circuitikz seems not to work nicely with the decorations library. See the following example: \documentclass{...
mais's user avatar
  • 475
2 votes
1 answer
211 views

Draw an eye with an arc with tikz

I want to draw something like this : an eye with an arc. I started like this but I don't know how to continue \documentclass[reqno]{amsart} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ...
Vrouvrou's user avatar
  • 541
1 vote
1 answer
62 views

Custom style for tikzcd

I would like to define something called fieldtower (a style?) which stands for arrows=no head, column sep=small. This thing should be usable at will between tikzcd environments. So something like this ...
llf's user avatar
  • 175
0 votes
0 answers
49 views

How to highlight an itemize item in an animation flow

I am trying to highlight the second item in an itemize after displaying all items: \usepackage{tikz} \usetikzlibrary{tikzmark} %#% \begin{frame}{slide_1}{} \begin{itemize}[<+->] ...
e0238015's user avatar
  • 239
1 vote
1 answer
191 views

How can I draw the canonical IV DAG?

This is my code: \documentclass{scrartcl} \usepackage{tkz-graph} \usetikzlibrary{shapes.geometric}% \thispagestyle{empty} \begin{document} \tikzstyle{VertexStyle} = [shape = ...
Gabriel's user avatar
  • 13
3 votes
3 answers
289 views

Color diagonal of a matrix

I would like to color the diagonal and off diagonal elements of a matrix: I have: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amssymb,amsmath,amsthm,enumitem} \usepackage[a4paper, ...
user avatar

1
5 6
7
8 9
40