Bug 149351

Summary: support for \begin{section}{} \end{section} in structure view
Product: [Applications] kile Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: a minimal example containing a LaTeX file illustrating what needs to be supported

Description Erik Quaeghebeur 2007-08-29 20:03:23 UTC
Version:           1.9.3 (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages
OS:                Linux

LaTeX allows both

\section{name}
text

and

\begin{section}{name}
text
\end{section}

(and similarly for other sectioning commands).

The second form has the advantage that code folding can be used; however,
it is not recognized by Kile as a sectioning command and name is as such
not included as a section in the structure view.

Could this be changed (in a future version) so that Kile also recognizes
the second form?
Comment 1 Erik Quaeghebeur 2007-08-29 20:19:26 UTC
Created attachment 21508 [details]
a minimal example containing a LaTeX file illustrating what needs to be supported
Comment 2 Erik Quaeghebeur 2007-08-30 20:23:29 UTC
I've asked around on comp.text.tex, and it seems that a lot of commands accept the \begin{}--\end{}-format.

Regarding the starred versions of the sectioning commands, these have to be created by a \newenvironment{section*}{\section*}{} invocation.

Link to the comp.text.tex-thread: <http://groups.google.com/group/comp.text.tex/browse_thread/thread/37465847957fd51d/cc5d4b499dca6e90>