[Tex/LaTex] Generate .sty file from CTAN zip


I want to install a new package to my Tex environment, as an example Colortbl from CTAN.

The issue is I am behind a firewall at my company so I cannot download it through my tex environment.

Going to CTAN I get a zip file with:

  • colortbl.dtx
  • colortbl.ins
  • colortbl.pdf
  • colortbl-DE.pdf
  • colortbl-DE.tex

How do I get the needed .sty file?

Best Answer

After it is downloaded unpack it to where you want either in the tex root folder:


Where you create the folder colortbl, or unpack it within the folder with your .tex files for the specific project where you want to use colortbl.

For Windows open cmd, in the folder where the unpacked files are and type:

pdflatex colortbl.ins

it will then generate the .sty file that you need.

Related Question