Skip to content

Fix/formula rendering#4

Merged
erweixin merged 8 commits intomainfrom
fix/formula-rendering
Mar 15, 2026
Merged

Fix/formula rendering#4
erweixin merged 8 commits intomainfrom
fix/formula-rendering

Conversation

@erweixin
Copy link
Copy Markdown
Owner



xmapsto
cancel

svg path render

- Modified the handle_prefix function to clone the fetched token and update its text for global version handling.
- Ensured the modified token is pushed to the parser's gullet before consumption, improving the parsing flow.
- Added a new function `layout_cancel` to handle the rendering of strike-through overlays (\cancel, \bcancel, \xcancel, \sout) with appropriate diagonal and horizontal lines.
- Updated the `layout_enclose` function to utilize `layout_cancel` for these overlays.
- Modified related test images to reflect the new rendering behavior.
- Updated metrics for symbols ∬ and ∭ to provide wider widths and better centering under the symbols.
- Enhanced layout calculations to include italic correction in width, ensuring limits are properly centered above/below operators.
- Added extra vertical padding to prevent limits from sitting too close to operators, improving overall layout aesthetics.
- Implemented an ellipse overlay for the integral symbols ∬ and ∭ to enhance visual representation.
- Updated the `build_op_base` function to include the new overlay logic, ensuring proper rendering of these symbols.
- Added a helper function `ellipse_overlay_path` to generate the path commands for the ellipse overlay.
- Adjusted related comments for clarity on the rendering process.
- Implemented special handling for the leftmapsto and rightarrow paths to ensure proper rendering as a single continuous path.
- Added logic to manage the shaft and vertical bar positioning, improving visual accuracy for the xmapsto representation.
- Updated the existing path clipping logic to accommodate the new rendering requirements.
@erweixin erweixin merged commit e2feac1 into main Mar 15, 2026
1 check passed
@erweixin erweixin deleted the fix/formula-rendering branch March 16, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant