To make it so that, i.e., \vdots is displayed as ⁞ one can:

(add-to-list 'org-entities-user
             '("vdots" "\\vdots{}" t "&x2999" "..." "..." "⁞")                

However, I get "invalid function" errors when I try to get i.e. \mathbb{R} to display as :

(add-to-list 'org-entities-user
             '("vdots" "\\vdots{}" t "&x2999" "..." "..." "⁞")                
             ("mathcal{R}" "\\mathcal{R}" t "&x211D" "R" "R" "R")

Question: Is there a way to add the mathbb alphabet to org-entities-user?


The problem seems to be with the braces in the name attribute of the org entity:

(setq org-entities-user
      '(("vdots" "\\vdots{}" t "&x2999" "..." "..." "⁞")
        ("mathcalR" "\\mathcal{R}" t "&x211B" "R" "R" "ℛ")
        ("mathbbR" "\\mathbb{R}" t "&x211D" "R" "R" "ℝ")))
  • Welcome. Does this also work for the OP's mathcal? – Andrew Swann May 16 '19 at 11:46
  • Yes, I wrote the examples with mathbb to be consistent with the desired symbol ℝ. I have edited the answer to illustrate the use with both symbols \mathbb{R} ℝ and \mathcal{R} ℛ. – JacintoCC May 17 '19 at 10:01
  • This gets rid of the "invalid function" errors but still doesn't display properly: imgur.com/a/ELrKJuA Is this the same on your machine? – George May 17 '19 at 16:59
  • The org entity is mathcalR, so you must write \mathbbR in org-mode, which is exported in latex as \mathbb{R} and displayed as ℝ. – JacintoCC May 20 '19 at 13:20

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.