Is there a way, with amsthm
and thmtools
(possibly other packages, too) to have LaTeX keep track of the numbers of a particular kind of theorem, yet not have the numbers actually appear in the printed text?
For example:
\documentclass{article}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheoremstyle[numbered=yes]{probs}
\declaretheorem[name=PROBLEMS,style=probs,numberwithin=section]{problems}
\begin{document}
\section{First section}
\begin{problems}
Blah-blah
\end{problems}
\end{document}
The output I want should be:
Note that the answer is not simply to use numbered=no
(or, without thmtools
, a \newtheorem*
declaration) — because I still want to reference the theorem's number (and not a name), e.g., for use with \hyperref
.
[The issue is related to my question How use cleveref to get theorem-like name and list item number?
problems
environment will have an enumerated list inside. I want to be able to cross-reference particular items in such a list not just by their item number, but also by the section number in which thatproblems
environment occurs. (And such a cross-reference may, of course, appear in an earlier section, before the section that contains the target problem.)problems
environments in a single section will be numbered consecutively throughout the section. Thus in, say, section 1, a reference to the 5th problem item (in any of the problem environments) in section 2 might be "Problem 2 (5)".problems
environment does not haveenumerate list
inside. I think, you are asking an X - Y - question :-(