# Problem with the PDF document generation [closed]

I'm sorry I know that my message is more cryptic than the error itself but how can I generate a simple model of a code that is one hundred pages long?

Concerning the warning in the message log, it says:

Couldn't find input index file C:\Users\sarah\Desktop\folder\report nor C:\Users\sarah\Desktop\folder\report.idx.


The problem raises when I put the bibliography after the appendices; in that case, no bibliography is generated in the PDF document. But when I put it before the appendices, the bibliography is integrated in the PDF document without any problems.

I am using MiKTeX 2.9 and TeXnicCenter on Windows 7.

Here is the general structure of the document:

\documentclass[12pt, openright, a4paper]{report}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[francais]{babel}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage[toc,page]{appendix}
\usepackage{nomencl}
\usepackage{enumerate}
\usepackage{float}
\usepackage[dvipsnames]{xcolor}
\usepackage[Rejne]{fncychap}
\usepackage{amsmath}
\makenomenclature
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\bibliographystyle{plain}
\begin{document}

%Document's core

\bibliography{my_bib}
\begin{appendices}
\end{appendices}
\end{document}

-
You need to give us at least some clues. What messages appear in the log file, what does the input look like, and in particular make the smallest file that you can that still shows the problem, and edit your question to show the full document so we can reproduce the problem. – David Carlisle Sep 12 '12 at 22:06
The "general structure" does not realy help because the important part of the document is missing where the error occurs. Studie your log file and search for the reason (warning) in the logfile. Separate the part of your tex file were the problem is and include it in your MWE. Do you understand that "the last two pages are missing" does not really helps? – Kurt Sep 12 '12 at 22:57
Without fully compilable MWE that illustrates the problem its going to be difficult to help you.. – Peter Grill Sep 13 '12 at 3:13
it looks like that you are running makeindex. I suppose that you do not have one. Deselect the use of makeindex in your TeXniccenter profile and try again. – Herbert Sep 13 '12 at 11:53
Debugging Suggestion: With a document this big you should have logical sections. Save each of the sections into a separate file and then use \input or \include to bring them in. Now comment out with % all of the \include except one. Try a compile. Work thru all of the sections one at a time to find the section that may have the error in it. – R. Schumacher Sep 13 '12 at 18:37
show 1 more comment

## closed as too localized by lockstep, Joseph Wright♦Oct 6 '12 at 21:46

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.