Skip to content

Restate & prestate amsthm theorems using their labels.

License

Notifications You must be signed in to change notification settings

max-te/refstate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

\usepackage{refstate}

Declare your theorem environments like normal.

\theoremstyle{plain}
\newtheorem{THM}{Theorem}[section]

You can then use the store environment to define a theorem like this.

\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.

\refstate{thmmain}

Building

Run tex refstate.dtx to rebuild refstate.sty, then pdflatex refstate.dtx to compile the documentation.

About

Restate & prestate amsthm theorems using their labels.

Topics

Resources

License

Stars

Watchers

Forks

Languages