3

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

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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