GithubHelp home page GithubHelp logo

LaTex Math Support about uncolored HOT 2 OPEN

n457 avatar n457 commented on July 17, 2024
LaTex Math Support

from uncolored.

Comments (2)

n457 avatar n457 commented on July 17, 2024

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 ?

from uncolored.

 avatar commented on July 17, 2024

@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.

from uncolored.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.