How can I go from this....
Code:
Fruit, Apples, Fuji
Fruit, Apples, Granny Smith
Fruit, Apples, Red Delicious
Animals, Dogs, Black Lab
...to this...
Code:
\chapter{Fruit}
\section{Apples}
\begin{itemize}
\item Fuji
\item Granny Smith
\item Red Delicious
\end{itemize}
\chapter{Animals}
\section{Dogs}
\begin{itemize}
\item Black Lab
\end{itemize}
...?
Is this something that LaTeX can do or do I need to write a script that converts the CSV into a TeX file?