On Tuesday 19 February 2002 17:08, [EMAIL PROTECTED] wrote:
> Hello,
>
> I would like to place a frame (visible on the screen) around an equation
> which is displayed (not inline). I have tried a table with one cell and it
> works fine but there is one big problem : I can't insert a label for that
> equation (the label command is inactive then) !
>
> Is there another solution than \boxed{} (which do not display the frame on
> the screen) ?
>

You probably want to create a special environment using a minipage.
This is what I use in my layout file for framed text  - you'd have to edit it 
for equations, but you could use something similar to make an inlined 
equation look like a displayed equation.

# Box style definition
# Adapted from a style by Herbert Voss
Style Box
  Margin                Static
  LatexType             Environment
  LatexName             myBox
  NextNoIndent          1
  LeftMargin            m
  RightMargin           m
  TopSep                1.5
  ParSep                0.5
  BottomSep             1.5
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label                      #Edit this!
  Font
    color               blue
  EndFont


#define the environment myBox

  Preamble
    \newenvironment{myBox}{%
      \vspace{4mm}
      \noindent%
      \begin{lrbox}{\@tempboxa}%
      \begin{minipage}[c]{0.5\columnwidth}%
    }{%
      \end{minipage}%
      \end{lrbox}%
       \centering
      \fbox{\parbox{0.5\columnwidth}{\usebox{\@tempboxa}}}\\%
      \vspace{4mm}
      }%
  EndPreamble


Robin

Reply via email to