I need to find a command/environment that allows me to nest a [sub]section one level deeper than the level of the parent [sub]section.
For example, given this syntax,
\section{Foo}
\createanestedsection{Bar}
\subsection{Zoo}
\createanestedsection{Bar}
I'd like to obtain this output:
1. ...... Foo
1.1 ..... Bar
1.2 ..... Zoo
1.2.1 ... Bar
Is there anything like that available ?
Regards, R

\levelcommand (+1 when nested). Or am I off-topic ? – Dec 19 '14 at 22:02\sectionet al. are not environments, but merely macros. Thus, there is no need to "leave" anything, but merely to issue the macro one level down from the current level. – Steven B. Segletes Dec 19 '14 at 22:15