Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to increase the height of a box which contains equation ?

10 views
Skip to first unread message

Taechul Lee

unread,
Jul 30, 2002, 12:25:59 PM7/30/02
to
Thank you all the folks at comp.text.tex
I solve a problem with your helps

BUT I still have a question about a box.
When I want to increase the width of a box, I can do that just add a hspace
command to the both ends.

\begin{equation}
\fbox{
\hspace{.1cm}
$\displaystyle A \equiv B $
\hspace{.1cm}
}
\end{equation}

However, I don't know how to increase the height of a box.
vspace command does not work.
How can I increase the height of a box ?

Thank you very much in advance

Regards,

Tae-Chul Lee
----------------------------------------------------------
Dept. of Chem. Eng. TEL : 822-929-9613, 6250
Korea University FAX : 822-926-6102
1-Anam, Sungbuk-ku, mailto:tc...@prosys.korea.ac.kr
Seoul 136-701 Korea http://prosys.korea.ac.kr/~tclee
----------------------------------------------------------
Chance is a word void of sense;
nothing can exist without a cause. - Voltaire

Lars Madsen

unread,
Jul 30, 2002, 12:31:00 PM7/30/02
to
Taechul Lee wrote:

you should perhaps consider the \boxed command from the amsmath package

\[ \boxed{a=b} \]

otherwise just use \vphantom{something that have some height}

perhaps use a \rule or something else

--

/daleif
F2.10 - Institut for Matematiske Fag, Matematisk Afdeling
Århus Universitet

Lars Madsen

unread,
Jul 30, 2002, 12:37:08 PM7/30/02
to
Lars Madsen wrote:

use the \strut command or \rule[lift]{width}{height}

something like \rule[-1ex]{0pt}{2ex}

perhaps, as long as the width is 0pt you will not be able to the the line

/daleif

Robin Fairbairns

unread,
Jul 30, 2002, 3:51:53 PM7/30/02
to
"Taechul Lee" <peni...@hananet.net> writes:
>Thank you all the folks at comp.text.tex
>I solve a problem with your helps
>
>BUT I still have a question about a box.
>When I want to increase the width of a box, I can do that just add a hspace
>command to the both ends.
>
>\begin{equation}
> \fbox{
> \hspace{.1cm}
> $\displaystyle A \equiv B $
> \hspace{.1cm}
> }
>\end{equation}
>
>However, I don't know how to increase the height of a box.
>vspace command does not work.
>How can I increase the height of a box ?

surely you don't want to do such tedious stuff? make the separation
the same all the way round:

\begin{equation}
\setlength{\fboxsep}{.1cm}
\fbox{%
$\displaystyle A \equiv B $%
}
\end{equation}
--
Robin Fairbairns, Cambridge -- rf10 at cam dot ac dot uk

0 new messages