# hoja Documentation (v0.2.1)

> Terminal reader for PDFs, arXiv papers, web articles, EPUB, Typst, and LaTeX built for you and your coding agent, in Ghostty and Rex.

- Canonical URL: https://hoja.crafter.run/docs

## First 5-minute session

```sh
curl -fsSL https://hoja.crafter.run/install.sh | sh
hoja setup
hoja doctor
npx skills add crafter-station/hoja
hoja 1706.03762
```

## Guides & Playbooks

- [Formats & Inputs](https://hoja.crafter.run/docs/formats): Open local PDFs, remote PDFs, encrypted PDFs, arXiv IDs, web articles via defuddle + Typst, EPUB books, and .typ/.tex/.md files.
- [Citations & Stack](https://hoja.crafter.run/docs/citations): Follow citations with ; link hints, background fetch arXiv mentions, manage a 20-paper stack, and search cross-stack with F.
- [Coding Agents](https://hoja.crafter.run/docs/agents): Connect Claude Code, Codex, or fx via npx skills add crafter-station/hoja, hoja ctl peek/open/search, layered annotations, and 2x equation handoff.
- [Obsidian Export](https://hoja.crafter.run/docs/obsidian): Turn human and agent highlights into YAML-frontmatter Obsidian literature notes with hoja annot export --obsidian.
- [Live Watch](https://hoja.crafter.run/docs/watch): Live-compile Markdown math, LaTeX via tectonic, and Typst with --watch while keeping scroll position intact.
- [tmux & Graphics](https://hoja.crafter.run/docs/tmux): Fix Kitty Graphics Protocol passthrough inside tmux with allow-passthrough on and diagnose rendering with hoja doctor.
- [CLI & Controls](https://hoja.crafter.run/docs/cli): Complete CLI flags, exit codes, keyboard shortcuts, JSON payloads, storage paths, and security invariants.
- [Troubleshooting](https://hoja.crafter.run/docs/troubleshooting): Diagnose libpdfium setup, blank frames, OSC 10/11 colors, typst/tectonic, DRM EPUBs, HOJA_DATA_DIR, and exit codes 3 and 4.
- [Study Guide from a Paper](https://hoja.crafter.run/docs/playbooks/study-guide-from-a-paper): Have your coding agent build a color-coded annotation layer on a paper, promote useful marks with k, and export to Obsidian.
- [Literature Review with Claude Code](https://hoja.crafter.run/docs/playbooks/literature-review-with-claude-code): Open a seed paper, queue cited arXiv papers in the background with ;, and search across the whole stack with Claude Code.
- [Implement an Equation](https://hoja.crafter.run/docs/playbooks/implement-an-equation-from-a-paper): Snip a dense LaTeX equation as a 2x paper-ink PNG over OSC 52 and verify your Rust or Python implementation beside the paper.
- [Write a Paper Live](https://hoja.crafter.run/docs/playbooks/write-a-paper-with-live-latex): Edit Markdown math, LaTeX, or Typst alongside a coding agent while hoja --watch keeps your viewport pinned.
- [Books & Web Articles](https://hoja.crafter.run/docs/playbooks/read-books-and-articles-in-terminal): Read EPUB books and long-form web articles in your terminal theme with highlights, notes, and Obsidian literature export.
