Here I queried how to identify the counters for \subsection and \theorem.
The resulting look would be the same (except for the math-specific things, like the content inside a theorem is put in emphasis) if only there is a way to prevent linebreaks after \subsection.
Is there a way to do this? Thanks.