Commit Graph
507 Commits
Author SHA1 Message Date
gloamxun 491d4e528a Honour conditional assignments in the body 2026-10-24 22:23:54 +08:00
gloamxun 6c81a07766 Execute newif conditionals in the document body 2026-10-24 22:21:47 +08:00
gloamxun e99fab2086 Expand newenvironment definitions in the preamble 2026-10-24 22:15:51 +08:00
gloamxun 568442a75b Execute def and let definitions from the preamble 2026-10-24 22:12:24 +08:00
gloamxun 6a4483cf4d Expand input files in project PDF exports 2026-10-24 22:10:08 +08:00
gloamxun a5da5c9521 Execute newcommand macros from the preamble 2026-10-24 22:07:04 +08:00
gloamxun e008741aa5 Lay out inline math in paragraphs 2026-10-24 21:13:06 +08:00
gloamxun aae046a2f0 Place table captions above their tabular and footnote thanks notes 2026-10-24 21:08:04 +08:00
gloamxun ac1bf660af Nest list environments with depth-aware indentation 2026-10-24 21:04:21 +08:00
gloamxun 4ca3302367 Define custom theorem environments with newtheorem
Parse \newtheorem{env}[shared]{Display},
\newtheorem{env}{Display}[within] and \newtheorem*{env}{Display}
from the preamble. Custom environments gain a bold heading with their
display name, share counters through the optional parent, and can scope
their numbers to the enclosing section; the starred form stays
unnumbered. Unrecognised files and cycles are unaffected.
2026-10-24 21:00:45 +08:00
gloamxun 9599436447 Expand input and include files in project previews
Project previews now expand \input{...} and \include{...} from the
project store (adding a .tex suffix when needed) before route-D parses
the source. Unknown paths and cycles leave the directive as literal
text.
2026-10-24 20:56:54 +08:00
gloamxun 67eb719cbd Number theorem-like environments and resolve their labels 2026-10-24 20:53:43 +08:00
gloamxun a9fbc9b850 Carry table environments as floats with their tabular body 2026-10-24 20:48:29 +08:00
gloamxun 5c04fa83ab Carry figure environments as floats 2026-10-24 20:44:37 +08:00
gloamxun ea06e299d6 Resolve citations from a thebibliography block 2026-10-24 20:38:44 +08:00
gloamxun d4efee043c Page-set footnotes as numbered insertions 2026-10-24 20:35:48 +08:00
gloamxun 6176edccc4 Number appendix sections with letters 2026-10-24 20:30:48 +08:00
gloamxun d982e9266c Resolve section labels and references 2026-10-24 20:28:11 +08:00
gloamxun 17efd542f7 Join and authors and drop thanks notes 2026-10-24 20:25:46 +08:00
gloamxun b947f476da Expand the abstract environment 2026-10-24 20:24:02 +08:00
gloamxun 5ff94d8f92 Number sectioning headings with article counters 2026-10-24 20:22:31 +08:00
gloamxun 569bec31b6 Expand maketitle into the article title block 2026-10-24 20:17:55 +08:00
gloamxun 925c916ea5 Align centered and flushed blocks within the measure 2026-10-24 20:15:31 +08:00
gloamxun 2783dfb284 Apply geometry package margins to the page 2026-10-24 20:11:27 +08:00
gloamxun 6ae609b60e Honour textwidth and setlength as the paragraph measure 2026-10-24 20:09:17 +08:00
gloamxun c494ad04ae Read documentclass size options as the base font size 2026-10-24 19:47:45 +08:00
gloamxun 9876895a84 Scale paragraphs by their declared base font size 2026-10-24 13:04:19 +08:00
gloamxun aa4d86d735 Distinguish slanted from italic and add italic typewriter
Add cmsl10/cmbxsl10/cmitt10 faces so \slshape and \textsl no longer reuse the italic cmti10 and \ttfamily\itshape reaches cmitt10. The NFSS state tracks italic, slanted and small caps separately, with last-shape-wins semantics for \em and the shape commands.
2026-10-24 12:58:41 +08:00
gloamxun 6df38ced25 Scope NFSS declarations to the rest of their group
A bare \bfseries or \em in a paragraph now switches the face from that point to the end of the enclosing group, instead of being emitted as literal text. Inline declarations recurse into the remaining body so nested groups keep their own scope.
2026-10-24 12:55:13 +08:00
gloamxun e303f7852f Select real Computer Modern small caps
Add the cmcsc10 face for \scshape and \textsc, including its Type1 outline, and compose the sc shape with the surrounding family and series. Bold small caps substitute cmbx10 and a later shape command wins, matching NFSS.
2026-10-24 12:52:15 +08:00
gloamxun 9140990a7d Add sans-serif bold and italic faces
Map \sffamily with \bfseries or \itshape onto the bundled cmssbx10 and cmssi10 metrics, with their Type1 outlines embedded alongside the other Computer Modern faces. Bold italic sans substitutes cmssbx10, matching the OT1 fallback in TeX.
2026-10-24 12:49:30 +08:00
gloamxun 03925e3116 Scan TeX math skips and correct math-unit spacing 2026-10-24 12:43:01 +08:00
gloamxun cce656a407 Lay out align and gather displays row by row 2026-10-24 12:39:02 +08:00
texrra 8c42f2de2f Add Fraktur letters, infix fractions and middle delimiters
- bundle eufm10 (TFM + Type1), add the MathFraktur face and map \mathfrak
  onto it, including PDF embedding and width lookup;
- parse TeX's infix fractions (\over, \atop, \choose, \brace,
  \brack, \overwithdelims, \atopwithdelims): the rest of the current
  row becomes the denominator, ar records whether a rule is drawn, and the
  painter no longer emits parentheses (a \frac painter bug) and only draws
  the bar for \over forms;
- add MathAtom::Middle, size top-level middle delimiters with the enclosing
  \left/\right group through the CMEX size classes, and paint
  SizedDelimiter at its selected size instead of the base glyph;
- skip the parser's '\u{0}' math spaces before \big, \middle,
  \left and the withdelims delimiters, so \big ( parses like \big(.

560 workspace tests (381 route-D unit).
2026-10-24 12:28:33 +08:00
gloamxun cb40cc4634 Draw mathbb letters from msbm10 2026-10-24 12:14:54 +08:00
gloamxun e229809581 Draw mathcal letters from cmsy10 2026-10-24 03:49:55 +08:00
gloamxun 66ceabad0e Draw big operators with cmex10 outlines 2026-10-24 03:46:50 +08:00
gloamxun 6446de6b6b Embed math symbols as Computer Modern Type1 outlines 2026-10-24 03:42:45 +08:00
gloamxun a07d93510f Map math alphabets onto Computer Modern Type1 faces 2026-10-24 03:38:53 +08:00
gloamxun a95cf8092e Embed math italic letters as Computer Modern Type1 outlines 2026-10-24 03:35:33 +08:00
gloamxun f7849f39c2 Embed every Computer Modern face as Type1 outlines 2026-10-24 03:30:12 +08:00
gloamxun 5f5fc393a4 Embed Computer Modern Type1 outlines in route-D PDFs 2026-10-24 03:28:10 +08:00
gloamxun 6eef2f7a54 Record the Type1 parser in the docs 2026-10-24 03:24:53 +08:00
gloamxun 5b5fdab8a6 Parse Computer Modern Type1 programs for PDF embedding 2026-10-24 03:24:32 +08:00
gloamxun 36f2aa12d7 Keep styled runs across incremental paragraph edits 2026-10-24 02:18:21 +08:00
gloamxun 4cf64a4d55 Compose nested inline faces relative to the surrounding run 2026-10-24 02:15:08 +08:00
gloamxun 0e8999671b Parse declaration groups in inline styled text 2026-10-24 02:12:29 +08:00
gloamxun 53fabe95db Paint inline NFSS runs with their own faces 2026-10-24 02:09:56 +08:00
gloamxun 67898d6a8a Support NFSS command forms and legacy declarations 2026-10-24 02:06:44 +08:00
gloamxun df43cade62 Select built-in faces from NFSS declarations 2026-10-24 02:04:14 +08:00