## How to Install LaTeX and Beamer– Three Easy Steps!!!

LaTeX and Beamer and pretty much like Word and PowerPoint. LaTeX allows one to make documents while Beamer is used to make presentation slides. The great advantage with using these two is that they produce elegant, professional-looking documents, usually as pdf files. LaTeX is much in use in research, particularly in mathematics, since it facilitates importing documents into other templates, and has full support for typesetting mathematical equations and graphics. The major disadvantage, though, is one must learn to write “codes” – LaTeX and Beamer outputs are not created via a WYSIWIG interface. The codes take some patience to learn, but they’re not entirely difficult.

Below are three easy steps to install both LaTeX and Beamer.

1. First we need to install MiKTeX. It’s pretty much the core of the of the LaTeX system – it’s the software that actually creates the documents. Size is approximately 110 MB. Click here to download MiKTeX. The rest of the installation process is pretty much intuitive. Installation may take minutes so be patient.

2. Next we will need an environment on which to type codes. The most commonly used is TeXnic Center (go to the download page). Once you’re done downloading, installation should be a breeze. When you first run Texnic Center, the set-up will ask you for the location of executable files. The default location should be \Program Files\MiKTeX 2.8\miktex\bin.

3. Now let’s install Beamer. Note that this only if you have an internet connection. Otherwise, you might need to download Beamer’s components at its SourceForge page (look elsewhere on how to install Beamer manually). Click Start, look for MiKTeX then go to Maintenance –> Settings. On the General tab select your default paper size, and on “Install missing packages on the fly”, choose Yes.

This option will save you from downloading all the necessary packages to install Beamer, which is kind of a hastle. Open TeXnic Center and go to File –> New. Then copy and paste the code below. It’s a sample Beamer code. Don’t worry about the code if you do not know any LaTeX yet. Plenty of tutorials are available on the web.

\documentclass{beamer}
\begin{document}
\frame{Hello!}
\end{document}

Save the file, then click CTRL + F7 to compile it. TeXniC Center will automatically call MiKTEX install whatever package is needed.

NOTE: If the code below doesn’t work, try the ones posted in the comments below, or this:

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

\begin{document}

\end{document}

Apparently, there isn’t a single way of installing Beamer that works for any computer system. In particular, choosing “yes” for “install packages on the fly” does not seem to seem to work to those who are using MikTex 2.9. I suggest that you install beamer, xcolor and pgf using the Package Manager. Each of these packages may have other dependencies, and this will be shown in the “Build” window when you run the sample code above (or those in the comment below) in TeXnicCenter.

This entry was posted in LaTeX and tagged , , , . Bookmark the permalink.

### 33 Responses to How to Install LaTeX and Beamer– Three Easy Steps!!!

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. In Miktex 2.9, configuring Beamer is not easy..so better alternatives are available here:
http://computer-science-notes.blogspot.com/2011/11/working-solution-for-beamer-in-miktex.html

7. 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.

8. 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.

9. Piotrek says:

Thank you very much, this tutorial is realy useful!

10. Luke says:

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

11. Sanni Samuel S. says:

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

12. Sanni Samuel S. says:

Thank you.

13. ab Hamid says:

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

14. Wokiyi says:

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

15. creampuff says:

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

16. 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!

17. cecilia says:

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

18. 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.

19. 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}

20. 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}

21. Dr. Mahmoud Ragab says:

Thanks a lot

22. Nazlı says:

Thank you You are excellent

23. 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?

25. 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!

27. 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!

28. Anthony says:

That was great! Thank you!

29. Fantastic. I agree.

30. Indah Wijayanti says:

31. 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!

32. sari says:

i’ve 2 error: