Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shapes]

The tag has no usage guidance.

2
votes
1answer
27 views

I can't use a saved dimension in an anchor into a loop

I have the following problem: Into a \pgfdeclareshape I have the following code for a saved dimension: \saveddimen{\long@sal}{ \pgf@x=\pgfkeysvalueof{/tikz/longitud salidas}\unidad@medicion \...
3
votes
0answers
32 views

How to define new anchor border in new shapes with tikz-pgf

I'm trying to build a libray of symbols by means of defining new shapes in pgf-tikz. To be honest, it's being a enormous task for me because I don't understand lot of things of code to do it. ...
1
vote
0answers
38 views

How to build a saved anchor in pgf-tikz without repeating calculations

I've made a new shape in PGF-TikZ with an anchor (b anchor) which depends on some options. The following code works, but I need to repeat calculations to make the line in the shape and to place the ...
4
votes
2answers
196 views

Custom shape shows unwanted extra line

\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-4.261,2.617)..controls (2.5,1.5) and (-4.5,-3)..(3.908,-3.118) -- (-4.261,2.617) arc (148.44:321.42:5); \end{...
3
votes
1answer
41 views

How to properly use new options into \pgfdeclareshape of makeshape package

I'm tryng to make new shapes with the help of makeshape package, and I'm having a lot of problems with new options. Here, an example: \makeatletter \def\pgf@izquierda{izquierda} \def\...
1
vote
1answer
85 views

Create transfomer symbol consisting of two circles

I am drawing a simple power system in a single line diagram and want to define a shape for a transformer, which looks like two partly overlapping circles. I have already defined styles for generators ...
4
votes
3answers
119 views

How to make the argument of `regular polygon sides` into a macro?

I am drawing a regular pentadecagon (i.e. 15-gon) using tikz and the shapes.geometric TikZ library. And I went with this (simplified): \documentclass{article} \usepackage{tikz} \usetikzlibrary{...
9
votes
2answers
435 views

Drawing Shapes on Graphs

I am trying to draw a regular pentagon on a graph (I need to add more stuff to it, so having the axis is desirable), but when I try to draw the two together they do not line up. Here is my code: \...
13
votes
1answer
1k views

Creating a Falcon's logo

I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)): So where I am now: \documentclass[11pt]{standalone} \usepackage{tikz} \usepackage{pgfplots}% ...
7
votes
3answers
687 views

Drawing a Tank with Water in it

I am trying to draw a cylindrical tank that has water in it, using tikz. Here is what I have so far: \documentclass[a4paper, 12pt]{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} ...
3
votes
2answers
56 views

Position nodes relative to regular polygon anchors

I have a regular polygon, and I'd like to position nodes for instance above the first corner, or next to the nth side. This is my sample: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
30 views

Placing a pgftext in front of the fillcolor in a self-declared shape

There is this very nice example of how to draw D flip-flops of a shift register by declaring the flip-flops as shapes first: http://www.texample.net/tikz/examples/d-flip-flops-and-shift-register/ I ...
3
votes
1answer
44 views

How to include a vertical space between two chemfig reaction schemes in a TikZ box

This is a continuation of my previous question. I am dealing with the following code to include chemical reactions into the shape of a cloud. \documentclass{article} \usepackage{chemfig} \usepackage{...
2
votes
1answer
61 views

How to put a reaction scheme from chemfig inside a TikZ picture?

I am trying to include a chemical reaction from the chemfig package into this picture of a cloud using the following code: \documentclass{amsart} \usepackage{chemfig} \usepackage{tikz} \...
9
votes
2answers
296 views

representing an arithmetic rope

I'd like to include figures representing different uses for an arithmetic rope throughout the document to explain the duodecimal system and the application in architecture. The distance between knots ...
2
votes
0answers
72 views

PGF fpu “ill-formatted floating point number” using shapes.symbols library

I was trying to draw a Pierson-Moskowitz wave spectrum in TikZ and had to load the PGF's fpu library to do some of the calculations. Lots of errors! What surprised me is that one of them doesn't ...
13
votes
3answers
856 views

tikz: Jigsaw Puzzle Boundary Shape

This question led to a new package: jigsaw I would like to draw a jigsaw puzzle boundary layer, ideally connecting two half-circle segments. The two segments should be connected by a nicely curved ...
3
votes
1answer
68 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
votes
1answer
70 views

how can i draw this grid shape?

Hey guys im trying to form a shape of a grid with text and arrows proparly and i didnt got so far. how can i draw it ?
0
votes
2answers
129 views

TikZ Arrow ignores rotation

I want to illustrate several arrows, each pointing to the previous arrow, except at some point, two arrows should point to the previous arrow and therefore their angle should be +/-45°. Now the ...
0
votes
1answer
351 views

How to convert diagrams made in Inkscape to Latex (pgf, tikz etc)?

I'm new to Latex and I have some fairly complicated diagrams I need to render using latex code. The most convenient way to do this is if I could draw them out in Inkscape and then somehow convert that ...
2
votes
1answer
55 views

Is there any bullet or other shape indicating question that I can use in Beamer instead of the word question?

Is there any shape or bullet that indicate on question? It can be something like the shape of a question mark. I want to use it instead of the word question when I want to introduce a question like ...
0
votes
1answer
549 views

cant use latex in slader site to draw geometry shapes

i use slader site which use latex to answer math question but i can't draw geometric axies nor electric diagrams, i tried to type some solution from stackExchange but it did't work can some one help ...
4
votes
2answers
67 views

fit and/or backgrounds does not work as expected in tikz-qtree

I am drawing a tree using tikz-qtree and want to draw backgrounds for two groups of nodes: the left group consisting of l, l1, l2 and the right group consisting of r, rl, l3, l4, l5. However, as shown ...
1
vote
1answer
126 views

Drawing Shapes and Young Tablauex

I would like to draw a shape, in the sense of a young tableaux with arbitrary boxes missing. A currently have the following, which allows me to draw skew tableaux, however I want the box containing c ...
5
votes
2answers
1k views

Draw a rectangular prism and label its dimensions

I'm trying to prepare a worksheet for my students on calculating the volume of a rectangular prism (cuboid). Using the code below I manage to generate the rectangular prism, but how do I add the ...
3
votes
1answer
181 views

Why does minimum height of a trapezium node affect also the width?

If I change minimum height=... of a trapezium node, also the width changes. It doesn't happen with standard rectangle nodes. \documentclass[border=0pt]{standalone} \usepackage[utf8]{inputenc} \...
1
vote
1answer
225 views

mathastext font shapes rendered in wrong encoding

I am trying to use the mathastext package to replace alphabet letters in math with the default fonts in the document, and gfsdidot (udidot) for greek. I can either get everything relevant except greek ...
1
vote
1answer
209 views

How to draw a water droplet in Latex?

Hey guys I am working in an infographic and I am trying to do it in LaTeX. In it I want to use the shape of a water droplet to show the water consumption. the final product should be something like ...
3
votes
2answers
198 views

How to draw a hazard diamond (like the one from National Fire Protection Association) in LaTeX?

Is it possible to make a diamond like the National Fire Protection Association in tex? I made a table using xcolor package with [colortbl].
1
vote
1answer
89 views

Pstricks improper output

I recently started pstricks in LaTeX and tried to plot basic shapes using the \put command. I'm not getting the desired output. Here are the commands that I entered: \documentclass[pstricks,border=...
3
votes
1answer
127 views

Octagon with defined size

for a drawing I need an octagon with a predefined size, actually smaller than the smallest size of the polygon from shapes.geometric. Is there another package I could use or an option I'm missing? ...
0
votes
1answer
130 views

Drawing a meshed ellipse with tikz-feynman

Is it possible, by using tikz-feynman, to draw a mashed ellipse such as (the appearance can also be similar to the deformed blob):
1
vote
1answer
332 views

How to draw a triangle with a number in it?

I would like to draw some shapes (triangle, circle and both triangle and circle) with numbers in it, if this is possible
5
votes
1answer
739 views

Fill color with tikzpicture

This code produce Fig. 2. Is there a way to get Fig. 1? \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \noindent\begin{tikzpicture}[fill opacity=0.5] \begin{...
8
votes
1answer
295 views

Tikz Random `Map' with `Countries'

I like maths and I have a young cousin who struggles quite a lot with it. So I am trying to find different fun activities for her to show how interesting maths can be. During my Easter visit to her ...
1
vote
2answers
881 views

How to superimpose two images in a beamer presentation?

Even I am familiar with LaTeX I consider myself new to LaTeX presentations. I already created the graphics / diagrams. I want to overlay the cloud and the arrows over the diagrams. The overlay ...
0
votes
1answer
213 views

tikz usecase diagram send and receive shape

Im searching for a send and receive shape that has to look like this: Is there some standard shape.misc to implement or even a manual to the shape.misc package?
2
votes
1answer
344 views

TikZ - make a figure like the following

I want to create a figure like the following one using TikZ nodes, but I don't really know how... any help over here to get me started? This would be the figure to reproduce:
3
votes
1answer
116 views

Foreach over multidimensional array issues

I'm not experienced with LaTeX/TikZ, so I may be doing something dumb. I have two versions of this code. One works, and one doesn't and I'm at my wits end trying to figure out why the second doesn't....
1
vote
2answers
286 views

XeLaTeX, small caps bfseries

I found that this MWE, compiled with pdflatex provide what I need: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \begin{document} \begin{center} {\bfseries\scshape Bold Small Caps} \...
1
vote
1answer
323 views

Changing the shape of a text box in the header

I have a question regarding the following code: \documentclass[a4paper]{book} \setlength\headheight{0cm} \usepackage{xcolor} \colorlet{headbgcolor}{green!50!blue!70} \setlength{\...
2
votes
1answer
238 views

How to make \pgfdeclareshape independent of initial coordinates?

I'm using a tikz package created by a colleague for drawing block diagrams. He declared basic shapes for the blocks using pgf. But it does not entirely work as intended and I'm trying to fix it. ...
1
vote
1answer
440 views

How to create a colorbox with only one rounded corner [duplicate]

is there any posibility of creating a coloured text box with only one rounded corner? (Maybe using tikz) Thank You
4
votes
3answers
283 views

Shading between a circle and two lines

I have drawn the unit circle and some tangent lines to the circle. I now wish to shade the area between the two lines bounded by the circle. Here is the tex that I have already written. \...
4
votes
1answer
583 views

TikZ: Draw different shapes of lp-Norm

I am trying to reproduce the picture below using TikZ. A similar question was already asked here, but I wasn't able to apply the answers to my problem since I need the exact same picture not only the ...
5
votes
1answer
287 views

rotating custom shapes in Tikz

I'm trying to build upon the rectangle node shape but what I came up with doesn't rotate nicely (the hashed pattern, the second rectangle). As you can see, I've tried adding as many transform shape ...
8
votes
3answers
1k views

Wrap a text in a triangle

is it possible to wrap a text inside a triangle like the following image?
2
votes
0answers
319 views

How to draw irregular 3d shapes in TikZ?

I would like to draw the cylinder-like irregular shape displayed below using TikZ. I know how to plot regular cylinders using TikZ, however the commands I know don't apply for irregular 3d shapes, as ...
1
vote
3answers
352 views

Font shape not available with `newpx`

Have a document with newpx and use bold, small caps and large text (with MikTeX 2.9). \documentclass{article} \usepackage[largesc]{newpxtext} \begin{document} Normal \textbf{Bold textbf} {\bfseries ...