Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Aditya Dushyant Trivedi <atrivedi2@st...>  20040722 01:55:31

Hi Herman, >I will like to boxed 3 paragraphs which have equations between them. I fir= st >tried \Ovalbox (fancybox.sty) since I like the corner arcs. However, it di= dn=C2=92t >work. Does \Ovalbox allow for math environments and more than on paragraph= ? >Then I used /boxedminipage and it worked. Is there a way to make corner ar= cs in >/boxedminipage? Also, the boxed is too right sided. Is there a way to cent= er it >a bit more? (I am using \setlength{\fboxrule}{3pt} \setlength{\fboxsep}{14pt}.) The trick is to put a minipage within the oval box. Something like this: \documentclass{article} \usepackage{fancybox} \begin{document} \ovalbox{$a^2 + b^2 =3D c^2$} \ovalbox{\begin{minipage}{2in} This is the first paragraph. We shall go over Pythagoras theorem. \[ a^2 + b^2 =3D c^2 \] \end{minipage}} \end{document} You might have to use \vspace{} command at the beginning. Otherwise the tex= t gets out a bit from the corners. The minipage fits it assuming a rectan= gular box. Eddy 
From: Herman Z. Bennett <hzb@MIT.EDU>  20040722 23:45:10

Thanks for your answer, it worked fine. However, I still have some minor issues left. 1. How can I control for the thickness of the boxline? I tried \setlength{\thicklines}{3pt} but it send me an error. 2. The box is too right sided. How can I move the box to the left? 3. I try to adjust the cornersize with \cornersize{.5}, but I change the number and I don't see any change (say to 10, or 0.1). For references, here goes the code I have right now: \setlength{\fboxrule}{3pt} \setlength{\fboxsep}{14pt} %\setlength{\thicklines}{3pt} %\cornersize{.5} %\begin{boxedminipage}[r]{15cm} \Ovalbox{ \begin{minipage}{15cm} \subsubsection{Box 1 (\textit{Advanced}) TEXT %\end{boxedminipage} \end{minipage}} Thanks again for your help, your patience, and for keeping the list! Herman Quoting miktexusersrequest@...: > 2. Ovalbox and boxedminipag (Herman Z. Bennett) > 3. Re: Ovalbox and boxedminipag (Aditya Dushyant Trivedi) > > ____> > Message: 2 > Date: Wed, 21 Jul 2004 21:29:42 0400 > From: "Herman Z. Bennett" <hzb@...> > To: miktexusers@... > Subject: [MiKTeX] Ovalbox and boxedminipag > ReplyTo: miktexusers@... > > Hi: > > I will like to boxed 3 paragraphs which have equations between them. I fi= > rst > tried \Ovalbox (fancybox.sty) since I like the corner arcs. However, it d= > idn=92t > work. Does \Ovalbox allow for math environments and more than on paragrap= > h? > > Then I used /boxedminipage and it worked. Is there a way to make corner a= > rcs in > /boxedminipage? Also, the boxed is too right sided. Is there a way to cen= > ter it > a bit more? (I am using \setlength{\fboxrule}{3pt} > \setlength{\fboxsep}{14pt}.) > > Thanks! > Herman > > > > > > > ____ > > Message: 3 > Subject: Re: [MiKTeX] Ovalbox and boxedminipag > From: "Aditya Dushyant Trivedi" <atrivedi2@...> > To: miktexusers@... > Date: Wed, 21 Jul 2004 21:55:26 0400 > ReplyTo: miktexusers@... > > > Hi Herman, > > >I will like to boxed 3 paragraphs which have equations between them. I fir= > st > >tried \Ovalbox (fancybox.sty) since I like the corner arcs. However, it di= > dn=C2=92t > >work. Does \Ovalbox allow for math environments and more than on paragraph= > ? > > >Then I used /boxedminipage and it worked. Is there a way to make corner ar= > cs in > >/boxedminipage? Also, the boxed is too right sided. Is there a way to cent= > er it > >a bit more? (I am using \setlength{\fboxrule}{3pt} > \setlength{\fboxsep}{14pt}.) > > The trick is to put a minipage within the oval box. Something like this: > > \documentclass{article} > \usepackage{fancybox} > \begin{document} > > \ovalbox{$a^2 + b^2 =3D c^2$} > \ovalbox{\begin{minipage}{2in} > This is the first paragraph. We shall go over Pythagoras theorem. > \[ a^2 + b^2 =3D c^2 \] > \end{minipage}} > \end{document} > > You might have to use \vspace{} command at the beginning. Otherwise the tex= > t gets out a bit from the corners. The minipage fits it assuming a rectan= > gular box. > > Eddy > > > > > ____ > > _______________________________________________ > MiKTeXUsers mailing list > MiKTeXUsers@... > https://lists.sourceforge.net/lists/listinfo/miktexusers > > > End of MiKTeXUsers Digest > 
From: Aditya Dushyant Trivedi <atrivedi2@st...>  20040723 03:48:36

Hi Herman, >1. How can I control for the thickness of the boxline? I tried=20 >\setlength{\thicklines}{3pt} >but it send me an error. I think the only options you have are \ovalbox (\thinlines) and \Ovalbox (\= thicklines) >2. The box is too right sided. How can I move the box to the left? That I believe is due to the fact that the default margins are too thick. S= ee the code at the end of the email to fix the margins. >3. I try to adjust the cornersize with >\cornersize{.5}, but I change the= number >and I don't see any change (say to 10, or 0.1).=20 \cornersize works for me. It has an inherent limitation since LaTeX does no= t have curves for all sizes. Searching online for fancybox, I found its guide. Check out: http://www.mat= h.uu.se/~georg/doc/latex/fancybox.pdf It will answer all your questions and more. Hope that helps. Eddy %%%%%% Code %%%%%%%%%%% \documentclass{article} \usepackage{fancybox} \usepackage[margin=3D0.5in]{geometry} % Geometry package allows you to change margins easily. % Here I have chosen all the margins to 0.5 in. Check % the documentation for geometry package. % You can search online, or go to the DOS prompt and % type: % texdoc geometry % It will open a .dvi file with all the info. \begin{document} \cornersize{0.1} % 0, 0.5 work for me as well. %\begin{center} % To center the box. \Ovalbox{ \begin{minipage}{15cm} \subsubsection{Box 1 (\textit{Advanced})} Text. Filler text to make it long. Text. Filler text to make it long. Text. Filler text to make it long. Text. Filler text to make it long. Text. Filler text to make it long. Text. Filler text to make it long. Text. Filler text to make it long. \end{minipage}} %\end{center} \end{document} 
Sign up for the SourceForge newsletter:
No, thanks