Bug 149351 - support for \begin{section}{} \end{section} in structure view
Summary: support for \begin{section}{} \end{section} in structure view
Status: REPORTED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-29 20:03 UTC by Erik Quaeghebeur
Modified: 2024-03-24 04:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
a minimal example containing a LaTeX file illustrating what needs to be supported (748 bytes, text/x-tex)
2007-08-29 20:19 UTC, Erik Quaeghebeur
Details

Note You need to log in before you can comment on or make changes to this bug.
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>