On 2017-02-24, Bernt Lie wrote: > From: lyx-users@lists.lyx.org [mailto:lyx-users@lists.lyx.org] On Behalf Of > Jean-Marc Lasgouttes > Le 24/02/2017 à 16:07, Bernt Lie a écrit :
>> 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. You can define a math-macro with \operatorname{sgn} in the TeX definition and sgn in upright roman font in the LyX definition. Günter