0

This question already has an answer here:

When I run a tikz code on my PC, the following error always stop me from producing the figure.

! LaTex Error: File forest.sty not found

But my code is okay in Overleaf. My LaTex on PC(win7) is WinEdt 6.0.

Does it mean my codes need a separate file: forest.sty. I googled it but ending without finding any forest.sty file, can anyone give me the one?

marked as duplicate by LaRiFaRi, user13907, Mico, Thruston, Ignasi Jul 21 '15 at 13:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    This means that you don't have forest package installed on your PC, or you installed it in a folder where latex is not looking at. – Ignasi Jul 14 '15 at 13:47
  • 1
    An alternative is to copy the forest.sty file from chocolatshalba.ch/files/texlive/texmf-dist/tex/latex/forest/… and paste it in your editor. Save the file as forest.sty in the folder where the latex file that is being worked on is located. – Leucippus Jul 14 '15 at 14:15
  • 1
    The information about Windows/WinEdt is almost irrelevant here. Do you use MikTeX or TeX Live? Both of these have package managers that you use to install packages, as Ignasi already mentioned. @Leucippus While that would work, it is better to install the package with a package manager. forest is available in both TeX Live and MikTeX. – Torbjørn T. Jul 14 '15 at 14:20
  • 1
    As @TorbjørnT. explained, that is not a good method. You should install packages using your installation's package manager. Apart from anything else, that method will work only for your current document. Moreover, even for that document it may well break later in weird, wonderful and deeply mysterious ways. – cfr Jul 14 '15 at 16:33
  • 1
    Search in the start menu for Package manager. If you find a program called that, or Package manager (Admin) (I think that's what it's called) that looks like what you see in docs.miktex.org/2.9/manual/pkgmgt.html, then you have MikTeX. Use that to install new packages. – Torbjørn T. Jul 14 '15 at 17:04

Browse other questions tagged or ask your own question.