Advance native LaTeX execution and preview

This commit is contained in:
gloamxun committed 2026-11-18 22:17:21 +08:00
1 parent 91f9d76b16
commit 2741546ca8
414 files changed
+99872 -933

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
% Actual mag/true and per-shipout device changes, including automatic paper.
\input math-fonts
\mag=1200
\pdfpagewidth=320truebp \pdfpageheight=240truebp
\pdfhorigin=12truebp \pdfvorigin=18truebp
\hoffset=2pt \voffset=3pt
\immediate\openout1=device.aux
\count0=1
\setbox0=\vbox{\hsize=200pt \baselineskip=14pt
\noindent Native device state follows this actual box and its original fonts.
Both text and mathematics $x_i^j+y$ share the same physical magnification.\par
\kern3truept \hrule height1pt
\hbox{Origin and offsets move together.}
\write1{SHIP=\number\count0;MAG=\number\mag}}
\shipout\copy0
{\pdfpagewidth=280truebp \pdfpageheight=210truebp
\pdfhorigin=20truebp \pdfvorigin=24truebp
\hoffset=-2pt \voffset=1pt
\count0=2 \shipout\copy0}
\pdfpagewidth=0pt \pdfpageheight=0pt
\pdfhorigin=8truebp \pdfvorigin=10truebp
\hoffset=0pt \voffset=0pt
\count0=3 \shipout\box0
\pdfpagewidth=999pt \pdfpageheight=888pt
\pdfhorigin=100pt \pdfvorigin=100pt
\immediate\closeout1
\end