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

@@ -0,0 +1,4 @@
\documentclass{article}
\begin{document}
Hello native LaTeX.
\end{document}
@@ -0,0 +1,12 @@
\documentclass[10pt,letterpaper]{article}
\begin{document}
\section{Font resources and sizes}
Roman text keeps the actual class-selected font and size.
\textbf{Bold text uses its own font resource.}
\textit{Italic text retains its metrics and correction.}
\texttt{Monospace text uses the requested typewriter face.}
Ordinary punctuation includes -- and --- with ``quoted words''.
A sentence ends here. An abbreviation A. keeps its ordinary space.
{\large A local size is selected through the real format.}\par
The original size is restored for this paragraph.
\end{document}
@@ -0,0 +1,12 @@
\documentclass[11pt,a4paper]{article}
\begin{document}
\section{Font resources and sizes}
Roman text keeps the actual class-selected font and size.
\textbf{Bold text uses its own font resource.}
\textit{Italic text retains its metrics and correction.}
\texttt{Monospace text uses the requested typewriter face.}
Ordinary punctuation includes -- and --- with ``quoted words''.
A sentence ends here. An abbreviation A. keeps its ordinary space.
{\large A local size is selected through the real format.}\par
The original size is restored for this paragraph.
\end{document}
@@ -0,0 +1,12 @@
\documentclass[12pt,letterpaper]{article}
\begin{document}
\section{Font resources and sizes}
Roman text keeps the actual class-selected font and size.
\textbf{Bold text uses its own font resource.}
\textit{Italic text retains its metrics and correction.}
\texttt{Monospace text uses the requested typewriter face.}
Ordinary punctuation includes -- and --- with ``quoted words''.
A sentence ends here. An abbreviation A. keeps its ordinary space.
{\large A local size is selected through the real format.}\par
The original size is restored for this paragraph.
\end{document}
@@ -0,0 +1,10 @@
\documentclass{article}
\begin{document}
\section{Math and native measurements}
Inline math uses actual family fonts: \(x^2+y=z\).
The following display retains its measured baseline and depth.
\[
\left(\frac{a+b}{c}\right)=z
\]
This paragraph continues after the display with ordinary spacing.
\end{document}
@@ -0,0 +1,17 @@
\documentclass{article}
\begin{document}
\section{Natural page flow}
\newcount\paragraphnumber
\paragraphnumber=0
\loop
\advance\paragraphnumber by1
Paragraph \the\paragraphnumber. Native page flow retains actual measured
lines, spacing, penalties and page ownership. These ordinary paragraphs
exercise the real output routine without a manual page break.\par
\ifnum\paragraphnumber<80
\repeat
\newpage
This explicit page follows the naturally paginated material.
\clearpage
The final paragraph is shipped by the real end of document routine.
\end{document}
@@ -0,0 +1,3 @@
\section{Child source}\label{sec:child}
\ProjectName{} is expanded from the main source definition.
The shared definition and section number are retained across input files.
@@ -0,0 +1,9 @@
\documentclass{article}
\newcommand{\ProjectName}{Native project}
\begin{document}
\section{Project entry}\label{sec:entry}
\ProjectName{} loads an ordinary child source and preserves custom macros.
\input{chapter}
The entry is section \ref{sec:entry}; the child is section \ref{sec:child}
on page \pageref{sec:child}. Real auxiliary files resolve these references.
\end{document}