An open API service indexing awesome lists of open source software.

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.

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.