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 Support #2

Open
ghost opened this issue Sep 24, 2016 · 2 comments
Open

LaTex Math Support #2

ghost opened this issue Sep 24, 2016 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 24, 2016

@n457 , I love Uncolored. Love the interface, and love the simplicity with power. However, I do a lot of math, and would love LaTex math support. Is this coming down the pipeline?

@n457
Copy link
Owner

n457 commented Sep 24, 2016

Hi @codesharkasm, thanks :)

Adding LaTex Math support was not planned at start. I did a little research and it seems pretty complicated to set up.

I found :

  • MathJax which outputs classed HTML tags with inline CSS styles, this is pretty ugly in terms of code, and I absolutly want to keep a document HTML code clean (without to much class attributes & no style attributes at all).
  • Textogif has too many prerequisites.

The only light & simple solution I see is to convert your math formula into image via one of the several online services like latex2png or TeX2PNG and import the local (or remote) image into the document (importing local images and incorporate them in a data64 format in a document will be possible in a near future).

What do you think ?

@ghost
Copy link
Author

ghost commented Sep 26, 2016

@n457
True. I see what you mean. I checked the code of a sample MathJax exported document. It was horrible.

But before you write this one off, download and install Typora and check out Classeur. Typora isn't really that nice looking compared to (Un)colored, but has a few more features such as math, TOC, tables, and auto-closing syntax! (for example, typing ( will bring up () and will put the caret between the two. Same with ", [, **, etc.) Check out the code and stuff for Typora (it's built on electron). Classeur is both nice and powerful, but is not native.

If Mathjax doesn't work, is it possible to integrate TeX2PNG into the editor itself so that when I type some MathJax code into (Un)colored, it translates it into a png? Sorry, I'm a bit of a novice in development. I'm a student and I use markdown programs a lot. I'm still on the hunt for the perfect MDown editor.

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

No branches or pull requests

1 participant