Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
\Ovalbox is in which packages? fancybox perhaps ? –  Alain Matthes Apr 10 '11 at 11:10
1  
Do you have a minimal example to show what you want or where is the problem ? –  Alain Matthes Apr 10 '11 at 12:06
add comment

2 Answers 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

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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