[Tex/LaTex] Writing a personal diary / blog in LaTeX

table of contentstemplates

I want to write a (math-heavy) personal diary in LaTex. I thought of each entry be a section; something like

\section{Some title, 2017-01-13}

In addition, and as in a blog, I would like to categorize my entries (via a special command?) and would like LaTex to generate a ToC for every category.


Category Calculus

Calculus, 2016-09-01
Derivatives, 2016-10-01

Category Algebra

Vectors, 2016-12-02
Matrices, 2017-01-02

How can I achieve this? I'm also grateful for pointers to similar projects (templates).

Best Answer

A proposition, with some slightly redefined \section command, getting an 2nd optional argument at the end, meant for the category -- the default value for this optional argument is Calculus here.

The ToC is generated as a separated index, which has the advantage of sorting with `makeindex.

Please note that there are no fancy decorations here for the section title etc.






  \index[cat]{{\large\textbf{Category #4}\vskip0.5\baselineskip}!#3}%


\section{Vector algebra, \today}[Linear Algebra]

\section{Calculus, 2017-01-14}

\section{Derivatives, 2017-01-13}

\section{Tangents, 2017-01-5}

\section{Matrices, 2016-12-31}[Linear Algebra]



enter image description here