Add minipage and vbox block boxes

This commit is contained in:
gloamxun committed 2026-10-19 13:05:43 +08:00
1 parent 2552008d4b
commit 5fa301fdcd
7 files changed
+116 -20

No files matched your search

+8 -4
View File
@@ -207,7 +207,10 @@ and nested boxes and inline rules are preserved. Boxes that do not fit on the
current line overflow like an overfull TeX hbox rather than wrapping.
`\makebox[width][l|c|r]{...}` fixes the box width and aligns its content,
`\raisebox{lift}{...}` lifts inline content by a dimension, and `\fbox{...}`
draws a framed inline box with 3pt padding and a 0.4pt rule.
draws a framed inline box with 3pt padding and a 0.4pt rule. The
`\begin{minipage}[t]{width}...\end{minipage}` environment lays its content out
as a width-constrained block; `\vbox{...}` and `\vtop{...}` are accepted as
full-text-width blocks.
`\checkmark`, `\textdagger`, `\textdaggerdbl`, `\textperiodcentered`,
`\textsection`, `\textparagraph`, `\textbrokenbar`, and `\textvisiblespace`
@@ -293,8 +296,9 @@ Known gaps for full document classes: base font-size class options
(`10pt`/`11pt`/`12pt`) are parsed but the engine still uses 11pt; footnotes and
`\thanks` are dropped,
custom `\maketitle` implementations are ignored (the engine title layout is
used), `\minipage` is not implemented yet, `\parbox` is block-level rather than
inline, and the abstract prints as body text without an "Abstract" heading.
used), `\parbox`/`\minipage` are block-level rather than inline, `\vbox` and
`\vtop` map to a full-width block box rather than true nested VBox material, and
the abstract prints as body text without an "Abstract" heading.
Basic `\input{file}` imports are read relative to the main `.tex` file. Imported
files participate in source mapping and frontend cache invalidation. Local style
@@ -454,7 +458,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
| Area | Implemented | Remaining |
| --- | --- | --- |
| Boxes | `\rule`, inline framed `\fbox`, block `\parbox`, inline `\mbox`/`\makebox` (fixed width and alignment), `\raisebox`, `center`, `\hrule` | `\minipage`, VBox |
| Boxes | `\rule`, inline framed `\fbox`, block `\parbox`/`\minipage`, `\vbox`/`\vtop` (as full-width block), inline `\mbox`/`\makebox`, `\raisebox`, `center`, `\hrule` | true nested VBox material |
| Fonts | serif/sans/mono faces, bold/italic/mono/sans declarations, group scoping, true scaled small caps | — |
| Paragraphs | Knuth-Plass breaking, TeX hyphenation, justification, centering, `\parindent` (17pt default), `\hfill`/`\hfil` | `\raggedright`/`\raggedleft` |
| Notes/floats | — | footnote insertion area, figure/table floats |