From 99c65ceff835a5a695dd71b09feee38035b1bc91 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic <philip.kaludercic@fau.de> Date: Fri, 22 Mar 2024 14:12:52 +0100 Subject: [PATCH] Generate the Git bundle while building the document --- README.md | 5 ++--- master.tex | 20 +++++++------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 216f770..e9440f5 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,9 @@ always appricaited. To build this document, it should suffice to have a basic LaTeX installation and then invoke - $ git bundle create algprog.pack master - $ pdflatex master.tex + $ pdflatex --shell-escape master.tex -and repeat the last command until the output reaches a fixpoint. The +and repeat the command until the output reaches a fixpoint. The resulting document should appear in `master.pdf`. A pre-rendered version can also be found at <https://wwwcip.cs.fau.de/~oj14ozun/src+etc/algprog-summary.pdf>, diff --git a/master.tex b/master.tex index cd4048a..e906ba9 100644 --- a/master.tex +++ b/master.tex @@ -117,6 +117,7 @@ \AtBeginBibliography{\footnotesize} %% hack to attach the git bundle +\immediate\write18{/usr/bin/env git bundle create algprog.pack master} \usepackage{attachfile} \title{ @@ -139,19 +140,11 @@ \small Last updated for the Winter Semester 2023/24\footnote{ The \LaTeX{} sources should be available under - \url{https://gitlab.cs.fau.de/oj14ozun/algprog-summary}, - % To attach the source, package everything into an archive, and - % then use[0] - % - % $ git bundle create algprog.pack master - % - % before setting the final PDF. - % - % [0] https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ - or ought also be accessible as a PDF attachment: - \attachfile[icon=Paperclip,zoom=false,description=A Git bundle of the - document sources.]{algprog.pack}, see \texttt{git-bundle(1)}. The - document and the source are published under the terms and + \url{https://gitlab.cs.fau.de/oj14ozun/algprog-summary}, or ought + also be accessible as a PDF attachment: + \attachfile[icon=Paperclip,zoom=false,description=A Git bundle of + the document sources.]{algprog.pack}, see \texttt{git-bundle(1)}. + The document and the source are published under the terms and conditions of \href{https://creativecommons.org/licenses/by-sa/4.0/}{CC BY-SA 4.0}.}, last typeset on \today. @@ -191,4 +184,5 @@ %%% Local Variables: %%% mode: latex %%% TeX-master: t +%%% TeX-command-extra-options: "-shell-escape" %%% End: -- GitLab