Add maths pour l'info

This commit is contained in:
flyingscorpio@pinebookpro 2021-09-28 13:59:35 +02:00
parent 03b1c455ad
commit e8f470b290
2 changed files with 33 additions and 0 deletions

16
maths-pour-info/Makefile Normal file
View file

@ -0,0 +1,16 @@
filename=$(shell basename $(shell pwd))
timestamp=$(shell date +%Y-%m-%d_%H:%M)
all: snapshot
snapshot: main.tex
@latexmk -pdf main.tex
@if ! cmp --silent build/main.pdf ${filename}_*.pdf; then \
touch ${filename}_tmp.pdf; \
rm ${filename}*.pdf; \
cp build/main.pdf ${filename}_${timestamp}.pdf; \
echo "Updated"; \
fi
clean:
@rm -rf build 2>/dev/null

17
maths-pour-info/main.tex Normal file
View file

@ -0,0 +1,17 @@
\documentclass[a4paper,french]{article}
\title{Mathématiques pour l'informatique}
\author{}
\date{Dernière compilation~: \today{} à \currenttime}
\usepackage{../cours}
\begin{document}
\maketitle
\tableofcontents
\clearpage
\section{}
\end{document}