diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-09-10 14:48:05 +0200 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-09-10 14:48:05 +0200 |
commit | 0acc26296f54236d2673578da23d453b54fd2786 (patch) | |
tree | 90ac87e95be5c542d1b126ef9c7931a4703371e7 | |
parent | 16a82c52098043187ffd8124680c7c27a800b140 (diff) | |
download | courses-0acc26296f54236d2673578da23d453b54fd2786.tar.gz |
added pdf: rule in makefile
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | README.tex | 3 | ||||
-rw-r--r-- | _preamble.tex (renamed from preamble.tex) | 0 | ||||
-rw-r--r-- | ls-R | 2 | ||||
-rw-r--r-- | makefile | 8 |
5 files changed, 11 insertions, 4 deletions
@@ -6,5 +6,3 @@ title: Cours sur LaTeX et Python | |||
6 | 6 | ||
7 | Présentation | 7 | Présentation |
8 | ============ | 8 | ============ |
9 | |||
10 | Ceci est le tout premier fichier. Il faut maintenant commencer. | ||
@@ -3,11 +3,12 @@ | |||
3 | 3 | ||
4 | \title{Cours sur \LaTeX\ et Python} | 4 | \title{Cours sur \LaTeX\ et Python} |
5 | \author{Robert Alessi} | 5 | \author{Robert Alessi} |
6 | \date{} | ||
6 | 7 | ||
7 | \begin{document} | 8 | \begin{document} |
8 | \maketitle | 9 | \maketitle |
9 | 10 | ||
10 | \section{Présentation} | 11 | \section{Présentation} |
11 | Ceci est le tout premier fichier. Il faut maintenant commencer. | 12 | |
12 | 13 | ||
13 | \end{document} | 14 | \end{document} |
diff --git a/preamble.tex b/_preamble.tex index c1a7461..c1a7461 100644 --- a/preamble.tex +++ b/_preamble.tex | |||
@@ -1,4 +1,4 @@ | |||
1 | ./makefile | 1 | ./makefile |
2 | ./preamble.tex | 2 | ./_preamble.tex |
3 | ./README.md | 3 | ./README.md |
4 | ./README.tex | 4 | ./README.tex |
@@ -1,5 +1,13 @@ | |||
1 | all: clean | 1 | all: clean |
2 | 2 | ||
3 | pdf: clean | ||
4 | find ./* -type f | grep -v '_.*.tex' | grep 'tex$$' > texfiles | ||
5 | while read l ; do \ | ||
6 | latexmk -cd -lualatex $$l ; \ | ||
7 | done < texfiles | ||
8 | while read l ; do \ | ||
9 | latexmk -c -cd -lualatex $$l ; \ | ||
10 | done < texfiles | ||
3 | clean: | 11 | clean: |
4 | rm -rf .backup | 12 | rm -rf .backup |
5 | find -iname "*~" | xargs rm -rf | 13 | find -iname "*~" | xargs rm -rf |