Skip to main content

A Vim-style LaTeX TUI editor.

Project description

txtr screenshot

A Vim-style LaTeX editor for the terminal.

txtr screenshot

Documentation | PyPI


txtr (aka texitor) is a terminal-based LaTeX editor built for speed. It combines Vim-style modal editing with snippets, completions, citations, compiler tooling, and a growing plugin system.

Under active development. Expect bugs :)

Installation

pip install texitor

In-depth installation instructions are in the docs - see txtr.benji.mom/installation for more details.

Requires Python 3.11 or later.

Quick start

txtr file.tex

If the file does not exist, txtr creates it. On first run txtr seeds config, snippets, commands, and keybind overrides into ~/.config/txtr/.

Never used a Vim-style editor before? The bare minimum to get going is:

  • i enters Insert mode so you can type (this is how you can actually get text into the editor)
  • Esc takes you back to Normal mode
  • :w saves
  • :q quits
  • :wq saves and quits
  • ? opens the help menu

Inside txtr:

  • ? opens the help menu
  • : opens command mode
  • :snippets jumps straight to snippet help
  • :config show opens the config panel
  • :plugin list shows installed plugins

What even is LaTeX?

LaTeX is a typesetting system commonly used for academic writing, especially in fields like mathematics and physics. It allows you to write documents with complex formatting and is particularly good at handling equations, citations and references.

LaTeX is generaly quite long-winded to write by hand, which is exactly why txtr exists - to make LaTeX editing faster, more efficient and collate together all the utilities you may want into one single editor.

What ships with txtr

  • Vim-style modal editing for .tex files
  • LaTeX snippets and completions
  • citation autocomplete from .bib files
  • compiler commands, buildwatch, and PDF build workflows
  • built-in plugins:
    • wordcount - latex-aware word count
    • freeze - screenshot/export via the freeze CLI
    • zathura - external PDF open + SyncTeX forward search
  • installable user plugins on top of the built-ins
  • a full docs site with config, snippets, themes, and plugin guides

Built-in plugins ship with txtr, but they are still configured and enabled like normal plugins. The README is just the quick overview - the docs are the proper source of truth for setup and config.

IF YOU GET STUCK, READ THE DOCS! (click me)

Documentation

The full docs live at txtr.benji.mom.

Useful starting points:

Notes

  • requires Python 3.11+
  • compiler features expect tools like latexmk or pdflatex to be installed
  • system clipboard features rely on platform clipboard tools
  • some plugins rely on external tools too, for example freeze and zathura

Compatibility

  • Linux - fully supported and tested
  • MacOS - supported but not thoroughly tested
  • Windows - not currently supported, but WSL should work fine - txtr will run but do expect errors

If you would like to port txtr to Windows, please open an issue or PR on GitHub. I don't have access to a Windows machine but would be happy to review and merge contributions that add support.

Contributing

txtr is early-stage. If you find a bug or want to add something, open an issue or PR on GitHub.

tl;dr - just make a pr ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

texitor-2.2.0.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

texitor-2.2.0-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file texitor-2.2.0.tar.gz.

File metadata

  • Download URL: texitor-2.2.0.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for texitor-2.2.0.tar.gz
Algorithm Hash digest
SHA256 9ac0641a255e19d4e32476a620ed73510b5030040d8afdecfcf1877c5641613b
MD5 87ac95f7c1453b57770421c52bb0db41
BLAKE2b-256 e1967ca20125e0a1f60c0c7901b20102b4c1500e9304daf9162269719c03cc85

See more details on using hashes here.

File details

Details for the file texitor-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: texitor-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for texitor-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eba8146e36da4a2960045a35cd07ca07a28dabf06934ae29cde1ebefbdf85060
MD5 d0a08ee91c51fb72f9f2cd40ee297571
BLAKE2b-256 3a0044fad1217f968328e7638db599185dae602159221fb3c0117bc3556b5265

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page