35

I'm completely new to writing in LaTeX and am therefore starting up with a pre-made report template. However when I just try to compile the template I get the message that following file is required.

tex\latex\natbib\natbib.sty 

So I've downloaded the natbib package but where do I save the files? Appreciate any help and advice to get started with TeXStudio and how to add packages.

3
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format.
    – user31729
    May 29, 2014 at 10:15
  • As Matthias' answer says, the editor doesn't really have anything to do with this, could you say which TeX distribution (MikTeX, MacTeX, TeX Live, ...) you have installed? May 29, 2014 at 12:05
  • I've installed MikTex 2.9. May 30, 2014 at 6:56

1 Answer 1

30

The Editor has actually nothing to do with the LaTeX System. The packages are installed and updated typically with a package manager from the LaTeX distribution - not with the Editor.

If you are using miktex then start the "package manager" and with Tex Live "TeX Live Manager" and add the missing package(s).

If you want to avoid problems with missing packages it is a good practice to install all available packages. That way you hardly ever miss a package again.

If a package is not available in the repository you could as well copy the .sty file to the place where your .tex file is located. However this should always be the exception.

4
  • 6
    I've installed "texlive-full" yet I can't find Tex Live Manager. How/where should I find it?
    – Kvothe
    Feb 14, 2019 at 13:46
  • I believe the command is tlmgr
    – cglacet
    Apr 13, 2022 at 12:40
  • @Matthias If no .sty file is available then what to do? I am using Texstudio with Mistek distribution and want to install a standalone package, it has only .ins file in it. Thanks Sep 21, 2022 at 4:12
  • in Ubuntu/Debian sudo apt install texlive-full should do the trick May 18 at 12:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .