gloamxun
e09e413892
Break long paragraphs with prefix sums
...
The line-breaker rescanned items[start..end] for every break pair, so a 900-word paragraph took seconds and the 2,700-word edit fixture took about 30 s. Prefix sums over natural width, stretch, shrink, glue order, box count and the last penalty give each candidate its metrics in O(1); the search now costs O(breakpoints^2) and the same document lays out in about 0.3 s. Add a 900-word regression test and note the change in TEX_CORE.
2026-10-26 22:03:19 +08:00
gloamxun
41c68baa5d
Ignore display break hints
2026-10-26 20:37:24 +08:00
gloamxun
7271e2ee12
End table rows with tabularnewline
2026-10-26 20:36:57 +08:00
gloamxun
80a5e8272d
Stretch tabular* tables to their target width
2026-10-26 20:36:49 +08:00
gloamxun
3770de0804
Render tabular* by its declared column template
2026-10-26 20:36:43 +08:00
gloamxun
40abb7bef3
Reserve environment definitions declared in the body
2026-10-26 20:36:30 +08:00
gloamxun
0d9ed56a55
Reserve theorem definitions declared in the body
2026-10-26 20:36:21 +08:00
gloamxun
3087a9a116
Reserve saveboxes declared in the body
2026-10-26 20:35:58 +08:00
gloamxun
eaebb1edbf
Reserve registers declared in the body
2026-10-26 20:35:42 +08:00
gloamxun
13de893c46
Capture body-level newif definitions
2026-10-26 20:35:34 +08:00
gloamxun
dc49b92a47
Capture body-level chardef definitions
2026-10-26 20:35:09 +08:00
gloamxun
2408736c5e
Capture body-level let aliases
2026-10-26 20:34:44 +08:00
gloamxun
6efb210781
Capture definitions written in the body
2026-10-26 20:34:33 +08:00
gloamxun
7c98c61b7a
Ignore preamble-only guards
2026-10-26 20:34:06 +08:00
gloamxun
991498b0e1
Guard definitions with @ifdefinable
2026-10-26 20:33:57 +08:00
gloamxun
f6a41c9f59
Expand the checkmark symbol in text
2026-10-26 20:33:49 +08:00
gloamxun
8e884e6db1
Expand parameterised newcolumntype letters
2026-10-26 20:33:43 +08:00
gloamxun
9d57ca604e
Expand newcolumntype letters in table specs
2026-10-26 20:33:14 +08:00
gloamxun
97e883f51d
Branch on @ifclassloaded for supported classes
2026-10-26 20:33:02 +08:00
gloamxun
c9982a7675
Branch on @ifpackageloaded for known packages
2026-10-26 20:32:51 +08:00
gloamxun
fce3a3b0a0
Honour optional newenvironment defaults
2026-10-26 20:32:41 +08:00
gloamxun
b7d18dff37
Expand punctuation and symbol commands
2026-10-26 20:32:18 +08:00
gloamxun
3a089c6175
Number standalone captionof captions
2026-10-26 20:32:01 +08:00
gloamxun
7d05268983
Keep underline text without the rule
2026-10-26 20:31:45 +08:00
gloamxun
f147ccc8c5
Parse array column modifiers and their alignment
2026-10-26 20:31:33 +08:00
gloamxun
71dc8ca59b
Treat starred floats as their single-column forms
2026-10-26 20:31:18 +08:00
gloamxun
8ecbd5e720
Centre multirow cells over their rows
2026-10-26 20:31:03 +08:00
gloamxun
e039cfb8a9
Report float and equation pages through pageref
2026-10-26 20:30:22 +08:00
gloamxun
aa072f58d8
Reserve outer tabcolsep margins around tables
2026-10-26 20:29:51 +08:00
gloamxun
20d23ce68d
Record the round-150 handoff
2026-10-26 04:54:57 +08:00
gloamxun
b191f7d66c
Record the remaining compatibility gaps
2026-10-26 04:52:57 +08:00
gloamxun
20813a6607
Ignore strut commands in running text
2026-10-26 04:52:34 +08:00
gloamxun
22f95c1536
Print character commands by codepoint
2026-10-26 04:50:54 +08:00
gloamxun
2476c1893f
Keep leftline arguments flush left
2026-10-26 04:49:10 +08:00
gloamxun
3d33ee9dc3
Flush rightline arguments to the right margin
2026-10-26 04:47:29 +08:00
gloamxun
9aa7198aed
Centre centerline arguments
2026-10-26 04:45:58 +08:00
gloamxun
f11561f15f
Keep raggedright blocks unjustified
2026-10-26 04:44:21 +08:00
gloamxun
337f1f6de6
Centre blocks after a centering declaration
2026-10-26 04:41:31 +08:00
gloamxun
3d1ace51ae
Print registers as roman numerals
2026-10-26 04:39:55 +08:00
gloamxun
ca433d256d
Drop break hints and discretionary hyphens
2026-10-26 04:38:04 +08:00
gloamxun
6c771e0820
Reuse savebox content through usebox
2026-10-26 04:35:42 +08:00
gloamxun
c57de1e03c
Reserve the named TeX spaces in text
2026-10-26 04:32:40 +08:00
gloamxun
1e8b2367ca
Space text with quad and punctuation commands
2026-10-26 04:30:22 +08:00
gloamxun
c290b6f38d
Reserve hspace width in running text
2026-10-26 04:28:03 +08:00
gloamxun
313ea366d6
Expand more text symbol commands
2026-10-26 04:21:51 +08:00
gloamxun
55d34dc259
Drop layout-only commands from paragraph text
2026-10-26 04:19:18 +08:00
gloamxun
fb111806e2
Keep the text of mbox and makebox commands
2026-10-26 04:17:26 +08:00
gloamxun
0c8228eced
Lay out ensuremath bodies as math
2026-10-26 04:14:38 +08:00
gloamxun
0340878909
Pad color boxes by fboxsep
2026-10-26 04:11:42 +08:00
gloamxun
8e274a252d
Separate table columns by twice tabcolsep
2026-10-26 04:09:57 +08:00