<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">It’s unclear whether you want to size all the parboxes to the same width. If so, the following will do it.<div class="">(If you want each parbox’s width sized separately, the solution is even simpler.) I’m including some blind text so you can actually see the columns!</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\documentclass[11pt,twocolumn]{article}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\usepackage{amsmath,amssymb,amsthm}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\usepackage{enumerate}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\usepackage[margin=0.5in, landscape, paperwidth=4.5in, paperheight=8in]{geometry}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\setlength{\columnsep}{3em}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\mathbox}[1]{\fbox{\ensuremath{#1}}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\usepackage{calc}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\usepackage[math]{blindtext}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\begin{document}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\Blindtext[1]</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\firsthyp}{Theorem: If $x_{k}\to x$ and $y_{k}\to y$,}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\firstconcl}{then $z_{k}=(x_{k}+y_{k})\to z=(x+y)$}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\secondhyp}{Theorem: If $x_{k}\to x$ and $y_{k}\to y$,}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\secondconcl}{then $z_{k}=(x_{k}+y_{k})\to z=(x+y)$}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\thmonewidth}{\maxof{\widthof{\firsthyp}}{\widthof{\firstconcl}}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\thmtwowidth}{\maxof{\widthof{\secondhyp}}{\widthof{\secondconcl}}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\newcommand{\thmswidth}{\maxof{\thmonewidth}{\thmtwowidth}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\begin{flushleft}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\fbox{\parbox{\thmswidth}{\firsthyp\\</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>\firstconcl}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\fbox{\parbox{\thmswidth}{\secondhyp\\</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>\secondconcl}}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\end{flushleft}</div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class="">\Blindtext[2]</div><div style="margin: 0px; font-stretch: normal; line-height: normal; min-height: 22px;" class=""><br class=""></div><div style="font-size: 18px; margin: 0px; font-stretch: normal; line-height: normal;" class="">\end{document}</div></div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 16 Jul2020, at 4:29 PM, Nitecki, Zbigniew H. <<a href="mailto:Zbigniew.Nitecki@tufts.edu" class="">Zbigniew.Nitecki@tufts.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">I am generating a two-column document, and want to box in the statement of a theorem.
<div class="">If in one line, it runs across the two columns.  So I put it in a \parbox, and broke it into two lines.  </div>
<div class=""><br class="">
</div>
<div class="">My question is this:</div>
<div class="">(see attached example) if I set the width as either \linewidth or \columnwidth, the box </div>
<div class="">(and hence the frame) runs to the end of the column line.  This makes sense, but it leaves</div>
<div class="">a lot of space to the right of the text in the box. </div>
<div class="">Is there a way to make the box fit the width of the text, rather than the predefined line or column width?</div>
<div class="">I don’t want to use rigid lengths (eg 4in) because the pdf that I generate will go through an ExplainEverything</div>
<div class="">recording, and I am not sure what the final dimensions of anything will be—I prefer to have that controlled</div>
<div class="">internally.</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space" class="">
<meta content="text/html; charset=us-ascii" class="">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class="">
<div class=""><span class="x_Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; line-height: normal; border-spacing: 0px;"><span class="x_Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<div class="" style="word-wrap:break-word"><span class="x_Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<div class="" style="word-wrap:break-word">
<div class="">
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica"><br class="x_Apple-interchange-newline">
Zbigniew Nitecki</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Department of Mathematics</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Tufts University</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Medford, MA 02155</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font:normal normal normal 12px/normal Helvetica; min-height:14px; font-size:12px">
<br class="">
</div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">telephones:</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Office<span class="x_Apple-converted-tab">    </span>(617)627-3843</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept.<span class="x_Apple-converted-tab">    </span>(617)627-3234</font></div>
<div class="" style="margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; font-size:12px">
<font face="Helvetica" size="3" class="" style="font:normal normal normal 12px/normal Helvetica">Dept. fax<span class="x_Apple-converted-tab">    </span>(617)627-3966</font></div>
<span class="x_Apple-style-span" style="font-size:12px"><a href="http://www.tufts.edu/~znitecki/" class="">http://www.tufts.edu/~znitecki/</a></span></div>
</div>
</span><br class="x_Apple-interchange-newline">
</div>
</span><br class="x_Apple-interchange-newline">
</span><br class="x_Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
</div>

<span id="cid:9D95EFE095B3CC45A14D74ABAC411438@namprd05.prod.outlook.com"><EGtest.tex></span><span id="cid:c28da077-afcd-43d0-8922-41deefb9d3b2@namprd05.prod.outlook.com"><EGtest.pdf></span>----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" class="">https://sites.esm.psu.edu/~gray/tex/</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class=""></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></body></html>