TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are webpages that contains .sty text file. Does anyone know how to use it?

Thanks for any helpful answers.

share|improve this question
Usually this means that your browser decided to display the file as plain text instead of downloading it. – Sharpie Oct 17 '10 at 23:36

I think you need to be more specific. Generally, .sty is the extension of LaTeX packages. To use package.sty you put


in the preamble of your document. In order for this to work the .sty file must be installed in a place where LaTeX can find it. In the simple case where the package needs no support files this could be the directory with your document or in a local texmf tree.

In more complicated cases you need to install all files according to their types. See Where to install packages for details.

However, if you are using one of the big TeX distributions, e.g. MiKTeX or TeXlive, chances are that you can install the package using the distribution package manager. This will ensure that you get an up-to-date version and that the package and support files will be correctly installed.

share|improve this answer
Should I copy the style text and save it in a a file of some format? Thanks! – user1028 Oct 18 '10 at 0:47
.sty files are plain text files; you could copy the info into a text editor and save with a name ending in .sty, but it's usually easier just just to right click on the link to the .sty file in your browser and choose the option "Save Link As.." or "Save Target As.." – frabjous Oct 18 '10 at 3:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.