diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/.latexmkrc b/.latexmkrc new file mode 100644 index 0000000..e87380c --- /dev/null +++ b/.latexmkrc @@ -0,0 +1,3 @@ +$pdflatex="pdflatex -shell-escape -interaction=nonstopmode -synctex=1 %O %S"; +$out_dir = 'build'; +$pdf_mode = 1; diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..02390c1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.19 + +RUN apk update && apk upgrade +RUN apk add make texlive texmf-dist-pictures +RUN apk add texmf-dist-publishers texmf-dist-science texmf-dist-fontsextra texmf-dist-latexextra +RUN apk add biber texmf-dist-bibtexextra + +# The 'bbm' package insists on generating stuff in the home directory. In +# order to guarantee access to the home directory no matter the user the +# docker container is run with, create a temporary one anyone can write to +RUN mkdir /tmp/home +RUN chmod -R 777 /tmp/home +ENV HOME=/tmp/home + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5d26e3b --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +all: build_folder paper.pdf + +build_folder: + mkdir -p build/build + +paper.pdf: paper.tex + latexmk -pdf paper.tex + +clean: + rm -rf build + diff --git a/README.md b/README.md index e69de29..eb9d1e2 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,23 @@ +# KIT Library Hydration Study + +Latex sources for a paper on the behavior of students at the KIT library with +regard to their water bottle refilling habits. + +## Build + +### Build manually + +```bash +$ make +``` + +### Build using docker + +1. Build docker image + ```bash + $ docker build -f Dockerfile . -t bib-paper + ``` +2. Build examples + ```bash + $ docker run --rm -v $PWD:$PWD -w $PWD -u `id -u`:`id -g` bib-paper make + ```