Hallo,
ich habe ein Problem. Für mein der zeitiges Projekt benötige ich eine Menge an Bildern, die ich über eine Schlafe einbinde. Diese Bilder sind alle in einem Pfad ./inc/ und heißen hier mit Name. Das Einbinden funktioniert auch gut, doch ab einer Menge kommt der Fehler:
Sorry, but pdflatex.exe did not succeed. The log file hopefully contains the information to get MiKTeX going again:
C:/Users/Kiryl/AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log You may want to visit the MiKTeX project page, if you need help.
Process exited with error(s)
Die Log-Datei ist dabei die:
2016-05-06 13:18:58,124+0200 FATAL pdflatex - Too many open files: path="inc/BLues/BLues2.png"
2016-05-06 13:18:58,124+0200 FATAL pdflatex - Info: path="inc/BLues/BLues2.png"
2016-05-06 13:18:58,124+0200 FATAL pdflatex - Source: Libraries\MiKTeX\Core\internal.h
2016-05-06 13:18:58,124+0200 FATAL pdflatex - Line: 311
\documentclass[12pt,twoside,openleft]{book}
% Packages....
\newcommand{\stueck}[5]{
% Include all Picture from root.
\foreach \y in {1,...,50}{%
\def\Pfad{./inc/#1/#1\y.png}
\IfFileExists{\Pfad}{%
\includegraphics[width=\textwidth, keepaspectratio, draft]{\Pfad}
\ifthenelse{\not\equal{#2}{}}{%
\ifthenelse{\equal{#2}{PB}}{}{%
\vspace{#2}
}
}{}
}{%
\breakforeach
}
}
\ifthenelse{\not\equal{#2}{}}{%
\ifthenelse{\equal{#2}{PB}}{%
\newpage
}{}
}{}
}
\begin{document}
\stueck{Name}{0.3cm}
\end{document}
Das Verhalten des Codes ist bis zur bestimmten Anzahl der Dateien fehlerfrei, doch dann kommt der Fehler, wenn ich zu viele Dateien eingebunden habe.
Vielen Dank für Eure Hilfe