Commit c839f139 authored by Sébastien MARCEL's avatar Sébastien MARCEL

mods to compile from pandoc to pdf directly with Makefile

parent b80370cf
Pipeline #22712 failed with stage
in 6 seconds
...@@ -6,5 +6,5 @@ ...@@ -6,5 +6,5 @@
*.out *.out
*.snm *.snm
*.toc *.toc
*.pdf lecture.pdf
main.tex ??_section*.pdf
...@@ -10,6 +10,10 @@ stages: ...@@ -10,6 +10,10 @@ stages:
- git clone git@gitlab.idiap.ch:master-biometrics/graphics.git - git clone git@gitlab.idiap.ch:master-biometrics/graphics.git
script: script:
- make - make
artifacts:
expire_in: 1 week
paths:
- "*.pdf"
linux: linux:
<<: *build_job <<: *build_job
......
TEXFILE=lab.tex TARGET := lecture.pdf
PDFFILE=$(TEXFILE:%.tex=%.pdf) SECTIONS := $(sort $(wildcard ??_section*.md))
%.pdf: %.tex # builds a single section
pandoc -t beamer ??_*.md -o main.tex %.pdf: metadata.yaml %.md
pdflatex --shell-escape $< pandoc -H header.tex -f markdown -t beamer -o $@ $?
pdflatex --shell-escape $<
all: $(PDFFILE) # builds the whole lecture
$(TARGET): metadata.yaml $(SECTIONS)
pandoc -H header.tex -f markdown -t beamer -o $@ $?
all: $(TARGET)
.PHONY: clean .PHONY: clean
clean: clean:
@rm -vf $(shell find . -name "*~") @rm -vf $(shell find . -name "*~")
@rm -vf *.log *.lot *.lof *.loa *.toc *.idx *.inc *.ilg *.ind *.bbl *.blg @rm -vf $(TARGET) $(patsubst %.md,%.pdf,$(SECTIONS))
@rm -vf *.aux *.glo *.dvi *.ps *.pdf *.out *.brf *.nav *.snm *.vrb
@rm -vf $(PDFFILE)
\usetheme{idiapbsp}
\input{settings}
\input{graphics}
---
author: |
Sébastien Marcel\
Head of Biometrics Security and Privacy group\
Idiap research institute\
Switzerland\
\url{www.idiap.ch/~marcel}
subject: Lecture XX
date: \today
title: "Biometrics: Lecture"
subtitle: "Welcome and general information"
institute: "Idiap Research Institute"
lang: "en"
---
Markdown is supported
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