GeneralError: File cannot be found

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
simantoch
Posts: 2
Joined: Sat Apr 02, 2011 3:38 am

Error: File cannot be found

Post by simantoch »

Hi, I am trying to execute the following codes:
"
\documentclass{beamer}
\begin{document}
\title{Simple Beamer Class}
\author{Sascha Frank}
\date{\today}

\frame{\titlepage}

\frame{\frametitle{Table of contents}\tableofcontents}


\section{Section no.1}
\frame{\frametitle{Title}
Each frame should have a title.
}
\subsection{Subsection no.1.1 }
\frame{
Without title somethink is missing.
}


\section{Section no. 2}
\subsection{Lists I}
\frame{\frametitle{unnumbered lists}
\begin{itemize}
\item Introduction to \LaTeX
\item Course 2
\item Termpapers and presentations with \LaTeX
\item Beamer class
\end{itemize}
}

\frame{\frametitle{lists with pause}
\begin{itemize}
\item Introduction to \LaTeX \pause
\item Course 2 \pause
\item Termpapers and presentations with \LaTeX \pause
\item Beamer class
\end{itemize}
}

\subsection{Lists II}
\frame{\frametitle{numbered lists}
\begin{enumerate}
\item Introduction to \LaTeX
\item Course 2
\item Termpapers and presentations with \LaTeX
\item Beamer class
\end{enumerate}
}
\frame{\frametitle{numbered lists with pause}
\begin{enumerate}
\item Introduction to \LaTeX \pause
\item Course 2 \pause
\item Termpapers and presentations with \LaTeX \pause
\item Beamer class
\end{enumerate}
}

\section{Section no.3}
\subsection{Tables}
\frame{\frametitle{Tables}
\begin{tabular}{|c|c|c|}
\hline
\textbf{Date} & \textbf{Instructor} & \textbf{Title} \\
\hline
WS 04/05 & Sascha Frank & First steps with \LaTeX \\
\hline
SS 05 & Sascha Frank & \LaTeX \ Course serial \\
\hline
\end{tabular}}


\frame{\frametitle{Tables with pause}
\begin{tabular}{c c c}
A & B & C \\
\pause
1 & 2 & 3 \\
\pause
A & B & C \\
\end{tabular} }


\section{Section no. 4}
\subsection{blocs}
\frame{\frametitle{blocs}

\begin{block}{title of the bloc}
bloc text
\end{block}

\begin{exampleblock}{title of the bloc}
bloc text
\end{exampleblock}


\begin{alertblock}{title of the bloc}
bloc text
\end{alertblock}
}
\end{document}
"

I am using TexnicCenter editor and it is set on "Latex => PDF" mode. I should get an pdf file as output. But I am getting an error message "There was an error opening this document. This file cannot be found.". I am a beginner in Latex.

Thank you very much in anticipation of an early reply.

Recommended reading 2024:

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

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

sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Error: File cannot be found

Post by sommerfee »

simantoch wrote:Hi, I am trying to execute the following codes:
The document itself is fine.
I am using TexnicCenter editor and it is set on "Latex => PDF" mode. I should get an pdf file as output. But I am getting an error message "There was an error opening this document. This file cannot be found.". I am a beginner in Latex.
If you are a beginner in LaTeX then don't use TeXnicCenter but TeXworks instead. (TeXnicCenter has issues with recent TeX distributions and needs to be adopted to recent AdobeReader versions. IMHO it's not worth the trouble.) TeXworks is part of both, MikTeX and TeXlive for Windows, so it should be already installed on your computer.

Just start TeXworks, insert the text, change "pdfTeX" to "pdfLateX" and compile your document using the green play toolbar button.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error: File cannot be found

Post by localghost »

simantoch wrote:[…] I am using TexnicCenter editor and it is set on "Latex => PDF" mode. I should get an pdf file as output. But I am getting an error message "There was an error opening this document. This file cannot be found.". […]
Make sure that the PDF output has been really produced. Unfortunately you don't say anything about your PDF viewer. For the Ad0be Reader there have been made some significant modifications by Ad0be (forum search). A better partner for TeXnicCenter (TXC) is the Sumatra PDF Viewer. TeXworks has already been suggested as very encouraging alternative.


Best regards and welcome to the board
Thorsten
simantoch
Posts: 2
Joined: Sat Apr 02, 2011 3:38 am

Re: Error: File cannot be found

Post by simantoch »

Thank you very much for your replies. I updated my adobe reader and my problem has been solved. thanks a lot again...
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error: File cannot be found

Post by localghost »

Then please mark the topic (not the last post) accordingly as written in Section 3 of the Board Rules (to be read before posting) and as you have already been asked for. At this occasion you can also tag the code as you have been asked for.
Post Reply