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

Add support to AsciiMath, LaTeX #58

Open
GrimPixel opened this issue Feb 10, 2023 · 5 comments
Open

Add support to AsciiMath, LaTeX #58

GrimPixel opened this issue Feb 10, 2023 · 5 comments
Labels
suggested enhancement Enhancement, which is not planned yet for being worked on

Comments

@GrimPixel
Copy link

GrimPixel commented Feb 10, 2023

It doesn't support formula for now.
There is https://github.com/NanoMichael/MicroTeX for LaTeX.

@GrimPixel GrimPixel changed the title Add support to AsciiMath, MathML, LaTeX Add support to AsciiMath, LaTeX Feb 10, 2023
@insilmaril insilmaril added the question Further information is requested label Feb 13, 2023
@insilmaril
Copy link
Owner

Looks interesting, though I don't understand in detail how it should be used:

  • Where should input of formulas come from: Headings, Notes, Attributes, ...?
  • When should images be created, and where displayed?
  • How should formulas be edited?

Adding a full blown library to vym would make it harder to build and maintain, I am not convinced I would like to do that ;-)

Workaround idea: Use vym and external scripts to achieve similar results?

@GrimPixel
Copy link
Author

GrimPixel commented Feb 13, 2023

I just saw Freeplane having LaTeX scripts. If you use VSCodium or VS Code, there is an extension “Markmap”, which implemented KaTeX. You can try it out: https://markmap.js.org/repl

  • The input of formula starts with “$” and ends with “$”. It could be anywhere.
  • It's not an image, but text rendered in a specific way.
  • It can be edited through typing.

There are some Python scripts for doing the conversion, for example https://pypi.org/project/latex-image-generator/

@insilmaril insilmaril added enhancement and removed question Further information is requested labels Feb 13, 2023
@insilmaril
Copy link
Owner

Thanks for all the pointers :-)

On my part I probably won't have the time to implement that in foreseeable future :-( But maybe someone else would like to jump on this, I'll happily support, if possible

@GrimPixel
Copy link
Author

It doesn't look complicated in its “Build demo” section: run those commands and it will build. It seems that it requires one more dependency: the compiler.

By the way. I saw a “/tex” folder in there. Hadn't you hear about LaTeX before?

@insilmaril
Copy link
Owner

The vym manual itself is created with LaTeX ;-)

While MicroTex is supposed to work with Qt, I have some trouble building it as it (wrongly) assumes a GTK environment in KDE plasma :-P Seems the authors mixed up Qt and Unix as operating systems in their CMakeLists.txt :-( Also development seems to be quite dead for 2 years there.

Missing packages to compile it are (at least) tiny-xml2-devel, fontconfig-devel, probably more.

I try to have another look once I find more time (currently busy with completely rewriting vyms rendering and adding darkmode)

@insilmaril insilmaril added suggested enhancement Enhancement, which is not planned yet for being worked on and removed enhancement labels Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggested enhancement Enhancement, which is not planned yet for being worked on
Projects
None yet
Development

No branches or pull requests

2 participants