Questions tagged [tikz-shape]
For questions concerning node shapes in PGF/TikZ.
116
questions
0
votes
1answer
57 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
2answers
74 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 ...
0
votes
0answers
32 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
3answers
57 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
0answers
51 views
parallel lines in tikz
I have this code of two lines and I want to plot two parallel lines to those lines and then connet the opposite corners together .. is there a simple way to do it
\documentclass{article}
\usepackage{...
0
votes
1answer
43 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
1answer
97 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
1answer
55 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
1answer
178 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
3answers
66 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
1answer
34 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
1answer
49 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
0answers
47 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 ...
0
votes
0answers
123 views
\usetikzlibrary{shapes} : shapes library not available: mac
I am trying to figure out tikz with the help of various video tutorials and help pages. They all tell me to use \usetikzlibrary{shapes}. But texstudio tells me that there is an "unrecognized key in ...
1
vote
1answer
39 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 ...
3
votes
1answer
240 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
1answer
109 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
1answer
68 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
1answer
76 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
3answers
89 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 ...
2
votes
0answers
143 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 ...
4
votes
3answers
325 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 ...
4
votes
2answers
413 views
Custom “computer” resp. “server” shape for tikz [duplicate]
Similar to the custom "human" shape resp. the tikzpeople package I'm now looking for nice computer shapes. I'm drawing some diagram showing the collaboration and communication of humans through some ...
4
votes
1answer
104 views
Adding introspection to TikZ/pgf shapes
After digging into the output of \tracingmacros=1 during a while, I'll ask here... I am trying to add a bit of introspection to pgf shapes. The idea is to be able to "extract" a \savedmacro of a shape....
6
votes
1answer
726 views
How to adjust arrow head size of arrow-node?
I am trying to use single arrow node from shapes.arrows TikZ library. The problem is with the proper adjustment of the arrow tip span - with the argument single arrow head extend.
MWE:
\documentclass{...
3
votes
1answer
111 views
Custom tikz shapes: High level alternative to \pgfdeclareshape
So I've been researching making own shapes in TikZ. As most things in LaTeX, I've come to learn, it seems to have an extremely deep rabbit hole.
So I was wondering - is there an easy way out?
Is it ...
1
vote
1answer
165 views
Tikz style for rectangle with text in border
I'm trying to create a reusable style (let's call it titlerect) for a tikz node which is supposed to look something like the following figure I quickly whipped up in Inkscape:
I imagine it should be ...
4
votes
2answers
239 views
How do I draw and define two right triangles next to each other?
My goal is to draw a figure exactly like this
The best I could do coding this was:
\documentclass{article}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{tikz}
\usepackage{float}
\begin{document}...
6
votes
1answer
261 views
TikZ node shape depends on inside text
In one of my previous answers, my first proposal
\documentclass[tikz]{standalone}
\usetikzlibrary{quotes,angles}
\begin{document}
\begin{tikzpicture}
\draw (0,-4)--(0,4) node[above] {$Im$} (-4,0)--(...
2
votes
2answers
240 views
Ellipses aligned on the same boundary point
I want to create a cascade of ellipses in TikZ. However, with my code, I get the ellipses to have the same center. But what I instead want, is that the ellipses have a common point on their boundary (...
5
votes
2answers
386 views
hrule into tikz circle node
I am struggling with inner node layout with Tikz. Basically, I want to add a line under the first text line inside a node, splitting it unevenly. Here is a try:
\documentclass{standalone}
\...
2
votes
1answer
47 views
How to indicate radius (or size) of circle when it's defined as `\path node[shape=circle]at(x,y){}`?
I need to change the size of the circle but using radius doesn't work here.
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path node(ID1)[draw,shape=rectangle]{ID1}...
1
vote
1answer
102 views
“unrotate” part of a \pgfdeclareshape
I was trying to work on a very nice question about building chips for circuitikz, and I have a problem. I reduced it to this MWE:
\documentclass[tikz, border=2mm]{standalone}
\pgfdeclareshape{chip}{...
2
votes
1answer
532 views
Arrangement of triangles via tikz
Task:
I am trying to arrange four triangles via TikZ.
Below, you see the output:
As you can see, I face two problems with my solution:
A) It seems hand-made since the borders do not fit perfectly ...
4
votes
2answers
411 views
TikZ: Coordinate on shape vertices
I know that I can draw a rectangle with tikz using \draw (0.0,0.0) rectangle (1.0,1.0);. Is there a possibility to determine all 4 edge coordinates directly from the shape?
I do can save the lower ...
5
votes
3answers
253 views
Colorize sides regular polygon
To illustrate what edge-coloring is, I'd like to colorize a regular polygon. I want to generate the shape using TikZ, then colorize the sides (edges) of the polygon separately, for instance by doing ...
0
votes
1answer
93 views
Drawing similar picture with tikz
Is it possible to make something like this in tikz?
How to? :)
f(t) can be literally any curve, this arrow pointing it is just a comment, not a part of a drawing
4
votes
2answers
151 views
Flowchart in tikz
I am completely new in tikz package and try to built a flowchart as on the picture. I made some attempts but with no succes. Could you give me a hint how to start to produce such flowchart? Thanks ...
3
votes
1answer
183 views
Defining a tikz-shape for block mode diagrams
What I want to do
I want to draw diagrams of operation modes of block ciphers like this one of the ECB mode. I did this before without defining shapes for particular parts
of the diagram. However, ...
0
votes
0answers
56 views
using pgfkeys for drawing TikZ paths
Consider the following MWE:
\documentclass[border=1cm]{standalone}
\usepackage{tikz}
\tikzset{
first/.style = {
draw,
ultra thick,
red,
},
second/.style = {
...
1
vote
1answer
209 views
How to draw this modified bent tube using tikzpicture environment
Please consider this MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node (C) [cylinder,rotate=180,draw,minimum height=4cm,...
3
votes
2answers
285 views
tikz: positioning of ellipse
please consider the following mwe:
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{positioning,
shapes}
\begin{document}
\begin{tikzpicture}[
node distance = 3mm ...
3
votes
1answer
147 views
TIKZ make trapez shape with text with a fixed size
I try making a simple trapez like shape using the TikZ shape library. The text inside the shape differs from its length. However, the shape should be as big as the shape with the longest text so all ...
1
vote
1answer
546 views
No shape named … is known
For this error I can not find a correct answer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Welcome to Overleaf --- just edit your LaTeX on the left,
% and we'...
2
votes
2answers
460 views
Tikz node with data storage flowchart symbol
I am trying to create a Tikz node with some text that has the ‘data storage’ flowchart shape:
This is what I'm building on:
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\tikzstyle{storage} = [...
2
votes
0answers
185 views
TikZ matrix vs. shapes.multipart vs. text width
I'm wondering if anyone can make sense of the error I get when I try to set the text width in a matrix of multipart nodes.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix,shapes....
2
votes
1answer
266 views
How Does One Add a Tool Tip to a Tikz-Shape Diagram?
The Problem
I am trying to add a tool tip to a flowchart PDF I am making using the Tikz library so that ideally it displays when one hovers over the flowchart box. However, I don't know how to make ...
2
votes
2answers
87 views
how to avoid the transfer of the outside of a node inside [duplicate]
How to avoid that the styles of a node style pass in a schema included in the node
thus on the ECM below, the node of right becomes green and is cut in 2 and that of left does not change of color but ...
2
votes
1answer
1k views
flowchart tikz nodes and shapes
I am trying to replicate the following flowchart
with the following code:
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\tikzstyle{...
0
votes
5answers
481 views
How to draw a rectangle with only “one” round edge
I need to draw a rectangle with only one round edge like following image.
In this case its south-west corner that is round. I looked up n saw this post
Draw a rectangle with rounded ends in TikZ
...