summaryrefslogtreecommitdiff
path: root/src/index.tex
blob: 02b007b66d959b1e01b6e63c441e288720ec14a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\maketitle

\newcounter{firstOfTheMonth}

\foreach\Year in {2023,...,2023}{
  \foreach\Month in {January,February,March}{
    \setcounter{firstOfTheMonth}{0}

    \foreach\Day in {1,...,31}{
      \ifnum \value{firstOfTheMonth}=0
      \chapter{\Month}
      \setcounter{firstOfTheMonth}{1}
      \else \fi

      \IfFileExists{\Year/\Month/\Day}{
        \openin\mysource=\Year/\Month/\Day.tex

        \read\mysource to \firstline

        \closein\mysource

        \xdef\writetitle{1}

        \begin{logEntry}{\Month\ \Day,\ \Year}{\firstline}
          \xdef\writetitle{0}

          \input{\Year/\Month/\Day}
          \newline
        \end{logEntry} 
      }{}
    }  
  }
}