# Implement an equation without mangled LaTeX.

> Copy-pasting from a PDF drops fraction bars, transposes, and nested subscripts. Hand off exact 2× pixels instead.

- Canonical URL: https://hoja.crafter.run/docs/playbooks/implement-an-equation-from-a-paper
- Version: 0.2.1

## Drag a box or let the agent peek.

- **Interactive SNIP drag**: In hoja, press s (SNIP mode) and drag a box over the equation (or press y / @ to capture the visible viewport). hoja writes region.png, selection.md, and meta.json under ~/.cache/hoja/handoff/ and copies the absolute path to your clipboard via OSC 52 + pbcopy.
- **Zero-click agent peek**: Leave the equation on screen and tell your agent to capture the visible page directly with hoja ctl peek --png.

### Prompt: Code verification prompt

> "Inspect the equation currently visible in hoja (capture it as a 2x PNG) and verify src/attention.rs for tensor shapes, scaling factor, and softmax axis."

```sh
hoja ctl peek --png --output /tmp/eq-page.png
# Or headless for a specific page at 2400px:
hoja 1706.03762 --png --page 4 --output /tmp/page4.png --width 2400
```

**Narrow splits:** Press m to toggle per-page auto-crop and f to toggle fit-width so the equation fills a narrow 80-column pane beside your editor.
