Hannan Sadar wrote:

I had try to put a box on a formula to emphysise it and to add a Label so i could use the cross reference in th future. For this i done the following:
\fbox -> C - m -> C - enter.
Note - C stand for Control.
I added C - enter to be able to add a label for cross reference.

C-Enter switches to a multiline equation and these aren't allowed within normal boxes. You need a \parbox here.


In

http://wiki.lyx.org/uploads/LyX/LyXMathebefehle/LyXMathebefehle.pdf

on page 23, you can find an example of a framed labeled box. As I'm shure, that you aren't able to read german, I attached a small lyx-example.

regards Uwe
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
\usepackage{calc}
\end_preamble
\options fleqn,tablecaptionabove
\language ngerman
\inputencoding auto
\fontscheme ae
\graphics default
\paperfontsize 12
\spacing single 
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 4
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1
        1
        34
        -1
\end_bullet
\bullet 2
        2
        35
        -1
\end_bullet
\bullet 3
        2
        7
        -1
\end_bullet

\layout Standard


\begin_inset Formula \begin{equation}
\fbox{$A=\int B\,\mathrm{d}x$}\label{eq:framed eq}\end{equation}

\end_inset 


\layout Standard


\begin_inset ERT
status Open

\layout Standard

\backslash 
fbox{
\backslash 
parbox{
\backslash 
linewidth-2
\backslash 
fboxsep-2
\backslash 
fboxrule}{
\end_inset 


\begin_inset Formula \begin{equation}
A=\int B\,\mathrm{d}x\label{eq:framed label}\end{equation}

\end_inset 


\begin_inset ERT
status Open

\layout Standard
}}
\end_inset 


\the_end

Reply via email to