I'm working with Beamer and I would like to create boxes with round corners. I use \ovalbox
, but I would like to control the thickness of the line. How can I do this? I also tried \thinlines
, but I still not understand the sintax since I didn't find a minimal example.
[Tex/LaTex] Beamer ovalbox frame thickness
beamerframed
Best Answer
Here is a solution based on TikZ which leads to:
Basically, all boxes are realized by means of a command,
\tframed
, defined as:where the
rndblock
style is:Complete code:
To choose the options, especially the
line width
, you can refer to the pgfmanual (version October 25, 2010) 15.3.1 Graphic Parameters: Line Width, Line Cap, and Line Join.Here is a way to add overlay specifications to the
\tframed
command; the solution is based on the nice code provided by Daniel in Mindmap tikzpicture in beamer (reveal step by step). Basically this allows to not modify at all the previos definition of\tframed
thus IMHO is very suitable in this case. Indeed, overlay specification can be added simply in the optional argument by means ofvisible on=<*overlay specification*>
.Example:
Result: