This style file is to add \sepcial command at \begin and \end of theorem emvironment. The \special commands let us/dviware know where each theorem starts/ends.
Down load the file
referenceblockspectialforams.sty
from HERE.
Put it in the same folder as *.tex
.
Use amsthm package and referenceblockspectialforams as
\usepackage{amsthm}
\usepackage{referenceblockspectialforams}
The style file modifies commands so-called theorem emvironments
defined by the command newtheorem
provided by
amsthm
.
For each theorem emvironment, e.g, thm
,
the special command with
NU:special:extension:xml:<referenceblock>is putted in the dvi file before
\begin{thm}
.
Also
the special command with
NU:special:extension:xml:</referenceblock>is putted after
\end{thm}
.
Hence the dviware can understand
the referenced part.
If we compile a tex source with this style file, then the dvi file has information of `blocks' of theorems, and a dviware can get this information. So we can implement something like popup-window of cross referenced statements for `\ref' (to dviwares). I wish someone implements such features to some dviware.
This style file is a just mockup.
[../]