halamalala / inkscape2tikz

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

Enable easy scaling of TikZ picture after generation #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When including a PDF of PNG figure into a document, one typically achieves this 
with something like

\includegraphics[width=0.7\linewidth]{myfig}

This way, the same figure can be included into multiple documents and/or have 
its width adjusted after generation

It would be very useful if the TikZ code was generated to make something like 
this possible:

\newlength\tikzfigwidth
\newcommand{\includetikz}[2][0.9\linewidth]{%
\setlength\tikzfigwidth{#1}%
\scriptsize%
\input{#2}%
} 

\includetikz[0.5\linewidth]{myfig.tikz}

I.e., the TikZ figures are generated as multiplies of a \tikzfigwidth length.

Original issue reported on code.google.com by petter.s...@gmail.com on 5 Jan 2011 at 3:03

GoogleCodeExporter commented 8 years ago
This should be labelled as an 'enhancement', not 'defect'. I don't know how to 
change this.

Original comment by petter.s...@gmail.com on 5 Jan 2011 at 3:04

GoogleCodeExporter commented 8 years ago

Original comment by kjel...@gmail.com on 14 Jul 2012 at 9:29

GoogleCodeExporter commented 8 years ago
Not sure how to implement this. Any ideas?

Original comment by kjel...@gmail.com on 15 Jul 2012 at 5:38

GoogleCodeExporter commented 8 years ago

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