Questions tagged [shapes]

This tag is about shapes, geometric or otherwise, that can be drawn directly with LaTeX commands or with a related package.

Filter by
Sorted by
Tagged with
0
votes
0answers
22 views

Rounded corner in xy package and ellipse shape

This question very hard for me. xy package have also the shapes, circle with [o], or other forms using this table: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{...
0
votes
0answers
33 views

How can I modify the SVG's viewBox while using dvisvgm

I have been converting tex files into svg: lualatex --output-format=dvi flowchart.tex dvisvgm flowchart.dvi but the SVG's attributes always holds a view box with min-x, min-y value of viewBox='-72....
1
vote
0answers
27 views

Tikz shape library not working on input files

Somehow, I can use the shapes tikzlibrary only on the current file, with it not working on files loaded via \input. Essentially, if I write a file with: \usepackage{tikz} \usetikzlibrary{shapes} \...
2
votes
2answers
59 views

Vertical alignment of tikz in minipage

The tikz picture should be top aligned with the minipage text. MWE: \documentclass{scrbook} \usepackage{tikz} \usetikzlibrary{shapes.symbols} \usepackage[left=27.5mm, right=30mm, top=25mm, bottom=...
1
vote
1answer
55 views

shape border rotate has no effect on “tape” shape

I try to rotate the shape "tape" with no effect. Please take a look at the following MWE: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} ...
-1
votes
2answers
61 views

Shape and arrows

I want to have the following design in Latex. Could you please help me how to draw it? 3 D format would be great. Many thanks!
0
votes
2answers
73 views

Chevron arrow shape in tikz

What is the best way to draw this in TIKZ? I was thinking I could define a custom shape with this "arrow" form, but did not really figure out how to achieve this. Maybe there are better solutions?
1
vote
2answers
54 views

Tikz: Rectangle Split Inner Separations

Using tikz and tikzshapes, two split rectangles are created. Is it possible to have different inner separations for each part? MWE: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{shapes} ...
7
votes
3answers
259 views

How can I draw these cones properly without the base exceeding the lines?

I want to draw a 3D shape as shown in the image, but I cannot seem to get the circle/ellipse base of the cones to fit within the lines. The sides should be a tangent to the bottom circle/ellipse. The ...
3
votes
1answer
62 views

How to deform a shape along a path using TikZ?

I know that it is possible to write a text along a path. I want to know is it possible to draw a shape along a path? I know that this is impossible in most cases. but I think we can draw such ...
2
votes
2answers
39 views

How do I create vertical rectangles that are adjacent to each other with spaces in between?

I am working on a probability homework assignment for my discrete math class. One of the questions involves calculating the probability of drawing 7 cards and having exactly one land card and 6 non-...
2
votes
1answer
181 views

How to prevent collisions in custom shapes with header and footer using `tikzpicture` and `fancyhdr`?

This is a combination of two previous questions (with their respective answers):How to create a command for the sections with an svg next to it on the top of the page? and How to make a conversation ...
1
vote
1answer
161 views

Analog Computer Symbols

I am trying to draw analog computer symbols (I will put a picture of the entire list later). Right now, I am trying to draw a symbol of an analog integrator. Here's what I have right now in code: \...
0
votes
1answer
62 views

How to make a defined \tikzset label centered above?

I managed to get some code from another question on this forum (I forgot where, but here is the code): \tikzstyle{block} = [draw, rectangle, minimum height=3em, minimum width=3em] \tikzstyle{...
-1
votes
2answers
77 views

Drawing figures instead of insert [closed]

Figures are great for presentation slides. I would like to add a figure to my slides, but wouldn't be nice to import an already designed image. I would like to instead draw from within latex, this way ...
0
votes
2answers
44 views

Structure of the block diagram, input and output

I put too much information in my block diagram and now the input and output don't look right. Is there a way to put larger arrows? and also I would like to know if X(s) and Y(s) can be a little bit ...
1
vote
1answer
119 views

Drawing a polygon of polygons

This question is vagely related to https://math.stackexchange.com/questions/3449433/selecting-cards-to-form-a-fair-game?noredirect=1#comment7090962_3449433. I am trying to visually illustrate the ways ...
1
vote
1answer
50 views

How to have declared pgf shape with different line thickness for one part in it?

How do I change line thickness for one part of a declared shape? I want it to have half thickness of the other lines. I tried adding the line \pgfsetlinewidth{0.5\pgflinewidth} before that part with ...
0
votes
1answer
62 views

How can I get latex to make a reuleaux triangle, and can I generalize that to other reuleaux polygons?

I'm trying to get a reuleaux triangle, the interior triangle, the radius, and its midpoint. I don't know how to get all of that into the same diagram
8
votes
2answers
662 views

Is there a way to draw a simple circle or square in plain TeX/LaTeX, without relying on graphics packages?

I need to draw some bullets for a custom list, but what I have now is pgf code. I figured, why load entire pgf package to draw a mere circle (or square) when there must be (don't tell me otherwise, it'...
1
vote
1answer
94 views

Recreating this image using Tikz with flattened circle

I am trying to recreate this image: I'm however struggling with the flattened circle shape in the centre as well as getting the curved lines for focusing. My current attempt has allowed me to get ...
0
votes
2answers
107 views

How to draw a 2D square with intersecting lines?

I'm trying to draw this exact image (attached) Specific properties of the image: - angle QAP = 45 degrees (labeled theta) - ABCD is a square - P' is the 90 degree rotation of P along A (lying ...
3
votes
2answers
178 views

How can I draw overlapping triangles?

I need a non-equilateral triangle ABC and an equilateral triangle DEF to be overlapping ABC (with all 6 lines showing). Lines AD, BE, and CF need to be perpendicular bisectors (cut in the middle) of ...
4
votes
2answers
152 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); ...
4
votes
2answers
109 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 &...
2
votes
2answers
708 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
293 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
207 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
40 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
111 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. ...
2
votes
0answers
92 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
202 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
79 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
191 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
249 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
742 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
1k 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
156 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{...
4
votes
1answer
548 views

3D Surface Plot

I am using TIKZ (tikz-3d) plot to create a cartesian grid and to create a surface(a section of a sphere) passing through the surface. First I create a 3d cartesian mesh using the following code:- \...
1
vote
1answer
139 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
110 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{...
3
votes
1answer
308 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
402 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 ...
3
votes
1answer
252 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 ...
16
votes
3answers
1k 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
134 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
194 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
338 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
907 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 ...