clerkma / ptex-ng

Asiatic pTeX
293 stars 31 forks source link

计时、随机数有关原语无效 #43

Closed stone-zeng closed 5 years ago

stone-zeng commented 5 years ago

测试文件 test.tex

\documentclass{minimal}
\ifdefined\XeTeXversion
  \let\pdfelapsedtime    \elapsedtime
  \let\pdfresettimer     \resettimer
  \let\pdfsetrandomseed  \setrandomseed
  \let\pdfrandomseed     \randomseed
  \let\pdfnormaldeviate  \normaldeviate
  \let\pdfuniformdeviate \uniformdeviate
\fi
\begin{document}
\begin{tabular}{l@{\quad}l}
  \verb|\the\pdfelapsedtime|     & \the\pdfelapsedtime     \\
  \verb|\pdfresettimer|          & \pdfresettimer          \\
  \verb|\the\pdfelapsedtime|     & \the\pdfelapsedtime     \\
  \verb|\pdfsetrandomseed 0|     & \pdfsetrandomseed 0     \\
  \verb|\the\pdfrandomseed|      & \the\pdfrandomseed      \\
  \verb|\pdfnormaldeviate|       & \pdfnormaldeviate       \\
  \verb|\pdfuniformdeviate 1000| & \pdfuniformdeviate 1000 \\
\end{tabular}
\end{document}

使用下述命令编译:

pdflatex test
xelatex test
uplatex test && dvipdfmx test.dvi
platex-ng test

pdfTeX 运行结果:

image

XeTeX 运行结果:

image

upTeX 运行结果:

image

pTeX-ng 运行结果:

image

clerkma commented 5 years ago

已修复,见3916136