# How to Install LaTeX and Beamer

The following options will work for Windows 8.

If you already have MiKTeX and are not sure if the “Install missing packages on the fly” options is chosen, open the Settings (Admin) program that comes with MiKTeX and open the General tab.

2. Next, you will need a typesetting environment. You can either use TeXWorks which comes with MiKTeX or you can install TeXNicCenter. Create a new file and paste the following:

\documentclass{beamer}
\begin{document}
\end{document}

When you compile this file, MiKTex will be prompted that the Beamer package is missing and needs to be installed.

3. The “Install missing packages on the fly” is not foolproof. It is particularly unreliable if you are using campus internet with fancy proxy and account verification settings. To configure you connection settings, use the “Update MiKTeX (admin)” program.

Next, you will have to install Beamer and ALL its dependencies using the “Package Manager (Admin)” program. Look for the word “beamer” under the “Name” list and click it then hit the “+” icon. I don’t have a list of the dependencies, but a Google search shows that Beamer needs pgf and latex-color. Of course, you also need to install the dependencies of the dependencies (and so forth). The log file or the Build Output window of TexNic Center will tell you if a package for a dependency is missing. Just continue running the sample tex file above until all necessary packages have been downloaded. You may end up downloading 10 or more packages, especially if your MikTex is newly-installed. Be patient.

4. If all else fails, you may need to install Beamer manually (ouch!). The following is a suggestion from Tex StackExchange user Alessandro Jacopson.

You can set up a local packages repository on your computer.

My problem is that I can’t succeed in setting up the internet proxy setup of MikTex in my system, so I have tried today the following solution with MikTex 2.9 and it worked with no problems; the on-the-fly package installation worked well too.

1. Create the folder, for example c:\miktex_pkgs
2. Copy the following file to the folder c:\miktex_pkgs (If you do not copy the files you will probably get some errors from MikTex. Seehttp://bruceyf.wordpress.com/2008/05/07/miktexs-secret-local-package-repository/ for the details):http://mirrors.ctan.org/systems/win32/miktex/tm/packages/README.TXThttp://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb1-2.9.tar.lzma

http://mirrors.ctan.org/systems/win32/miktex/tm/packages/miktex-zzdb2-2.9.tar.lzma

3. You can copy any packages you may need from http://www.ctan.org/tex-archive/systems/win32/miktex/tm/packages to your local folder c:\miktex_pkgs
4. At this point you have two options.
• Update your MikTex system: from the Windows Start menu -> Programs -> Miktex 2.9 -> Maintenance (Admin) -> launch the program “Settings (Admin)”Go to the tab “Package repository” and choose the folder c:\miktex_pkgsInstall packages…
• Open a command prompt and navigate to c:\miktex_pkgsUse mpm.exe --install {name} to install packages. The {name} does not include any of the extensions (.cab, .tar.lzma, .tar.bz2, etc.).

Installing Beamer can be tricky and if you read the comments below, many users run into all sorts of problems. Good luck!

## 35 thoughts on “How to Install LaTeX and Beamer”

1. Jim says:

Thank you so much!

“Install missing packages on the fly” is a life saver.

• kenjokenjo says:

wow thats nice to hear!

2. elena says:

thanks so much

3. xdvsdgs says:

looooooooveeee this
thx u very much

4. mohamed hamed says:

Like :)

5. Juan says:

Hi.

I’ve used latex (i use miktex 2.9 and texniccenter as editor as well) to create several documents, even my thesis. So i know latex should be working. I am pretty sure I followed your steps but it did not work for me. When I compile the file, texniccenter continues giving me errors and never try to install what is needed. Why would it be?

Thanks.

6. Garry says:

Thank you very very much! I spent a lot of time trying to find a site to tell me why exactly beamer is not working.Thank you so much again Jigen.God Bless.

7. Anna says:

Thank you so very much for providing this list! This has saved me a lot of hassle with getting started on Beamer. Happy Holidays to you.

8. Piotrek says:

Thank you very much, this tutorial is realy useful!

9. Luke says:

AMAZING DUDE !!!!!!!!!!!!! Thank you very much

10. Sanni Samuel S. says:

You done a great job. You have saved many guys in Africa. Thank you.

11. Sanni Samuel S. says:

Thank you.

12. ab Hamid says:

I am not aware of Beamer as i am to convert my latx file to presntaion.
guide me…
thanks

13. Wokiyi says:

hey that was cool, thanks for this direction, love you,

14. creampuff says:

You have no idea how much I appreciate all that you’ve done for the world. I want to kiss you.

15. lindi says:

Thank you!
I used the code above to install beamer. It didn’t compile though, so I used file – new from template – beamer presentation to open a template and that one compiled! If the compilation doesn’t work for anyone, try that!

16. cecilia says:

thank you soooo much!!!!!!!!

17. Naj says:

Thanks.
This was awesome. I had a problem saying beamerthemesplit.sty could not be found. In case anyone else has a similar problem, I replaced this with one of the other .sty files by going to beamer\beamer\base\themes\theme, for instance, beamerthemeBerkeley.sty looks neat.

18. Naj says:

\documentclass{beamer}
\usepackage{beamerthemeBerkeley}
\usecolortheme{crane}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
%\RequirePackage[pdftex]{color,graphicx}

\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

19. Naj says:

or
\documentclass{beamer}
\usepackage{beamerthemeBerkeley}
%\usecolortheme{crane}
\RequirePackage{amssymb}
\RequirePackage{amsfonts}
\RequirePackage{amsmath}
\RequirePackage[pdftex]{color,graphicx}

\begin{document}
\begin{frame}
\titlepage
\end{frame}
\end{document}

20. Dr. Mahmoud Ragab says:

Thanks a lot

21. Nazlı says:

Thank you :) You are excellent

22. Kuzja says:

Thanks a lot!
Got two errors (option clash for package) on the run of the code, but the Beamer class working great now.

i use WinEdt as an alternative for TeXnicCenter…i used the above code and got 2 errors, 2 warnings..how to fix?

24. Li says:

Thank you so much! “Install missing packages on the fly”, choose Yes —> This really saves me!!

I’ve tried all suggestions, still did not work. However i’m glad that I can finally run beamer successfully after 5 times installing and uninstalling MikTeX.
Those who experienced same problem as mine can follow these steps:

2. Next Run “MikteX 2.9 Net Installer” and save it into a file i.e C:/Program Files/MikteX 2.9. When it asks for the repository file, refer to the folder you directed in Step 1.

Previously, all my attempts to run beamer failed because i installed basic MikteX though i already choose “Yes” to install the missing package.
Please note that Miktex and Tex editor which are intended to be installed must be compatible with each other and also must be compatible with the computer system properties.
For instance, I used WinEdt 6 as TeX editor which is compatible with MikteX 2.9 and my computer system (i.e Windows 7 SP1 or Windows XP SP3).

Good luck!

26. Stephan says:

Hi! I am using TeXnicCenter and I am trying to use the beamer:
\documentclass{beamer}
\begin{document}
\frame{Hello!}
\end{document}

I always get the error: latex.exe: GUI framework cannot be initialized. I couldn’t open file name ‘C:\… .aux’
Any ideas??? I really need your help urgent!!
Thanks a lot!

27. Anthony says:

That was great! Thank you!

28. Fantastic. I agree.

29. Indah Wijayanti says:

30. I like the helpful info you provide in your articles. I will bookmark
your weblog and check again here frequently.
I’m quite certain I will learn a lot of new stuff right here! Good luck for the next!

31. i’ve 2 error: