Possible Duplicate:
Tool for cleaning LaTeX code
Beamer presentation files are very structures, they have sections, in which you find subsections, which include frames that have titles and then itemizations lists consisting of many items.
It would be nice to have a program that auto-indents the input file based on this structure.
I have output of the following sort in mind:
\begin{frame}{title}
{subtitle}
\begin{itemize}
\item My first item
\item My second item
\item My third and very very long third item which occupies more than
my pre-specified line length which is (say) 80 characters.
\item My fourth item comprising a description
\begin{description}
\item[First Item]
Described here.
\end{description}
\end{itemize}
\end{frame}