I'm trying to rewrite section commands using LaTeX3. For testing purpose, what I did is basically this:
\ProvideDocumentCommand \p { o m } { \IfNoValueTF{#1} { % \paragraph{\textsf{#2}} } { % \paragraph[#1]{\textsf{#2}} } } But I want to rewrite the \paragraph command so I could reuse any customization in a standard way. I've done some digging and obviously I need to get a grip on expl3, I saw multiple ways of doing this, like here but I'm trying to reach something that might be distributed as a .sty class. I dig into skrapport class, but there's too much information. Is there anyone that could explain me step by step the process from the \ProvidesExplClass to command rewriting like any kind of section or a simple \cite?
