tags:

views:

2191

answers:

2

Hi!

I want to have several texts in latex which are boxed in a circle or more in a rounded boxe. I tried to use:

\pgfnodecircle{Node1}[stroke]{\pgfxy(1,1)}{0.5cm}
\pgfnodecircle{Node2}[strokel]{\pgfxy(3,0.5)}{0.25cm}
\pgfnodecircle{Node3}[fill]{\pgfxy(5,1)}{0.25cm}  
\pgfnodeconnline{Node1}{Node2}  
\pgfnodeconnline{Node2}{Node3}

but this \pgfnodecircle command does not allowe me to write text insie the nodecircle. I could have add text with \pgfnodebox but I really want the text to be surrounded by rounded boxes and not by rectangular boxes.

thanks in advance, madalina

+1  A: 

The commands \ovalbox and \Ovalbox defined package fancybox might help:

\documentclass{article}
\usepackage{fancybox}
\begin{document}
  \ovalbox{hello}
  \Ovalbox{world}
  bye
  \doublebox{important}
\end{document}

Please have a look at the documentation of the fancybox package for more details.

Other interesting commands: \boxed defined in the amsmath package and \shabox defined in the shadow package.

pts
+2  A: 

maybe you want the block environments: block, theorem, proof, and example? You can then find a Beamer style to make them rounded.

\begin{block}{Block title}
text here
\end{block}
gatoatigrado