I often use theorems on LaTeX and have defined various kinds of them. At times, however, it is best not to define a specific theorem which would otherwise be a once-in-a-long-time usage, as for example with the "Fundamental Theorem of Algebra" or the "Hairy Ball Theorem" and such. A pdf I found on the Internet suggests the following code:
\makeatletter
\newtheorem{@thmattr}[thm]{\theorem@attr}
\newenvironment{thmattr}[1]
{\def\theorem@attr{#1}\begin{@thmattr}}
{\end{@thmattr}}
\makeatother
The only problem is that, besides needing a definition of a counter thm
(which can easily be solved by removing the [thm]
), this gives such theorems a counter. So I get "Fundamental Theorem of Algebra 1", which doesn't make sense since there is only one theorem with that name. So the question is: how do I make a theorem with no counter?
Best Answer
If you have a single named theorem, the easiest way is
so that
will produce what you want.
If you have several named theorems, then a strategy similar to what you found will work:
and the input will be
You can also give the attribution in the usual way:
Complete example; choose your preferred strategy.