| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
\usepackage{amsmath,amsthm,amsfonts} |
| 4 |
\usepackage[colorlinks=true, linkcolor=blue]{hyperref} |
| 5 |
\usepackage{linkedthm} |
| 6 |
|
| 7 |
\title{The \texttt{linkedthm} Package} |
| 8 |
\author{Luis A. Ortega} |
| 9 |
\date{v1.0 — 2025/07/21} |
| 10 |
|
| 11 |
% Base environment |
| 12 |
\newtheorem{theorem}{Theorem} |
| 13 |
|
| 14 |
% Linked version |
| 15 |
\DeclareLinkedTheorem{linkedtheorem}{theorem}{Theorem} |
| 16 |
|
| 17 |
\begin{document} |
| 18 |
|
| 19 |
\maketitle |
| 20 |
|
| 21 |
\section*{Overview} |
| 22 |
|
| 23 |
\texttt{linkedthm} is a LaTeX package that connects theorem-like environments |
| 24 |
to their corresponding proofs using hyperlinks. It helps readers navigate between statements and their justifications in a convenient and visually clear way. |
| 25 |
|
| 26 |
\section*{Basic Usage} |
| 27 |
|
| 28 |
Load the package: |
| 29 |
|
| 30 |
\begin{verbatim} |
| 31 |
\usepackage{linkedthm} |
| 32 |
\end{verbatim} |
| 33 |
|
| 34 |
Define a base environment: |
| 35 |
|
| 36 |
\begin{verbatim} |
| 37 |
\newtheorem{theorem}{Theorem} |
| 38 |
\end{verbatim} |
| 39 |
|
| 40 |
Declare the linked version: |
| 41 |
|
| 42 |
\begin{verbatim} |
| 43 |
\DeclareLinkedTheorem{linkedtheorem}{theorem}{Theorem} |
| 44 |
\end{verbatim} |
| 45 |
|
| 46 |
Use in document: |
| 47 |
|
| 48 |
\begin{linkedtheorem}{thm:demo} |
| 49 |
Let \( x \in \mathbb{R} \). Then \( x^2 \geq 0 \). |
| 50 |
\end{linkedtheorem} |
| 51 |
|
| 52 |
\begin{linkedproof}{thm:demo} |
| 53 |
The square of a real number is always non-negative. |
| 54 |
\end{linkedproof} |
| 55 |
|
| 56 |
\section*{Features} |
| 57 |
|
| 58 |
\begin{itemize} |
| 59 |
\item Hyperlinked `[Proof]` text at the end of each theorem |
| 60 |
\item Hyperlinked `[Return]` at the start of the proof |
| 61 |
\item Proof begins by restating the theorem, with matching labels |
| 62 |
\item You can declare your own linked environments with |
| 63 |
\verb|\DeclareLinkedTheorem| |
| 64 |
\end{itemize} |
| 65 |
|
| 66 |
\section*{Dependencies} |
| 67 |
|
| 68 |
\begin{itemize} |
| 69 |
\item \texttt{amsthm} |
| 70 |
\item \texttt{xparse} |
| 71 |
\item \texttt{hyperref} |
| 72 |
\end{itemize} |
| 73 |
|
| 74 |
\section*{License} |
| 75 |
|
| 76 |
This package is licensed under the \textbf{LaTeX Project Public License v1.3c}. |
| 77 |
|
| 78 |
\end{document} |