Add footnote insertion area and thanks

This commit is contained in:
gloamxun committed 2026-10-19 13:11:17 +08:00
1 parent 5fa301fdcd
commit 1da46c61d6
11 files changed
+486 -28

No files matched your search

+11 -8
View File
@@ -286,20 +286,23 @@ every line is centered without justification (natural spaces), so
`\rule[raise]{width}{height}` is rendered as a filled rectangle in both the
PDF and the SVG preview, including raised and dropped rules; a zero-thickness
rule reserves space without painting ink. `\fbox{...}` is a block-level framed
box: the content is measured as a single line, wrapped in 3pt padding and a
0.4pt frame, placed in the vertical flow, and painted in both the PDF and the
SVG preview. Inline `\fbox` in the middle of a paragraph starts a new block
(this is a stepping stone towards full inline boxes).
rule reserves space without painting ink. `\fbox{...}` is an inline framed box:
the content is measured as a single unbreakable unit, wrapped in 3pt padding and
a 0.4pt frame, and painted in both the PDF and the SVG preview.
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,
(`10pt`/`11pt`/`12pt`) are parsed but the engine still uses 11pt;
custom `\maketitle` implementations are ignored (the engine title layout is
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.
`\footnote{...}` captures its content, emits a superscript marker, reserves
space on the page where the paragraph ends, and paints the notes with a
separator rule at the bottom of the page. `\thanks{...}` is a footnote in the
title or author block and is painted at the bottom of the first page. Footnotes
inside captions, floats, or arbitrary boxes are not collected yet.
Basic `\input{file}` imports are read relative to the main `.tex` file. Imported
files participate in source mapping and frontend cache invalidation. Local style
files and `.bib` files are tracked the same way; editing any of them refreshes
@@ -461,7 +464,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
| 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 |
| Notes/floats | footnotes with page-bottom insertion area, title/author `\thanks` | figure/table floats |
| Pages | A4/Letter/... page sizes, margins/geometry, automatic pagination, `\newpage`, `\pagebreak` | headers/footers (`fancyhdr`), unified planner/renderer |
| Classes/packages | built-in + local classes, option protocol, local package options | base font-size options (10/11/12pt) |
| Live preview | incremental paragraph/page caches, page-hash diffing, SVG refresh | — |