From: [email protected] [mailto:[email protected]] On Behalf Of
Paul A. Rubin
Sent: fredag 24. februar 2017 16.28
To: [email protected]
Subject: Re: new operators in LyX?
On 02/24/2017 10:07 AM, Bernt Lie wrote:
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.
Is there a syntax for this?
-Bernt
Assuming that you are loading AMSMath, try adding
\DeclareMathOperator{\sgn}{sgn} to the document preamble and then use \sgn in
math insets.
Paul
--
I’m pretty sure that I managed to do it without changing the preamble a few
days ago, but I cannot remember what command I used...
-Bernt