| 1 |
# linkedthm — Linked Theorem–Proof Environments |
| 2 |
|
| 3 |
**Version:** 1.0 |
| 4 |
**Author:** Luis A. Ortega |
| 5 |
**License:** LPPL 1.3c |
| 6 |
**Date:** 2025-07-21 |
| 7 |
|
| 8 |
--- |
| 9 |
|
| 10 |
This LaTeX package provides an easy way to hyperlink between theorem-like environments and their corresponding proofs. |
| 11 |
|
| 12 |
- Automatically restates a theorem inside its proof |
| 13 |
- Adds clickable [Proof] and [Return] links using `hyperref` |
| 14 |
- Works with any `amsthm`-compatible environment |
| 15 |
|
| 16 |
--- |
| 17 |
|
| 18 |
## Example |
| 19 |
|
| 20 |
```latex |
| 21 |
\newtheorem{theorem}{Theorem} |
| 22 |
\usepackage{linkedthm} |
| 23 |
|
| 24 |
\DeclareLinkedTheorem{linkedtheorem}{theorem}{Theorem} |
| 25 |
|
| 26 |
\begin{linkedtheorem}{thm:example} |
| 27 |
All even numbers greater than 2 are the sum of two primes. |
| 28 |
\end{linkedtheorem} |
| 29 |
|
| 30 |
\begin{linkedproof}{thm:example} |
| 31 |
This is known as Goldbach's conjecture and remains unproven. |
| 32 |
\end{linkedproof} |