# How to install the tikzscale package?

I downloaded tikzscale.zip from CTAN. I extracted the following files from tikzscale.zip:

3Dplot.tikz
histogramNormal.tikz
linewidth.tikz
pgfplots-test.tikz
pgfplots.randn.dat
test-tikzscale.pdf
test-tikzscale.tex
testNode.tikz
testRectangle.tikz
testgraphic2D.tikz
tikzscale.dtx
tikzscale.ins
tikzscale.pdf


I put all the above files in the same file folder as my main tex file: main.tex. The minimal working environment of main.tex is as follows.

\documentclass[journal,twoside]{IEEEtran}
\usepackage{amssymb,amsmath,mathrsfs,bm,graphicx,color,cite,subfigure}

\usepackage{tikz, pgfplots}

\pgfplotsset{plot coordinates/math parser=false}

\begin{document}

....

\end{document}


But I always got the following error message:

Latex Error: File tikzscale.sty' not found.


I am really confused why this happens?

Does anybody know how to isntall this package properly?

Thanks

-
Thanks for your reply. What do you mean by " run latex on tikzscale.ins to get tikzscale.sty"? How to do this? – winner245 Aug 6 '13 at 0:13
pdflatex works. I can compile tikzscale.ins by pdflatex. Just one more question. How to install the package using package manager (since this is a better way)? – winner245 Aug 6 '13 at 8:25
Thank you for your kind and consistent help. I am using MikTex. The link you posted helps me a lot. My problem is completely solved! – winner245 Aug 6 '13 at 12:20

You have to compile the tikzscale.ins file by pdflatex. To do this, open the file in your tex editor and press the button it provides to compile. This compilation will produce tikzscale.sty` file which you may put in the same directory as the main tex file. Or better put it in your localtexmf folder (refer this answer) to make it available globally.