GeneralCorrupt PDF output

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
SirVival
Posts: 3
Joined: Wed May 16, 2007 12:11 pm

Corrupt PDF output

Post by SirVival »

Hi
for university I and a friend off mine have to do some typing.
We both use Latex to do that.
Editor is TeXnicCenter.
Mitex is installed.
OS W2k and WXP.

To save time I typed a part and my friend did the other one.

This went fine till we combined our work.

No errors showed up but still the PDF was corrupted.

So we had a close look and there it was:
"Fatal error occurerd, the output pdf file is not finished"
and
"Couldn't find input index file d:\... nor d:\..idx"

Our header is:

Code: Select all

Code, edit and compile here:
\documentclass[12pt,oneside]{article}
\usepackage{ngerman,fancyhdr}
\usepackage{a4}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{color}
\usepackage{float}
\title{\textbf{...}}
\author{...}
\date{...}
%% this makes images possible both in latex and pdftex
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi
\ifpdf
\usepackage[pdftex]{graphicx}
\pdfinfo {
/Title (...)
/Author (...)
}
\else
\usepackage{graphicx}
\usepackage{float}
\fi
\begin{document}
\pagenumbering{Roman}
\maketitle
\clearpage
\renewcommand{\labelenumi}{\arabic{enumi}}
\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I searched the web but was unable to find a understandable solution.

What did we do wrong?

Thanks.

Recommended reading 2024:

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

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

User avatar
countbela666
Posts: 64
Joined: Thu Apr 26, 2007 2:44 pm

Corrupt PDF output

Post by countbela666 »

Hi SirVival,
SirVival wrote: What did we do wrong?
There are some issues, but none of the mistakes produces an error evoking the message that you posted. I cannot reproduce the error you are confronted with when compiling your code, so you'd better provide a minimum example reproducing the error.

Until then I can only give you some advice concerning the code you posted so far:

1. Please do not use the package a4 but replace it by the class option a4paper. For the reasons refer to the section "deadly sins" of l2tabuen.pdf.

2. Remove all this \ifpdf nonsense from your preamble. Modern packages simply do not need those distinction of cases regarding the output type as they are able to detect the compilation routine you are using. In some cases calling packages with a distinct driver as you do with \usepackage[pdftex]{graphicx} makes things even worse.
If you really know what you are doing when trying to find out whether the document is to be compiled using LaTeX or pdfLaTeX, you should use the ifpdf package for compatibility reasons instead of the \newif\ifpdf statement from above. For reasons why using this package instead, refer to the package documentation.

Regards
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
SirVival
Posts: 3
Joined: Wed May 16, 2007 12:11 pm

Re: Corrupt PDF output

Post by SirVival »

Hi
thanks for the quick response.

I just want to give you a first feedback.
I replaced the a4 thing and removed the \ifpdf.
Now I get 10 Errors but the PDF is created.
The Index error is still displayed (Fatal error is gone). It seems that it had nothing to do with the corrupted output.

I will post again when I solved the Errors (or if not).
It seems that it has something to do with the graphics.
User avatar
countbela666
Posts: 64
Joined: Thu Apr 26, 2007 2:44 pm

Corrupt PDF output

Post by countbela666 »

SirVival wrote: I replaced the a4 thing and removed the \ifpdf.
Now I get 10 Errors but the PDF is created. [...]
It seems that it has something to do with the graphics.
Maybe I was a bit too imprecise concerning the \ifpdf section. Your code should now read as follows:

Code: Select all

Code, edit and compile here:
\documentclass[12pt,oneside,a4paper]{article}
\usepackage{ngerman,fancyhdr}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{color}
\usepackage{graphicx}
\usepackage{float}
\title{\textbf{...}}
\author{...}
\date{...}
\begin{document}
\pagenumbering{Roman}
\maketitle
\clearpage
\renewcommand{\labelenumi}{\arabic{enumi}}
\renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}}
\setcounter{secnumdepth}{40}
\tableofcontents
\listoftables
\listoffigures
\clearpage
\pagenumbering{arabic}
\pagestyle{fancy}
\lhead{\footnotesize{...}}
\chead{}
\rhead{\thepage}
\cfoot{}
\renewcommand{\headrulewidth}{0,4pt}
\renewcommand{\footrulewidth}{0,4pt}
\parindent 0pt
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Regards
Marcel
Listen to me children of the night, beyond the doors of darkness you will find
a thousand worlds for you to see here, take my hand and follow me...
SirVival
Posts: 3
Joined: Wed May 16, 2007 12:11 pm

Corrupt PDF output

Post by SirVival »

Hi
found the error.
Its a really stupid one.
We included a graphic through this

Code: Select all

Code, edit and compile here:
\begin{figure}[H]
\centering
\includegraphics[scale=.7]{hall}
\caption{Einfache Hall-Geometrie}
\end{figure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The proplem was that the tex/pdf filename is hall too.
I changed the name of the Image to hall1.jpg and now it is working!

Ich seh gerade du kommst aus Berlin.
Vielen Dank für die Mühe!
Post Reply