Closed Godricly closed 1 year ago
May you give an example to demonstrate how it is rendered?
BTW, the master branch is going to deprecate, you may want to take a look at the branch openmath
, and any PR is appreciated.
The rendered images are identical, but the structure are different.
BTW, whats difference between the openmath branch and the master branch? My purpose is to synthesis characters for downstream formula recognition task, the visible location of a character is crucial for me.
The openmath is a refactor of the master, and with Unicode-math functionality. You can use different fonts to render your formulas on the openmath branch, which is impossible on the master branch. The render result should be identical on both branches if you use the Latin-modern-math font.
https://github.com/NanoMichael/MicroTeX/blob/master/src/core/macro_impl.h#L300
when root atom is a nullptr, the root atom is replaced by an EmptyAtom. https://github.com/NanoMichael/MicroTeX/blob/master/src/atom/atom_impl.h#L702
The square-root case is not skipped properly Since root atom will never be nullptr. The square root is rendered through codes behind this line with a different structure.. https://github.com/NanoMichael/MicroTeX/blob/master/src/atom/atom_impl.cpp#L232