https://github.com/max-te/refstate
Restate & prestate amsthm theorems using their labels.
https://github.com/max-te/refstate
amsthm hyperref latex latex-package mathematics
Last synced: about 1 year ago
JSON representation
Restate & prestate amsthm theorems using their labels.
- Host: GitHub
- URL: https://github.com/max-te/refstate
- Owner: max-te
- License: lppl-1.3c
- Created: 2023-03-11T17:01:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T18:35:16.000Z (over 1 year ago)
- Last Synced: 2025-01-23T13:45:39.903Z (over 1 year ago)
- Topics: amsthm, hyperref, latex, latex-package, mathematics
- Language: TeX
- Homepage:
- Size: 329 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# refstate
The `refstate` package provides a mechanism to pre-state and re-state theorems in a LaTeX document.
It relies on the implementation details of the `amsthm` package and **may break if those details change**.
## Usage
To use the `refstate` package, install `refstate.sty` and include it in your document preamble with:
```tex
\usepackage{refstate}
```
Declare your theorem environments like normal.
```tex
\theoremstyle{plain}
\newtheorem{THM}{Theorem}[section]
```
You can then use the `store` environment to define a theorem like this.
```tex
\begin{store}{THM}[Blue sky theorem]\label{thmmain}
The sky is blue.
\end{store}
```
Elsewhere in the document (before or after), use the `refstate` command to reference it.
```tex
\refstate{thmmain}
```
## Building
Run `tex refstate.dtx` to rebuild `refstate.sty`, then `pdflatex refstate.dtx` to compile the documentation.