MicroTeX
MicroTeX copied to clipboard
A dynamic, cross-platform, and embeddable LaTeX rendering library
If the library is used to render a single line, say `\text{Let } f(x) = \int_0^x g(t) dt`, is there a convenient way to pull out the baseline position of...
We seem to get some peculiar linebreaking effects in long equations. Say we run it with ``` x = y + a + a + a + a + a...
Is there some documentation on how to go about using another font with this library? I wonder if some more modern fonts might avoid the need for so many font...
I just discovered that the programming language to which I was hoping to link this library does not support callbacks, which means I cannot directly have the library draw on...
Hi, this project looks great! Does this support Latex packages like tikz or[ working with types](https://www.logicmatters.net/latex-for-logicians/nd/)?
I am working on using MicroTeX for the notebook interface of my symbolic computer algebra software [Cadabra](https://cadabra.science). This all works very nicely, many thanks for the great work! In order...
我在使用Skia与microTex库,在安卓平台渲染公式的时候,会crash在Box->draw()里面。具体看下来,好像是字体加载没有成功。 导致了CharBox中使用了_drawWithFont(),字体为Null。具体流程如下: 我编译了skia安卓版本,然后把microTex也编译了一个安卓版本。在使用的过程中,我初始化了对应的字体与环境。 microtex::FontSrcFile math{"/sdcard/temp/XITSMath-Regular.clm1", "/sdcard/temp/XITSMath-Regular.otf" }; microtex::MicroTeX::init(math); microtex::PlatformFactory::registerFactory("skia", std::make_unique()); microtex::PlatformFactory::activate("skia"); 之后,为了排查问题,我简单的设置了要解析的公式为一个字母。 auto render = microtex::MicroTeX::parse(std::string("x"), 600 - 0 * 2, 20, 20 / 3.f, 0xff424242); 然后新建了skia的canvas和一个bitmap,期望render可以渲染到bitmap上。 SkBitmap bitmap; bitmap.allocPixels(SkImageInfo::Make(render->getWidth(),...
Because `\newcolumntype` just stores the second argument as string in a map and parses it when needed again and again, you can use the newly defined coumntype inside of itself,...