ojsheikh / unicode-latex

A visual studio code extension to insert Unicode symbols given LaTeX symbol names
MIT License
28 stars 26 forks source link

\varphi and \phi are switched #36

Open Vahieltje opened 1 year ago

Vahieltje commented 1 year ago

In the code editor, \varphi gives ϕ and \phi gives φ. In LaTeX however, it is the opposite, eg. \phi gives ϕ and \varphi gives φ. This can be kind of annoying when plotting, since the phi symbol in the code and the plot are different.

I would suggest switching \varphi to give φ in the editor and \phi to give ϕ, to be consistent with LaTeX notation.

mxwell-dev commented 1 year ago

Cannot confirm. Even though (strangely enough), it looks wrong when browsing the sourcecode on github, the actual unicode characters are correct (cf. by pasting them e.g. here). \varphi produces "U+03C6 | GREEK SMALL LETTER PHI", whereas \phi produces "U+03D5 | GREEK PHI SYMBOL". Also in vscode it displays correctly. Perhaps your font got things mixed up (like it appears to be in github).