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
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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