Add maths pour l'info
This commit is contained in:
parent
03b1c455ad
commit
e8f470b290
2 changed files with 33 additions and 0 deletions
16
maths-pour-info/Makefile
Normal file
16
maths-pour-info/Makefile
Normal 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
17
maths-pour-info/main.tex
Normal 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}
|
Loading…
Reference in a new issue