diff --git a/manual/.gitignore b/manual/.gitignore index 14f1d99..e07bc0d 100644 --- a/manual/.gitignore +++ b/manual/.gitignore @@ -4,4 +4,5 @@ _minted-manual *.log *.out *.pre -svg-inkscape \ No newline at end of file +svg-inkscape +version \ No newline at end of file diff --git a/manual/Makefile b/manual/Makefile index f07674c..6d10795 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -2,4 +2,10 @@ manual.pdf: manual.tex + @grep "__version__.*=" ../esds/__init__.py|grep -o "\".*\""|tr -d "\"" > version pdflatex -shell-escape manual + +clean: + - rm manual.pdf + +.PHONY: clean diff --git a/manual/manual.pdf b/manual/manual.pdf index 31d5574..0fe5cd8 100644 Binary files a/manual/manual.pdf and b/manual/manual.pdf differ diff --git a/manual/manual.tex b/manual/manual.tex index a7a3d21..0de486b 100644 --- a/manual/manual.tex +++ b/manual/manual.tex @@ -14,6 +14,7 @@ % Commands \newcommand{\stateoff}{"\textit{off}"\xspace} \newcommand{\stateon}{"\textit{on}"\xspace} +\newcommand{\version}{\InputIfFileExists{version}{}{version}} % Document \begin{document} @@ -23,18 +24,19 @@ \begin{titlepage} \begin{center} \Huge - \textbf{\fontsize{90}{60}\selectfont ESDS User Manual\\} - \vspace{0.5cm} - {\Large \textbf{\today}} - \vspace{3cm} + \textbf{\fontsize{90}{60}\selectfont User Manual\\} + \vspace{0.6cm} + \textbf{\LARGE - ESDS v\version - \\} + {\Large \today} + \vspace{2cm} {\includesvg[scale=0.8]{../icon.svg}} - \vspace{3cm} + \vspace{2cm} \LARGE \textbf{ESDS an Extensible Simulator for Distributed Systems\\} \vspace{0.5cm} - \textbf{Written by Loic Guegan and Issam Raïs} + \textit{Written by Loic Guegan and Issam Raïs} \end{center} \end{titlepage} \pagebreak