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.

  • 1
    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:



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

\tcbset{beamer/.style={skin=beamer,boxrule=0mm,titlerule=1mm,toptitle=0.5mm,arc=2mm,fonttitle=\bfseries,drop fuzzy shadow=black}}

  enlarge left by=-3pt,
  outer arc=0pt,

    adjusted title=#1,
    colback=block body example.bg,
    colframe=block title example.bg,
    fonttitle=\large\color{block title example.fg}

    adjusted title=#1,
    colback=block body alerted.bg,
    colframe=block title alerted.bg,
    fonttitle=\large\color{block title alerted.fg},
    adjusted title=#1,



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

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

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

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



enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.