Document ClassesProblem using beamer

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
mattc
Posts: 5
Joined: Sat Sep 26, 2009 9:14 pm

Problem using beamer

Post by mattc »

Hopefully this is a relatively easy problem. I'm new to TeXnic center and LaTeX in general. My problem is that TeXnic center will not output a PDF when I'm using document class Beamer. Here's a "Hello, world" I tried:

Code: Select all

\documentclass{beamer}

\begin{document}
	
	\begin{frame]
	\frametitle{Here is the first frame}
		Hello, world!
	\end{frame}
	
\end{document}
When I go to view output, Adobe Acrobat opens but only displays an error message, which says "There was an error opening this document. This file cannot be found."

I have been able to output documents with no problem, as long as they have document class "Article," which suggests that this is a problem with how TeXnic center handles the Beamer class.

I would be very grateful for any suggestions. Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Problem using beamer

Post by gmedina »

mattc wrote:
\documentclass{beamer}

\begin{document}

\begin{frame]
\frametitle{Here is the first frame}
Hello, world!
\end{frame}

\end{document}
Your code contains an error (I marked it with red in the quote above); try with this:

Code: Select all

\documentclass{beamer}

\begin{document}
   
\begin{frame}
  \frametitle{Here is the first frame}
   Hello, world!
\end{frame}
   
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mattc
Posts: 5
Joined: Sat Sep 26, 2009 9:14 pm

Re: Problem using beamer

Post by mattc »

I'm sorry, I made the typo when I was copying the code into this site. I don't think that was the problem. I just double-checked, and there are no typos (and TeXnic center doesn't give me any error messages). However, when I press F5 to display the PDF, I get the same error message: "There was an error opening this document. This file could not be found." Again, I do not have that problem when I write a test document using the Article class.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Problem using beamer

Post by gmedina »

Have you checked if at least the pdf file is generated? I mean, once you compile your document, if no error messages appeared, the generated pdf file should be in the same folder that contains your .tex; go to that folder and search the pdf file; if it is there and you can open it with your viewer, then the problem is a TeXnicCenter issue.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mattc
Posts: 5
Joined: Sat Sep 26, 2009 9:14 pm

Re: Problem using beamer

Post by mattc »

Okay, I checked and there is no PDF file generated. So is this a MikTeX issue? I'm using MikTeX 2.8 basic; does that support beamer?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Problem using beamer

Post by gmedina »

I think that the basic MiKTeX installation does not include beamer. But... didn't you said that you compiled a test document without any errors? If the beamer class is missing in your installation, of course your test document will produce errors when compiled.

Anyway, install beamer (MiKTeX can do it automatically through its Package Manager); I even would suggest you to do a complete MiKTeX installation.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
mattc
Posts: 5
Joined: Sat Sep 26, 2009 9:14 pm

Re: Problem using beamer

Post by mattc »

Well, the successful test document was an Article class; that I did to make sure the system as a whole was working. I will try installing MikTeX complete...

EDIT: Okay, tried manually installing the beamer package using the MikTeX package manager. However, I got an error message saying: "MikTeX problem report. The operation failed for some reason." I then tried installing several random packages; all gave me this same error message. Do you know how I could fix that?
granbeetle
Posts: 1
Joined: Tue Oct 06, 2009 12:31 pm

Problem using beamer

Post by granbeetle »

Hi,
I don't know if you are still having this problem but, I had the same exact problem and I think it might be the texnicCenter compatibility issue listed here: http://www.miktex.org/2.8/issues.
I simply opened Settings(Admin) and switched the "Install missing packages on-the-fly" option to yes. I now get a pdf generated from my beamer class document. Hopefully, this helps if you haven't already figured it out.
Post Reply