# 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 author changed number values like \pgfpathqcurveto, \pgflineto, and \pgfpoint.

I would like to know what number values to use to obtain completely square corners (no rounded-ness). I want to do this without using the "rectangle" innertheme, so that I can keep the shadows provided by the rounded theme.

• Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Sep 19 '14 at 14:52
• Yes, pgf is correct. Thanks. As for your first comment, an MWE is difficult in this case since it is a question about editing base files in the beamer package. – Gabe Conant Sep 19 '14 at 15:13
• rectangle can be used with shadows option no? – percusse Sep 19 '14 at 15:34
• @percusse: Evidently not. There is this answer: tex.stackexchange.com/questions/176337/…, which creates rectangular boxes with shadows. But it is a little more involved than what I am looking for, and, most importantly, did not preserve the other aspects of the Boadilla theme (which I like). So I believe the minimal solution should just be to change these number values in the indicated style file so that the rounded theme applies zero roundness. – Gabe Conant Sep 19 '14 at 15:41

Based on https://tex.stackexchange.com/a/176356/36296

You can easily use the answer you linked in your comment together with the Boadilla theme:

\documentclass{beamer}
\usepackage[many]{tcolorbox}

\tikzset{beamer@color/.style={fill=none,top color=tcbcol@back,bottom color=tcbcol@back}}

\tcbset{
tcbeamer/.style={
beamer,
width=\textwidth+3pt,
enlarge left by=-3pt,
bottom=0pt,
top=0pt,
left=1pt,
right=1pt,
arc=0pt,
outer arc=0pt,
toptitle=0pt,
bottomtitle=-1pt,
}
}

\newenvironment<>{tcexampleblock}[1]
{\begin{actionenv}#2\begin{tcolorbox}[
tcbeamer,
colback=block body example.bg,
colframe=block title example.bg,
fonttitle=\large\color{block title example.fg}
]
}
{\end{tcolorbox}\end{actionenv}}

{\begin{actionenv}#2\begin{tcolorbox}[
tcbeamer,
]
}
{\end{tcolorbox}\end{actionenv}}

\begin{document}

\begin{frame}

\begin{exampleblock}{Test exampleblock}
This is a block provided by the \texttt{beamer} class.
\end{exampleblock}

\begin{tcexampleblock}{Test tcexampleblock}
This is a block provided by the \texttt{tcolorbox} package.
\end{tcexampleblock}