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

mods to compile from pandoc to pdf directly with Makefile

parent 043a9e61
Pipeline #22714 failed with stage
in 5 seconds
......@@ -6,5 +6,5 @@
*.out
*.snm
*.toc
*.pdf
main.tex
lecture.pdf
??_section*.pdf
......@@ -10,6 +10,10 @@ stages:
- git clone git@gitlab.idiap.ch:master-biometrics/graphics.git
script:
- make
artifacts:
expire_in: 1 week
paths:
- "*.pdf"
linux:
<<: *build_job
......
TEXFILE=lab.tex
PDFFILE=$(TEXFILE:%.tex=%.pdf)
TARGET := lecture.pdf
SECTIONS := $(sort $(wildcard ??_section*.md))
%.pdf: %.tex
pandoc -t beamer ??_*.md -o main.tex
pdflatex --shell-escape $<
pdflatex --shell-escape $<
# builds a single section
%.pdf: metadata.yaml %.md
pandoc -H header.tex -f markdown -t beamer -o $@ $?
all: $(PDFFILE)
# builds the whole lecture
$(TARGET): metadata.yaml $(SECTIONS)
pandoc -H header.tex -f markdown -t beamer -o $@ $?
all: $(TARGET)
.PHONY: clean
clean:
@rm -vf $(shell find . -name "*~")
@rm -vf *.log *.lot *.lof *.loa *.toc *.idx *.inc *.ilg *.ind *.bbl *.blg
@rm -vf *.aux *.glo *.dvi *.ps *.pdf *.out *.brf *.nav *.snm *.vrb
@rm -vf $(PDFFILE)
@rm -vf $(TARGET) $(patsubst %.md,%.pdf,$(SECTIONS))
\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