frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Math2Tex – Convert handwritten math and complex notes to LaTeX text

14•leoyixing•3d ago
Hi HN,

I’m the creator of Math2Tex. I was a PhD student, I spend a huge amount of my time working with LaTeX, especially when dealing with lecture notes, academic papers, and homework. I built *Math2Tex*, a lightweight tool that converts handwritten or printed academic content — especially math formulas — into LaTeX or text

The Problem:

I've always found it incredibly tedious to manually type out mathematical formulas, especially complex, multi-line equations from my handwritten notes or from a textbook. It's slow, boring, and I always make syntax errors. I tried some existing tools, but they often struggled with my handwriting or couldn't handle mixed content (text and formulas together).

The Solution:

So, I built Math2Tex to solve my own problem. It’s a straightforward, single-page web app: you upload an image (a photo of your notebook, a screenshot of a PDF, etc.), and it converts the academic content into clean LaTeX code or plain text. You get a real-time preview and can copy the result with one click. My goal was to make the workflow as fast as possible: Snap. Convert. Done.

You can try it here: [https://math2tex.com](https://math2tex.com/)

How is it different from general AI tools like GPT, Claude, etc?

This is a fair question. While large models can handle this, they are often slow for such a specific task. I wanted something faster and more specialized. Math2Tex uses a lightweight model fine-tuned specifically for academic content recognition.

In short, think of it as a specialized scalpel versus a Swiss Army knife. For this particular job, it's generally 3-5x faster and, in my experience, more reliable for complex notations.

Tech Stack:

The core OCR engine is a custom-trained model based on a transformer architecture, fine-tuned on a large dataset of both printed and handwritten academic material. It's all deployed on Vercel.

*It's free to use.* This is still an early version, and I'm sure there are plenty of bugs and areas for improvement. The recognition might not be perfect, especially with very messy handwriting or some obscure symbols.

I would be incredibly grateful for your feedback. Whether you’re a student, researcher, or someone who’s fought with LaTeX input. Feedback on both the tool and the approach would be really helpful.

Thanks!

Comments

gus_massa•3d ago
Is it possible to ad a whiteboard to draw simple formulas?

It requires a Google account. Is it possible to show a precalculated result for the examples? (I like the examples! But I want to see how is the generated LaTeX code.)

leoyixing•2d ago
Thank you for your suggestion. The whiteboard drawing has been recorded in the to-do list. Additionally, you can click on the examples to try. These require logging.
gus_massa•2d ago
I was proposing some samples where the result is calculated by you beforehand, so it's possible to see the result without login in. (Pinky promise that you are not cheating and showing a fake result.)
lorenzohess•22m ago
This is great! The LaTeX community will grow much more thanks to user friendly tools.

Novelist Cormac McCarthy's tips on how to write a great science paper [pdf]

https://gwern.net/doc/science/2019-savage.pdf
60•surprisetalk•2h ago•9 comments

Living microbial cement supercapacitors with reactivatable energy storage

https://www.cell.com/cell-reports-physical-science/fulltext/S2666-3864(25)00409-6
45•PaulHoule•3h ago•24 comments

SCREAM CIPHER ("ǠĂȦẶAẦ ĂǍÄẴẶȦ")

https://sethmlarson.dev/scream-cipher
177•alexmolas•2d ago•75 comments

Scientists find that ice generates electricity when bent

https://phys.org/news/2025-09-scientists-ice-generates-electricity-bent.html
14•isaacfrond•3d ago•0 comments

Are Touchscreens in Cars Dangerous?

https://www.economist.com/science-and-technology/2025/09/19/are-touchscreens-in-cars-dangerous
40•Brajeshwar•59m ago•22 comments

Images over DNS

https://dgl.cx/2025/09/images-over-dns
89•dgl•5h ago•26 comments

Britain jumps into bed with Palantir in £1.5B defense pact

https://www.theregister.com/2025/09/20/uk_palantir_defense_pact/
93•rntn•2h ago•42 comments

Claude Can (Sometimes) Prove It

https://www.galois.com/articles/claude-can-sometimes-prove-it
137•lairv•3d ago•33 comments

Less is safer: How Obsidian reduces the risk of supply chain attacks

https://obsidian.md/blog/less-is-safer/
449•saeedesmaili•18h ago•212 comments

MapSCII – World Map in Terminal

https://github.com/rastapasta/mapscii
61•_august•1d ago•10 comments

Is Zig's New Writer Unsafe?

https://www.openmymind.net/Is-Zigs-New-Io-Unsafe/
86•ibobev•2h ago•63 comments

Bezier Curve as Easing Function in C++

https://asawicki.info/news_1790_bezier_curve_as_easing_function_in_c
20•ibobev•3h ago•3 comments

Escapee pregnancy test frogs colonised Wales for 50 years

https://www.bbc.com/news/uk-wales-44886585
71•Luc•3d ago•24 comments

Show HN: Math2Tex – Convert handwritten math and complex notes to LaTeX text

14•leoyixing•3d ago•4 comments

If all the world were a monorepo

https://jtibs.substack.com/p/if-all-the-world-were-a-monorepo
223•sebg•4d ago•60 comments

Git: Introduce Rust and announce that it will become mandatorty

https://lore.kernel.org/git/20250904-b4-pks-rust-breaking-change-v1-0-3af1d25e0be9@pks.im/
192•WhyNotHugo•4h ago•143 comments

Show HN: FocusStream – Focused, distraction-free YouTube for learners

https://focusstream.media
65•pariharAshwin•9h ago•38 comments

The best YouTube downloaders, and how Google silenced the press

https://windowsread.me/p/best-youtube-downloaders
464•Leftium•1d ago•198 comments

LLM-Deflate: Extracting LLMs into Datasets

https://www.scalarlm.com/blog/llm-deflate-extracting-llms-into-datasets/
46•gdiamos•9h ago•21 comments

PyPI Blog: Token Exfiltration Campaign via GitHub Actions Workflows

https://blog.pypi.org/posts/2025-09-16-github-actions-token-exfiltration/
49•miketheman•3d ago•16 comments

Ants that seem to defy biology – They lay eggs that hatch into another species

https://www.smithsonianmag.com/smart-news/these-ant-queens-seem-to-defy-biology-they-lay-eggs-tha...
440•sampo•1d ago•145 comments

Show HN: Zedis – A Redis clone I'm writing in Zig

https://github.com/barddoo/zedis
140•barddoo•19h ago•87 comments

IG Nobel Prize Winners 2025

https://improbable.com/ig/winners/
105•JeremyTheo•5h ago•29 comments

Evals in 2025: benchmarks to build models people can use

https://github.com/huggingface/evaluation-guidebook/blob/main/yearly_dives/2025-evaluations-for-u...
10•jxmorris12•2d ago•2 comments

Show HN: WeUseElixir - Elixir project directory

https://weuseelixir.com/
193•taddgiles•20h ago•43 comments

What Makes System Calls Expensive: A Linux Internals Deep Dive

https://blog.codingconfessions.com/p/what-makes-system-calls-expensive
28•rbanffy•3h ago•3 comments

Feedmaker: URL + CSS selectors = RSS feed

https://feedmaker.fly.dev
154•mustaphah•19h ago•27 comments

Hidden risk in Notion 3.0 AI agents: Web search tool abuse for data exfiltration

https://www.codeintegrity.ai/blog/notion
165•abirag•19h ago•43 comments

Internet Archive's big battle with music publishers ends in settlement

https://arstechnica.com/tech-policy/2025/09/internet-archives-big-battle-with-music-publishers-en...
344•coloneltcb•4d ago•140 comments

High-performance read-through cache for object storage

https://github.com/s2-streamstore/cachey
69•pranay01•12h ago•15 comments