Skip to main content

Questions tagged [tikz-shape]

For questions concerning node shapes in PGF/TikZ.

Filter by
Sorted by
Tagged with
1 vote
0 answers
57 views

A 3D shape and text inside a TikZ box

I have made this so far but I m not able to add those spheres or cubes under that TikZ box and write inside of them. Also I couldn't create the arrows. \documentclass[ border=1cm]{standalone} \...
BROK's user avatar
  • 119
2 votes
1 answer
64 views

tikz: arrows, even odd rule, and trapezium shape; how to draw an arrow through a hole

I would like to tikz something like this: With: % https://tex.stackexchange.com/q/245944 \documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \standaloneenv{tikzpicture} ...
Cameron Hudson's user avatar
1 vote
1 answer
55 views

How do I translate my ellipsoid, while also scaling it properly?

I have this code for drawing an ellipsoid, but I want to be able to translate it so the center is in (3, 3, 3). Right now I'm not sure how, since it seems to be working fine, but as soon as I change ...
danielw2005's user avatar
2 votes
2 answers
108 views

Drawing a Line to the Midpoint of a Custom Shape in TikZ

I have defined a custom shape called myBOX using \pgfdeclareshape. My objective is to draw a line from point (0,0) to (0,2) and connect it to the midpoint of the left-hand side line of the node myBOX. ...
Marco Moldenhauer's user avatar
2 votes
2 answers
111 views

controll over shapes and image + tikz add path image background

code used and efforts made are referred in here :link 1,link 2 I ended up updating this code but the facing errors \documentclass{article} \usepackage[table,xcdraw,dvipsnames,svgnames,x11names]{...
BROK's user avatar
  • 119
0 votes
1 answer
69 views

How to cover a page with regular polygon?

I like to have a set of regular polygons in the background of a (DIN A0) page. The pattern needs to be adjustable in regard of the thicknes of the lines of the polygons, and their color. Furthermore ...
lukascbossert's user avatar
0 votes
1 answer
76 views

How to make a tetragonal pyramid?

I have the following code for an octahedron. I need to remove the below part of that and write A, B, C, D, E for each vertex. I do not know how to do that. Your help will be appreciated. \[ \begin{...
user118746's user avatar
4 votes
2 answers
224 views

Help to draw and hatch a parallelogram

I have the following picture: I tried to draw it with tikz: \documentclass[tikz,border=1mm,usenames,dvipsnames]{standalone} \usepackage{tikz, pgfplots} \pgfplotsset{compat=newest} \usetikzlibrary{...
JoudaBouda's user avatar
1 vote
3 answers
179 views

Difficult Spiro Para-Hexagonal Ring?

How can I draw the following diagram in LaTeX? this is code but it is different, \begin{center} \begin{tikzpicture}[scale=0.4,cap=round,>=latex] \draw[thick,blue] (0,0) -- (2,1.5) (2,1.5) -- (...
Liu Li's user avatar
  • 31
2 votes
2 answers
164 views

How to change the arc angle of a circular sector?

I am able to easily draw single circular sectors using a newcommand such as \documentclass[12pt]{standalone} \usepackage{tikz} \usetikzlibrary {shapes.geometric} \newcommand*{\eAngle}[2]{% \begin{...
rhody's user avatar
  • 1,040
3 votes
1 answer
136 views

Drawing teardrop to use as shape within TikZ-network

I am looking to draw a 'teardrop' or 'droplet' shape to use as a shape within TikZ-network. More specifically, I would like to recreate the following tensor network: and the teardrop with the "+&...
Johannes Nauta's user avatar
8 votes
3 answers
692 views

Backtracking Equations

I have been trying create the code that will replicate the backtracking boxes. I've not been able to split the boxes without using two different tikz pictures. I want the arrows to go from middle of ...
Jon's user avatar
  • 539
0 votes
0 answers
61 views

Tikz button CLICK color and CLICK shape in Adobe Reader

I would like to control the click color and click shape of the following tikz button with rounded corners that I created. When I download the PDF (generated by pdflatex) into Adobe Reader and click on ...
Steven's user avatar
  • 337
2 votes
1 answer
70 views

Grouping multiple elements into a single TikZ shape

I want to create a switch multipart shape by grouping several elements while preserving the anchors (sw), (sw1), (sw2), and (sw3), such that I can insert it with the \node command and connect to it ...
Atcold's user avatar
  • 1,747
1 vote
3 answers
99 views

Trapezia in process flow chart (Tikz) are not equal in width, how do I make them the same size?

\documentclass{standalone} \usepackage[x11names]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes, arrows.meta, positioning} \begin{document} \tikzstyle{terminator} = [rectangle, fill=SkyBlue1, ...
BlueIris's user avatar
  • 339
1 vote
3 answers
221 views

Difficult hexagon chain

I’m trying to draw this path graph of hexagons but it is disconnected beginning at a certain hexagon and then continues to the next. I know how to create the hexagon path graph and have created ...
user avatar
0 votes
1 answer
28 views

How to Automatically Resize Shape Around Nodes

I am using a Venn diagram to illustrate a functional relationship between two finite sets. Depending on the number of elements in the set, the ellipse I'm using may not include all the elements (and ...
DJJerome's user avatar
  • 4,066
12 votes
2 answers
634 views

L-shaped arrows for diagram (tikz/latex)

If someone could tell me how to draw L-shaped arrows with text inside (as in the image attached)? I'm using node for normal arrows but I don't know how to make them L-shaped. My code so far: \...
Giane's user avatar
  • 141
4 votes
1 answer
137 views

How to define anchorborder for house-shaped PGF shape

I am trying to define a shape for drawing agents in graphical illustrations of data provenance. These agents are usually drawn with a house-shaped symbol, i.e., with an irregular pentagon where the ...
Alexander Weinert's user avatar
2 votes
1 answer
163 views

TikZ split rectangle into 2

I am drawing a picture where I have nodes of different shapes and colors. For elliptical nodes, I get 2 halves as expected, but for rectangular ones I obtain 4 parts. The lower part text is not ...
mushishi's user avatar
1 vote
1 answer
306 views

A pyramid with square base using latex [duplicate]

I have to draw some shapes to remind my students of the rules for volumes. Please, I want to draw a pyramid with a square base, can anyone help? (V=1/3 x y h)
dr al's user avatar
  • 7
0 votes
1 answer
48 views

Unspected behaviour using Shape geometric library inside axis environment

I want to draw this inverted triangle. For this, I used the library shades. \documentclass{standalone} \standaloneconfig{border=5mm 5mm 5mm 5mm} % Left bottom right top \usepackage{units} \...
Choguerrero's user avatar
1 vote
1 answer
70 views

Crop ellipse to fit in between other shapes in Tikz

Assuming I have two shapes and I want to add a circular shape (like an ellipse). How can I crop this ellipse so that it fits in between the other shapes like sketched below? I don't want to add white ...
TiMauzi's user avatar
  • 851
1 vote
1 answer
183 views

Superellipse filled with a color

I would like to create a superellipse shape. I found the following question "How do I make a superellipse node shape in tikz?" with @Jake's answer that does indeed produce a superellipse. ...
Xorios's user avatar
  • 317
2 votes
0 answers
57 views

Rotate part of custom multipart shape

I want to create a custom node shape that eventually looks like this: It’s easy to draw a TikZ picture that renders the above, using multiple nodes. However, I want it to be a single node, so that I ...
Lumen's user avatar
  • 283
4 votes
2 answers
283 views

Fit text in a circular shape

I'm trying to fit a text within the arrows but in a circular shape, however, the text doesn't bend nicely. \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \begin{...
Diana's user avatar
  • 1,289
11 votes
1 answer
305 views

Put text in shape with TikZ

Explanations I try to put a text in shape to follow a figure’s edge to get someting like this: (the red field is just given to explain) Current situation For the moment, this is my MWE \documentclass[...
fauve's user avatar
  • 2,531
1 vote
1 answer
61 views

Custom pgf shape: how to always stoke, sometimes fill?

I'm designing a collection of custom PGF shapes which will nearly always need to be stroked but only very occasionally filled. The experience I'd like the user to have is With no other keys provided ...
Aaron's user avatar
  • 45
1 vote
0 answers
93 views

Tikz's custom shape fails when groupplots library is loaded

I am using a book documentclass to write a report where I draw some circuit/block schematics using a custom tikz shape called dff that I originally found here and then slightly customised. Everything ...
DavideM's user avatar
  • 181
1 vote
1 answer
83 views

Set PGF anchor position in custom pgfshape with pgfkey as string?

How can I go about using a pgfkey to place an anchor if the key is a string? Previous answers imply that setting anchors based on keys is possible using numerical keys (like this question on Creating ...
Aaron's user avatar
  • 45
0 votes
1 answer
138 views

How can I draw this using TikZ?

I want to make these boxes. Thank you in advance.
Karim's user avatar
  • 77
3 votes
1 answer
271 views

Specify Radius for a cylinder, or draw edge for two 3d circles

I want to plot an optical fiber as in the picture below: As you can see, the drawing is composed of three concentric cylinders of different radii. This question is about drawing just one of those, ...
tush's user avatar
  • 1,147
2 votes
1 answer
562 views

TikZ node changes size based on text length even after setting minimum width and height

I have a trapezium node in TikZ that I would like to maintain consistent dimensions no matter how many times it is called in the \tikzpicture. \documentclass[10pt]{article} \usepackage{tikz} \...
Rashiq's user avatar
  • 337
3 votes
1 answer
208 views

Tikz: Setting an anchor in a pic for relative positioning

I have created a pic of a simple polygon which I want to use and reuse to create tikzpictures containing copies of it positioned relative to each other. How do I do that? If I did not have the pic, I ...
PatrickT's user avatar
  • 3,013
4 votes
1 answer
260 views

tikz: fit text exactly into the node (trapezium shape)

This LaTeX source: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[trapezium, draw, trapezium left angle=120, trapezium ...
nicnajder's user avatar
1 vote
1 answer
71 views

Tikz node for representing range on one dimensional axis

Consider a specific example of representing the range of a parameter value on one dimensional axis. Blocks corresponding to specific solutes in a multi-solute solution are stacked on top of one ...
John Chris's user avatar
0 votes
1 answer
223 views

How to draw shapes around text in TikZ?

Please look at the following figure. The right arrow consists of an &. I want to highlight only that & by drawing a circle or square or other shapes around it. The shape will be filled with ...
Adnan Quaium's user avatar
0 votes
2 answers
440 views

Creating an ellipse-rectangle shaped node in tikz

I would like to create a new node shape. The left half of the node is shaped like a rectangle and the right half is shaped like an ellipse. I should be able to insert text in my node and the ...
Abdallah's user avatar
  • 543
6 votes
1 answer
246 views

path picture add custom anchor

I would like to create an antenna shape in TikZ with custom anchors. Since I am struggling with \pgfdeclareshape, I am using path picture instead. Is it possible to make the coordinates created inside ...
brnk's user avatar
  • 319
1 vote
3 answers
70 views

How can I place a calculated value in a split shape using a macro and pgfmath?

I have a complicated split shape, with multiple nodeparts. I'd like to enter calculated values in the node parts. When I try to do it using \pgfmathsetmacro I get an error Undefined control sequence. ...
Carl Sorensen's user avatar
0 votes
1 answer
111 views

Align enumerate/itemize in tabular with rect text

How can I get the list to align vertically with the preceding text? In the middle cell, I want 1. to align vertically with "Inputs." In the bottom cell, "Goals" should be in the ...
rosstex's user avatar
  • 115
4 votes
1 answer
163 views

Why does [rounded rectangle] cause random "divide by zero" PGF Math Error?

I was using tikzmark to insert tikz drawings inside an equation when I encountered a weird bug, which I reduced to the following minimal (non-)working example: The following file bug.tex, \...
Rémi Nollet's user avatar
1 vote
1 answer
86 views

How to edit this code to get these two variants?

I have the following code \documentclass[12pt]{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,calligraphy} \begin{document} \begin{tikzpicture}[yscale=...
Akira's user avatar
  • 1,441
3 votes
1 answer
568 views

How to draw brackets along the edges of a rectangle?

I have the following code to draw the rectangle with diagonal \documentclass[12pt]{article} \usepackage{geometry} \usepackage{tikz} \begin{document} \begin{tikzpicture}[yscale=0.7] \draw (0,0) ...
Akira's user avatar
  • 1,441
0 votes
3 answers
223 views

How to draw this rectangle with numbers along its edge?

I'm trying to draw this picture, which is created from MS Excel. I'm only able to draw a simple rectangle \documentclass[12pt]{article} \usepackage{geometry} \usepackage{tikz} \begin{document} \...
Akira's user avatar
  • 1,441
0 votes
1 answer
110 views

How to positioning background's text?

I have two questions. How can I enlarge the background and change the position of the text? and, Why is the last trapezoid larger than the other figures? This is my WE: \documentclass[12pt,a4paper]{...
Oscar Espinosa's user avatar
0 votes
1 answer
59 views

Rectangle with multiple outgoing/incoming triangles

I would like to create boxes with arbitrary combinations of incoming/outgoing triangles as in the following picture: I thought about using a signal from the TikZ library shapes.symbols, but signal ...
Michael F's user avatar
3 votes
0 answers
174 views

Good practice in defining multipart shapes for TikZ

I have created a multipart shape for use in TikZ. The shape has three levels, with five text entries. The top level is a rectangle whose dimensions are only based on the text in that rectangle. The ...
Carl Sorensen's user avatar
1 vote
1 answer
50 views

How to eliminate the offset for a continued shape?

I wanted to add a little extra to the last shape in a chain (see image for a better understanding). However, i ran into an unexpected problem, because i thought the (black&red) lines would connect ...
Venez's user avatar
  • 611
4 votes
1 answer
545 views

Drawing a cut cylinder with Tikz

I'm trying to use tikz to create the attached image, but I'm not sure this is possible. I know I can use the package to draw cylinders, as shown here and here. But I don't think I can use the \...
aaragon's user avatar
  • 3,051