3

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

Caramdir
  • 89,023
  • 26
  • 255
  • 291
Alex319
  • 465

1 Answers1

4

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.
Alex319
  • 465
  • See also http://tex.stackexchange.com/questions/2063/how-can-i-manually-install-a-package-on-miktex-windows – Caramdir Jun 03 '11 at 05:04