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

Support image display? #55

Open
faywong opened this issue Feb 5, 2021 · 5 comments
Open

Support image display? #55

faywong opened this issue Feb 5, 2021 · 5 comments

Comments

@faywong
Copy link

faywong commented Feb 5, 2021

Does this latex implement support image display?

@NanoMichael
Copy link
Owner

Not support by now. Technically, we just need to abstract the image load, draw, and release operations and leave it to the user to implement it, that's simple.

However, I think it is a bad idea to use this library to display images. A better way is to leave it to the host platform and use this library to display formulas because this library is good at showing formulas and not good at showing images.

Anyway, we will provide a rough version to support image display.

@faywong
Copy link
Author

faywong commented Feb 8, 2021

Thanks for share and clarify.

Technically, we just need to abstract the image load, draw, and release operations and leave it to the user to implement it, that's simple.

I prefer this approach as whether graphic implement or not is up to upper layer user, is an option.
Also if the common layout logic applies to image element, the layout logic could by reused.

Anyway, thanks for your effort on such a huge project.

I run accross some common compile issues on both win10 x64 LTSC(gdiplus.h can't be type self contained) and macOS(std namespace missed), I will upload my fix later when free.

@NanoMichael
Copy link
Owner

NanoMichael commented Feb 8, 2021

I prefer this approach as whether graphic implement or not is up to upper layer user, is an option.
Also if the common layout logic applies to image element, the layout logic could by reused.

Yes, that's what I plan.

I run accross some common compile issues on both win10 x64 LTSC(gdiplus.h can't be type self contained) and macOS(std namespace missed), I will upload my fix later when free.

The Windows GDI version is in the status that unmaintained (mainly because I don't have a Windows PC 😅 .). We have a long way to go. Very appreciate your PRs.

By the way, I'm going to deprecate the Old-Plain-TeX (branch master) and the migrating to Uni-math (branch openmath) is on the way, you may want to check it out if you are interested in it.

@faywong
Copy link
Author

faywong commented Feb 9, 2021

I created a discord room for cLaTexMath, welcome to join in to collaborate more smoothly and frequently.

@PikachuHy
Copy link
Contributor

I write a simple demo which show how to convert a tex snippet to a image(.png).
see #66

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

No branches or pull requests

3 participants