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

LaTeX Math Equation Rendering. #137

Open
CobSammich opened this issue Jun 14, 2022 · 2 comments
Open

LaTeX Math Equation Rendering. #137

CobSammich opened this issue Jun 14, 2022 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@CobSammich
Copy link

LaTeX Math Equation Rendering

I'm curious if rendering LaTeX math equations in lookatme has been considered or looked into at all. Currently a way around this is to generate an image of a math equation and just include that, but writing the math equations within the slides themselves would be far easier.

I tried searching the lookatme contrib extensions, but saw nothing related.

Screenshot
Basically suggesting something like this:
math_slide

Additional notes
If this hasn't been looked into, I could take a crack at implementing it and submitting a pull request or making it as it's own extension -- let me know.

@CobSammich CobSammich added the enhancement New feature or request label Jun 14, 2022
@StefanGreve
Copy link

In case you didn't know it's possible to render LaTeX equations with sympy in the terminal: https://docs.sympy.org/latest/tutorial/printing.html

But the output doesn't look very appealing if you limit yourself to ASCII, and even with unicode support it barely looks okay (in my opinion). Something that compiles LaTeX code to transparent PNG images would be nice.

@d0c-s4vage d0c-s4vage added this to the v3.0 milestone Oct 1, 2022
@krishnakumarg1984
Copy link

krishnakumarg1984 commented Mar 17, 2023

The easiest way to get this functionality would be to add pre-processing support, like how slides has. See here.

Specifically, something like this:

~~~tex2mail ...
\frac{1}{2} = \sqrt{2}x
~~~

where the line ~~~tex2mail ... block indicates that the content inside the block (until the closing ~~~) shall be replaced by the text printed to stdout by executing the command written on that line (in this example tex2mail). This feature is further explained in detail with video/animations in this issue .

It would be nice if we can add generic pre-processing support in.

Then, for this particular maths rendering issue, we can use tex2mail or the modern latex-to-uncode tool utftex , which looks so much better.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants