Skip to content

Commit

Permalink
Version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yves-chevallier committed Aug 6, 2019
1 parent a8a2681 commit 6cec38c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
all: refcard.tex
latexmk -pdf -xelatex $<
all: refcard.tex revision.tex
latexmk -pdf -xelatex $<

revision.tex:
echo "% Autogenerated, do not edit" > $@
echo "\\\\newcommand{\\\\revisiondate}{`git log -1 --format=\"%ad\" --date=short`}" >> $@
echo "\\\\newcommand{\\\\revision}{`git describe`}" >> $@

clean:
latexmk -C

.PHONY: clean
6 changes: 4 additions & 2 deletions refcard.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
\usepackage[scaled=.8]{beramono}
\usepackage{titlesec}

\input{revision}

\lstset{
language=c,
breaklines=true,
Expand Down Expand Up @@ -78,8 +80,8 @@

\begin{multicols*}{3}
\begin{center}
{\Large \bf Carte de référence C99}\\
HEIG-VD -- Version: 2.0\\
{\Large \bf Carte de référence C99} \\
HEIG-VD -- version \revision \ -- \revisiondate \\
\end{center}

Cette carte de référence peut être utilisée durant les travaux écrits et examens
Expand Down

0 comments on commit 6cec38c

Please sign in to comment.