# Package with an environment-based sectioning mechanism?

Is there any package for LaTeX that performs sectioning using environments, where doing something like

\begin{section}[Section Title]
\begin{section}[Subsection Title]
\begin{section}[Subsubsection Title]
\begin{section}[Subsubsubsection Title]
\end{section}
\end{section}
\end{section}
\end{section}


does the obvious thing (please infer from the stuff in the []'s!)?

-
Just out of interest, may I ask what is your need? –  ℝaphink Sep 4 '11 at 22:38
Well, let's not confuse needs with wants! –  Harry Gindi Sep 4 '11 at 22:39
Have a look at tex.stackexchange.com/questions/12001/…. –  lockstep Sep 4 '11 at 22:40
@Raphink — the general idea with markup like this is that you can move chunks of documents without having to adjust the section levels manually (e.g., all \section -> \subsection, and so on). –  Will Robertson Sep 5 '11 at 2:26
@Will: thanks, that explains. –  ℝaphink Sep 5 '11 at 5:24

## 1 Answer

As mentioned in an answer to the question @lockstep linked above, I have some non-maintained code to attempt this here: http://github.com/wspr/newsec. (Run the .dtx through LaTeX to get the .sty file and the documentation.)

If you do find this useful or otherwise have comments, let me know and I'll consider putting it on CTAN. (Depending how long it takes to tidy up.)

-