Questions tagged [shapes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
91 views

Branch & Bound Geometric Shapes

I am dividing a box to two halves, and plotting it in Tikz. An example code is: \begin{figure}[!h] \scalebox{1.5}{ \begin{tikzpicture} \filldraw[fill=gray!40!white, draw=black] (0,0) rectangle (4,2); ...
3
votes
2answers
45 views

Draw rectangle into the Array

My MWE \documentclass[a4paper,11pt]{article} \begin{document} \begin{equation} \begin{array}{ccccc} 16\cdot I_1 & + & 11\cdot I_2 & =& 13\\ 11\cdot I_1 & + & 16\cdot I_2 &...
1
vote
1answer
119 views

TikZ: Piping and instrumentation diagram (P&ID) shapes available?

To draw electrical wiring schemes in TikZ the nice package circuitikz is available. However, is there something similar existent for drawing piping and instrumentation diagrams? Example of such a ...
3
votes
2answers
151 views

Nested ellipses in tikzpicture: Chomsky hierarchy

I'd like to draw the Chomsky hierarchy using tikz, similar to: I have the following so far, for a subset of the hierarchy: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{shapes,...
4
votes
2answers
117 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}...
2
votes
1answer
32 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 \...
2
votes
0answers
53 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
50 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
197 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
56 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
100 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
143 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
480 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: \...
12
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
749 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
84 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
40 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
49 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
95 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
318 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
103 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
973 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
74 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
99 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
169 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
467 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
59 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
694 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
73 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
197 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
2k 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
238 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
260 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
289 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
215 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
95 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
149 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
160 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
375 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
827 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
327 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
1k 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
231 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
346 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
129 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
322 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
367 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
289 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
543 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
311 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. \...