# How do you use style sheets in TeXworks?

How do you choose which .sty file a document uses in TeXworks?

-
I think I don't understand your question. Are you asking how to load a package? – Gonzalo Medina Jun 2 '11 at 23:06
possible duplicate of How can I manually install a package on MiKTeX (Windows) – Caramdir Jun 3 '11 at 5:05

## 1 Answer

I understand the problem; I misunderstood what a .sty file was. I didn't realize a .sty file was the same as a package. I had a standalone .sty file that I wanted to incorporate into my document. In order to do it I did the following (I am using TeXworks/MiKtex on Windows):

• Create a new directory "C:/Local Tex Files/tex/latex/misc" and put the file "myfile.sty" in there.
• Go into the MikTex settings and add "C:/Local Tex Files" as a root directory.
• Add "\usepackage{myfile}" to the document preamble.
-
– Caramdir Jun 3 '11 at 5:04