Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Nagel
itt
Commits
b6d3970a
Commit
b6d3970a
authored
Oct 31, 2021
by
Lukas Nagel
Browse files
use latexrun wrapper instead of latexmk
better message formatting, does one job well, less bloated
parent
92fce9f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
b6d3970a
...
...
@@ -5,3 +5,4 @@ MindMap.gif
*.log
*.aux
*.fdb_latexmk
*.out/
.gitlab-ci.yml
View file @
b6d3970a
...
...
@@ -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
:
-
D
ocker
file
-
d
ocker
/*
mindmap
:
...
...
docker/Dockerfile
View file @
b6d3970a
...
...
@@ -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
docker/Makefile
View file @
b6d3970a
all
:
Dockerfile install-tlm
n
gr.sh
latexrun
docker build
-t
${DOCKER_TAG}
.
all
:
Dockerfile install-tlmgr.sh
docker build
-t
$
${
DOCKER_TAG
:-
itt
:latest
}
.
clean
:
mindmap/Makefile
View file @
b6d3970a
default
:
MindMap.pdf
latexmk
-c
*
.tex
default
:
MindMap.pdf | polish
all
:
MindMap.pdf MindMap.gif
%.pdf
:
%.tex
latex
mk
--interaction
=
batchmode
-pdf
$<
latex
run
-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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment