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 [rounded-corners]

The tag has no usage guidance.

0
votes
0answers
33 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} \...
1
vote
0answers
42 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 ...
1
vote
1answer
31 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. \...
4
votes
2answers
130 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}[...
6
votes
1answer
91 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 ...
1
vote
0answers
113 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 ...
0
votes
1answer
59 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 ...
2
votes
1answer
47 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* ...
11
votes
2answers
168 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 ...
1
vote
1answer
225 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 ...
4
votes
1answer
88 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 ...
4
votes
1answer
426 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 ...
3
votes
0answers
58 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 ...
3
votes
1answer
437 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}]{ ...
1
vote
1answer
59 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 ...
15
votes
1answer
975 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}[...
10
votes
3answers
391 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} ...
0
votes
1answer
222 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 ...
7
votes
5answers
4k 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 ...
9
votes
2answers
470 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 ...
2
votes
1answer
2k 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> ...
0
votes
1answer
110 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 ...
1
vote
0answers
74 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.
1
vote
1answer
262 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 ...
2
votes
1answer
259 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 ...
3
votes
1answer
819 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 ...
1
vote
1answer
315 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=...
3
votes
1answer
351 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 ...
0
votes
1answer
169 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 ...
4
votes
3answers
754 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[ ...
3
votes
2answers
852 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} \...
7
votes
1answer
485 views

Combine rounded corners and arc

Is there a way to combine rounded corners and arc? If I try it like this, I always get "additional lines". I need the black shape (without lines on both corners) and the 180 degree rotated version. \...
9
votes
2answers
1k views

Rounded corner for the code listing

Is it possible to make a rounded corner for the tex code listing? Given: \documentclass[10pt]{article} \usepackage[usenames,dvipsnames]{xcolor} %used for font color \usepackage[utf8]{inputenc} %...
2
votes
0answers
256 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup [closed]

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
8
votes
1answer
1k views

tikz clip rounded corners

How to apply this Tikz solution (Rounded corners on only one side of a TikZ node) to have the same effect on clipping? I want to clip things (images) using that rectangle with differently rounded ...
3
votes
0answers
4k views

TikZ rectangle single rounded corner [duplicate]

How to round just one (or two, or three) corners of a TikZ rectangle? I can only get none or all rounded! \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node [fill=red, ...
10
votes
3answers
1k views

Rounded box with image and text

I'm trying to create a rounded box with both text and image. The desired result is as this: Where the image is rounded at the left edges. I have managed everything except the the image part using ...
7
votes
1answer
1k views

Can I manipulate the rounded-ness of blocks?

I'm creating a beamertemplate (for beamerposter, actually) and I want to increase the radius of a block. According to the beamer manual (12.3) I can pass the [rounded] option to a block or the ...
5
votes
1answer
2k views

rounded corners using the framed package

Is it possible to create a frame, using the framed package, with rounded corners? I know for a fact that there are other packages such as the mdframed package but what I am looking for is an ...
18
votes
3answers
6k views

Color box with rounded corners around a fragment of a formula

Is there any way in TeX to highlight some part of a formula with a box having colored background and rounded corners? At present, I need to export such formulas into an image, add those highlight ...
9
votes
2answers
447 views

Rounded corners as a tangent in the right direction

I want to split a path into two branches as in the following MWE. \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (A) [rectangle] {...
5
votes
1answer
364 views

Harsh corner on a shape drawn with rounded corners

I'm trying to create a custom shape surrounding some nodes. I have used a \path to draw the shape but I don't get a rounded corner where I begin drawing the shape. Here's my MWE: \begin{tikzpicture} ...
2
votes
0answers
498 views

Rounded and shadow for block [closed]

I have style for my block: \setbeamertemplate{block begin}{ \vskip.75ex \begin{beamercolorbox}[leftskip=1em,colsep*=.75ex]{block title}% \usebeamerfont*{block title}\insertblocktitle \end{...
7
votes
1answer
1k views

Rounded corners not working in \mdf@singleextra using mdframed with TikZ

I am creating new framed environments using the mdframed package (along with TikZ) based on the digression example given in mdframed-example-texsx.tex. My code is the following: \documentclass{...
5
votes
2answers
962 views

Table with shaded transitition, rounded corners and shadow (like a block of the theme)

this is my first question here. I want to make my table look like the block to have a consequent style. Questions: How to create that shaded transition from the table headline to the body (like the ...
11
votes
2answers
3k views

How to control borders of intersected nodes (rectangles)

I am trying to superpose 2 rectangles; one blue, one red, and have the intersection area with a mix of blue and red. I have problems with the borders though. I am not getting the thickness of the ...
11
votes
3answers
3k views

How to put round cornered frame around an image

I want a nice colored frame around an image which has rounded corners. Here is my attempt, using mdframed, but, as you can see, the inner edge of the frame is a right-angle, and not rounded. I would ...
30
votes
3answers
24k views

How to draw frame with rounded corners around box

Is it possible to simply draw a frame around a box which has rounded corners, and be able to control frame width, frame color, frame radius, box background colour (preferably without having to use the ...
8
votes
2answers
3k views

Background overflows when using rounded corners for listings (package: `listings`)

I'm using listings to list code in my document, and I want the code to be displayed in a frame with rounded corners and a grey background color. But the background overflows the frame, as if the frame ...
92
votes
4answers
160k views

How to specify a fill color in RGB format in a node in tikzpicture?

I am just trying to get a rounded corner box with some text in it. The text color will be white and the box will be filled with a particular color. The preamble includes: \usepackage{tikz} \...