Skip to content

Commit

Permalink
FIX #87: Add tectonic to extra
Browse files Browse the repository at this point in the history
  • Loading branch information
daamien committed May 5, 2024
1 parent 6ed94d0 commit 969e10a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
8 changes: 8 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,11 @@ RUN mkdir -p ${TEMPLATES_DIR} && \
ARG EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template
ARG EISVOGEL_VERSION=v2.4.0
RUN wget ${EISVOGEL_REPO}/${EISVOGEL_VERSION}/eisvogel.tex -O ${TEMPLATES_DIR}/eisvogel.latex

# tectonic
ARG TECTONIC_REPO=https://github.com/tectonic-typesetting/tectonic/releases/download/
ARG TECTONIC_VERSION=0.15.0
ARG TECTONIC_TARBALL=tectonic-${TECTONIC_VERSION}-x86_64-unknown-linux-gnu.tar.gz
RUN wget ${TECTONIC_REPO}/tectonic%40${TECTONIC_VERSION}/${TECTONIC_TARBALL} \
&& tar xvzf ${TECTONIC_TARBALL} -C /usr/local/bin/ \
&& rm -f ${TECTONIC_TARBALL}
3 changes: 2 additions & 1 deletion docs/extra.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ and a curated selection of components:
* Beamer Themes: [beamer-metropolis][]
* Pandoc filters: [pandoc-latex-environment][]
* Open Source Fonts: Font Awesome, Source Code Pro, Source Sans Pro

* PDF engines: [Tectonic][]

[Eisvogel]: https://github.com/Wandmalfarbe/pandoc-latex-template
[beamer-metropolis]: https://github.com/matze/mtheme
[pandoc-latex-environment]: https://github.com/chdemko/pandoc-latex-environment
[Tectonic]: tectonic-typesetting.github.io

[pandoc]: https://pandoc.org/
[LaTeX]: https://latex-project.org/
Expand Down
8 changes: 7 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ EXTRA_CMD = docker run --rm \
--fail-if-warnings

.PHONY: test-extra
test-extra: output/eisvogel.pdf output/beamertheme-metropolis.pdf
test-extra: output/eisvogel.pdf output/beamertheme-metropolis.pdf output/eisvogel-tectonic.pdf

output/eisvogel.pdf: eisvogel.md
$(EXTRA_CMD) $< \
Expand All @@ -202,6 +202,12 @@ output/beamertheme-metropolis.pdf: beamertheme-metropolis.md
--variable=theme:metropolis \
--variable=themeoptions:numbering=none

output/eisvogel-tectonic.pdf: eisvogel.md
$(EXTRA_CMD) $< \
--output=$@ \
--template=eisvogel \
--pdf-engine=tectonic

# ____ _
# / ___| | ___ __ _ _ __
# | | | |/ _ \/ _` | '_ \
Expand Down
8 changes: 8 additions & 0 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,11 @@ RUN mkdir -p ${TEMPLATES_DIR} && \
ARG EISVOGEL_REPO=https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template
ARG EISVOGEL_VERSION=v2.4.0
RUN wget ${EISVOGEL_REPO}/${EISVOGEL_VERSION}/eisvogel.tex -O ${TEMPLATES_DIR}/eisvogel.latex

# tectonic
ARG TECTONIC_REPO=https://github.com/tectonic-typesetting/tectonic/releases/download/
ARG TECTONIC_VERSION=0.15.0
ARG TECTONIC_TARBALL=tectonic-${TECTONIC_VERSION}-x86_64-unknown-linux-gnu.tar.gz
RUN wget ${TECTONIC_REPO}/tectonic%40${TECTONIC_VERSION}/${TECTONIC_TARBALL} \
&& tar xvzf ${TECTONIC_TARBALL} -C /usr/local/bin/ \
&& rm -f ${TECTONIC_TARBALL}

0 comments on commit 969e10a

Please sign in to comment.