Commit Graph

18 Commits

Author SHA1 Message Date
Guille Gonzalez
f805b3adf5 Clean slate 2025-12-31 12:40:11 +01:00
Nicolas Guillot
c5b737d9bb Line breaking for fractions and radicals fixes
Implement smart width-checking for complex mathematical displays to enable
  inline rendering when space permits, dramatically improving multiline layout.

  Changes:
  - Add shouldBreakBeforeDisplay() helper to check width before line breaks
  - Add performLineBreak() helper for clean line transitions
  - Modify fraction handling to stay inline when they fit within maxWidth
  - Modify radical handling to stay inline when they fit within maxWidth
  - Support radicals with degrees (cube roots, nth roots, etc.)
2025-11-13 15:45:35 +01:00
Nicolas Guillot
cd9c3f7a37 add documentation 2025-11-13 15:08:55 +01:00
Nicolas Guillot
d2df078dc9 Add support for dfrac and tfrac LaTeX commands
Add display-style (dfrac) and text-style (tfrac) fraction commands
  to SwiftMath's LaTeX parser. These commands force fractions to render
  in specific styles regardless of context.

  Implementation:
  - Add dfrac parsing to prepend displaystyle to numerator/denominator
  - Add tfrac parsing to prepend textstyle to numerator/denominator
  - Implement in both parser functions in MTMathListBuilder.swift

  Testing:
  - Add testDisplayStyleFraction() for dfrac validation
  - Add testTextStyleFraction() for tfrac validation
  - Add testDisplayAndTextStyleFractions() for complex expressions
  - All 180 tests pass on macOS and iOS simulator

  Documentation:
  - Update MISSING_FEATURES.md (7/12 features now implemented, 58%)
  - Update README.md feature list to include dfrac and tfrac

  Fixes issue where equations like y'=-\dfrac{2}{x^{3}} would fail to
  parse with "Invalid command dfrac" error. This was blocking the
  StepByStep feature preview rendering.
2025-11-03 10:24:40 +01:00
Nicolas Guillot
c7198ad9af [UI] add line wrapping functionality 2025-10-02 16:42:31 +02:00
Nicolas Guillot
11f57f7c6e add a fallback font system to render CJK text in the \text command 2025-10-01 14:11:00 +02:00
Nicolas Guillot
61ef8dc4f8 supports all standard LaTeX math delimiters for both inline and display modes 2025-09-30 19:17:56 +02:00
Michael Griebling
07b110d07f Update internal changes. 2024-12-15 12:21:08 -05:00
Michael Griebling
55b539b74e Updated MathView examples. 2024-10-08 19:45:30 -04:00
Michael Griebling
7799485428 Added fonts and provided previews. 2024-10-08 19:35:42 -04:00
Michael Griebling
de4484382d Updated some fonts and added python script to create plist files. 2024-10-06 17:56:24 -04:00
Michael Griebling
99dc4ad8de Update to README.md and graphic files. 2024-10-06 16:29:28 -04:00
Michael Griebling
f23a5b9fb5 Updated comments and minor fixes. 2023-01-20 10:54:45 -05:00
Michael Griebling
61a088a3f9 Fixed a "choose" line thickness issue.
Mac actually draws a line of zero width.
2023-01-19 07:27:15 -05:00
Michael Griebling
ac73adeed6 Updated documentation. 2023-01-18 15:36:27 -05:00
Michael Griebling
c18f88f116 Added description and examples. 2023-01-18 11:54:21 -05:00
Michael Griebling
d67f21db64 Minor edit changes. 2023-01-18 11:44:26 -05:00
Michael Griebling
c364e56d31 Initial Commit 2023-01-02 07:41:00 -05:00