Kurio
2005-08-06 23:34:52 UTC
I'd like to be able to define a theorem-like environment in LaTeX, such
that:
*) when I reference a theorem in the text, the \ref gets expanded into
the theorem's *name* (i.e. that given as optional argument) rather than
number
*) (possibly) numbering of theorems is not displayed
An example, just to be more clear.
If I introduce a theorem with something like:
\begin{theorem}[mytheorem] \label{th:myth}
...
\end{theorem}
and reference to it with \ref{th:myth} I'd like to get a "mytheorem"
string, rather than the theorem's number.
Anyone can suggest how to properly do it in vanilla LaTeX (or using some
extra package)? I googled a bit but couldn't find anything suitable.
Thanks in advance for any suggestion you may have.
Kurio
that:
*) when I reference a theorem in the text, the \ref gets expanded into
the theorem's *name* (i.e. that given as optional argument) rather than
number
*) (possibly) numbering of theorems is not displayed
An example, just to be more clear.
If I introduce a theorem with something like:
\begin{theorem}[mytheorem] \label{th:myth}
...
\end{theorem}
and reference to it with \ref{th:myth} I'd like to get a "mytheorem"
string, rather than the theorem's number.
Anyone can suggest how to properly do it in vanilla LaTeX (or using some
extra package)? I googled a bit but couldn't find anything suitable.
Thanks in advance for any suggestion you may have.
Kurio