Skip to content

feat: add LaTeX representation for fractions and corresponding tests#3434

Merged
josdejong merged 2 commits into
josdejong:developfrom
orelbn:orelbn/change-frac-toTex
Mar 28, 2025
Merged

feat: add LaTeX representation for fractions and corresponding tests#3434
josdejong merged 2 commits into
josdejong:developfrom
orelbn:orelbn/change-frac-toTex

Conversation

@orelbn
Copy link
Copy Markdown
Contributor

@orelbn orelbn commented Mar 27, 2025

Description

Test

  • Added a test to ensure toTex results are changed as expected

Additional Notes

  • Please let me know if I missed any points of documentation that are necessary.
  • For the test math.parse(fraction(a,b)).toTex() I got back => \\frac{ a}{\\mathrm{b}} I assume this is the expected behaviour.

@josdejong
Copy link
Copy Markdown
Owner

Thanks @orelbn!

@josdejong josdejong merged commit 9a82b5c into josdejong:develop Mar 28, 2025
@josdejong
Copy link
Copy Markdown
Owner

Published now in v14.4.0

@gwhitney
Copy link
Copy Markdown
Collaborator

  • For the test math.parse(fraction(a,b)).toTex() I got back => \\frac{ a}{\\mathrm{b}} I assume this is the expected behaviour.

Yeah, I have to grudgingly admit that it is, but inspired by that seeming odd to you I did open #3443.

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.

3 participants