3

I wish to use \Ovalbox with a fix corner diameter. How can it be done?

The problem is when I got a lot of text in the box, the corners run over the text.

2
  • 2
    \Ovalbox is in which packages? fancybox perhaps ? Apr 10 '11 at 11:10
  • 1
    Do you have a minimal example to show what you want or where is the problem ? Apr 10 '11 at 12:06
2

Sorry my english is not good enough. You want a fix corner diameter and not a fix width You need \cornersize{.2} perhaps ! Something like this :

\documentclass{scrartcl}
\usepackage{fancybox}
\begin{document}
\cornersize{.2} 
\ovalbox{$x^n + y^n = z^n$}
\ovalbox{\begin{minipage}{6cm}
This is the first paragraph. We shall go over Fermat theorem.
\[ x^n + y^n = z^n \]
\end{minipage}}
\end{document}

enter image description here

2

Run it with xelatexor latex=>dvips=>ps2pdf

\documentclass{article}
\usepackage{pstricks}
\begin{document}

\psset{cornersize=absolute,linearc=.5\baselineskip} 
\psframebox{$x^n + y^n = z^n$}
\psframebox[framesep=2mm,fillcolor=blue!20,
  fillstyle=solid]{\parbox{6cm}{%
This is the first paragraph. We shall go over Fermat theorem.
\[ x^n + y^n = z^n \]}}

\end{document}

enter image description here

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.