(See earlier edits if needed, but this is my cleanest version yet. References: Polyglot note-keeping?, comment package, TeX FAQ: Conditional compilation and “comments”)
This can be solved with a combination of the verbatim and extract packages. While building the PDF, the extract package will simultaneously create a synopsis.tex file with just the synopses and document divisions extracted. Build this synopsis.tex file, and you'll have your outline.
Original document source:
\documentclass{article}
% In this file, make a new comment-like environment named 'synopsis':
\usepackage{verbatim}
\let\synopsis\comment
\let\endsynopsis\endcomment
% Extract synopsis environments, \section commands, and \tableofcontents
% commands into a separate synopsis.tex file. In that file, a synopsis
% environment will be a simple semantic environment with no extra decoration.
\usepackage[active,
generate=synopsis,
extract-env={synopsis},
extract-cmd={section},
extract-cmdline={tableofcontents}]{extract}
\begin{extract}
\newenvironment{synopsis}{}{}
\end{extract}
% Here is the real document, with inline synopses:
\begin{document}
\tableofcontents
\section{Fourier Series}
\begin{synopsis}
A Fourier series is periodic, and made up of orthogonal $\sin$ and $\cos$ functions.
\end{synopsis}
The Fourier series has the form:
[
\frac{a_0}{2} +
\sum_{n=1}^{\infty} \left[ a_n \cos {\frac{2 n \pi}{T} t} +
b_n \sin {\frac{2 n \pi}{T} t} \right]
]
where $a_n$ and $b_n$ are called Fourier coefficients of the Fourier series
of the function $f(x)$.
\end{document}
Resulting PDF:

Generated synopsis.tex:
%%
%% This is file, `synopsis.tex',
%% generated with the extract package.
%%
%% Generated on : 2012/04/02,18:26
%% From source : 50099.tex
%% Using options: active,generate=synopsis,extract-env={synopsis},extract-cmd={section},extract-cmdline={tableofcontents}
%%
\documentclass{article}
\newenvironment{synopsis}{}{}
\begin{document}
\tableofcontents
\section{Fourier Series}
\begin{synopsis}
A Fourier series is periodic, and made up of orthogonal $\sin$ and $\cos$ functions.
\end{synopsis}
\end{document}
and PDF:

\commentand\endcommenttype of commands are how environments work on a lower level. Try\itemize \item Foo \enditemizein a regular document to see. Regardless, I don't know if there's any way of convincing LaTeX to suppress otherwise untagged content by default. – Mike Renfro Mar 31 '12 at 00:54xcomment, I found this page in the TeX FAQ, and added a second version to my answer that should match the requirements. – Mike Renfro Apr 01 '12 at 22:58extractpackage! – mbork Apr 01 '12 at 23:12'\begin{document}'
'\tableofcontents'
'\section[Heading 1]{\Sectionformat {Heading 1}{1}}'
– louis cypher Apr 05 '12 at 15:40scrbookor your other settings, then you'll need to edit your question to include a minimal working example (MWE) showing the problem you're running into, or post a second question about this specific problem. – Mike Renfro Apr 05 '12 at 15:46{\Sectionformat {title of the section}{section number}}. Any idea how to get rid of those? – louis cypher Jan 08 '16 at 17:36\sectionformatinstead of\Sectionformat, I can't make a MWE fail with my setup. You really need to make a MWE that shows the error, and probably make a new question (I'm the only one who's likely to see this, and your new question can link this one for context). – Mike Renfro Jan 09 '16 at 01:07