A "maketitle" style for \begin{sfragement}
I am currently sTeXifying Deepak D'Souza's TheoCS course at IISc (see https://gl.mathhub.info/courses/IISc/ATC/course). And he has organized his course into "lecture" which are separate files. In the original (see the deepak branch), he gives the lecture title using maketitle, but in sTeX the natural way of doing so would be via a \begin{sfragment}, so that the lectures can become part of the "course".
It would be nice if we could use {sfragment}[style=maketitle] in the sources at top-level (yes, I know that somehow the document environment is duplicated here) where the style woudl
- use
\maketitleif we are not in an\inputrefand this is the top-level{sfragment} - does whatever
{sfragment}does in this context else.
@Jazzpirate If you make the style, I will document it.
Actually, I think that this could be a good default style.