I would like to have a similar display of the math equations in orgmode like I have in latex/auctex.

Here is a small example (from the same org buffer):

enter image description here

I found here a similar or same question, but unfortunately without any answer: https://www.reddit.com/r/emacs/comments/9nqa6r/latex_code_in_org_mode_does_not_fontify_correctly/

From this I understand that this is called "font-latex-fontify-script".

Do you know how I can display the math equation shown in the picture like it is done in the "begin_export latex" region? Thank you in advance!

  • The answer is simply remove the #+BEGIN_EXPORT... #+END_EXPORT and type directly the expressions/equations. – Ian Jun 18 '20 at 13:11
  • Just to clarify, do you want to see LaTeX code with syntax highlighted outside of the export block? Or do you want to a rendered inline preview of the export block? Thanks for asking your question! – Melioratus Jun 18 '20 at 15:58

For the sub and superscript fortification, I have the following code in my .emacs file:

       org-highlight-latex-and-related '(native script entities)
       org-pretty-entities t
       org-pretty-entities-include-sub-superscripts t)

I am not sure if this is all needed for you, but you can always inspect these variables.

If you are interested even in a pretty display of latex commands such as \alpha with it's unicode char, well that's another story.

  • Thank you very much for your quick help! – Fabian Jun 18 '20 at 17:05

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.