Texo-web icon indicating copy to clipboard operation
Texo-web copied to clipboard

The web application for Texo, a minimalist SOTA LaTeX OCR model which contains only 20M parameters runs in browser. | 超轻量SOTA LaTeX公式识别模型,20M参数量的 web 应用仓库

Texo-web

The web application for Texo. Built with Nuxt.

[!Note] Feel honored been collected in @ruanyf's weekly, if you are a user from there, and have an issue on visit the website, please leave a message in Texo-web repo. Due to my limited front-end skills, please contribute to help me in any form.

很荣幸被 《阮一峰的科技周刊》 收录,如果你从那里过来,并且在访问 demo 网站时出现 bug,请移步至 Texo-web 仓库报告。由于我前端水平有限,欢迎各位不吝赐教。

Todo

  • [x] support user from chinese mainland (by switching remote source)
  • [x] model loading progress bar
  • [x] better formatting
  • [ ] model switching (support multiple models under a model manager singleton)
  • [ ] array environment conversion to aligned and so on.
  • [ ] web-gpu
  • [ ] streaming output
  • [x] pwa
  • [x] typst conversion
  • [x] WYSIWYG editor

Acknowledgement

  • Texo: pretrained LaTeX OCR model
  • Transformers.js: pipeline
  • Vue: JS framework
  • Nuxt: meta-framework, UI template and components
  • Volver.js: web worker
  • Giscus: comment system
  • tex2typst: typst conversion
  • KaTeX: latex previewer
  • Mathlive: latex previewer and WYSIWYG editor

Develop

[!warning] Maybe you already know, but please avoid using snap version node.js. It kills me 1 day of life.

Setup

Make sure to install the dependencies:

pnpm install

Development Server

Start the development server on http://localhost:3000:

pnpm dev

Production

Build the application for production:

pnpm build

Locally preview production build:

pnpm preview

Check out the deployment documentation for more information.

[!Note] Pay attention that pnpm preview would listen on http://[::]:3000 while this is not a secure context for caches api, and you will get 500: internal server error which is due to either insecure server or caches not defined error, instead you need to visit localhost:3000 as it is secure for the browser.

License

AGPL-3.0

Copyright (C) 2025-present Sicheng Mao [email protected]