My aim is to format a text according to the following guidelines:
[as a reference, please cf the pictures below, which are taken from Jean-Michel Bony, Cours d'analyse, Ellipses ed. 2016, actually from its 9th chapter]
- the main numbered "units" are chapters and sections, and they both work as usual;
- each section is made up of "parts" which should be numbered progressively in the form:
- as a "part" of a section, one should be able to use different environments, such as theorem-like environments (for theorems, propositions, corollaries, lemmas, definitions, remarks, etc.), paragraph-like environments, etc.; each environment should be able to keep its "natural properties": for example the spacing before and after (so that the space before a paragraph is greater than the one before a theorem), or the title format (so that a "theorem" should start with
Theorem thm# (thmname).(with "Theorem" before the number), everything bold; a paragraph with
par#. parname, everything bold; an "exercise" with
Exercise exer#., italic; an "exemple" with
exem#. Exemple: exemname, italic; etc.; each part number:
exem#should follow rule 2);
- subsections are "numbered" by letters;
- one should not be forced to number everything (such as in the last picture, where the "parts" Conjugaison complexe et parité, Translation and Dilatation appear to be spaced as each of them were a paragraph, but still they're not numbered).
Is there a simple way to do so? At least is there a simple way to set the same "counter" for everything?
PS: I apologize in advance whether my question is somewhat inappropriate and or ill-formulated; this is my first question ever, please be patient…