Basically I'm using LaTeX to organize my sheet music. Each piece of music is a subsection, which shows up in the ToC.
What I would like to do is assign a category to each piece of music and then organize these categories in a "List of Categories" at the front of the document much like the "List of Figures".
I haven't found a way to do this, and am wondering if this community could help. I'm competent with LaTeX but am not experienced with making my own commands. Hoping there's a package that could help with this.
EDIT: Per Sean's request, here's an example of what I'd like to see:
List of Levels
Level 6
.1 Prelude in C Minor, Op. 28, no. 20 ........ page #
.2 Sonata in G Major, L 84, K 63 ................ page #
Level 8
.1 Consolations ......................................... page #
Where "Prelude in C Minor, Op. 28, no. 20" is the subsection title. It would be nice to include the section title (which is the composer), but that's not necessary.
What I'd like to do is add a \level{x} command at the end of the \subsection{} command in order to generate this list, where "Level" is the category I'd like to sort by.
EDIT2: Here's a MWE to show the structure of the document. I'd like to add a sort level to each of the subsections to get the "List of Levels." A PDF is added at the end of each subsection using \includepdf{}.
\documentclass[twoside]{book}
\begin{document}
\pagenumbering{roman}
\tableofcontents
\pagenumbering{arabic}
\part{Sheet Music}
\chapter{Classical}
%%%%%%%%%%%%%% Sections by composer
\section{Bach, Johann Sebastian}
\clearpage
\addcontentsline{toc}{subsection}{Prelude BWV 846}
\section{Beethoven, Ludwig van}
\clearpage
\addcontentsline{toc}{subsection}{Pathetique}
\chapter{Romantic}
\section{Debussy, Claude}
\clearpage
\addcontentsline{toc}{subsection}{Suite Bergamasque}
\section{Schumann, Robert}
\end{document}
titlesecpackage (oretoolbox) to add a hook to\subsection, and then try to emulatetoc's behavior. (I'm sure there's a question on that bit somewhere on this site...) – Sean Allred Aug 26 '13 at 16:56I'll pull together an MWE for this.
– chasely Aug 26 '13 at 17:45