Doing Latex preview in vim inside python comments?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

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
  • tex-conceal.vim

    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?

  • julia-vim

    Vim support for Julia.

    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.

  • vim-tex-kawaii

    Vim plugin for Kawaii folds and conceals for LaTeX files

    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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts