# How to add a package in overleaf [duplicate]

I was asked to use the following format for my report in Overleaf

Please use the following set-up within LaTeX:

\documentclass[12pt]{report}
\usepackage[y4project]{edmaths}


You can download the style file here: https://info.maths.ed.ac.uk/assets/files/Projects/edmaths.sty

This is a .sty file,I am not sure how to implement it.

Thanks a lot!

Edit: Error looks like this

• Upload it to overleaf in the same folder your main tex file is. Feb 11, 2018 at 13:26
• I've uploaded it, but there was an compile error Feb 11, 2018 at 13:47
• I can only guess that the error is a file that ends without anything. You don't have a document environment. Feb 11, 2018 at 13:53
• As @Johannes_B says, your main.tex is incomplete: you need at least \begin{document}Hello World!\end{document} after those two lines. You may have to refer to your instructor's guidelines about how to use the package to write your report. Feb 11, 2018 at 14:52