Questions tagged [tikz-shape]
For questions concerning node shapes in PGF/TikZ.
115
questions
6
votes
4answers
874 views
Set endpoint of arrows in tikz
I have the following code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{chains,shapes.multipart}
\usetikzlibrary{shapes,calc}
\usetikzlibrary{automata,arrows,shapes,snakes,automata,...
1
vote
0answers
328 views
Customizing split rectangle
I want to make split rectangles, but customize the width of each part separately, moreover I would like to hide the lines which split up the distinct rectangles and make the filled part fade from ...
0
votes
1answer
63 views
Missing } inserted in tipa [duplicate]
MWE
\documentclass[a4paper,11pt]{article}
\usepackage{tikz}
\usepackage{tipa}
\usetikzlibrary{positioning}
\usepackage{pgflibraryshapes}
\newcommand*\chiuan[1]{%
\tikz[baseline=(x.base)]
\node[...
8
votes
2answers
2k views
How to create a rectangle with a transparent hole [duplicate]
I have an issue involving filling a rectangle, although, this is probably quite a simple problem, this has compeletly stumped me...
I know how to draw a rectangle for a given colour and a circle ...
1
vote
3answers
117 views
How to make move up and move down mark in proofreading?
MWE
\documentclass[12pt]{article}
\begin{document}
$\underline{a}\sqcap\underline{a}$
$\overline{a}\sqcup\overline{a}$
\end{document}
but what I try to do
Can you help me fix it?
Edited:
How did ...
1
vote
1answer
67 views
How to word delete mark in Turkish proofreading?
MWE
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{pgflibraryshapes}
\begin{document}
\tikz[baseline=(x.base)]
\node(a) [red,draw,ellipse,thick,fill=white,...
3
votes
1answer
381 views
Draw a balance with a pivot and two pans
I am going to draw a balance with a pivot (the triangle) and two pans (the T bars), as shown in the figure below. However, I was only able to draw the triangle, following this post.
How to draw the ...
3
votes
1answer
223 views
Animation with math crossed out or circled
I'm trying to make an animation to show how to find the median of a small list of numbers. As I would incorporate it into a presentation, I used beamer frames, but I'm open to alternatives. I used ...
11
votes
1answer
860 views
Tikz - Filling a node with random smooth, closed shapes
I am trying to create the following illustration.
Using Tikz, I managed to achieve a partial effect as shown below (please ignore the dimension mismatches).
The code I used (MWE) for arriving thus ...
5
votes
1answer
406 views
How to make triangle tightly (no space) enclose other triangles using “fit”?
I am trying, so far with negative result, to enclose a couple of triangles in a bigger triangle without leaving any space between them.
Output (dashed green line I drew by hand; this is where I need ...
6
votes
2answers
663 views
Why triangle's corners are sticking out instead of aligning perfectly with adjacent triangles?
So I drew a few isosceles triangles aligned to each other with one being upside down but that upside down triangle created unwanted behavior (its corners started sticking out of line). All these ...
3
votes
1answer
468 views
Shape of walking man in tikz
Does TikZ contain some library with arbitrary shapes of men? I need something like that
I was downloaded SVG from here and try to use \usetikzlibrary{svg.path} but unfortunately it divided into three ...
4
votes
3answers
565 views
How to draw a request response message in tikz?
I am pretty new to tikz. I need a request response message in tikz. I have attached the image. I need the image should be generated as shown in the attached figure. I have tried a lot, but struck in ...
3
votes
1answer
321 views
How can I place a node on another node's border anchor, adjusting so that it is centred on the middle of any line bordering the main node?
I'm working on a package and I want to draw constructions similar to the following:
This features 2 nodes. The small, circular node is located at some anchor on the border of the rectangular node, ...
2
votes
1answer
344 views
tikz building blocks for pneumatic diagrams
I've created a small library of tikz shapes that I want to use over and over in a convienient manner. The following is a subset of the shapes used together in an example:
\documentclass[]{standalone}
...
3
votes
1answer
381 views
Using \pgfpointanchor in the background path of a circuit symbol shape
I have tried to create a circuit symbol for general sources as used in physics textbooks for high schools:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC,shapes.gates.ee}
\...
2
votes
0answers
241 views
Tikz : How to control the the ellipse at the top of a cylinder node
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,positioning}
\begin{document}
\begin{tikzpicture}
\node (A) [cylinder, shape border rotate=90, draw,minimum
height=3cm,minimum width=...
3
votes
1answer
87 views
Moving axis onto diagram
I'm trying to draw a light cone diagram and would like for a time axis and a spatial axis to be overlaid over the top of the diagram I already have. I'd also like to add directional arrows on both ...
1
vote
0answers
170 views
Custom shape in Tikz node [duplicate]
is it possible to create a costum shape with tikz node like in figure without using pgf?
It is like this (but now I have to include the third block):
4
votes
2answers
665 views
Multipart shapes, left/right align text in node
Please, consider the following MWE:
\documentclass[preview,border=3mm,tikz]{standalone}
\usetikzlibrary{shapes.multipart}
\tikzset{%
base/.style args={#1/#2/#3}{%
shape=rectangle split,
...
2
votes
1answer
794 views
Text has been reflected in 3D plot
It seems that the text xz on the x-z plane of the 3D figure below has been reflected.
How to make it normal, just like yz on the y-z plane?
Editable Read-only code on ShareLaTeX
\documentclass{...
7
votes
1answer
2k views
Trapezium size issues Tikz
I have a code that generates a flow chart. It's not entirely complete, it just needs arrows which is besides everything. This issue I have is the process nodes, trapeziums, aren't the same size even ...
13
votes
1answer
279 views
Passing special characters to “shorthand” x+y options in TikZ
Update: this is now a bug report on sf.net.
I think I understand the rules for special characters in pgfkeys key arguments: If it contains any of {,, =, ]}, it must be protected by putting the entire ...
6
votes
1answer
2k views
LaTeX TikZ: arrow shape
I am facing a problem I can't solve on my own. The goal is to draw an arrow with a "breaking" line like this (BUT with an arrow):
\documentclass[tikz,border=2mm]{standalone}
\tikzset{ext/.pic={
\path ...
4
votes
1answer
195 views
How to correctly use the .is if handler within \pgfdeclareshape
There is an update, see below
I'm designing mosfet symbols, which should be able to be flipped. The important thing about flipping is that the relative positioning with the positioning library should ...
2
votes
1answer
456 views
Creating a custom TikZ shape with lines [duplicate]
I want to create a shape that looks like this:
I have the following code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
inout/....
3
votes
1answer
2k views
Tikz, no shape named is known error
I am trying to compile following MWE
\documentclass[border=9 pt]{standalone}
\usepackage{epsfig,graphicx,tikz}
\usepackage{standalone}
\usetikzlibrary{intersections}
\usepackage{pgfplots}
\usepackage{...
9
votes
1answer
395 views
How can I draw my own parametrized shapes?
I would like to create some nodes having a parametrized shape to create some schematic vehicles shown in the picture below. The picture shows a hierachical representation of a vehicle chassis platform....
4
votes
1answer
800 views
fill polygon with image / crop image by polygon
I would like to have an arbitrary polygon filled with an image (jpg, png, pdf, ...) for it to be included in a beamer frame.
I was thinking this may be possible using tikz, but I couldn't figure it ...
3
votes
2answers
1k views
Drawing a quarter closed contour in tikz
I am trying to draw the below:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}[decoration={markings,
mark=at position 0.5cm with ...
1
vote
1answer
111 views
Change the shape of a tikzpicture
I am making a party hat using XeLaTeX with TikZ. Clearly for this to work the shape of the tikzpicture has to be triangular. How can I accomplish this? And, for the sake of generality, how can you do ...
5
votes
1answer
161 views
Hexagonal Card creation from what level up?
I am trying to build a base on which to create hexagonally shaped cards, there a few questions I've found here that have been helpful but I'm searching for my own answers, while more importantly ...
0
votes
1answer
169 views
grid of anchors within a hexagon
So I have a base shape I am beginning to work with, which is just a regular polygon shape from shapes.geometric. How do I create a grid of anchors within this shape? I know that it is just math + pgf ...
-7
votes
2answers
420 views
how can draw cross sectional of electrical machine? [closed]
how can i draw a cross sectional of electrical machine like this:
can you help me please?
3
votes
1answer
723 views
Load custom TikZ nodes from an SVG file?
I want to use custom nodes in TikZ, with shapes loaded (or otherwise converted) from an SVG file because I don't have enough time to learn pgf to draw the shapes I want. How can I do that?
2
votes
1answer
527 views
TikZ: Having circle borders only grown to the outside
How do I let circle borders only grow to the outside?
If I write
\node[circle, draw, minimum size=2cm, line width=4mm] {};
Then the inside of the circle has a diameter of 16mm, since 2mm of the 4mm ...
2
votes
0answers
108 views
Working with lengths in node shape definition
This question is a bit tricky. I am trying to build symbols of flow charts for pneumatic circuits. I don't need that many elements, but I would like to be able to extend my collection similar to what ...
2
votes
1answer
152 views
How to draw “wavy” sequence of boxes
I'm very new to TikZ and I'm having a slight problem that I'm not entirely sure how to solve.
Suppose I generate a sequence of boxes like so:
\documentclass{report}
\usepackage{tikz}
\begin{...
14
votes
1answer
962 views
Tightly fit a circle around points
When using \node[circle, fit=(A) (B) (C)], the resulting circle is too big and doesn't touch the corners of the C node:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{fit}
\begin{document}
...
3
votes
3answers
879 views
Split rectangle with gaps
The rectangle split from the shapes.multipart can produce rectangles tightly stacked.
\documentclass[tikz]{standalone}
\usetikzlibrary{shapes.multipart}
\begin{document}
\begin{tikzpicture}
\node[
...
2
votes
1answer
215 views
TikZ non standard shapes
I am trying to figure out how to generate this in tikz so I can embed in my LaTeX document. Most drawing I have are following variation of a theme. For actual text, I use Indic language in my TeX ...
1
vote
2answers
428 views
TikZ outline stroke of a compound shape
I'm trying to draw an outline of a shape, combined from primitives (circles and a rectangle). I'm using the Caramdir's code from here but it doesn't work for some reason.
My code:
\documentclass[...
2
votes
1answer
1k views
how to draw multi position cylinder with tikz
I would like to draw cylinders (tikz shape) with different orientations. thus I will wish that the cylinder (2) is parallel to the x axis.
I'm tested different values for the parameters I can not
...
2
votes
1answer
521 views
Why does `shape aspect` not work for rectangular TikZ nodes?
The documentation of TikZ seems to indicate that shape aspect is available for all node shapes. However, the command is only available if shapes.geometric is loaded and for some shapes (e.g. diamond). ...
1
vote
0answers
205 views
Why trapez shape width changes with text?
What I want is to have shapes that are of some width. Apparently trapezium doesn't want to behave and makes shapes larger if there is less text in them. The more text I put in a trapez, the smaller it ...
31
votes
4answers
5k views
TiKZ: “hand-drawn” explosion
Is there an elegant way to simulate a handdrawn explosion as shown in the following image using tikz?
4
votes
2answers
371 views
Name of shapes defined in an array
I am trying to use labels defined in an array using tikz for drawing a path between two shapes. I have tried to use pgfmathparse but it seems not well defined for string. My syntax is probably wrong.
...
7
votes
1answer
680 views
How to position a custom anchor in a custom TikZ shape?
I want to draw a "system dynamics" flow chart, roughly looking like this random image. The dark grey valve-like boxes are for rates, while the grey rectangles are for levels.
I managed to define a ...
3
votes
1answer
759 views
How can I draw an “arrow box” with curved arrows in tikz?
Tikz has a special shape called "arrow box". It is a box with arrows going out of it directly. But how can we change the direction of arrows in this shape? In fact, I need to draw an "arrow box" with ...
1
vote
0answers
314 views
How to include variables from tikz/pgf into pgfdeclareshape
\documentclass[tikz]{standalone}
\usepackage{circuitikz}
\pgfdeclareshape{oscillator}
{
\anchor{center}{\pgfpointorigin} % within the node, (0,0) is the center
\anchor{text} % this is used to ...