Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for inline parenthesis equations #44

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mooyoung2309
Copy link

Add support for inline parenthesis equations

Description

This PR adds support for inline parenthesis equations using the (...) syntax. This is a commonly used LaTeX notation for inline equations and enhances our parser's compatibility with standard LaTeX documents.

Changes

Added a new ComponentType case: inlineLatexEquation
Updated the Parser to recognize and properly handle (...) syntax
Added corresponding unit tests for the new equation type

Motivation

LaTeX users often prefer (...) for inline equations over the older $...$ syntax. Adding support for this notation improves our parser's compatibility with modern LaTeX documents and provides users with more flexibility in equation formatting.

Testing

New unit tests have been added to cover various scenarios for inline parenthesis equations:

Basic usage

Usage within text
Escaped parentheses
Equations with leading/trailing whitespace and line breaks

All existing tests continue to pass, ensuring no regression in current functionality.

Additional Notes

This change is backwards compatible and does not affect the parsing of existing equation types.
Documentation has been updated to reflect the new supported syntax.

Checklist

Code follows the project's coding standards
Comments have been added where necessary
Unit tests have been added/updated
Documentation has been updated
All tests pass locally

Please review and let me know if any further changes or information are needed.

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