Commit b6d3970a authored by Lukas Nagel's avatar Lukas Nagel
Browse files

use latexrun wrapper instead of latexmk

better message formatting, does one job well, less bloated
parent 92fce9f2
......@@ -5,3 +5,4 @@ MindMap.gif
*.log
*.aux
*.fdb_latexmk
*.out/
......@@ -21,7 +21,7 @@ default:
DOCKER_TAG: ${CI_REGISTRY}/${CI_CONTAINER}
script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- make docker
- docker build -t ${DOCKER_TAG:-itt:latest} .
- docker push ${DOCKER_TAG}:latest
rebuild-docker-manual:
......@@ -34,7 +34,7 @@ rebuild-docker-onchange:
refs:
- master
changes:
- Dockerfile
- docker/*
mindmap:
......
......@@ -5,15 +5,17 @@ ENTRYPOINT ["/bin/sh", "-c"]
# install make
RUN apk add --no-cache make
# install imagemagick for pdf to png
# install imagemagick for image conversion
RUN apk add --no-cache imagemagick
# install tlmgr
COPY install-tlmgr.sh /tmp/install-tlmgr.sh
RUN chmod +x /tmp/install-tlmgr.sh && /tmp/install-tlmgr.sh
# install latexmk
RUN tlmgr install latexmk
# install standalone document class
RUN tlmgr install standalone
# istall latexrun, which needs python3
RUN apk add --no-cache python3
RUN wget -q https://github.com/aclements/latexrun/raw/master/latexrun -O /bin/latexrun
RUN chmod +x /bin/latexrun
all: Dockerfile install-tlmngr.sh latexrun
docker build -t ${DOCKER_TAG} .
all: Dockerfile install-tlmgr.sh
docker build -t $${DOCKER_TAG:-itt:latest} .
clean:
default: MindMap.pdf
latexmk -c *.tex
default: MindMap.pdf | polish
all: MindMap.pdf MindMap.gif
%.pdf: %.tex
latexmk --interaction=batchmode -pdf $<
latexrun -o $@ -O $*.out $<
%.gif: %.pdf
convert \
......@@ -14,6 +13,11 @@ all: MindMap.pdf MindMap.gif
-background transparent \
$< -border 400x0 $@
clean:
latexmk -C *.tex
polish:
rm -rf MindMap.out
clean: polish
rm -f *.pdf
rm -f *.gif
.PHONY: polish
Supports Markdown
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