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
1 vote
0 answers
23 views

How to put ellipses around nodes in tikz-cd diagrams several times in one document

Using the idea of https://tex.stackexchange.com/a/394924/305075 I use execute at end picture to draw the ellipses in tikz-cd diagrams. The names of the nodes for the ellipse to fit are of the form ...
joergkunze63's user avatar
1 vote
0 answers
38 views

“every" will change the shape in TikZ in LaTeX?

I am read the TikZ pdf file, in which there sometime use every to define a style, but sometimes not. After comparing every or no every, I found there is a change of shapes. For example: \documentclass{...
Y. zeng's user avatar
  • 1,081
2 votes
1 answer
84 views

Drawing a hexagon structure similar to a Grötzsch graph with TikZ

I am trying to draw a hexagon that is connected to a set of vertices and edges within the borders of the hexagon itself. It is similar to a Grötzsch graph but is a hexagon rather than a pentagon. So ...
phys's user avatar
  • 49
0 votes
0 answers
44 views

How to draw regions around nodes and edges in Tikz picture

I want to reproduce this kind of graph by using tikz : I already made a Tikz picture with just the colored nodes and edges but I haven’t found a way to draw the shape that fits nicely around the ...
maitrehihois's user avatar
1 vote
1 answer
103 views

I would like a perfect pentagon with 108° angles

I tried relative coordinates, but couldn't put a coordinate in to make angles. Is this possible? \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{quotes,angles,calc,...
Jon's user avatar
  • 491
0 votes
0 answers
68 views

Improve readability of Pie chart

I have a pie chart that displays percentage numbers in a crowded manner, and I want to improve its readability. Is there a way to do that? especially the way the 6.29% and 1.56% appears The code is ...
Diana's user avatar
  • 1,191
0 votes
1 answer
35 views

Removing borders only from the shared area of intersected shapes

I need to intersect two circles and have the borders around them except the borders inside the shared area. It is the tikz code I am trying to write, I have removed all borders but have no idea how to ...
Puya's user avatar
  • 45
3 votes
2 answers
187 views

Dynamometer - Creating custom shapes with anchor and options

I wanted to make a shape called "dynamometer" like rectangle, circle or so on with some anchors and options. But I can't figure out how to achieve such goal. I've taken the dynamometer shape ...
Piroooh's user avatar
  • 1,197
2 votes
4 answers
204 views

semicircle centered at chord center

I need a semicircle node centred at chord center. The positioning is achieved with the option anchor, but the external lines are still directed to center. Is it possible to direct lines to chord ...
Pygmalion's user avatar
  • 6,155
1 vote
1 answer
161 views

Drawing 3-D shapes

I would like to be easily draw 3-D shapes. I'm finding it difficult. I've got isometric paper, but it's difficult to see where to put the lines. here's my MWE. But is the an easier way to draw shapes ...
Jon's user avatar
  • 491
1 vote
1 answer
49 views

Paragraph in the Shape of an Isosceles Trapezoid with Shapepar Package

This post is related to Efficiently Displaying a Paragraph in Trapezoidal Formation in which the shapepar package was suggested in one of the comments. Consider the code \documentclass[10pt]{book} \...
mlchristians's user avatar
  • 7,724
1 vote
0 answers
83 views

Efficiently Displaying a Paragraph in Trapezoidal Formation

As part of an introduction to the contents of a book, I would like to display a particular paragraph in the formation of a trapezoid; and I suspect I will be able to do this (but rather laboriously) ...
mlchristians's user avatar
  • 7,724
4 votes
1 answer
265 views

cube shape in Latex Math

I am looking to define a variable with the subscript indicating it is defined in plane or space, as shown in the attached image. \square works for plane. is there a way to get the cube?
Kumar Arumugam's user avatar
1 vote
2 answers
113 views

How to draw polygon from table/file using pgfplots

I can't figure out how to draw a polygon or just a triangle using only 3 rows of coordinates. I have several problems: I can't make stitch corner look sharp (with thinner line it's just less ...
Andrew15_5's user avatar
0 votes
0 answers
81 views

Changing colors of edges and vertices

How do I change the color of each edge of the shape within \node[isosceles triangle]? What I have currently is just a regular isosceles triangle, \begin{tikzpicture} \node[isosceles triangle, ...
Lex_i's user avatar
  • 193
0 votes
1 answer
72 views

Drawing a filled shape in front of a line with even odd rule? [closed]

What I am trying to do is to draw a filled shape in "front" off a vertical line, to give the effect that the line is "behind" the shape. I think it involves the even odd rule but I ...
planetnimz's user avatar
3 votes
2 answers
302 views

Generating a specific graphic with TikZ

I am wondering how to generate a specific image with TikZ. This image is essentially a lattice grid without the grid, with a triangle, rectangle, and other shapes overlayed in a particular way. I ...
Tricryo's user avatar
  • 31
4 votes
2 answers
444 views

How to Crop an Image Precisely in the Shape of a Norman Window

A Norman Window looks like a semicircle atop a rectangle; for example, If would like to be able to take an existing rectangular image and crop it so that what is cut out resembles the perimeter of a ...
mlchristians's user avatar
  • 7,724
7 votes
1 answer
348 views

Making an Image into a Lettrine

In the MWE \documentclass{book} \usepackage{lettrine} \usepackage{graphicx,lipsum} \setlength{\textwidth}{12cm} %\renewcommand{\LettrineTextFont}{\normalfont} \begin{document} \thispagestyle{empty} \...
jean-marie's user avatar
  • 1,014
2 votes
2 answers
61 views

Why does using two styles in the same node in tikzpicture lead to an error?

The context I know how to display a cross inside a rectangle (see minimal working example and image below) \documentclass[border = 2]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.misc, fit} ...
rdrg109's user avatar
  • 309
1 vote
1 answer
65 views

Crop ellipse to fit in between other shapes in Tikz

Assuming I have two shapes and I want to add a circular shape (like an ellipse). How can I crop this ellipse so that it fits in between the other shapes like sketched below? I don't want to add white ...
TiMauzi's user avatar
  • 831
1 vote
1 answer
43 views

How to draw a closed path outward or inward, centering the line

When I have multiple shapes that are close to each other the picture is too busy to be considered "readable". I would like to shift the media point of the line outward or inward as I need, ...
pafao's user avatar
  • 61
8 votes
8 answers
1k views

How to draw a five-pointed star with labels?

I would like to draw a five-pointed star with different labels at each point of the star. I reached the example below, which closely follows this question, but I could not replace the numbers with ...
Andre's user avatar
  • 905
1 vote
1 answer
159 views

Superellipse filled with a color

I would like to create a superellipse shape. I found the following question "How do I make a superellipse node shape in tikz?" with @Jake's answer that does indeed produce a superellipse. ...
Xorios's user avatar
  • 102
0 votes
1 answer
82 views

How to properly annotate lengths for a polygon(trapezium). How to calculate the perpendicular height?

I would like to know how to annotate a trapezoid. I think I have the widths okay but I'm having trouble calculating the height. I have adapted the code from answer to this post Once I have the ...
E.Yu's user avatar
  • 337
6 votes
1 answer
142 views

Triangular Node has Unexpected Inner Space

I was expecting a much tighter triangle around the text in this example, similar to the inner spacing around the text in the rectangle nodes. How would I tighten up the inner spacing? \documentclass[...
Doug Ransom's user avatar
3 votes
2 answers
116 views

I can't take my shape one step further. how can I draw more

I can't keep repeating the shape in the corners. I can't issue a command like corner of the corner. I want it to continue in a loop like fractal but I couldn't make the loop. With the command I wrote, ...
SmmTex's user avatar
  • 33
4 votes
2 answers
193 views

How to use "sloped" when the x and y scales are different?

In the example below, I want to align the text to the right of the tangent, as the scales are different, the tilt is wrong. I tried to use "transform shape" by the text becomes unreadable (...
rpapa's user avatar
  • 12.1k
1 vote
1 answer
125 views

How to shade overlaps of multiple circles?

I am trying to create in tikz an image like this illustration of the winset of the Q in two-dimensional space (drawn in Inkscape). The code below draws the circles as nodes, since that seems to be ...
William's user avatar
  • 11
20 votes
8 answers
2k views

Drawing rotated triangles inside triangles

How do I draw rotated triangles inside a triangle as shown above? I already know how to draw one triangle; But I'm not able to draw this specific figure. I found a similar example from https://...
user avatar
0 votes
1 answer
36 views

non rectangular body geometry with xintools failed when verse used

I use the solution suggested in “Non-rectangular body geometry” by the (deleted) user @user4686 but the render failed when it reached a verse environment in the body: The MWE As I need the non-...
fauve's user avatar
  • 2,437
1 vote
1 answer
136 views

How to add colour shape to header on external pdf file with Latex?

I am working on a scanned PDF document to add a rectangular shape on the header to hide header text on all pages of the entire document. To incorporate the external PDF's I use the pdfpages package. ...
MKS's user avatar
  • 412
0 votes
1 answer
110 views

Attaching a small rhombus with a circular bullet at its bottom

I wanna attach (means by adding a second arrow) a small rhombus with a circular bullet at its bottom to the following drawing: \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} ...
Happy's user avatar
  • 363
0 votes
4 answers
202 views

Please give the latex code for this diagram, with the shaded region as shown

I have could draw the diagram except the shaded region and the marks showing that OP and OP' are equal. Please help me out!!
Nirjhar Nath's user avatar
2 votes
1 answer
374 views

TikZ node changes size based on text length even after setting minimum width and height

I have a trapezium node in TikZ that I would like to maintain consistent dimensions no matter how many times it is called in the \tikzpicture. \documentclass[10pt]{article} \usepackage{tikz} \...
Rashiq's user avatar
  • 337
1 vote
0 answers
56 views

To get an arrow white inside and black border [duplicate]

I need your support to draw an arrow like this in Tikz. White inside, black border. I’d like to insert it between two nodes and change the length, width and head extend. Accordingly with the distance. ...
J. Matos's user avatar
1 vote
4 answers
3k views

How can I draw a right triangle in LaTeX?

Let's say I would like to make the following figure. However, I would like to see if I can make this figure in LaTex so that it looks much cleaner and nicer like this. What are the commands used to ...
Some Guy's user avatar
  • 170
2 votes
1 answer
246 views

Vertical space of shaded box

I use package framed to color background of part of the text. I put attention that shaded environment uses extra space before and after colored box. In search how to reduce this space, I found macro \...
Aleks Kleyn's user avatar
3 votes
2 answers
496 views

Draw an arrow over and across tables and images with minimal LateX coding

Can someone reproduce the following in LateX: I have looked extensively at various packages and techniques but none seem quite able to reproduce the desired behavior. I essentially wish to draw an ...
R. Estevan's user avatar
0 votes
1 answer
198 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 ...
Adnan Quaium's user avatar
5 votes
1 answer
149 views

Tikz node with multiparts coloring but single part text

I want to create a tikz node with two colors (split along a vertical axis) and a single body of text spanning the two parts. The way I've seen the shapes.multipart library used makes the being ...
Abdallah's user avatar
  • 533
1 vote
1 answer
168 views

Filling out the space between two circles with dashed lines in order to create a torus like shape

\documentclass[fleqn]{book} \usepackage{amsmath, amssymb} \usepackage{amsthm} \usepackage{xcolor} \definecolor{nord0}{HTML}{2E3440} \definecolor{nord4}{HTML}{D8DEE9} \definecolor{nord5}{HTML}{E5E9F0} \...
Crimson Crusader's user avatar
1 vote
0 answers
27 views

How to make text margins follow a specific shape? [duplicate]

How can text be formatted as in this example from Alice in Wonderland, where the margins for the text seems to follow a specific shape (if that's what's actually happening..sorry if I'm clueless here),...
user202323's user avatar
1 vote
1 answer
106 views

Parameterized pgf shape with optional dashed lines

Based on similar questions I found on SE, I have finally managed to create a relatively simple ‘folded document’ shape in tikz with a few horizontal lines inside: \documentclass[tikz,border=1mm]{...
bp99's user avatar
  • 605
0 votes
0 answers
60 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{...
Sebastiano's user avatar
  • 52.6k
0 votes
0 answers
191 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....
JammingThebBits's user avatar
1 vote
0 answers
127 views

Tikz shape library not working on input files [closed]

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} \...
Mateus Yoshiaki Costa Kussuda's user avatar
2 votes
2 answers
700 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=...
fuj36840's user avatar
  • 540
2 votes
1 answer
241 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} ...
user217894's user avatar
-1 votes
2 answers
74 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!
Ahmet Aydin's user avatar