[Tex/LaTex] How to install a .sty file on Texmaker

installingpackagestexmaker

I'm quite new to LaTeX, so please take that in consideration when answering my question. Thank you.

So I want to install ans.sty, but I'm not quite sure how to do so. I'm using TexMaker and I've tried usepackage, but appearantly that doesn't work. From what I read here, I need to manually install it, but I've been unable to do so. It seems I need to find a texfm directory on my Windows, but I coudn't find it.

Thank you for your attention!

Best Answer

You should install ans.sty in your local TeXMF root, say TeXMFLocal\tex\latex\ans and the documentation in TeXMFLocal\doc\latex\ans. If you're under MiKTEX, you also should create the local root, with MiKTeX Settings, Roots tab, and refreshh the FNDB (File Names Data Base).