Git Product home page Git Product logo

svg2tikz's Introduction

SVG2TikZ (Inkscape 1.x.x compatible)

Documentation Status PyPI version

SVG2TikZ, formally known as Inkscape2TikZ ,are a set of tools for converting SVG graphics to TikZ/PGF code. This project is licensed under the GNU GPL (see the LICENSE file).

Documentation and installation

SVG2TikZ is now available on pypi so you can install it with if you want to use it with a command line. But the inkex package is not on pypi so you need first to add an extra url to repository:

export PIP_EXTRA_INDEX_URL=https://gitlab.com/api/v4/projects/40060814/packages/pypi/simple

Then you can install the package:

pip install svg2tikz

It is also true if you install the package from this repository.

All the informations to install (as an inkscape extension) and use SVG2TikZ can be found in our Documentation.

Changes, Bug fixes and Known Problems from the original

V1.3.2

  • Updating all the tests
  • Fixing calc_arc function
  • Fixing noreversey function

V1.3.1

  • Correcting path punch error

V1.3.0

  • Adding linting and formating to the project

V1.2.0

  • Adding option to set document unit input-unit and the output unit output-unit
  • Now the tikz output used the unit define by output-unit
  • Now the default behaviour will read the height of the svg and use the bottom left corner as reference
  • This option can be disabled with --noreversey

V1.1.1

  • Supporting svg encoded in utf-8
  • Simple Symbol handling
  • Simple Arrow handling

V1.1

  • Publishing the package to Pypi
  • Publishing the document to ReadTheDocs
  • Fixing the translate error from matrix

V1.0

  • Now images can also be exported to tikz
  • Added a variable /def /globalscale to the output tikz document (standalone and tikz figure)
  • /globalscale when changed will scale the tikzfigure by transforming the vector coordinates.
  • /globalscale when changed will scale the tikzfigure by scaling the embedded images
  • The path element was not exported in correct coordinates. This is fixed
  • Added an entry to specify the path to be removed from absolute paths in the images. This is useful to work in a latex project directly

Known Problems

  • Currently only images that are "linked" in svg are exported. Base64 embed is not yet supported so avoid choosing embed option
  • Grouped elements will not work. So ungroup everything

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.