Skip to content

Hand TeX

Draw a math symbol and get its LaTeX command, offline, for Linux and Python

Copyleft (OSI) · GPL-3.0
  • Linux

Listed by , founder & editor

50

Health

Slowing

Overview

Stars

69

Last commit

37 days ago

Oct 2026

Repository age

2 years

since Nov 2024

Latest version

1.0.0

Mar 2025

Contributors

–

1 active in 90 days

Releases

0

last 12 months

Language

Python

Hand TeX helps you find the LaTeX command for a symbol you cannot name. You draw the symbol, and the app shows matching commands. It covers over 3500 symbols and variations, of which over 1700 are unique, and you can also browse the full list.

It works fully offline. Your strokes are rendered to a flat image and classified by a small convolutional neural network, which runs quickly on a CPU without CUDA. Because it ignores stroke order and direction, it focuses on shape. It was inspired by Detexify and uses some of the same training data, with new symbols and added samples. Supported packages include amsmath, amssymb, stix2, stmaryrd, wasysym and many more.

Install it from Flathub on Linux, or with pip on any platform with Python 3.10 or later, then run handtex. It is GPL-3.0 licensed. You can contribute drawings through the built-in training help feature. It is an offline alternative to Detexify.

Who it's for

LaTeX writers who forget symbol command names

Drawing the symbol is faster than searching symbol tables.

Skip if: You prefer a web tool with no install.

Linux users who want an offline tool

It is on Flathub and needs no network connection.

Skip if: You want a hosted service.

People who want to improve the model

The app collects drawings as JSON files you can send in.

Skip if: You only want to look up symbols.

The problem it solves

Finding the LaTeX command for an unfamiliar symbol means scanning long symbol lists. Hand TeX lets you draw the symbol and returns the likely command.

Strengths

  • Over 3500 symbols and variations across 25 packages
  • Works fully offline
  • Runs quickly on CPU without CUDA
  • Installs with Flatpak or pip handtex

Trade-offs

  • Slowing maintenance; one contributor in the last 90 days
  • Pip install needs Python 3.10 or later
  • Shape-only matching can confuse similar symbols

Frequently asked questions

Is it free?

Yes. It is licensed under GPL-3.0.

Does it work offline?

Yes. Classification runs locally.

How do I install it?

Use Flatpak on Linux from Flathub, or run pip install handtex on any platform with Python 3.10 or later.

Do I need a GPU?

No. The model is small enough to run quickly on a CPU.

How is it different from Detexify?

It uses a larger dataset and a convolutional network on a flat image. Detexify uses stroke order and direction.

Similar tools in Math and scientific computing software

Cantor

Math and scientific computing software

63 12 today Active GPL-2.0+

Graphs

Math and scientific computing software

14 16 3 days ago Active GPL-3.0-or-later

GeoGebra Discovery

Math and scientific computing software

13 10 16 days ago Active GPL-3.0-or-later

LabPlot

Math and scientific computing software

11 41 2 days ago Active GPL-2.0+

GNU Octave

Math and scientific computing software

Free scientific computing language for people with existing MATLAB scripts

GPL-3.0+

Replaces MATLAB