This one should be easy for the gurus…

Suppose I want to define a theorem environment which has a custom numbering scheme. That is, instead of being numbered according to some counter, it is numbered according to a passed parameter. So writing something like

\begin{customtheorem}{8}
   Text.
\end{custom theorem}


would produce

Theorem 8. Text.

I realize I could define a new environment on my own, but then the header will be bold, or small caps, or whatever I defined it to be, and so may differ from the rest of the document if I switch documentclass. So I would like something that also matches the regular theorem headers.

Thanks in advance for any ideas.


Question: Is there Qt Creator documentation available in a ubuntu or debian package?
Answer: eike> AkivaAvraham: run "make -j1 docs" in your qt creator build directory

eike> and then in Qt Creator Options > Help > Documentation, add /shared/qtcreator/doc/qtcreator-dev.qch

eike> (that file is also in the shipped qt creator binaries from qt.io, but you have to register it manually