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

Thomas> On Mon, 23 Nov 1998 13:43:04 -0600 (CST) Yao-Pin Kuo
Thomas> <[EMAIL PROTECTED]> wrote:
>> Hi How can I type cubic root or n-th root in LyX?

Thomas> That's curious, with the version I'm using (lyx 0.12.0) I
Thomas> can't do it either 8-/.

Thomas> You can *always* do it with latex. Write: $\sqrt[y]{x}$ to get
Thomas> the y'th root of the expression x (where x may be an
Thomas> expression of any complexity). Mark the whole thing as
Thomas> LaTeX. This will put the y'th root expression in the text.

Thomas> The trouble (with 0.12.0, at least) is that the math editor is
Thomas> too smart for its own good. If you try to enter this in a math
Thomas> inset LyX will "resolve" the square root as soon as you have
Thomas> finished writing "sqrt" and will put the square brackets
Thomas> *inside* the sqrt. This happens even if you explicitly ask for
Thomas> TeX mode inside the math inset.

The math editor has to parse all the math expressions and, since
optional arguments are not implemented, it fails on \sqrt[]{}... The
only solution is, as mentionned earlier in this thread, something like
defining
  \newcommand{\nthroot}[2]{\sqrt[#1]{#2}}
in the preamble, and using that in mathed as Red Text.

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