Skip to content

Formatting boxes math mode - #10

Merged
jkuczm merged 5 commits into
masterfrom
formatting_boxes_math_mode
May 21, 2016
Merged

Formatting boxes math mode#10
jkuczm merged 5 commits into
masterfrom
formatting_boxes_math_mode

Conversation

@jkuczm

@jkuczm jkuczm commented May 21, 2016

Copy link
Copy Markdown
Owner

Backward incompatible changes.

  • Changed $boxHeadsToTeXCommands format.
  • Conversion of integrals results in \mmaSubM, mmaSupM, or \mmaSubSupM commands.

Fixes #9.

jkuczm added 5 commits April 22, 2016 21:41
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.
@jkuczm jkuczm added this to the 0.2.0 milestone May 21, 2016
@jkuczm
jkuczm merged commit dfc78af into master May 21, 2016
@jkuczm
jkuczm deleted the formatting_boxes_math_mode branch May 21, 2016 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant