minimal fonts for pandoc
This commit is contained in:
parent
24ab1ec141
commit
a07fd77c8b
18
Makefile
18
Makefile
|
@ -4,8 +4,7 @@ DOCKER_IMAGE ?= lambci/lambda-base-2:build
|
||||||
TARGET ?=/opt/
|
TARGET ?=/opt/
|
||||||
|
|
||||||
MOUNTS = -v $(PROJECT_ROOT):/var/task \
|
MOUNTS = -v $(PROJECT_ROOT):/var/task \
|
||||||
-v $(PROJECT_ROOT)result:$(TARGET) \
|
-v $(PROJECT_ROOT)result:$(TARGET)
|
||||||
-v $(PROJECT_ROOT)cache:/usr/local
|
|
||||||
|
|
||||||
DOCKER = docker run -it --rm -w=/var/task/build
|
DOCKER = docker run -it --rm -w=/var/task/build
|
||||||
build result cache:
|
build result cache:
|
||||||
|
@ -17,15 +16,16 @@ clean:
|
||||||
bash:
|
bash:
|
||||||
$(DOCKER) $(MOUNTS) --entrypoint /bin/bash -t $(DOCKER_IMAGE)
|
$(DOCKER) $(MOUNTS) --entrypoint /bin/bash -t $(DOCKER_IMAGE)
|
||||||
|
|
||||||
pdflatex:
|
all: build result cache
|
||||||
$(DOCKER) $(MOUNTS) \
|
|
||||||
--env PATH=/opt/texlive/x86_64-linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
|
||||||
--entrypoint /opt/texlive/bin/x86_64-linux/pdflatex \
|
|
||||||
$(DOCKER_IMAGE) /var/task/test.latex
|
|
||||||
|
|
||||||
all result/bin/x86_64-linux/latex: build result cache
|
|
||||||
$(DOCKER) $(MOUNTS) --entrypoint /usr/bin/make -t $(DOCKER_IMAGE) TARGET_DIR=$(TARGET) -f ../Makefile_Latex $@
|
$(DOCKER) $(MOUNTS) --entrypoint /usr/bin/make -t $(DOCKER_IMAGE) TARGET_DIR=$(TARGET) -f ../Makefile_Latex $@
|
||||||
|
|
||||||
|
example.pdf:
|
||||||
|
docker run -it --rm $(MOUNTS) \
|
||||||
|
-w=/var/task/test \
|
||||||
|
--env PATH=/opt/texlive/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||||
|
--entrypoint /opt/texlive/bin/x86_64-linux/pdflatex \
|
||||||
|
$(DOCKER_IMAGE) example.latex
|
||||||
|
|
||||||
STACK_NAME ?= latex-layer
|
STACK_NAME ?= latex-layer
|
||||||
|
|
||||||
build/output.yaml: template.yaml result/bin/x86_64-linux/latex
|
build/output.yaml: template.yaml result/bin/x86_64-linux/latex
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
CACHE_DIR=$(PROJECT_ROOT)build/cache
|
TEXLIVE_SOURCE:=install-tl-unx.tar.gz
|
||||||
|
WGET:=/usr/bin/wget
|
||||||
|
MD5_pm:=/usr/lib64/perl5/vendor_perl/Digest/MD5.pm
|
||||||
|
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
|
|
||||||
### step 1: texlive installer
|
|
||||||
# see https://www.tug.org/texlive/acquire-netinstall.html
|
|
||||||
TEXLIVE_SOURCE=install-tl-unx.tar.gz
|
|
||||||
|
|
||||||
$(TEXLIVE_SOURCE):
|
$(TEXLIVE_SOURCE):
|
||||||
curl -LO http://mirror.ctan.org/systems/texlive/tlnet/$(TEXLIVE_SOURCE)
|
curl -LO http://mirror.ctan.org/systems/texlive/tlnet/$(TEXLIVE_SOURCE)
|
||||||
|
|
||||||
MD5_pm=/usr/lib64/perl5/vendor_perl/Digest/MD5.pm
|
|
||||||
$(MD5_pm):
|
$(MD5_pm):
|
||||||
yum install perl-Digest-MD5 -y
|
yum install perl-Digest-MD5 -y
|
||||||
|
|
||||||
|
@ -26,18 +23,20 @@ $(TLMGR): $(TEXLIVE_SOURCE) $(WGET) $(MD5_pm)
|
||||||
|
|
||||||
## see https://pandoc.org/MANUAL.html
|
## see https://pandoc.org/MANUAL.html
|
||||||
##
|
##
|
||||||
## the following packages might be needed for xelatex:
|
## the following packages might be needed for xelatex, but xelatex
|
||||||
|
## is not included in the basic profile. change texlive.profile to
|
||||||
|
## add it if necessary
|
||||||
##
|
##
|
||||||
## fontspec polyglossia xecjk bidi mathspec upquote microtype
|
## fontspec polyglossia xecjk bidi mathspec upquote microtype
|
||||||
## csquotes natbib biblatex bibtex biber
|
## csquotes natbib biblatex bibtex biber
|
||||||
|
|
||||||
pandoc-packages: $(TLMGR)
|
pandoc-packages: $(TLMGR)
|
||||||
$(TLMGR) install --repository ctan \
|
$(TLMGR) install \
|
||||||
xcolor amsfonts amsmath lm unicode-math \
|
xcolor amsfonts amsmath lm unicode-math \
|
||||||
ifxetex ifluatex listings fancyvrb booktabs \
|
ifxetex ifluatex listings fancyvrb booktabs \
|
||||||
hyperref ulem geometry setspace babel upquote \
|
hyperref ulem geometry setspace babel upquote \
|
||||||
microtype parskip xurl oberdiek tools \
|
microtype parskip xurl oberdiek tools \
|
||||||
graphics footnotehyper mdwtools etoolbox
|
graphics footnotehyper mdwtools etoolbox ec
|
||||||
|
|
||||||
all: $(TLMGR) pandoc-packages
|
all: $(TLMGR) pandoc-packages
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user