I am trying to determine when Xe (La) TeX needs to be restarted due to undefined links. I posted the related question on the SCons mailing list , and the problem is this:
The number of pages and other links that require several runs of XeLaTeX are sometimes not detected by SCons and other build systems. Here is an example file (which we will name job.tex):
\documentclass[onesβide,12pt]{memoir}
\usepackage{xltxtra}
\usepackage[T1]{fontenc}
\makepagestyle{plain}
\makeoddfoot{plain}{}{}{Page \thepage\ of \arabic{lastpage}}
\makeevenfoot{plain}{}{}{Page \thepage\ of \arabic{lastpage}}
\begin{document}
\pagestyle{plain}
Page 1
\newpage
Page 2
\newpage
Page 3
\newpage
\end{document}
If you run xelatex job, the created .pdf has page numbers "Page 1 of 0", "Page 2 of 0" and "Page 3 of 0" for three pages. If you run xelatex jobthe second time, you will get "Page 1 of 3", etc. (T.E. The correct number of pages).
, SCons , xelatex undefined, ( SCons.Tools.tex 71 2.0.1.beta.20100627.r5064):
- warning_rerun_str = '(^LaTeX Warning:.*Rerun)|(^Package \w+ Warning:.*Rerun)'
+ warning_rerun_str = '(^LaTeX Warning:.*Rerun)|(^Package \w+ Warning:.*Rerun)'\
+ '|(^No file \w+\.\w{3}\.$)'
" job.aux". , , Xe (La) TeX "No file job.aux" , Xe (La) TeX . , , job.aux job.tex job.pdf.
: undefined (, \arabic{lastpage} job.tex ) Xe (La) TeX , .aux, .pdf. , undefined , .
, : - , job.log - undefined (,\arabic {lastpage}), .
, .
,