Skip to content

feat: support standard LaTeX relative sizes - #314

Open
Happypig375 wants to merge 3 commits into
masterfrom
issue-311-relative-sizes
Open

feat: support standard LaTeX relative sizes#314
Happypig375 wants to merge 3 commits into
masterfrom
issue-311-relative-sizes

Conversation

@Happypig375

Copy link
Copy Markdown
Collaborator

Summary

  • support \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, and \Huge in formula and text parsing
  • scope declarations to their current group and preserve transitions through canonical serialization
  • apply documented 10pt-class ratios from the painter's external base size across glyphs, rules, scripts, delimiters, radicals, accents, tables, and mixed text/math
  • keep script scaling single-application and preserve existing absolute \fontsize{size}{content} precedence
  • expose the ratio map read-only and represent text declarations structurally

Validation

  • Core parser/structure focus: 17/17
  • Core geometry focus: 17/17
  • Rendering.Text parsing and real layout geometry: 16/16
  • focused SkiaSharp/Avalonia decoded-pixel cases: 6/6
  • Core and Rendering Release builds: 0 warnings/errors
  • git diff --check
  • independent review: approved

Closes #311

@Happypig375 Happypig375 added Type/Enhancement A concrete change to CSharpMath behavior or capability. Area/Parsing LaTeX tokenization, parsing, commands, and serialization. Area/Rendering Typesetting, measurement, fonts, text layout, and drawing. labels Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area/Parsing LaTeX tokenization, parsing, commands, and serialization. Area/Rendering Typesetting, measurement, fonts, text layout, and drawing. Type/Enhancement A concrete change to CSharpMath behavior or capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support standard LaTeX relative size declarations

1 participant