aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore4
-rw-r--r--Makefile5
-rw-r--r--reproducible-paper.tex11
3 files changed, 15 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 5af27e9..60f4275 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,10 @@
*~
+*.txt
*.aux
*.log
*.nav
*.out
*.pdf
*.snm
-*.toc \ No newline at end of file
+*.toc
+git-commit.tex \ No newline at end of file
diff --git a/Makefile b/Makefile
index d77dac2..c935bda 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,15 @@ reproducible-paper.pdf: reproducible-paper.tex \
tex/project-graph.tex tex/git-branch.tex
# We'll run pdflatex two times so the page numbers and
# internal links also work.
+ if [ -d .git ]; then v=$$(git describe --dirty --always --long); \
+ else v=NO-GIT; fi; \
+ echo "\newcommand{\gitcommit}{$$v}" > git-commit.tex
pdflatex reproducible-paper
pdflatex reproducible-paper
# Clean all extra files
.PHONY: clean-latex clean
clean-latex:
- rm -f *.aux *.log *.nav *.out *.snm *.toc
+ rm -f *.aux *.log *.nav *.out *.snm *.toc git-commit.tex
clean: clean-latex
rm *.pdf
diff --git a/reproducible-paper.tex b/reproducible-paper.tex
index 8390955..9617104 100644
--- a/reproducible-paper.tex
+++ b/reproducible-paper.tex
@@ -18,6 +18,9 @@
% Basic LaTeX settings.
\documentclass[9pt,usenames,dvipsnames,aspectratio=169]{beamer}
+% Read the current Git commit information
+\include{git-commit}
+
%% Beamer settings.
%\setbeamertemplate{footline}[frame number]
@@ -35,16 +38,18 @@
reproducible scientific papers)}}
%% Set the author
-\author{
+\author{\vspace{1cm}\\
\href{http://akhlaghi.org}{Mohammad Akhlaghi}\\\vspace{0.5mm}
\footnotesize
Instituto de Astrof\'isica de Canarias ({\scriptsize IAC}), Tenerife, Spain
}
%% Set the date and insitutional logos.
-\date{\scriptsize\vspace{1.8cm}\\
+\date{\footnotesize\vspace{0.2cm}\\
\href{https://www.rd-alliance.org/groups/early-career-and-engagement-ig}{RDA Early Career and Engagement Interest Group},\\ \href{https://www.rd-alliance.org/group/early-career-and-engagement-ig-early-career-networking-group/event/november-ama-call}{AMA Webinar}, November 20th, 2019 \\
- Slides available at: \textcolor{blue}{\url{http://akhlaghi.org/pdf/reproducible-paper.pdf}}\\
+ \tiny\vspace{2mm}
+ Slides available at (this PDF is built from \href{https://gitlab.com/makhlaghi/reproducible-paper-slides}{Git commit} \gitcommit):\\
+ \footnotesize\textcolor{blue}{\url{http://akhlaghi.org/pdf/reproducible-paper.pdf}}\\
\vspace{5mm}
\raisebox{+0.5\height}{\includegraphics[width=2cm]{img/ministerio-ciencia.png}}
\raisebox{+0.3\height}{\includegraphics[width=1.3cm]{img/sundial.png}}