-----Original Message----- From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of Jean-Marc Lasgouttes Sent: fredag 24. februar 2017 16.35 To: lyx-users@lists.lyx.org Subject: Re: new operators in LyX?
Le 24/02/2017 à 16:07, Bernt Lie a écrit : > I use LyX 2.2 on Win10. > > I need to typeset the signum function as an operator. I have tried to insert > "\mathop{sgn}", but this gives "sgn" in italic, and not in roman as it should. The right command is operatorname, I think. LyX is not yet able to display it properly , though. Jmarc -- On "operatorname" -- this is somewhat fragile, I guess. I assume I have AMSMath. If I do the following in math or display math...: type "\operatorname" followed by an opening brace "{", LyX adds the closing brace. Then type the operator name inside of the braces to have "\operatorname{sgn}" where the cursor now is just after the "n" and before the closing brace. Then hit "space" to move out of the brace. The math still looks like "\operatorname{sgn}". However, if I go out of the math/display math *and* have set up LyX with math preview, then it looks ok. But a slightest mistake causes an erroneous preview... -B -B