Add inline box raise and makebox alignment

This commit is contained in:
gloamxun committed 2026-10-19 12:58:21 +08:00
1 parent 337eaa1778
commit 32b0064e5f
11 files changed
+425 -73

No files matched your search

+6 -5
View File
@@ -205,6 +205,8 @@ is measured as a single unbreakable unit, spaces inside become fixed-width kerns
(no stretching, no line break, and hyphenation is suppressed inside the box),
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, and
`\raisebox{lift}{...}` lifts inline content (or a nested box) by a dimension.
`\checkmark`, `\textdagger`, `\textdaggerdbl`, `\textperiodcentered`,
`\textsection`, `\textparagraph`, `\textbrokenbar`, and `\textvisiblespace`
@@ -290,10 +292,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), `\raisebox` and `\minipage` are not implemented yet, inline `\fbox`
still starts a block instead of an inline frame, `\parbox` is block-level
rather than inline, and the abstract prints as body text without an
"Abstract" heading.
used), `\minipage` is not implemented yet, inline `\fbox` still starts a block
instead of an inline frame, `\parbox` is block-level rather than inline, 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
@@ -453,7 +454,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
| Area | Implemented | Remaining |
| --- | --- | --- |
| Boxes | `\rule`, `\fbox`, `\parbox`, inline `\mbox`/`\makebox`, `center`, `\hrule` | inline framed `\fbox`, `\raisebox`, `\minipage`, VBox |
| Boxes | `\rule`, block `\fbox`/`\parbox`, inline `\mbox`/`\makebox` (fixed width and alignment), `\raisebox`, `center`, `\hrule` | inline framed `\fbox`, `\minipage`, VBox |
| 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 |