Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX #87: Add tectonic to extra #228

Merged
merged 1 commit into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,6 @@ ARG LUA_FILTERS_VERSION=v2021-11-05
RUN wget ${LUA_FILTERS_REPO}/${LUA_FILTERS_VERSION}/lua-filters.tar.gz \
&& tar xzf lua-filters.tar.gz --strip-components=1 --one-top-level=/.pandoc \
&& rm -f lua-filters.tar.gz

# tectonic
RUN apk --no-cache add tectonic
2 changes: 2 additions & 0 deletions docs/extra.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ and a curated selection of components:
* Beamer Themes: [beamer-metropolis][]
* Pandoc filters: [pandoc-latex-environment][] + [Lua filters][]
* 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
[Lua filters]: https://github.com/pandoc/lua-filters
[Tectonic]: tectonic-typesetting.github.io

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

.PHONY: test-extra
test-extra: output/eisvogel.pdf output/eisvogel_with_environment.pdf \
output/beamertheme-metropolis.pdf output/lua.html
output/beamertheme-metropolis.pdf output/lua.html \
output/eisvogel-tectonic.pdf

output/eisvogel.pdf: eisvogel.md
$(EXTRA_CMD) $< \
Expand All @@ -217,6 +218,12 @@ output/lua.html: eisvogel.md
--output=$@ \
--lua-filter=pagebreak.lua

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

# ____ _
# / ___| | ___ __ _ _ __
# | | | |/ _ \/ _` | '_ \
Expand Down
13 changes: 13 additions & 0 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,16 @@ ARG LUA_FILTERS_VERSION=v2021-11-05
RUN wget ${LUA_FILTERS_REPO}/${LUA_FILTERS_VERSION}/lua-filters.tar.gz \
&& tar xzf lua-filters.tar.gz --strip-components=1 --one-top-level=/.pandoc \
&& rm -f lua-filters.tar.gz

# tectonic
ARG TARGETARCH
ARG TECTONIC_REPO=https://github.com/tectonic-typesetting/tectonic/releases/download
ARG TECTONIC_VERSION=0.15.0
RUN if [ "$TARGETARCH" = "amd64" ] ; then TECTONIC_ARCH='x86_64' ; \
elif [ "$TARGETARCH" = "arm64" ] ; then TECTONIC_ARCH='aarch64' ; \
else echo 'unsupported target arch for tectonic'; exit 1 ; \
fi \
&& TECTONIC_TARBALL=tectonic-${TECTONIC_VERSION}-${TECTONIC_ARCH}-unknown-linux-gnu.tar.gz \
&& wget ${TECTONIC_REPO}/tectonic%40${TECTONIC_VERSION}/${TECTONIC_TARBALL} \
&& tar xzf ${TECTONIC_TARBALL} -C /usr/local/bin/ \
&& rm -f ${TECTONIC_TARBALL}
Loading