0

I am writing Julia code in Emacs, which allows the use of unicode characters in the source code. However, some symbols come out looking weird. For example the Greek letter nu:

enter image description here

becomes:

enter image description here

Does anyone know how to fix this to be the correct lowercase nu letter?

6
  • 1
    What does Emacs say the character information is if you run C-u C-x = (which is the what-cursor-position command) with the point on that character?
    – D. Gillis
    Jul 11, 2020 at 4:07
  • Char: C-j (10, #o12, #xa) point=4118 of 4204 (98%) column=7 Jul 11, 2020 at 4:48
  • 3
    C-j (10) is a newline. You surely want the previous character.
    – phils
    Jul 11, 2020 at 7:18
  • 1
    ... and add the information to the question: comments can disappear.
    – NickD
    Jul 11, 2020 at 14:46
  • 1
    @Drew I believe that Julia Mode looks for the escaped name of certain common symbols and then replaces them with their proper unicode character (e.g. \nu gets replaced with ν). There's a file (julia-mode-latexsubs.el) in the Julia Mode source that makes a hashtable of these mappings; the most recent version seems to have the correct mapping for \nu. I wanted to see what the character was that got inserted (in the second screenshot) to see if the correct character is being substituted or if it is just a font issue (or something of a similar nature).
    – D. Gillis
    Jul 11, 2020 at 21:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.