Git Product home page Git Product logo

Comments (4)

parthi2929 avatar parthi2929 commented on July 1, 2024

Hi David
your fork is still active because this base looks not being updated any more? (no replies for many recent issues)

from ipython-tikzmagic.

DavidPowell avatar DavidPowell commented on July 1, 2024

@parthi2929 I made some changes to incorporate dvisvgm support. I am currently using this on an almost daily basis, but I have not needed to make many changes to the code.

You may wish to try out my fork. Using the --dvisvgm option (assuming you have dvisvgm installed), the output file now scales much more logically, and it probably solves your issue #27.

Please understand that this is just a volunteer project created for the dev's on needs. Resolving everyone else's issues requires time and commitment that not everyone has.

from ipython-tikzmagic.

parthi2929 avatar parthi2929 commented on July 1, 2024

this @mkrphys base has an svg option, but when i try it fails.

from ipython-tikzmagic.

DavidPowell avatar DavidPowell commented on July 1, 2024

The standard SVG conversion option is based on generating a PDF, then extracting an SVG with imagemagick. Imagemagick needs to be installed, also this extension needs to know where to find it. Under windows the default executable name is different to what the extension is expecting, so I added a -i option to allow the filename and path of imagemagick to be specified.

The approach I added in this issue is quite different. It generates a dvi, then converts to svg using dvisvgm (which should be already installed on any modern latex distribution). I found the output is much better quality, and scaling works better. Also, this approach enables SVG ids to be added to elements of the drawing, for making them interactive with javascript.

from ipython-tikzmagic.

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.