I created a file version.tex with a git log message. This .tex-file is then included in my main.tex file like this:
\renewcommand{\footsnippy}{%
Author Name,
Title of my Book, %
\input{version}
}
because footsnippy is used by the document class to print the current date, author, title -- and now the git log -- onto each page.
But: LaTeX now is slowed down quite a bit, because it seems that the \input is now executed on every page. Hrm...
Look:
...
) [11] (./version.tex) [12] (./version.tex) [13] (./version.tex) [14]
(./version.tex) [15] (./version.tex) [16] (./version.tex) [17] (./version.tex)
[18] (./version.tex) [19] (./version.tex) [20] (./version.tex) [21]
(./version.tex) [22]) (./wikitex/00Vorwort.tex (./version.tex) [23]
(./version.tex) [24]) (./version.tex) [25] (./wikitex/teil01beginn.tex
(./version.tex) [26]
...
Is there any way I can circumvent that the file is read again and again?