From 0acc26296f54236d2673578da23d453b54fd2786 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 10 Sep 2018 14:48:05 +0200 Subject: added pdf: rule in makefile --- README.md | 2 -- README.tex | 3 ++- _preamble.tex | 2 ++ ls-R | 2 +- makefile | 8 ++++++++ preamble.tex | 2 -- 6 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 _preamble.tex delete mode 100644 preamble.tex 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 Présentation ============ - -Ceci 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 @@ \title{Cours sur \LaTeX\ et Python} \author{Robert Alessi} +\date{} \begin{document} \maketitle \section{Présentation} -Ceci est le tout premier fichier. Il faut maintenant commencer. + \end{document} diff --git a/_preamble.tex b/_preamble.tex new file mode 100644 index 0000000..c1a7461 --- /dev/null +++ b/_preamble.tex @@ -0,0 +1,2 @@ +\usepackage{tikz} +\usepackage[breakable, skins, listings, xparse]{tcolorbox} diff --git a/ls-R b/ls-R index 7a01cec..566e52b 100644 --- a/ls-R +++ b/ls-R @@ -1,4 +1,4 @@ ./makefile -./preamble.tex +./_preamble.tex ./README.md ./README.tex diff --git a/makefile b/makefile index 0844d8f..f05776c 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,13 @@ all: clean +pdf: clean + find ./* -type f | grep -v '_.*.tex' | grep 'tex$$' > texfiles + while read l ; do \ + latexmk -cd -lualatex $$l ; \ + done < texfiles + while read l ; do \ + latexmk -c -cd -lualatex $$l ; \ + done < texfiles clean: rm -rf .backup find -iname "*~" | xargs rm -rf diff --git a/preamble.tex b/preamble.tex deleted file mode 100644 index c1a7461..0000000 --- a/preamble.tex +++ /dev/null @@ -1,2 +0,0 @@ -\usepackage{tikz} -\usepackage[breakable, skins, listings, xparse]{tcolorbox} -- cgit v1.2.3