aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2018-09-10 14:48:05 +0200
committerRobert Alessi <alessi@robertalessi.net>2018-09-10 14:48:05 +0200
commit0acc26296f54236d2673578da23d453b54fd2786 (patch)
tree90ac87e95be5c542d1b126ef9c7931a4703371e7
parent16a82c52098043187ffd8124680c7c27a800b140 (diff)
downloadcourses-0acc26296f54236d2673578da23d453b54fd2786.tar.gz
added pdf: rule in makefile
-rw-r--r--README.md2
-rw-r--r--README.tex3
-rw-r--r--_preamble.tex (renamed from preamble.tex)0
-rw-r--r--ls-R2
-rw-r--r--makefile8
5 files changed, 11 insertions, 4 deletions
diff --git a/README.md b/README.md
index e62684b..e946d8b 100644
--- a/README.md
+++ b/README.md
@@ -6,5 +6,3 @@ title: Cours sur LaTeX et Python
6 6
7Présentation 7Présentation
8============ 8============
9
10Ceci est le tout premier fichier. Il faut maintenant commencer.
diff --git a/README.tex b/README.tex
index d52590f..293e025 100644
--- a/README.tex
+++ b/README.tex
@@ -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}
11Ceci 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
diff --git a/ls-R b/ls-R
index 7a01cec..566e52b 100644
--- a/ls-R
+++ b/ls-R
@@ -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
diff --git a/makefile b/makefile
index 0844d8f..f05776c 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,13 @@
1all: clean 1all: clean
2 2
3pdf: 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
3clean: 11clean:
4 rm -rf .backup 12 rm -rf .backup
5 find -iname "*~" | xargs rm -rf 13 find -iname "*~" | xargs rm -rf