Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [rounded-corners]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
1 answer
60 views

How do I make the graph edges in TikZ trees rounded? (preserving the clean syntax)

I am a beginner in TikZ and I tried to search for a solution to the best of my ability, but it's just too obscure of a topic to have a proper answer yet. To start off, this is my code: \begin{...
user avatar
  • 43
3 votes
2 answers
112 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, ...
user avatar
  • 33
8 votes
4 answers
245 views

Rounded corners, dotted lines and shadow inline but without TikZ

I'm trying to draw rounded rectangles with solid or dotted lines and a shadow around arbitrary text in LaTeX. I was hopeful that my answer was in How to draw rounded corners around box with shadow, ...
user avatar
5 votes
1 answer
167 views

How do I get the last rounding in the last corner?

Everything is in the title How to get the last rounding in the last corner in the code below? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[fill,blue!50,...
user avatar
  • 11.4k
2 votes
1 answer
292 views

rounded corners of an arrow in tikz

I have an arrow that looks like in this: \documentclass[tikz]{standalone} \usetikzlibrary{shapes, arrows.meta, positioning} \tikzset{every picture/.style={/utils/exec={\sffamily\...
user avatar
  • 249
1 vote
0 answers
27 views

Rounded Corners via Circle that leaves a trace

In the following code, the edges do not align very well. I would like to have rounded corners. Imagine a black circle with the thickness of the line, leaving behind a trace, where the center of that ...
user avatar
  • 111
15 votes
2 answers
362 views

tikz: Applying rounded corners to arcs

It seems that the option rounded corners (especially with larger radii) and arcs in TikZ do not always go well together. In general, the exact same path with rounded corners applied does not exactly ...
user avatar
4 votes
1 answer
220 views

rounded corners with two 45° bends

Does a solution already exist for this feature request? I want to draw 90°-corners with two 45°-bends w/o doing it manually (quite tedious). I am looking for something similar to rounded corners like &...
user avatar
  • 2,090
1 vote
0 answers
96 views

\pause with transparent rounded shadow blocks rendered incorrectly

This simple LaTeX code is not rendered as one may expect. \documentclass{beamer} \setbeamercovered{transparent} \setbeamertemplate{blocks}[rounded][shadow=true] \begin{document} \begin{frame} \begin{...
user avatar
0 votes
1 answer
80 views

Slightly rounded angle brackets

How would be possible to get angle brackets with a slightly rounded angle? Here's a handwritten example of the desired result.
user avatar
0 votes
1 answer
142 views

how to round corners of shaded boxes

I have a shaded text box looking as: which is generated by the following code? \documentclass{memoir} \usepackage{titling} \usepackage{algorithm,algpseudocode} \usepackage{bm} % bold greek ...
user avatar
  • 201
2 votes
0 answers
40 views

Beamer: Rounded shadows not displaying correctly in XeLaTeX [duplicate]

Yesterday I decided to install "vanilla" TeXLive after a couple of months with the Ubuntu repositories version. Everything works great, except that shadows at the corner of Beamer are not ...
user avatar
8 votes
1 answer
408 views

Google forms with tcolorbox

I'm trying to recreate my Google forms in Latex like this one: You can seee that there is a color in the backgroud (can I use a minipage for this? Or another tcolorbox?) and then white background ...
user avatar
  • 474
1 vote
2 answers
245 views

Edge connecting two rectangles with rounded edges without gap

I am trying to draw a line between rectangles with rounded corners. However, I'd like the line to touch the corners. What happens is that the line ends as if the rectangle did not have rounded corners....
user avatar
  • 298
2 votes
4 answers
285 views

Tabular with rounded corners made with tikzpicture with overlay is not properly positioned inside table environment

My quest is to make a table which looks like this: To good thing so far: I have succeeded in making this table. The bad thing: I cannot include this in a normal \begin{table}\end{table} environment ...
user avatar
0 votes
1 answer
150 views

Corners for theorems and definitions [duplicate]

I was wondering if there is any package or a simple snippet I could use to get the kind of corners shown in the picture for theorems and definitions. Thanks in advance.
user avatar
4 votes
2 answers
657 views

rounded box around text

\newcommand*\round[2]{% \tikz[baseline=(char.base)] \node[anchor=north west, draw,rectangle ,rounded corners, inner xsep=5.6cm, minimum size=5.5mm, height=3.6mm, fill=#2,#2,text=white,align= left](...
user avatar
3 votes
1 answer
133 views

How to get both transparency and rounded corners in tikz picture without using additional packages?

I am trying to create a tikz image that has rounded corners and transparency at the same time. The problem I face with the MWE given below is I can have either transparency or rounded corners, but not ...
user avatar
  • 1,388
3 votes
1 answer
142 views

A new and better aesthetic look for figures and captions with vertical braces

Starting for the question Center a rounded square into a green line with the excellent @marmot's answer, using your MWE, \documentclass[12pt]{book} \usepackage{newtxtext} %%\usepackage{classico}%%%%%...
user avatar
  • 46.2k
0 votes
0 answers
231 views

Ovalbox problem in corners, no smooth

I am using this command to make oval boxes: \usepackage{fancybox} \newcommand\codeBox[1]{ \setlength{\fboxsep}{1em} \setlength{\fboxrule}{0.01pt} \begin{center} \...
user avatar
  • 369
1 vote
0 answers
54 views

Anchored path compiling indefinitely

I want to make rounded corners on one side only like this: \tikz{ \fill[red] (0,0) +(8pt,8pt) arc (0:-90:8pt) -- (0,1) arc (90:0:8pt) } The points (0,0) and (0,1) in the above are placeholders. I ...
user avatar
  • 145
1 vote
1 answer
63 views

How to stop inheritance of rounded corners into embedded node

I have a tikz-node with some text inside it and a small tikz-drawn symbol as well. When I apply rounded corners with some value to the outer node, the inner drawing inherits this attribute. \...
user avatar
4 votes
2 answers
353 views

Rounded corners for a background image

Here is my MWE taken from here: \documentclass[varwidth]{standalone} \usepackage{ eso-pic,tikz, lipsum} \usetikzlibrary{tikzmark} \linespread{2} \newcommand\BackgroundPic{% \begin{tikzpicture}[...
user avatar
  • 2,345
7 votes
1 answer
586 views

Center align text decoration along path

I am trying to duplicate the node highlighted in green but along a curved path. It mostly works, but when I attempt to apply the text align=center effect to the decoration, I get Dimension too large....
user avatar
1 vote
0 answers
684 views

Can the command \minted and \mintinline have rounded corners without depending on the package listings? Are tcolorbox and tikz needed?

I use XeLaTeX, but I can not use both or similar or duplicate packages, because someone said it is bad idea in XeLaTeX. I would like to use only minted. Here are two answers which offer inline code ...
user avatar
0 votes
1 answer
140 views

Centralized/lateral boxes with squared/round edges

I'm trying to reproduce the boxes below exactly, i.e., a central box with round edges and a lateral box with squared edges. I've found articles teaching about coloured boxes, with shadows on the ...
user avatar
  • 309
2 votes
1 answer
77 views

Box with Semicircular Parshape in a Savebox

This question is related to Box with Semicircular Parshape at Top and Bottom. Here I am trying typesetting the top portion into a \savebox using a semicircular \parshape in the MyRoundedBox* ...
user avatar
11 votes
2 answers
255 views

Box with Semicircular Parshape at Top and Bottom

I am trying to design a box that has a semicircular parshape at the top and bottom as shown here: If the text is small enough then this is intended to shrink to a circle of the given \Radius (and not ...
user avatar
2 votes
1 answer
1k views

rounded and not rounded blocks

I would like to know if it is possible to have to different kinds of blocks and how to do it in beamer. As an example, one rounded for examples and one not rounded for theorems. Is it possible to ...
user avatar
  • 23
3 votes
1 answer
314 views

Drawing over parts of a node with rounded corners

On the left I have created two nodes (Zero Node in blue and One Node in gray) and would like to draw over the existing path from A-B-C-D (including the notches). On the right is my attempt drawn in ...
user avatar
4 votes
2 answers
2k views

TikZ path with rounded corners and decorations.markings not working as expected (pos=0.0 at wrong location)

I want to put small round markings at fixed distances on a six-pointed star. There are two problems though: pos=0.0 is not at the expected location, but slightly shifted possibly due to the rounded ...
user avatar
  • 261
3 votes
0 answers
155 views

How to achieve round cornered frame in titlesec package [duplicate]

Not duplicate of :How to write the "subtitle" like this? The above question wanted some of the subsections round corner framed. The answer provided requires a command which almost behaves ...
user avatar
3 votes
1 answer
1k views

an edge connecting multiple nodes

I want to draw an edge that connects multiple nodes. I am able to achieve this using the ''to'' feature as shown in example below: \documentclass[convert={density=300,size=1080x800,outext=.png}]{ ...
user avatar
  • 1,307
1 vote
1 answer
73 views

Table with text from side of page to the middle

I would like to place a table from the side of the page to the middle with rounded corners. For example like this: But I can't find anywhere how to do it. I can draw the image with Tikz but than I ...
user avatar
15 votes
1 answer
2k views

How to draw a polygon with different line color and rounded corners?

I want to draw a polygon with different line color and rounded corners, but the corners of polygon are not rounded! \documentclass[12pt]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
user avatar
  • 575
10 votes
3 answers
688 views

Draw border of a line

I have a line like this: line.tex: \documentclass[12pt]{article} \usepackage{asymptote} \begin{document} \begin{asy} unitsize(1cm); defaultpen(0.5cm); draw((0,0)--(1,1)); \end{asy} \end{document} ...
user avatar
  • 203
0 votes
1 answer
468 views

Rounded corners on costumized degraded frametitle in Beamer

I want that frametitles in my Beamer presentation: have a smaller width than paperwidth are horizontally degraded have rounded corners This post gave my the two first points described above. But I ...
user avatar
  • 355
8 votes
5 answers
8k views

tikz: Draw rectangle with rounded corners only north/south?

I'm trying to draw two rectangles (using \fill and a cycle) where only the north/south corners are rounded. I want the blue rectangle below to have rounded corners only on the top, and I want the red ...
user avatar
  • 365
9 votes
2 answers
920 views

TikZ: Rounded corners at the closing point of a path

It's a known problem in TikZ that artefacts are introduced when using the rounded corners option with a value that is larger than about half the distance between two corners (see e.g. Dynamic radius ...
user avatar
  • 499
2 votes
1 answer
3k views

setting beamer background with rounded corner rectangle

I am trying to set my background for my beamer theme. I want a white rectangle with a rounded north east corner. I used a provided code. My outer theme looks like this: \mode<presentation> ...
user avatar
0 votes
1 answer
246 views

mdframed: bug (with roundcorner) when a style for theorem is used within an environment without topline, rightline, etc

When a style for theorem is used within an environment and that this environment a line but topline=false, rightline=false, etc. then some attributes of the theorem are not used. Here, an MWE for ...
user avatar
  • 6,130
3 votes
0 answers
104 views

Documentclass Standalone - Outcome with rounded corners [closed]

Is there an option that the result/ whole document of a standalone file has rounded corners? Just like rounded corners for tikz nodes.
user avatar
  • 599
1 vote
1 answer
457 views

Create generic containers that dynamically expand for text

Problem: I am trying to create color containers that can hold text that vary in size. What I have not been able to figure is what method you should use in order to achieve this. Example 1: Example ...
user avatar
  • 2,603
2 votes
1 answer
404 views

Pgfplots rounded corners and plot problem - part II

This is a follow-up to question Pgfplots rounded corners and plot problem. When the grid is right on the edge of the plot, it does not bend with the axes. Is it possible to apply bending to the grid ...
user avatar
4 votes
1 answer
2k views

Pgfplots rounded corners and plot problem

I noticed something strange recently when trying to use rounded corners in pgfplots: it totally ruins the plot. See below without rounded corners: and then with rounded corners: Here is a minimal ...
user avatar
1 vote
1 answer
530 views

Having two types of nodes

A rather beginner question. I am using someone else's code and he has defined: \tikz@node@transformations}{}{} \makeatother \tikzset{nodes={draw,rounded corners},minimum height=1.5cm,minimum width=...
user avatar
  • 625
3 votes
1 answer
467 views

\frac with rounded corners

I am overwriting \frac code and making it longer and thicker. I am successful so far. Thick frac is better for printing, but it seems sharp on the edges. I want to make its edges rounded. Is there ...
user avatar
0 votes
1 answer
282 views

Edit beamerbaseboxes.sty to create square corners

I came across this answer, which shows how to edit the beamerbaseboxes.sty file to increase the "rounded-ness" of the corners of boxes, when using the "rounded" boxes innertheme. In this answer, the ...
user avatar
4 votes
3 answers
2k views

tikzpicture: "rounded corners" and "west arc=none"

here's my MWE: \documentclass[a5paper]{book} \usepackage{tikz} \usetikzlibrary{positioning,shapes.misc,calc} \begin{document} \begin{tikzpicture}[overlay,remember picture] \node[ ...
user avatar
  • 1,285
3 votes
2 answers
1k views

rounded rectangle with tikzpicture: oval not round

here's my MWE: \documentclass{book} \usepackage{lipsum} \usepackage{fmtcount} \FCloadlang{ngerman} \usepackage[many]{tcolorbox} \usepackage{calc} \usetikzlibrary{positioning,shapes.misc,calc} \...
user avatar
  • 1,285