Hello Herbert,
I hope I don't bother you, but there's another Problem with "FramedEquation".
I copied the stdclass.inc and your addons.inc into ~/.lyx/layouts and did
Input addons.inc in the stdclass-file (like you said) and it works, I'm
fascinated.
But when I tried it with and document I found out, that a frame is only displayed
in dvi, if the equation has a number, I don't know if it was your intention to add
this little feature to keep one from putting too many frames around equations,
which are not that important, because important equations should have a number, too.
Anyway, I tried to define a new environment (FramedEquation*), but didn't succeed.
I don't know if it's a good idea to have different environments for
framed equations and framed equations with number - this would be a bit confusing,
wouldn't it be?
So actually my questions are:
Is it possible to have both (framed equations with and without number) in one
environment?
Is it possible to make the frames (or anything to distinguish framed and
unframed equations) visible in LyX?
Thanks
-hope you had time to go to the swimming pool or did something else for cooling-
CU
-Kai-
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass book
\begin_preamble
\usepackage{amssymb,bbm,mathrsfs}
\input{/home/kai/LaTeX-Pakete/slashed.sty}
\renewcommand{\vec}[1]{\mathbf{#1}}
\newcommand{\Nabla}{\boldsymbol{\nabla}}
\newcommand{\laplace}{\bigtriangleup}
\newcommand{\bs}[1]{\boldsymbol{#1}}
\newcommand{\id}{\mathrm{id}}
\newcommand{\hodge}{\star}
\newcommand{\diag}{\rm{diag}}
\newcommand{\openone}{\mathbbm 1}
\newcommand{\grad}{\mathrm{grad }}
\newcommand{\rot}{\mathrm{rot }}
\newcommand{\Sp}{\mathrm{Sp }}
\newcommand{\dbar}{\slashed{d}}
\newcommand{\extr}{\rm{extr}}
\newcommand{\ubar}[1]{\underbar{#1}}
%%Physikalische Einheiten:
\newcommand{\m}{\rm{m}}
\newcommand{\kg}{\rm{kg}}
\newcommand{\s}{\rm{s}}
\newcommand{\K}{\rm{K}}
\newcommand{\Pa}{\rm{Pa}}
\newcommand{\atm}{\rm{atm}}
%%Alphabetisches
\newcommand{\E}{\mathcal E}
\end_preamble
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 1
\use_amsmath 1
\use_natbib 1
\use_numerical_citations 0
\paperorientation portrait
\leftmargin 2.5cm
\rightmargin 2cm
\secnumdepth 2
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 2
\paperpagestyle default
\layout Standard
If there's a number for the equation, the frame is displayed in dvi:
\layout FramedEquation
\begin_inset Formula \begin{equation}
\omega_{K}(\vec{v})=\sum_{i=1}^{3}K^{i}\cdot v^{i}=\vec{K}\cdot\vec{v}\equiv P\label{eq1}\end{equation}
\end_inset
\layout Standard
But without number, there's no frame:
\layout FramedEquation
\begin_inset Formula \[
\alpha=\sum_{k=0}^{\infty}\beta_{k}\]
\end_inset
\the_end