Skip to content

Support LaTeX square-bracket delimiter aliases - #312

Open
Happypig375 wants to merge 1 commit into
masterfrom
issue-309-lbrack
Open

Support LaTeX square-bracket delimiter aliases#312
Happypig375 wants to merge 1 commit into
masterfrom
issue-309-lbrack

Conversation

@Happypig375

Copy link
Copy Markdown
Collaborator

Summary

  • add \lbrack and \rbrack as opening and closing square-delimiter aliases
  • support the aliases both as ordinary atoms and after \left/\right
  • keep literal [ and ] as the canonical serialized spelling
  • verify aliases are structurally identical to literal brackets in scripts, groups, paired, nested, and one-sided delimiter forms

Testing

  • dotnet run --project CSharpMath.Core.Tests -c Release -- -class CSharpMath.Core.AtomTests.LaTeXParserTest -noColor -noAutoReporters — 297 passed
  • dotnet run --project CSharpMath.Core.Tests -c Release -- -noColor -noAutoReporters — 1,525 passed
  • git diff --check

Compatibility

No public API changes. Existing serialized formulas continue to use literal square brackets.

Fixes #309

@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 30, 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 the \lbrack and \rbrack square-delimiter aliases

1 participant