Verified Commit d860e346 authored by Martin Isaksson's avatar Martin Isaksson
Browse files

Initial commit

parents
Pipeline #144242501 failed with stage
in 3 minutes and 53 seconds
File added
image: martisak/reproducibleresearch
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- build
compile:
stage: build
before_script:
- sudo apt-get update
- sudo apt-get install -y ruby-full poppler-utils
- gem install bundler
- bundle update
script:
- make pdf
# - make check
artifacts:
paths:
- main.pdf
expire_in: 1 week
\ No newline at end of file
source :rubygems
gem 'rspec'
gem 'pdf-reader'
\ No newline at end of file
SOURCES=main.tex
PDF_OBJECTS=$(SOURCES:.tex=.pdf)
LATEXMK=latexmk
LATEXMK_OPTIONS=-pdflatex -bibtex
DOCKER=docker
DOCKER_IMAGE=martisak/reproducibleresearch
DOCKER_COMMAND=run --rm
DOCKER_MOUNT=-v`pwd`:/data
all: render
pdf: $(PDF_OBJECTS)
%.pdf: %.tex
echo $<
$(LATEXMK) $(LATEXMK_OPTIONS) $<
clean:
-$(LATEXMK) -bibtex -C main
dist-clean: clean
-rm $(FILENAME).tar.gz
render:
$(DOCKER) $(DOCKER_COMMAND) $(DOCKER_MOUNT) $(DOCKER_IMAGE) \
make -C /data pdf
\ No newline at end of file
This is the end.
\ No newline at end of file
See~\cite{DBLP:journals/cj/Knuth84}.
\begin{figure}
\centering
\includegraphics[width=.8\linewidth]{figures/example}
\caption{Example figure.}
\label{fig:duck}
\end{figure}
\ No newline at end of file
@article{DBLP:journals/cj/Knuth84,
author = {Donald E. Knuth},
title = {Literate Programming},
journal = {Comput. J.},
volume = {27},
number = {2},
pages = {97--111},
year = {1984},
url = {https://doi.org/10.1093/comjnl/27.2.97},
doi = {10.1093/comjnl/27.2.97},
timestamp = {Wed, 14 Nov 2018 10:17:27 +0100},
biburl = {https://dblp.org/rec/journals/cj/Knuth84.bib},
bibsource = {dblp computer science bibliography, https://dblp.org}
}
\ No newline at end of file
\documentclass[10pt, a4paper]{article}
\usepackage{graphicx}
\title{Gitlab CI for LaTeX}
\author{Martin Isaksson}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
\end{abstract}
\section{Introduction}
\input{chapters/introduction.tex}
\section{Conclusions}
\input{chapters/conclusion.tex}
\bibliographystyle{abbrv}
\bibliography{main}
\end{document}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment