https://kotlinlang.org logo
#science
Title
# science
a

altavir

03/28/2021, 12:51 PM
@Iaroslav Postovalov just discovered a Kotlin builder for TeX by@khud: https://github.com/kotexio/KoTeX. We've currently started a more ambitious project code-named Snark (as in Lewis Carroll's poem), which is aimed to provide document transformation and generation API as well as builders. I think it would make sense to cooperate on that. @Alex Gladkov is also stuying builders and Android rendering. The snark's code is not public yet, I need to add a few things first.
k

khud

03/28/2021, 12:54 PM
Yep, I would be happy to cooperate.)
FYI: @SerVB
a

altavir

03/28/2021, 12:57 PM
@Iaroslav Postovalov is finishing KMath to LaTeX processor which allows represent formulas from actuall calculateable expressions in Jupyter/LaTeX document. And I've spend some time on a middleware API, which works as an intermediate representation between builder and renderer. So A lot of nice things. I will try to publish what I have ASAP. @Zelenyi developed the front-end builder and of course we are relying a lot on https://github.com/JetBrains/markdown
🔥 2
i

Ilya Muradyan

03/29/2021, 10:58 PM
BTW, I've just added JLaTeXMath rendering to kernel via convenience method
a

altavir

03/30/2021, 6:45 AM
@Ilya Muradyan It would be nice to have a dedicated MIME type for latex and appropriate function in the API.
Something like LATEX to go alongside HTML (I am not sure that the capital case is a way to go though).
i

Ilya Muradyan

03/30/2021, 6:52 AM
renderLatex
returns
Image
which is
Renderable
. I don't want to make it a part of API because it requires a number of heavy dependencies, but I can rename
renderLatex
to
LATEX
a

altavir

03/30/2021, 6:52 AM
Why an image and not a MathML?
Jupyter lab already has MathJax installed, so it should be rendered automatically. The classic notebook is more complicated problem of course
i

Ilya Muradyan

03/30/2021, 7:03 AM
Images (svg) are supported everywhere and may be easily exported
a

altavir

03/30/2021, 7:04 AM
OK then.
19 Views