sTeX icon indicating copy to clipboard operation
sTeX copied to clipboard

A "maketitle" style for \begin{sfragement}

Open kohlhase opened this issue 2 years ago • 1 comments

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 \maketitle if we are not in an \inputref and this is the top-level {sfragment}
  • does whatever {sfragment} does in this context else.

@Jazzpirate If you make the style, I will document it.

kohlhase avatar Mar 15 '24 05:03 kohlhase

Actually, I think that this could be a good default style.

kohlhase avatar Mar 16 '24 03:03 kohlhase