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

Picture with Tikz #123

Open
fbob opened this issue Dec 16, 2020 · 10 comments
Open

Picture with Tikz #123

fbob opened this issue Dec 16, 2020 · 10 comments

Comments

@fbob
Copy link

fbob commented Dec 16, 2020

I just found this project today and was wondering if:

  • it does support Tikz ?
  • or could it technically support it ?

Anyway it's a really awesome project !
Congratulations :)

@michael-brade
Copy link
Owner

Hi, thank you :-)

No, I did not implement that yet but there is no reason LaTeX.js couldn't support it. And yeah, I would LOVE to work on support for that! I like TikZ a lot. But I just don't have enough time right now, only little bits and pieces here and there. One of the next things will be images and SVG support, then you can export a TikZ picture as SVG and display it that way.

@fbob
Copy link
Author

fbob commented Dec 16, 2020

With images and SVG support no doubt that LaTeX.js could replace LaTeX in a daily work for A LOT of people.
Rendering time is blazing fast.
Sincerely, it's a pretty impressive work !

@dzackgarza
Copy link

Just wanted to mention that tikzcd would probably suffice for a lot of people!

@Mahdi-Roozbahani
Copy link

Any chance to work on this library?

@michael-brade
Copy link
Owner

@Mahdi-Roozbahani which library do you mean? this as in LaTeX.js or tikzcd?

@Mahdi-Roozbahani
Copy link

@Mahdi-Roozbahani which library do you mean? this as in LaTeX.js or tikzcd?

@michael-brade I meant tickzcd. So lines can be drawn using latex.js.

@michael-brade
Copy link
Owner

I see. Well, it won't be me for the time being.... Once \includegraphics works, you can include SVGs as a workaround.

@dzackgarza
Copy link

Will this actually work though? I seem to remember that \includegraphics has some issues with SVG in usual latex, see this Tex SE question for all of the various workarounds people seem to have to use: https://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex

@Mahdi-Roozbahani
Copy link

Will this actually work though? I seem to remember that \includegraphics has some issues with SVG in usual latex, see this Tex SE question for all of the various workarounds people seem to have to use: https://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex

It is a good point. It would be great to an SVG in your playground demo.

@michael-brade
Copy link
Owner

@dzackgarza Sure. I am completely independent of the real LaTeX. Imagine it that way: I am reimplementing LaTeX's syntax in JavaScript. So I can choose what syntax produces which result, limited only by what is or isn't possible with HTML/CSS.

Of course, I try to be as close to LaTeX as possible, but if some features that aren't available in LaTeX are easily possible with LaTeX.js, I won't prohibit them. See the playground, for instance ;-)

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