Take the simple latex source file:
\documentclass{article}
\usepackage{lipsum}
\usepackage{amsgen}
\begin{document}
\lipsum[1-10]
\end{document}
When processed with "latex" you always get the same DVI file, identical everywhere except for the date.
When processed (multiple times) with "pdflatex" you get the same PDF file, with the exception of an ID and the Date, and the same thing for "lualatex".
But when processed (multiple times) with "xelatex" you get wildly different PDF files, with different sizes. One can see the differences easily with "vimdiff".
Why is it the processing with "xelatex" not deterministic - not the same for the same sources?
xelatex
. The pdf filesize oscillates between10727
,10728
, or10729
bytes. Thus "wildly different" definitely does not apply on my system (mac os x). Which OS do you use? From which editor do you compile the source?vimdiff
indeed indicates differences inside thepdf
. Perhaps something having to do with font compression. Needs a pdf expert here.xdv
files on multiple runs, i.e. their TeX contents are the same. Where's the issue here? (xdvipdfmx
anddvipdfmx
both produce some variation in the find PDF file but as already commented this is likely to do with font compression.)