# Is it possible to close a subsection?

So I want to insert text that's not related to a subsection, but rather to the top section the subsection parts from. This is the idea:

\section{fruits}
All these are fruits:
\subsection{orange}
color orange
\subsection{grape}
color purple
\subsection{banana}
Yellow and long fruit
\end{subsection}
a fruit is a part of a flowering plant that derives from specific tissues of the flower, one or more ovaries, and in some cases accessory tissues
\section{foo}
\subsection{unrelated bar}


So what I want to be able to do, is make a short description, a few examples with subsections and explanations about them, and then, close the last subsection, and continue the explanation on what fruits are and, taking stuff from subsections, draw similarities. Is this possible? Thanks!

Edit: It has been suggested to use description and enumerate, but the problem here is that I want the subsections to contain item lists, descriptions and enumerations, and I also want the subsections to appear in the ToC so people can quickly jump to each detailed description of each fruit (in this example).

Edit 2: This is the ideal output generated with MS Word (I'm not sure, I'm assuming the person has used Word).

As you can see, there's an space before after the end of the subsection 5.6, like if it was starting a new section, as well as the adequate indentation.

-
Not really. Of course you can do it anyway, just putting in perhaps a small vertical space or other marker, but latex sectioning only really marks the beginning of each section there is no end marker. –  David Carlisle Mar 10 '13 at 11:45
May be you need descriptions –  Harish Kumar Mar 10 '13 at 11:46
I would use an enumerate instead of subsectios, or a last subsection called "Putting all toghether" or whatever is appropiate. –  JLDiaz Mar 10 '13 at 11:49
Do you have a idea how the formatted output should look like? –  Hendrik Vogt Mar 10 '13 at 12:00
+1 A very good observation about typesetting! Similar: You cannot insert subsection-less (section-level) text in between subsections. –  Lover of Structure Mar 10 '13 at 14:49

What you aim at is not the usual structure. Usually, everything that is general to one section comes before all subsections.

A simple vertical space will not make it clear to the reader, that the former subsection has ended and we're structurally back on the section level. You should support your reader further.

Some possibilities:

• Start a new subsection, that makes it clear. Something like "In general" or so.
• Add vertical side lines or background or at least a horizontal line after the last specific subsection.

\documentclass{article}
\usepackage{environ}
\usepackage{xcolor}
\NewEnviron{specifics}{\colorbox{red}{\begin{minipage}{\textwidth}\BODY\end{minipage}}\par\noindent}
\begin{document}
\section{fruits}
\begin{specifics}
All these are fruits:
\subsection{orange}
color orange
\subsection{grape}
color purple
\subsection{banana}
Yellow and long fruit
\end{specifics}
a fruit is a part of a flowering plant that derives from specific tissues of the flower, one or more ovaries, and in some cases accessory tissues
\section{foo}
\subsection{unrelated bar}
\end{document}


1. Fruits  -- 15

1.1 Orange -- 15

1.2 Grape -- 16

1.3 Banana -- 17

2. Foo -- 20


What happens on pages 18 and 19. Is it about Bananas or Fruits in general?

-
I don't know, why the code is not properly formatted. I clicked on the button. I also don't know why Foo on the second last line is 1. although I entered 2. –  Toscho Mar 10 '13 at 13:03
Ideally, in page 17, it would be a detailed description of bananas and its propiertries (taking more pages if necessary, say part of page 18). Then, in page 18 through page 19 starts the drawing of conclusion and similarities between oranges, grapes and bananas, and a general view of this all. Maybe what I should do is put the similarities and conclusions in the upper section, with "fruits"? Is that the best approach even though the reader doesn't know what oranges, grapes and bananas are? –  Pyrobisqit Mar 10 '13 at 13:05
I finally wrote \subsection{Conclusion} and there, drew similarities after analyzing each upper subsection. I think it's the most sane way to not confuse the reader. –  Pyrobisqit Mar 10 '13 at 13:14
@Toscho: That's a markdown quirk, see this answer on meta, "Code blocks after lists". –  Hendrik Vogt Mar 10 '13 at 13:20