Skip to content

Commit

Permalink
make presentation archetype working...
Browse files Browse the repository at this point in the history
  • Loading branch information
LucFabresse committed Nov 5, 2016
1 parent 3d177c4 commit cd1d41a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
10 changes: 7 additions & 3 deletions presentation/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OUTPUTDIRECTORY = ./book-result
OUTPUTDIRECTORY = book-result
LATEXTEMPLATE = support/templates/presentation.beamer.template
HTMLTEMPLATE = support/templates/presentation.deckjs.template

Expand All @@ -16,8 +16,9 @@ $(OUTPUTDIRECTORY)/%.tex: $(OUTPUTDIRECTORY)/%.tex.json
./mustache --data=$< --template=${LATEXTEMPLATE} > $@

$(OUTPUTDIRECTORY)/%.pdf: $(OUTPUTDIRECTORY)/%.tex
latexmk -silent -outdir=${OUTPUTDIRECTORY} -use-make -pdf $<
make cleanBookResult
# latexmk -silent -outdir=${OUTPUTDIRECTORY} -use-make -pdf $<
latexmk -outdir=${OUTPUTDIRECTORY} -aux-directory=${OUTPUTDIRECTORY} -pdf $<
# make cleanBookResult

$(OUTPUTDIRECTORY)/%.html.json: %.pillar copySupport
./pillar export --to="DeckJS" --outputDirectory=$(OUTPUTDIRECTORY) $<
Expand All @@ -27,3 +28,6 @@ $(OUTPUTDIRECTORY)/%.html: $(OUTPUTDIRECTORY)/%.html.json

cleanBookResult:
rm ${OUTPUTDIRECTORY}/*.aux ${OUTPUTDIRECTORY}/*.fls ${OUTPUTDIRECTORY}/*.log ${OUTPUTDIRECTORY}/*.fdb_latexmk ${OUTPUTDIRECTORY}/*.listing ${OUTPUTDIRECTORY}/*.nav ${OUTPUTDIRECTORY}/*.out ${OUTPUTDIRECTORY}/*.snm ${OUTPUTDIRECTORY}/*.toc ${OUTPUDIRECTORY}/*.vrb

clean:
rm -fr ${OUTPUTDIRECTORY}
4 changes: 2 additions & 2 deletions presentation/support/makefiles/copySupport.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
copySupport: initDir
find . -type d -path $(OUTPUTDIRECTORY) -prune -o -wholename "*/figures" -exec cp {} --parents -r ${OUTPUTDIRECTORY} \;
# find . -type d -path $(OUTPUTDIRECTORY) -prune -o -wholename "*/figures" -exec cp {} --parents -r ${OUTPUTDIRECTORY} \;
cp -r support/ ${OUTPUTDIRECTORY}
cp .latexmkrc ${OUTPUTDIRECTORY}
# cp latexmkrc ${OUTPUTDIRECTORY}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
\author{«& author»}
\institute{«& complement»}
\date{\today}
\slidesid{«& slideId»}

\addtobeamertemplate{navigation symbols}{}{%
\usebeamerfont{footline}%
Expand Down

1 comment on commit cd1d41a

@cdlm
Copy link
Contributor

@cdlm cdlm commented on cd1d41a Nov 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check the makefiles from the book archetype… and issue #10

Please sign in to comment.