Advance native LaTeX execution and preview
This commit is contained in:
1 parent
91f9d76b16
commit
2741546ca8
414 files changed
+99872
-933
No files matched your search
@@ -0,0 +1,31 @@
|
||||
% Real online page/output/shipout execution; no format or document emulation.
|
||||
\input math-fonts
|
||||
\pdfpagewidth=612bp \pdfpageheight=792bp
|
||||
\hsize=270pt \vsize=100pt \topskip=10pt \maxdepth=4pt
|
||||
\baselineskip=15pt \parskip=4pt
|
||||
\pretolerance=10000 \tolerance=10000
|
||||
\count0=0
|
||||
\immediate\openout1=pages.aux
|
||||
\output={\global\advance\count0 by1
|
||||
\shipout\vbox{\hbox{Native page \number\count0}
|
||||
\unvbox255\hbox{Footer \number\count0}}}
|
||||
\noindent Original paragraph lines feed the online native page builder.
|
||||
The output routine executes while the job is running and can inspect its actual page box.
|
||||
Its header and footer are constructed from the same native box primitives.\par
|
||||
\noindent Marks\mark{FIRST} and deferred writes\write1{FIRST-PAGE=\number\count0}
|
||||
remain attached to their original material.
|
||||
Copying a box preserves its contents and dropping one does not execute its writes.\par
|
||||
\hbox{A\vrule width1pt B\raise2pt\hbox{Raised}\lower1pt\hbox{lowered}}
|
||||
\hrule height.5pt
|
||||
\noindent Mathematics $x_i^j+y$ keeps actual font slots and sizes inside the page.
|
||||
A displayed formula also participates in real vertical breaking.
|
||||
$$x+y$$
|
||||
The following paragraph resumes after the display with its correct baseline and depth.\par
|
||||
\penalty-10000
|
||||
\noindent An explicit penalty can finish a page without simulating a document command.
|
||||
The remaining text continues through the same contribution list and output group.\par
|
||||
\noindent The final\mark{LAST} page carries a late write\write1{LAST-PAGE=\number\count0}
|
||||
whose page number is expanded at actual shipout.
|
||||
All original glyphs and rule positions can be compared with an independent TeX job.\par
|
||||
\closeout1
|
||||
\end
|
||||
Reference in new issue
Block a user