-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconvert_doc.sh
More file actions
executable file
·52 lines (38 loc) · 953 Bytes
/
convert_doc.sh
File metadata and controls
executable file
·52 lines (38 loc) · 953 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
partie_pdf() {
sed 's/─/-/g' *.md > tmp.md
pandoc tmp.md -o $(echo $1).pdf
rm tmp.md
}
# cover
###################
cat << EOF > cover.tex
\documentclass[12pt, letter ]{article}
\usepackage[utf8]{inputenc}
\title{OpenStack : la pertinence de l'utilisation future d'OpenStack en IaaS pour l'université de Limoges}
\author{Philippe Krejčí}
\date{Juin 2020}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\end{document}
EOF
texi2pdf cover.tex
# README
#################
pandoc README.md -o README.pdf --pdf-engine=xelatex
# 0_Intro
###################
cd doc/0_Intro
partie_pdf 0_Intro
cd ../..
# 1_OpenStack
###################
cd doc/1_OpenStack
partie_pdf 1_OpenStack
cd ../..
# unification
####################
pdfunite cover.pdf README.pdf doc/0_Intro/0_Intro.pdf doc/1_OpenStack/1_OpenStack.pdf OpenStack-prospection.pdf
rm cover.* README.pdf doc/0_Intro/0_Intro.pdf doc/1_OpenStack/1_OpenStack.pdf