>>>>> "Thomas" == Thomas Stroese <[EMAIL PROTECTED]> writes:

Thomas> Hello Lyx-Users!  Please, is there a possibility in lyx or in
Thomas> latex type typeset formulas like that: K[X]/ ^ / (X-k) = K

Thomas> which ist often used in Algebra ("K[X] modulo Ideal
Thomas> (X-k)"). The right side should be centered verticaly.

Thomas> I tried \frac in lyx with ^K[X]/_(X-k), but it looks
Thomas> ugly. Perhaps there is a package to typeset things like that?

Add the following in your LaTeX preamble (shamelessly stolen from the
ltugboat.cls document class):

\DeclareRobustCommand\sfrac[1]{\@ifnextchar/{\@sfrac{#1}}%
                                            {\@sfrac{#1}/}}
\def\@sfrac#1/#2{\leavevmode\kern.1em\raise.5ex
         \hbox{$\m@th\mbox{\fontsize\sf@size\z@
                           \selectfont#1}$}\kern-.1em
         /\kern-.15em\lower.25ex
          \hbox{$\m@th\mbox{\fontsize\sf@size\z@
                            \selectfont#2}$}}

Then you can use \sfrac{K[X]}{(X-k)} in the math editor. Not sure
whether the output is what you want though.

You could also have a look at the amsmath package, which supports many
mathematical notations.

JMarc

-- 
                +++ the lyx project user mailing list +++
                To unsubscribe from this list send mail to 
                         [EMAIL PROTECTED]
                    with the **Subject** unsubscribe.

Reply via email to