Questions tagged [tikz-shape]
For questions concerning node shapes in PGF/TikZ.
144
questions
4
votes
2
answers
174
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{...
1
vote
3
answers
168
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) -- (...
2
votes
2
answers
140
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{...
3
votes
1
answer
78
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 "+&...
8
votes
3
answers
666
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 ...
0
votes
0
answers
53
views
Improving a LaTeX CV by moving away from TikZ
A few years ago, I adapted a CV template from Overleaf to fit my needs. However, I think I'm stuck. Changing the data within the CV now takes a whole lot of work. I can see some problems but don't ...
0
votes
0
answers
49
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 ...
2
votes
1
answer
62
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 ...
1
vote
3
answers
84
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, ...
1
vote
3
answers
199
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 ...
0
votes
1
answer
27
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 ...
12
votes
2
answers
544
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:
\...
4
votes
1
answer
103
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 ...
2
votes
1
answer
133
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 ...
1
vote
1
answer
217
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)
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}
\...
1
vote
1
answer
65
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 ...
1
vote
1
answer
164
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. ...
2
votes
0
answers
56
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 ...
4
votes
2
answers
248
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{...
11
votes
1
answer
271
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[...
1
vote
1
answer
55
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 ...
1
vote
0
answers
87
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 ...
1
vote
1
answer
76
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 ...
0
votes
1
answer
127
views
How can I draw this using TikZ?
I want to make these boxes. Thank you in advance.
3
votes
1
answer
238
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, ...
2
votes
1
answer
422
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}
\...
3
votes
1
answer
171
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 ...
4
votes
1
answer
232
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 ...
1
vote
1
answer
70
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 ...
0
votes
1
answer
206
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 ...
0
votes
2
answers
386
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 ...
5
votes
1
answer
190
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 ...
1
vote
3
answers
68
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.
...
0
votes
1
answer
97
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 ...
4
votes
1
answer
156
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,
\...
1
vote
1
answer
82
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=...
3
votes
1
answer
461
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) ...
0
votes
3
answers
198
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}
\...
0
votes
1
answer
106
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]{...
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 ...
3
votes
0
answers
135
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 ...
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 ...
4
votes
1
answer
493
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 \...
2
votes
1
answer
284
views
Tikz: Define custom shape conditionally drawn
I am trying to create a custom shape in Tikz in a way that would allow me to use the node's options to determine how such a shape should be drawn.
With the example Rectangle node with diagonal fill ...
3
votes
1
answer
188
views
How do I create very small shapes?
I'd like to draw multiple very small shapes. But there seems to be a minimum size of approx. 3mm (for circles) if I use minimum width to change the size.
Is there a simple way to create smaller ...
4
votes
1
answer
233
views
Tikz: error when using beamer-class but not when using article-class
I'm using Overleaf to build a beamer presentation and wanted to add rectangles around cells in table (as described in this other question/answer by barbara beeton). Unfortunately, I get error messages ...
0
votes
3
answers
182
views
Multiple Color PGF Shape
I have a Two shapes I use as a nodes. Currently I have Two styles, which overlap, which limits the number of nodes I can have by half. What I am trying to do is create a pgf shape so that both shapes ...
3
votes
0
answers
354
views
Changing the current direction arrow in TikZ' circuits.ee library
I want to change the arrow tip used for indicating the current directions in TikZ' circuits.ee library (first path in the MWE below) to something else, say the Stealth tip (second path in the MWE). In ...
5
votes
3
answers
529
views
Add builder hat to other people with tikzpeople
I'm using the tikzpeople package to draw some scenarios. Now I would like to give the hat, that the builder is wearing to alice, charlie, and dave. As it is not attribute like the monitor or the ...