2

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!)?

5
  • Just out of interest, may I ask what is your need?
    – raphink
    Sep 4, 2011 at 22:38
  • Well, let's not confuse needs with wants! Sep 4, 2011 at 22:39
  • 5
    Have a look at tex.stackexchange.com/questions/12001/….
    – lockstep
    Sep 4, 2011 at 22:40
  • 1
    @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). Sep 5, 2011 at 2:26
  • The recent release of the coseoul package may be of interest. Although it does not provide sectioning environments, a relative sectioning style through levels is implemented: \levelup{...}, \leveldown{...}, \levelstay{...} and others.
    – Werner
    Sep 7, 2011 at 16:13

1 Answer 1

3

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.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .