Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature:could this support latex? #189

Open
dirichy opened this issue Jun 29, 2024 · 8 comments
Open

feature:could this support latex? #189

dirichy opened this issue Jun 29, 2024 · 8 comments

Comments

@dirichy
Copy link

dirichy commented Jun 29, 2024

I want to let this support some latex code, such as \includegraphic, is it possible?

@3rd
Copy link
Owner

3rd commented Jun 29, 2024

Hey, it could through an integration, no built-in support for that.

@dirichy
Copy link
Author

dirichy commented Jun 30, 2024

is there some example?
I want to use this in latex.
Thank you for your resposing.

@3rd
Copy link
Owner

3rd commented Jun 30, 2024

Hey, the integrations are here: https://github.com/3rd/image.nvim/tree/master/lua/image/integrations
Do you want it inside .tex files or something like markdown blocks?

@dubrayn
Copy link

dubrayn commented Sep 12, 2024

Automatic preview of math blocks in markdown would be SO nice... I wiil take a look at the integrations. Vaisakhkm2625/hologram-math-preview.nvim can be a nice inspiration too.

@artkpv
Copy link

artkpv commented Nov 5, 2024

@3rd I'm also interested

Do you want it inside .tex files or something like markdown blocks?

I would like to see my math formulas rendered while I edit markdown files. Like:

Content of "mymarkdownfile.md":

$$a_k = \text{argmax}_{a_k}  \sum_{o_k, r_k} \dots \max_{a_m} \sum_{o_m, r_m} [ r_k + \dots r_m ] \sum_{ q : U(q, a_1, \dots, a_m) = (o_k, r_k, \dots o_m, r_m ) } 2^{-l(p)}$$

And it displays the formula under the formula or when I hover my cursor over it. Thanks!

@dubrayn
Copy link

dubrayn commented Nov 5, 2024

A recent plugin started implementing LaTeX preview for markdown files.
Another one can render latex blocks on demand.

@3rd
Copy link
Owner

3rd commented Nov 5, 2024

I think it would be something to add to https://github.com/3rd/diagram.nvim instead, keeping the built-in integrations slim. What's the best supported (and easiest to setup) way to get an image out of LaTeX source?

@dubrayn
Copy link

dubrayn commented Nov 6, 2024

A simple way to generate a .png file from some LaTeX content is the preview function from the python sympy module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants