Our great sponsors
- Revelo Payroll - Free Global Payroll designed for tech teams
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- SonarLint - Clean code begins in your IDE with SonarLint
-
Nowadays during my master thesis does lots of equations appear in my python code, but I would love to use tex rendering in some way, like latex preview in emacs. However, I know that there is some great latex rendering such as tex-conceal.vim and latex_to_unicode in julia-vim, but I am not able to make it work for python comments. Any idea on how to solve this?
-
Nowadays during my master thesis does lots of equations appear in my python code, but I would love to use tex rendering in some way, like latex preview in emacs. However, I know that there is some great latex rendering such as tex-conceal.vim and latex_to_unicode in julia-vim, but I am not able to make it work for python comments. Any idea on how to solve this?
-
Revelo Payroll
Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.
-
What these plugins do is just visually replacing a pattern with a unicode character using vim's conceal fucntion. By the way, check also my plugin for that : https://github.com/anufrievroman/vim-tex-kawaii So, basically, you can just copy the tex-conceal or my vim-tex-kawaii plugin and place it into your /after/ftplugin directory and rename to python.vim instead of tex.vim. That means this file will be loaded for python files. Then you need to replace all the patterns because in python I guess you don't use expressions like \alpha and you just write alpha. It is actually not obvious how equations in your python code should be different from rest of the code, maybe you could use some special variable names like _alpha or something like that.