halamalala / inkscape2tikz

Automatically exported from code.google.com/p/inkscape2tikz
Other
22 stars 2 forks source link

switch to cm instead of pixels? #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
A request for enhancement:
the TikZ code produced by inkscape2tikz would be much easier to edit if instead 
of pixels it used cm (which is the default in tikz) as primary dimension, and 
if y-coordinate was multiplied by -1, so instead of 

\begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1]
\path[draw=black] (168.0839,258.1656)...

it would produce

\begin{tikzpicture}[y=1cm, x=1cm]
\path[draw=black] (4.706, -7.228)...

(or better yet, replace y by (height-y) to have values positive).

From the commented out code in function transform(self, coord_list, cmd=None) I 
see that this feature was probably planned (or at least considered). Or is 
there any reason why it was removed?

Thanks for the great tool!

Original issue reported on code.google.com by shurik...@gmail.com on 15 Dec 2010 at 1:19

GoogleCodeExporter commented 8 years ago
I agree. This is on my todo list. While debugging it is easier to use pixels 
because there is then a one to one mapping between SVG and TikZ coordinates. 
This is why I have disabled this feature temporarily.  

Original comment by kjel...@gmail.com on 15 Dec 2010 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by kjel...@gmail.com on 17 Apr 2014 at 3:14