https://github.com/kindermannhubert/vstexcommentsextension
TeX comments rendering inside Visual Studio.
https://github.com/kindermannhubert/vstexcommentsextension
comments extension math tex visual-studio
Last synced: 16 days ago
JSON representation
TeX comments rendering inside Visual Studio.
- Host: GitHub
- URL: https://github.com/kindermannhubert/vstexcommentsextension
- Owner: kindermannhubert
- License: mit
- Created: 2016-06-15T19:21:21.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-13T16:48:27.000Z (12 months ago)
- Last Synced: 2025-03-26T12:51:12.938Z (about 1 month ago)
- Topics: comments, extension, math, tex, visual-studio
- Language: C#
- Size: 2.2 MB
- Stars: 57
- Watchers: 2
- Forks: 5
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# VsTeXCommentsExtension
Intra-text adornment extension to the Visual Studio Editor for rendering TeX math comments inside editor.
Supports C#, F#, C, C++, VB.NET, Python, R, D and Fortran.
Extension is transforming all continuous code blocks where all lines starts with single line comment syntax (can be preceeded by white spaces) which for example in C# is '//' and the first line starts with '//tex:' prefix ('//' part is language dependent) to rendered image where math is rendered by [MathJax](https://www.mathjax.org/). Math in this comments has to be surrounded by $ (for inline math) or $$ signs. Syntax of math is LaTex.
Examples:
- C#, F#, C, C++, D:
```C#
//tex:
//Formula 1: $$(a+b)^2 = a^2 + 2ab + b^2$$
//Formula 2: $$a^2-b^2 = (a+b)(a-b)$$
```- Python, R:
```Python
#tex:
#Formula 1: $$(a+b)^2 = a^2 + 2ab + b^2$$
#Formula 2: $$a^2-b^2 = (a+b)(a-b)$$
```- VB.NET:
```VB
'tex:
'Formula 1: $$(a+b)^2 = a^2 + 2ab + b^2$$
'Formula 2: $$a^2-b^2 = (a+b)(a-b)$$
```- Fortran:
```fortran
!tex:
!Formula 1: $$(a+b)^2 = a^2 + 2ab + b^2$$
!Formula 2: $$a^2-b^2 = (a+b)(a-b)$$
```### Example of C# code:

Source code for screenshot above looks like this:
