TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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]    

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

share|improve this question
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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.