LaTeX Error in latex and cant open the PDF

  • Thread starter farbodf
  • Start date
1
0
when i want to compile this error appear and it cannot open the PDF



could't find input index file: C:\users\farbod\Desktop\1f\1f\PAPER L nor C:\Users\farbod\Desktop\1f\1f\PAPER L.idx.Usage: C:\Program Files (x86)\MiKTeX
2.9\miktex\bin\makeindex.exe [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
 
17,505
7,070
when i want to compile this error appear and it cannot open the PDF



could't find input index file: C:\users\farbod\Desktop\1f\1f\PAPER L nor C:\Users\farbod\Desktop\1f\1f\PAPER L.idx.Usage: C:\Program Files (x86)\MiKTeX
2.9\miktex\bin\makeindex.exe [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]
This is a PDF file you have created or downloaded? Are you using Acrobat or some other program?
 

AlephZero

Science Advisor
Homework Helper
6,953
291
I guess the paper includes an index, but you don't have the index file, so you need to create it.

If your .tex file contains
Code:
\usepackage{makeidx}
add the line
Code:
\makeindex
Just BEFORE the \begin{document}.
You may find the makeindex line is in the file but commented out with a %.

Yes, I do mean put \makeindex BEFORE \begin{document}. If you put it AFTER \begin{document}, it won't work.

Then run LaTeX again and it should create the .idx file.
Then run makeindex to make the index. That should create a .ind file
Then run LaTeX agan to create the paper and the index.

Actually, it's OK to leave the "makeindex" line in the .tex file all the time, but it means you re-create the index file every time you run the code through LaTeX, and that wastes time if you are working with a big .tex file.
 

Related Threads for: Error in latex and cant open the PDF

  • Posted
Replies
3
Views
832
Replies
2
Views
26K
Replies
6
Views
5K
Replies
11
Views
8K
  • Posted
Replies
5
Views
5K
Replies
4
Views
2K
  • Posted
Replies
4
Views
3K
Replies
11
Views
3K

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top