编译停止

编译停止

我有一份文件,上面有我用自己设计的棋盘游戏赚钱的内容。现在的问题是:编译器在第 251 页(共 384 页)停止。没有错误消息,什么都没有!

\documentclass{article}

\usepackage[paperheight   = 60mm,  paperwidth  = 130mm,
            layoutheight  = 60mm, layoutwidth  = 130mm,
            layoutvoffset = 0mm,  layouthoffset = 0mm,
            margin=0pt, includeheadfoot,
            showframe = false, showcrop = false]{geometry}

\usepackage[T1]{fontenc}
\newcommand{\fontfam}{augie}

\usepackage{pdfpages}
\usepackage{forloop}

\usepackage{fmtcount}% http://ctan.org/pkg/fmtcount
\usepackage[first=1707, last=98765432, seed=1708, counter=serialnumber]{lcg}

\usepackage[printwatermark=true]{xwatermark}

\newcommand{\shiftx}{-44mm}
\newcommand{\wm}[1]{\newwatermark*[allpages, fontfamily=\fontfam, color=black!90!blue, angle=0, fontsize=3.2mm, scale=1, ypos=.8mm, xpos=\shiftx, textalign=center]{\padzeroes[8]{\decimal{#1}}}}

\newcommand{\img}[1]{\includepdf[width=\textwidth, height=\paperheight]{#1}}

\newcounter{pagenumber}

\begin{document}

% % % % %  THIS DOES NOT WORK!
% % % % %  IT ALWAYS STOPPS AT SOME POINT AFTER THE 20's OR 50's...
% % % % %  Total of 384 pages

% % % 1
\forloop{pagenumber}{1}{\value{pagenumber} < 121}{ % 121
    \rand
    \wm{serialnumber}
    \img{example-image-a.png}
}
% % % 5
\forloop{pagenumber}{1}{\value{pagenumber} < 25}{ % 25
    \rand
    \wm{serialnumber}
    \img{example-image-b.png}
}
% % % 10
\forloop{pagenumber}{1}{\value{pagenumber} < 49}{ % 49
    \rand
    \wm{serialnumber}
    \img{example-image-c.png}
}
% % % 20
\forloop{pagenumber}{1}{\value{pagenumber} < 25}{ % 25
    \rand
    \wm{serialnumber}
    \img{example-image-a.png}
}
% % % 50
\forloop{pagenumber}{1}{\value{pagenumber} < 25}{ % 25
    \rand
    \wm{serialnumber}
    \img{example-image-b.png}
}
% % % 100
\forloop{pagenumber}{1}{\value{pagenumber} < 97}{ % 97
    \rand
    \wm{serialnumber}
    \img{example-image-c.png}
}
% % % 500
\forloop{pagenumber}{1}{\value{pagenumber} < 49}{ % 49
    \rand
    \wm{serialnumber}
    \img{example-image-a.png}
}

\end{document}

这些是日志的最后几行:

[251]
File: example-image-c.png Graphic file (type png)
<use example-image-c.png>
Package pdftex.def Info: example-image-c.png  used on input line 69. on input l
ine 69.
Package pdftex.def Info: Requested size: 401.49901pt x 301.12425pt on input lin
e 69.

任何线索都将受到赞赏。

相关内容