Formatting boxes math mode - #10
Merged
Merged
Conversation
In `mmacells` version 0.3.0 all arguments of "ordinary" formatting commands are processed in text mode. So in `headRulesToBoxRules` function there's no need for optional position of math mode args. Since number of arguments of TeX formatting commands is fixed require this number in arguments of `headRulesToBoxRules`. Adapt `headRulesToBoxRules` unit tests.
It's not needed anymore with mmacells 0.3.0.
Adapt getBoxesToFormattedTeX integration tests.
Superscript and subscript of `\int` in TeX gets special formatting only when `^` or `_` is next to `\int` command. We can't use ordinary `\mma...` script commands processing arguments in text mode, so for this special case we use `\mma...M` formatting commands processing first argument without changing mode to text. * Add special conversion rules to `$boxesToFormattedTeX`. * Add `getBoxesToFormattedTeX` integration tests covering special `\[Integral]` boxes. * Adapt `CellToTeX` integration tests.
* Fix context names. * Fix error reporting in test utilities functions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backward incompatible changes.
$boxHeadsToTeXCommandsformat.\mmaSubM,mmaSupM, or\mmaSubSupMcommands.Fixes #9.