sfstoolbox / sfs-python

SFS Toolbox for Python
https://sfs-python.readthedocs.io
MIT License
66 stars 20 forks source link

Use \mathop instead of \operatorname #133

Closed mgeier closed 5 years ago

mgeier commented 5 years ago

TBH, I don't understand what the difference is between the two, but if I use \operatorname, I get an "ffi ligature" instead of a "lowercase greek letter delta" in the PDF.

hagenw commented 5 years ago

As I understood https://tex.stackexchange.com/a/84308 \operatorname is the safer choice. Have you checked if the spacing etc. is identical in the compiled PDF? I do not understand what you mean by "ffi ligature" instead of "lowercase greek letter delta".

mgeier commented 5 years ago

for example:

image

hagenw commented 5 years ago

This is strange. The same definition of \dirac works for https://github.com/sfstoolbox/theory without any problems, see dirac The definition is:

\def \dirac          #1{\operatorname{\delta}\left(#1\right)}

So, the only difference is that we use \gdef in sfs-python instead.

mgeier commented 5 years ago

No, it's not the only difference.

We are also using a different math font (with the mathpazo package), which causes the problem to appear.

hagenw commented 5 years ago

Ah, ok. I can confirm that it works with your changes. So it's fine for to use \mathop then.