Git Product home page Git Product logo

svgtex's People

Contributors

agrbin avatar klortho avatar mhartl avatar stroobandt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

svgtex's Issues

repeated xlink:href on 'use' elements

The SVG result contains 'use' elements that have duplicate xlink:href elements. That is, using two terminal windows (this is win7)

  1. phantomjs.exe main.js
  2. wget http://localhost:16000/?q=x+e -O test.svg

The resulting SVG has 'use' elements like this:

<use xlink:href="#MJMATHI-78" x="0" y="0" xlink:href="#MJMATHI-78">

What I did to fix it was to replace line 73 in engine.js, which inserts the attribute, with this conditional block:

  if (uses[k]["href"] === undefined) {
      uses[k].setAttribute("xlink:href", id);
  }

failure to render a long math formula

A long math formula, which however would fit well in a single line when rendered, is not rendered and is left as text. This is the example that fails for me:

$\displaystyle \delta \sigma^\prime_e = |\frac{d \sigma^\prime_e}{d \alpha} \cdot \frac{\delta\alpha}{\alpha} \cdot \alpha| = \frac{2}{3} \alpha \frac{\delta\alpha}{\alpha} \alpha = \frac{2}{3} \frac{1}{137.035999084^2} \cdot 1.5\times 10^{-10} = 5.3\times 10^{-15}$

Thanks for this nice piece of software!

Alberto

Missing license

Could you explicitly declare the license (BSD, MIT, Apache, etc...) of this project?

Stand Alone Rendering

Hello,
Your work is awesome. It works pretty well. However, I suggest, a stand alone version without relying on the http communication would be better. There is no guaranteed that you could set up server port on every machine with your main.js. I also tried to develop a MathJax stand alone component for QT platform. I encountered the problem that in page simple JavaScript were executed. However the screen shot doesn't have rendered math. If you would like to tell me how you solved the rendering issue with MathJax, that would be very helpful. We together make a better one, if you don't mind.

Stand Alone Rendering

Hello,

    Your work is awesome. It works pretty well. However, I suggest, a stand alone version without relying on the http communication would be better. There is no guaranteed that you could set up server port on every machine with your main.js. Plus, your html code rely on the mathjax on cdn.com. It is better to use local MathJax.js. I also tried to develop a MathJax stand alone component for QT platform. I encountered the problem that in page simple JavaScript were executed. However the screen shot doesn't have rendered math. If you would like to tell me how you solved the rendering issue with MathJax, that would be very helpful. We together make a better one, if you don't mind. 

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.