Org mode provides a variable called org-entities that contain replacements for latex symbols like \alpha, \beta etc.

Org also provides a minor called orgtbl-mode which allows text that starts with a | in arbitrary major modes to be interpreted as an org table and then I can do calculations and alignment. I have found this to be a very useful feature.

However orgtbldoesn't seem to use org-entities when I am using it while documenting some math heavy python code. For example I have a function with some detailed logic that I need to program and it would be helpful to get the same kind of feedback while writing my code's documentation that I get in a org buffer. Please let me know how I can achieve this effect. Thanks.

Below is a small table fragment that orgmode renders automatically that contains some "business logic" that I need to code:

| Name      | Symm      | Remarks               |
| \equiv    | \check    | x = y                 |
| \neg      |           | x \cap y = \phi \land x \cup y = D |
| \perp     | \check    | (else)                |
  • Can px-mode emacs.stackexchange.com/a/219 help? It is also available via melpa. In can render latex symbols in arbitrary mode. – Name Aug 1 '15 at 15:10
  • Oh yeah that would be great. I'll try it. – Pushpendre Aug 1 '15 at 16:34
  • I haven't installed px but it seems that previewing latex using px would require the user to call px-preview-region before the latex is rendered and also it would need to be enclosed in $..$. I would prefer to find a solution that is more automatic just like the behavior of org-mode. Thanks for the tip though. – Pushpendre Aug 1 '15 at 16:47
  • Is it possible to provide a minimal example of your orgtbl document ? – Name Aug 1 '15 at 18:18

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.